diff --git a/.bandit b/.bandit
deleted file mode 100644
index d84998c8e..000000000
--- a/.bandit
+++ /dev/null
@@ -1,5 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: Apache-2.0
-
-[bandit]
-skips = B101,B311
diff --git a/.gitattributes b/.gitattributes
deleted file mode 100644
index aeb320061..000000000
--- a/.gitattributes
+++ /dev/null
@@ -1,9 +0,0 @@
-cuda/_version.py export-subst
-
-* text eol=lf
-
-# we do not own any headers checked in, don't touch them
-*.h binary
-*.hpp binary
-# git should not convert line endings in PNG files
-*.png binary
diff --git a/.github/BACKPORT_BRANCH b/.github/BACKPORT_BRANCH
deleted file mode 100644
index 1ba33f6ae..000000000
--- a/.github/BACKPORT_BRANCH
+++ /dev/null
@@ -1 +0,0 @@
-12.9.x
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
deleted file mode 100644
index 4574e04bf..000000000
--- a/.github/ISSUE_TEMPLATE/bug_report.yml
+++ /dev/null
@@ -1,115 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-name: Bug Report
-description: Create a report to help us improve
-title: '[BUG]: '
-labels: ['bug']
-body:
- - type: checkboxes
- id: check-duplicates
- attributes:
- label: Is this a duplicate?
- description: Check for duplicate issues.
- options:
- - label: I confirmed there appear to be no [duplicate issues](https://github.com/NVIDIA/cuda-python/issues) for this bug and that I agree to the [Code of Conduct](CODE_OF_CONDUCT.md)
- required: true
-
- - type: dropdown
- id: bug-type
- attributes:
- label: Type of Bug
- description: What kind of bug are you running into?
- multiple: false
- options:
- - Silent Failure
- - Runtime Error
- - Compile-time Error
- - Performance
- - Something else
- validations:
- required: true
-
- - type: dropdown
- id: component
- attributes:
- label: Component
- description: Which cuda-python component does this apply to?
- multiple: false
- options:
- - cuda.pathfinder
- - cuda.bindings
- - cuda.core
- - General cuda-python
- - Infrastructure
- - Not sure
- validations:
- required: true
-
- - type: textarea
- id: description
- attributes:
- label: Describe the bug
- description: A clear and concise description of what problem you are running into.
- placeholder: "Attempting to compile a program via `cuda.core.experimental.Program.compile` throws a `ValueError`."
- validations:
- required: true
-
- - type: textarea
- id: reproduction
- attributes:
- label: How to Reproduce
- description: Steps used to reproduce the bug.
- placeholder: |
- 0. Construct a `cuda.core.experimental.Program` instance
- 1. Call the `.compile(...)` method of the instance
- 2. The call throws a `ValueError` with the following:
- ```
- ValueError: Unsupported target_type="..." (supported_target_types=('ptx', 'cubin', 'ltoir'))
- ```
- validations:
- required: true
-
- - type: textarea
- id: expected-behavior
- attributes:
- label: Expected behavior
- description: A clear and concise description of what you expected to happen.
- placeholder: "Using `cuda.core.experimental.Program.compile(...)` should run successfully and not throw a `ValueError`"
- validations:
- required: true
-
- - type: markdown
- attributes:
- value: '# System information'
-
- - type: input
- id: operating-system
- attributes:
- label: Operating System
- description:
- If applicable, the OS version where this bug occurs.
- placeholder: Ubuntu Linux 20.04
- validations:
- required: false
-
- - type: textarea
- id: nvidia-smi-output
- attributes:
- label: nvidia-smi output
- description: If applicable, the output from running the `nvidia-smi` command.
- placeholder: |
- +-----------------------------------------------------------------------------+
- | NVIDIA-SMI 495.29.05 Driver Version: 495.29.05 CUDA Version: 11.5 |
- |-------------------------------+----------------------+----------------------+
- | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
- | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
- | | | MIG M. |
- |===============================+======================+======================|
- | 0 NVIDIA GeForce ... Off | 00000000:41:00.0 On | N/A |
- | 0% 25C P8 8W / 320W | 491MiB / 10015MiB | 0% Default |
- | | | N/A |
- +-------------------------------+----------------------+----------------------+
- validations:
- required: false
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml
deleted file mode 100644
index eb8c93b95..000000000
--- a/.github/ISSUE_TEMPLATE/config.yml
+++ /dev/null
@@ -1,9 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-blank_issues_enabled: true
-contact_links:
- - name: Questions
- url: https://github.com/NVIDIA/cuda-python/discussions
- about: Check out our Discussions page to ask and answer questions.
diff --git a/.github/ISSUE_TEMPLATE/doc_request.yml b/.github/ISSUE_TEMPLATE/doc_request.yml
deleted file mode 100644
index 7804a6c85..000000000
--- a/.github/ISSUE_TEMPLATE/doc_request.yml
+++ /dev/null
@@ -1,43 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-name: Documentation Request
-description: Suggest an idea to improve cuda-python
-title: '[DOC]: '
-labels: ['doc']
-
-body:
- - type: checkboxes
- id: check-duplicates
- attributes:
- label: Is this a duplicate?
- description: Check for duplicate issues.
- options:
- - label: I confirmed there appear to be no [duplicate issues](https://github.com/NVIDIA/cuda-python/issues) for this bug and that I agree to the [Code of Conduct](CODE_OF_CONDUCT.md)
- required: true
-
- - type: dropdown
- id: new_or_correction
- attributes:
- label: Is this for new documentation, or an update to existing docs?
- options:
- - New
- - Update
- validations:
- required: true
-
- - type: textarea
- id: problem
- attributes:
- label: Describe the incorrect/future/missing documentation
- placeholder: "Example: A code snippet mentions function foo(args) but I cannot find any documentation on it."
- validations:
- required: true
-
- - type: textarea
- id: search_locs
- attributes:
- label: If this is a correction, please provide a link to the incorrect documentation. If this is a new documentation request, please link to where you have looked.
- placeholder: |
- https://nvidia.github.io/cuda-python/latest/
diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml
deleted file mode 100644
index cbbc03c49..000000000
--- a/.github/ISSUE_TEMPLATE/feature_request.yml
+++ /dev/null
@@ -1,71 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-name: Feature Request
-description: Suggest an idea to improve cuda-python
-title: '[FEA]: '
-labels: ['feature request']
-body:
- - type: checkboxes
- id: check-duplicates
- attributes:
- label: Is this a duplicate?
- description: Check for duplicate issues.
- options:
- - label: I confirmed there appear to be no [duplicate issues](https://github.com/NVIDIA/cuda-python/issues) for this request and that I agree to the [Code of Conduct](CODE_OF_CONDUCT.md)
-
- - type: dropdown
- id: area
- attributes:
- label: Area
- description: What area does this request apply to?
- multiple: false
- options:
- - cuda.pathfinder
- - cuda.bindings
- - cuda.core
- - General cuda-python
- - Infrastructure
- - Not sure
- validations:
- required: true
-
- - type: textarea
- id: description
- attributes:
- label: Is your feature request related to a problem? Please describe.
- description: A clear and concise description of what the problem is, e.g., "I would like to be able to..."
- placeholder: I would like to be able to use the equivalent of `cuda.core.experimental.Program.compile(...)` to compile my code to PTX.
- validations:
- required: true
-
- - type: textarea
- id: proposed-solution
- attributes:
- label: Describe the solution you'd like
- description: A clear and concise description of what you want to happen.
- placeholder: |
- Support a `ptx` target_type in the `cuda.core.experimental.Program.compile(...)` function.
- validations:
- required: true
-
- - type: textarea
- id: alternatives
- attributes:
- label: Describe alternatives you've considered
- description:
- If applicable, please add a clear and concise description of any alternative solutions or features you've
- considered.
- placeholder: The alternatives to using `cuda.core.experimental.Program.compile(...)` are unappealing. They usually involve using lower level bindings to something like nvRTC or invoking the nvcc executable.
- validations:
- required: false
-
- - type: textarea
- id: additional-context
- attributes:
- label: Additional context
- description: Add any other context about the request here.
- placeholder: This would be helpful to have a more productive development cycle in working at the intersection of CUDA and Python for my project.
- validations:
- required: false
diff --git a/.github/ISSUE_TEMPLATE/release_checklist.yml b/.github/ISSUE_TEMPLATE/release_checklist.yml
deleted file mode 100644
index 2007c3b06..000000000
--- a/.github/ISSUE_TEMPLATE/release_checklist.yml
+++ /dev/null
@@ -1,37 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-name: Release Checklist
-description: Public checklist for release managers making a subpackage release
-labels: ["P0"]
-
-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.
-
- - type: checkboxes
- id: subpackage-tasks
- attributes:
- 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: Check (or update if needed) the dependency requirements
- - label: Bump the version
- - label: Create a public rc tag
- - label: "Point QA to fetch public artifacts (wheels) from the GHA run ID, example: `gh run download 12323257563 -p \"cuda-core*\" -R NVIDIA/cuda-python`"
- - label: Wait for QA reports and fix any issues found
- - 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: If any code change happens, rebuild the wheels from the new tag
- - label: Update the conda recipe & release conda packages
- - label: Upload conda packages to nvidia channel
- - label: Upload wheels to PyPI
- - label: Post-release QA
- - label: Finalize the announcement update
- - label: Send out the announcement internally
- - label: Send out the announcement externally (GitHub Release -> Announcement)
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
deleted file mode 100644
index aa51259a9..000000000
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ /dev/null
@@ -1,13 +0,0 @@
-## Description
-
-
-closes
-
-
-
-
-
-## Checklist
-
-- [ ] New or existing tests cover these changes.
-- [ ] The documentation is up to date with these changes.
diff --git a/.github/actions/doc_preview/action.yml b/.github/actions/doc_preview/action.yml
deleted file mode 100644
index ae4f81115..000000000
--- a/.github/actions/doc_preview/action.yml
+++ /dev/null
@@ -1,70 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-name: Preview or clean up docs built from PRs
-
-# A re-implementation based on the logic of https://github.com/rossjrw/pr-preview-action/blob/41a957c44a456a34718e9bcf825363194db5e6d5/README.md, due to limitations illustrated in NVIDIA/cuda-python#380.
-
-inputs:
- source-folder:
- required: true
- type: string
- pr-number:
- required: true
- type: string
-
-runs:
- using: composite
- steps:
- # The steps below are executed only when testing in a PR.
- # Note: the PR previews will be removed once merged to main (see below)
- - name: Deploy doc preview
- if: ${{ github.ref_name != 'main' }}
- uses: JamesIves/github-pages-deploy-action@6c2d9db40f9296374acc17b90404b6e8864128c8 # v4.7.3
- with:
- git-config-name: cuda-python-bot
- git-config-email: cuda-python-bot@users.noreply.github.com
- folder: ${{ inputs.source-folder }}
- target-folder: docs/pr-preview/pr-${{ inputs.pr-number }}/
- commit-message: "Deploy doc preview for PR ${{ inputs.pr-number }} (${{ github.sha }})"
-
- - name: Leave a comment after deployment
- if: ${{ github.ref_name != 'main' }}
- uses: marocchino/sticky-pull-request-comment@67d0dec7b07ed060a405f9b2a64b8ab319fdd7db # v2.9.2
- with:
- header: pr-preview
- number: ${{ inputs.pr-number }}
- skip_unchanged: true
- message: |
- Doc Preview CI
- :---:
- |
:rocket: View preview at https://nvidia.github.io/cuda-python/pr-preview/pr-${{ inputs.pr-number }}/
- | https://nvidia.github.io/cuda-python/pr-preview/pr-${{ inputs.pr-number }}/cuda-core/
- | https://nvidia.github.io/cuda-python/pr-preview/pr-${{ inputs.pr-number }}/cuda-bindings/
- | https://nvidia.github.io/cuda-python/pr-preview/pr-${{ inputs.pr-number }}/cuda-pathfinder/
- | Preview will be ready when the GitHub Pages deployment is complete.
-
- # The steps below are executed only when building on main.
- - name: Remove doc preview
- if: ${{ github.ref_name == 'main' }}
- uses: JamesIves/github-pages-deploy-action@6c2d9db40f9296374acc17b90404b6e8864128c8 # v4.7.3
- with:
- git-config-name: cuda-python-bot
- git-config-email: cuda-python-bot@users.noreply.github.com
- folder: ${{ inputs.source-folder }}
- target-folder: docs/pr-preview/pr-${{ inputs.pr-number }}/
- commit-message: "Clean up doc preview for PR ${{ inputs.pr-number }} (${{ github.sha }})"
-
- - name: Leave a comment after removal
- if: ${{ github.ref_name == 'main' }}
- uses: marocchino/sticky-pull-request-comment@67d0dec7b07ed060a405f9b2a64b8ab319fdd7db # v2.9.2
- with:
- header: pr-preview
- number: ${{ inputs.pr-number }}
- hide_and_recreate: true
- hide_classify: "OUTDATED"
- message: |
- Doc Preview CI
- :---:
- Preview removed because the pull request was closed or merged.
diff --git a/.github/actions/fetch_ctk/action.yml b/.github/actions/fetch_ctk/action.yml
deleted file mode 100644
index 83b447f0c..000000000
--- a/.github/actions/fetch_ctk/action.yml
+++ /dev/null
@@ -1,177 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-name: Fetch mini CTK
-
-description: Fetch (or create) a mini CUDA Toolkit from cache
-
-inputs:
- host-platform:
- required: true
- type: string
- cuda-version:
- required: true
- type: string
- cuda-components:
- description: "A list of the CTK components to install as a comma-separated list. e.g. 'cuda_nvcc,cuda_nvrtc,cuda_cudart'"
- required: false
- type: string
- default: "cuda_nvcc,cuda_cudart,cuda_crt,libnvvm,cuda_nvrtc,cuda_profiler_api,cuda_cccl,libnvjitlink,libcufile"
-
-runs:
- using: composite
- steps:
- - name: Set up CTK cache variable
- shell: bash --noprofile --norc -xeuo pipefail {0}
- run: |
- # Pre-process the component list to ensure hash uniqueness
- CTK_CACHE_COMPONENTS=${{ inputs.cuda-components }}
- # Conditionally strip out libnvjitlink for CUDA versions < 12
- CUDA_MAJOR_VER="$(cut -d '.' -f 1 <<< ${{ inputs.cuda-version }})"
- if [[ "$CUDA_MAJOR_VER" -lt 12 ]]; then
- CTK_CACHE_COMPONENTS="${CTK_CACHE_COMPONENTS//libnvjitlink/}"
- fi
- # Conditionally strip out cuda_crt and libnvvm for CUDA versions < 13
- CUDA_MAJOR_VER="$(cut -d '.' -f 1 <<< ${{ inputs.cuda-version }})"
- if [[ "$CUDA_MAJOR_VER" -lt 13 ]]; then
- CTK_CACHE_COMPONENTS="${CTK_CACHE_COMPONENTS//cuda_crt/}"
- CTK_CACHE_COMPONENTS="${CTK_CACHE_COMPONENTS//libnvvm/}"
- fi
- # Conditionally strip out libcufile since it does not support Windows
- if [[ "${{ inputs.host-platform }}" == win-* ]]; then
- CTK_CACHE_COMPONENTS="${CTK_CACHE_COMPONENTS//libcufile/}"
- fi
- # Cleanup stray commas after removing components
- CTK_CACHE_COMPONENTS="${CTK_CACHE_COMPONENTS//,,/,}"
-
- HASH=$(echo -n "${CTK_CACHE_COMPONENTS}" | sha256sum | awk '{print $1}')
- echo "CTK_CACHE_KEY=mini-ctk-${{ inputs.cuda-version }}-${{ inputs.host-platform }}-$HASH" >> $GITHUB_ENV
- echo "CTK_CACHE_FILENAME=mini-ctk-${{ inputs.cuda-version }}-${{ inputs.host-platform }}-$HASH.tar.gz" >> $GITHUB_ENV
- echo "CTK_CACHE_COMPONENTS=${CTK_CACHE_COMPONENTS}" >> $GITHUB_ENV
-
- - name: Install dependencies
- uses: ./.github/actions/install_unix_deps
- continue-on-error: false
- with:
- dependencies: "zstd curl xz-utils"
- dependent_exes: "zstd curl xz"
-
- - name: Download CTK cache
- id: ctk-get-cache
- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
- continue-on-error: true
- with:
- key: ${{ env.CTK_CACHE_KEY }}
- path: ./${{ env.CTK_CACHE_FILENAME }}
- fail-on-cache-miss: false
-
- - name: Get CUDA components
- if: ${{ steps.ctk-get-cache.outputs.cache-hit != 'true' }}
- shell: bash --noprofile --norc -xeuo pipefail {0}
- run: |
- # Everything under this folder is packed and stored in the GitHub Cache space,
- # and unpacked after retrieving from the cache.
- CACHE_TMP_DIR="./cache_tmp_dir"
- rm -rf $CACHE_TMP_DIR
- mkdir $CACHE_TMP_DIR
-
- # The binary archives (redist) are guaranteed to be updated as part of the release posting.
- CTK_BASE_URL="https://developer.download.nvidia.com/compute/cuda/redist/"
- CTK_JSON_URL="$CTK_BASE_URL/redistrib_${{ inputs.cuda-version }}.json"
- if [[ "${{ inputs.host-platform }}" == linux* ]]; then
- if [[ "${{ inputs.host-platform }}" == "linux-64" ]]; then
- CTK_SUBDIR="linux-x86_64"
- elif [[ "${{ inputs.host-platform }}" == "linux-aarch64" ]]; then
- CTK_SUBDIR="linux-sbsa"
- fi
- function extract() {
- tar -xvf $1 -C $CACHE_TMP_DIR --strip-components=1
- }
- elif [[ "${{ inputs.host-platform }}" == "win-64" ]]; then
- CTK_SUBDIR="windows-x86_64"
- function extract() {
- _TEMP_DIR_=$(mktemp -d)
- unzip $1 -d $_TEMP_DIR_
- cp -r $_TEMP_DIR_/*/* $CACHE_TMP_DIR
- rm -rf $_TEMP_DIR_
- # see commit NVIDIA/cuda-python@69410f1d9228e775845ef6c8b4a9c7f37ffc68a5
- chmod 644 $CACHE_TMP_DIR/LICENSE
- }
- fi
- function populate_cuda_path() {
- # take the component name as a argument
- function download() {
- curl -kLSs $1 -o $2
- }
- CTK_COMPONENT=$1
- CTK_COMPONENT_REL_PATH="$(curl -s $CTK_JSON_URL |
- python -c "import sys, json; print(json.load(sys.stdin)['${CTK_COMPONENT}']['${CTK_SUBDIR}']['relative_path'])")"
- CTK_COMPONENT_URL="${CTK_BASE_URL}/${CTK_COMPONENT_REL_PATH}"
- CTK_COMPONENT_COMPONENT_FILENAME="$(basename $CTK_COMPONENT_REL_PATH)"
- download $CTK_COMPONENT_URL $CTK_COMPONENT_COMPONENT_FILENAME
- extract $CTK_COMPONENT_COMPONENT_FILENAME
- rm $CTK_COMPONENT_COMPONENT_FILENAME
- }
-
- # Get headers and shared libraries in place
- for item in $(echo $CTK_CACHE_COMPONENTS | tr ',' ' '); do
- populate_cuda_path "$item"
- done
- ls -l $CACHE_TMP_DIR
-
- # Prepare the cache
- # Note: try to escape | and > ...
- tar -czvf ${CTK_CACHE_FILENAME} ${CACHE_TMP_DIR}
-
- # "Move" files from temp dir to CUDA_PATH
- CUDA_PATH="./cuda_toolkit"
- 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
- # Git Bash). We do it in the dumb way.
- cp -r $CACHE_TMP_DIR/* $CUDA_PATH
- rm -rf $CACHE_TMP_DIR
- ls -l $CUDA_PATH
-
- - name: Upload CTK cache
- if: ${{ always() &&
- steps.ctk-get-cache.outputs.cache-hit != 'true' }}
- uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
- with:
- key: ${{ env.CTK_CACHE_KEY }}
- path: ./${{ env.CTK_CACHE_FILENAME }}
-
- - name: Restore CTK cache
- if: ${{ steps.ctk-get-cache.outputs.cache-hit == 'true' }}
- shell: bash --noprofile --norc -xeuo pipefail {0}
- run: |
- ls -l
- CACHE_TMP_DIR="./cache_tmp_dir"
- CUDA_PATH="./cuda_toolkit"
- mkdir -p $CUDA_PATH
- tar -xzvf $CTK_CACHE_FILENAME
- # Can't use rsync here, see above
- cp -r $CACHE_TMP_DIR/* $CUDA_PATH
- rm -rf $CACHE_TMP_DIR $CTK_CACHE_FILENAME
- ls -l $CUDA_PATH
- if [ ! -d "$CUDA_PATH/include" ]; then
- exit 1
- fi
-
- - name: Set output environment variables
- shell: bash --noprofile --norc -xeuo pipefail {0}
- run: |
- # mimics actual CTK installation
- if [[ "${{ inputs.host-platform }}" == linux* ]]; then
- CUDA_PATH=$(realpath "./cuda_toolkit")
- echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH:-}:${CUDA_PATH}/lib" >> $GITHUB_ENV
- elif [[ "${{ inputs.host-platform }}" == win* ]]; then
- function normpath() {
- echo "$(echo $(cygpath -w $1) | sed 's/\\/\\\\/g')"
- }
- CUDA_PATH=$(normpath $(realpath "./cuda_toolkit"))
- echo "$(normpath ${CUDA_PATH}/bin)" >> $GITHUB_PATH
- fi
- echo "CUDA_PATH=${CUDA_PATH}" >> $GITHUB_ENV
- echo "CUDA_HOME=${CUDA_PATH}" >> $GITHUB_ENV
diff --git a/.github/actions/get_pr_number/action.yml b/.github/actions/get_pr_number/action.yml
deleted file mode 100644
index fc8420ebd..000000000
--- a/.github/actions/get_pr_number/action.yml
+++ /dev/null
@@ -1,58 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-name: Get the PR number
-
-description: Get the PR number without relying on the pull_request* event triggers.
-
-runs:
- using: composite
- steps:
- - name: Get PR info (non-main branch)
- if: ${{ github.ref_name != 'main' }}
- uses: nv-gha-runners/get-pr-info@main
- id: get-pr-info
-
- - name: Extract PR number (non-main branch)
- if: ${{ github.ref_name != 'main' }}
- shell: bash --noprofile --norc -xeuo pipefail {0}
- run: |
- trap 'echo "Error at line $LINENO"; exit 1' ERR
- PR_NUMBER="${{ fromJSON(steps.get-pr-info.outputs.pr-info).number }}"
- if [[ -z "$PR_NUMBER" ]]; then
- echo "Cannot extract PR number for ref: ${{ github.ref_name }}"
- exit 1
- fi
- echo "PR_NUMBER=$PR_NUMBER" >> $GITHUB_ENV
- echo "BUILD_PREVIEW=1" >> $GITHUB_ENV
-
- - name: Get PR data (main branch)
- if: ${{ github.ref_name == 'main' }}
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
- id: get-pr-data
- with:
- script: |
- const prs = await github.rest.repos.listPullRequestsAssociatedWithCommit({
- commit_sha: context.sha,
- owner: context.repo.owner,
- repo: context.repo.repo,
- });
- if (!prs.data.length) {
- core.setFailed("No PR associated with this commit on 'main'.");
- } else {
- return prs.data[0];
- }
-
- - name: Extract PR number (main branch)
- if: ${{ github.ref_name == 'main' }}
- shell: bash --noprofile --norc -xeuo pipefail {0}
- run: |
- trap 'echo "Error at line $LINENO"; exit 1' ERR
- PR_NUMBER="${{ fromJSON(steps.get-pr-data.outputs.result).number }}"
- if [[ -z "$PR_NUMBER" ]]; then
- echo "No associated PR found for the commit in 'main'."
- exit 1
- fi
- echo "PR_NUMBER=$PR_NUMBER" >> $GITHUB_ENV
- echo "BUILD_LATEST=1" >> $GITHUB_ENV
diff --git a/.github/actions/install_unix_deps/action.yml b/.github/actions/install_unix_deps/action.yml
deleted file mode 100644
index 6289541c9..000000000
--- a/.github/actions/install_unix_deps/action.yml
+++ /dev/null
@@ -1,49 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-name: Install dependencies on Ubuntu
-
-description: Install needed dependencies, regardless if using GitHub- or self- hosted runners, container, sudo or not.
-
-inputs:
- dependencies:
- required: true
- type: string
- dependent_exes:
- required: true
- type: string
-
-runs:
- using: composite
- steps:
- - name: Install dependencies
- shell: bash --noprofile --norc -xeuo pipefail {0}
- run: |
- dependencies=(${{ inputs.dependencies }})
- dependent_exes=(${{ inputs.dependent_exes }})
-
- not_found=0
- for dep in ${dependent_exes[@]}; do
- if ! (command -v $dep 2>&1 >/dev/null); then
- not_found=1
- break
- fi
- done
- if [[ $not_found == 0 ]]; then
- echo "All dependencies are found. Do nothing."
- exit 0
- fi
- if ! (command -v sudo 2>&1 >/dev/null); then
- if [[ $EUID == 0 ]]; then
- alias SUDO=""
- else
- echo "The following oprations require root access."
- exit 1
- fi
- else
- alias SUDO="sudo"
- fi
- shopt -s expand_aliases
- SUDO apt update
- SUDO apt install -y ${dependencies[@]}
diff --git a/.github/copy-pr-bot.yaml b/.github/copy-pr-bot.yaml
deleted file mode 100644
index dadade585..000000000
--- a/.github/copy-pr-bot.yaml
+++ /dev/null
@@ -1,10 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: Apache-2.0
-
-# Configuration file for `copy-pr-bot` GitHub App
-# https://docs.gha-runners.nvidia.com/apps/copy-pr-bot/
-
-enabled: true
-# always require manual CI triggering, ignoring signed commits
-auto_sync_draft: false
-auto_sync_ready: false
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
deleted file mode 100644
index 2c0c08300..000000000
--- a/.github/dependabot.yml
+++ /dev/null
@@ -1,21 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-version: 2
-updates:
- - package-ecosystem: github-actions
- directory: /
- 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: ["minor", "patch"]
diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml
deleted file mode 100644
index 6a0fed91c..000000000
--- a/.github/workflows/backport.yml
+++ /dev/null
@@ -1,40 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2024-2025 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
-
-permissions:
- contents: write # so it can comment
- pull-requests: write # so it can create pull requests
-
-jobs:
- backport:
- name: Backport 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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
-
- - name: Load branch name
- id: get-branch
- run: |
- OLD_BRANCH=$(cat .github/BACKPORT_BRANCH)
- echo "OLD_BRANCH=${OLD_BRANCH}" >> $GITHUB_ENV
-
- - name: Create backport pull requests
- uses: korthout/backport-action@ca4972adce8039ff995e618f5fc02d1b7961f27a # v3.3.0
- with:
- copy_assignees: true
- copy_labels_pattern: true
- copy_requested_reviewers: true
- target_branches: ${{ env.OLD_BRANCH }}
diff --git a/.github/workflows/bandit.yml b/.github/workflows/bandit.yml
deleted file mode 100644
index c57ffd351..000000000
--- a/.github/workflows/bandit.yml
+++ /dev/null
@@ -1,28 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-name: "Static Analysis: Bandit Scan"
-
-on:
- push:
- branches:
- - "pull-request/[0-9]+"
- - "main"
-concurrency:
- group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
- cancel-in-progress: true
-
-jobs:
- analyze:
- runs-on: ubuntu-latest
- permissions:
- security-events: write
- steps:
- - name: Perform Bandit Analysis
- # KEEP IN SYNC WITH bandit rev in .pre-commit-config.yaml
- # Current runner uses Python 3.8, so the action installs bandit==1.7.10
- # via `pip install bandit[sarif]`. If runner Python moves to >=3.9,
- # the action will resolve to 1.8.x and you'll need to bump pre-commit.
- # (Bandit >=1.8.0 dropped Python 3.8 via Requires-Python metadata.)
- uses: PyCQA/bandit-action@8a1b30610f61f3f792fe7556e888c9d7dffa52de # v1.0.0
diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml
deleted file mode 100644
index 37fa21159..000000000
--- a/.github/workflows/build-docs.yml
+++ /dev/null
@@ -1,263 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-name: "CI: Build and update docs"
-
-on:
- workflow_call:
- inputs:
- build-ctk-ver:
- type: string
- required: true
- component:
- description: "Component(s) to build docs for"
- required: false
- default: "all"
- type: string
- # below are the acceptable options:
- # - cuda-core
- # - cuda-bindings
- # - cuda-python
- # - cuda-pathfinder
- # - all
- git-tag:
- description: "Target git tag to build docs for"
- required: false
- default: ""
- type: string
- run-id:
- description: "The GHA run ID that generated validated artifacts"
- required: false
- default: ${{ github.run_id }}
- type: string
- is-release:
- description: "Are we building release docs?"
- required: false
- default: false
- type: boolean
-
-jobs:
- build:
- name: Build docs
- # The build stage could fail but we want the CI to keep moving.
- if: ${{ github.repository_owner == 'nvidia' && !cancelled() }}
- runs-on: ubuntu-latest
- defaults:
- run:
- shell: bash -el {0}
- steps:
- - name: Checkout ${{ github.event.repository.name }}
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- with:
- fetch-depth: 0
- ref: ${{ inputs.git-tag }}
-
- # TODO: This workflow runs on GH-hosted runner and cannot use the proxy cache
-
- - name: Set up miniforge
- uses: conda-incubator/setup-miniconda@835234971496cad1653abb28a638a281cf32541f # v3.2.0
- with:
- activate-environment: cuda-python-docs
- environment-file: ./cuda_python/docs/environment-docs.yml
- miniforge-version: latest
- conda-remove-defaults: "true"
- python-version: 3.12
-
- - name: Check conda env
- run: |
- conda info
- conda list
- conda config --show-sources
- conda config --show
-
- # WAR: Building the doc currently requires CTK installed (NVIDIA/cuda-python#326,327)
- - name: Set up mini CTK
- uses: ./.github/actions/fetch_ctk
- with:
- host-platform: linux-64
- cuda-version: ${{ inputs.build-ctk-ver }}
-
- - name: Set environment variables
- run: |
- PYTHON_VERSION_FORMATTED="312" # see above
- REPO_DIR=$(pwd)
-
- if [[ ${{ inputs.is-release }} == "true" ]]; then
- FILE_HASH="*"
- COMMIT_HASH="${{ inputs.git-tag }}"
- else
- FILE_HASH="${{ github.sha }}"
- COMMIT_HASH="${{ github.sha }}"
- fi
-
- # make outputs from the previous job as env vars
- CUDA_CORE_ARTIFACT_BASENAME="cuda-core-python${PYTHON_VERSION_FORMATTED}-linux-64"
- echo "COMMIT_HASH=${COMMIT_HASH}" >> $GITHUB_ENV
- echo "CUDA_CORE_ARTIFACT_BASENAME=${CUDA_CORE_ARTIFACT_BASENAME}" >> $GITHUB_ENV
- echo "CUDA_CORE_ARTIFACT_NAME=${CUDA_CORE_ARTIFACT_BASENAME}-${FILE_HASH}" >> $GITHUB_ENV
- echo "CUDA_CORE_ARTIFACTS_DIR=$(realpath "$REPO_DIR/cuda_core/dist")" >> $GITHUB_ENV
- CUDA_BINDINGS_ARTIFACT_BASENAME="cuda-bindings-python${PYTHON_VERSION_FORMATTED}-cuda${{ inputs.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/dist")" >> $GITHUB_ENV
-
- - name: Download cuda-python build artifacts
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
- with:
- name: cuda-python-wheel
- path: .
- run-id: ${{ inputs.run-id }}
- github-token: ${{ github.token }}
-
- - name: Display structure of downloaded cuda-python artifacts
- run: |
- pwd
- ls -lahR .
-
- - name: Download cuda-pathfinder build artifacts
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
- with:
- name: cuda-pathfinder-wheel
- path: ./cuda_pathfinder
- run-id: ${{ inputs.run-id }}
- github-token: ${{ github.token }}
-
- - name: Display structure of downloaded cuda-pathfinder artifacts
- run: |
- pwd
- ls -lahR cuda_pathfinder
-
- - name: Download cuda.bindings build artifacts
- if: ${{ !inputs.is-release }}
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
- with:
- name: ${{ env.CUDA_BINDINGS_ARTIFACT_NAME }}
- path: ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}
-
- - name: Download cuda.bindings build artifacts
- if: ${{ inputs.is-release }}
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
- with:
- pattern: ${{ env.CUDA_BINDINGS_ARTIFACT_NAME }}
- merge-multiple: true
- path: ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}
- run-id: ${{ inputs.run-id }}
- github-token: ${{ github.token }}
-
- - name: Display structure of downloaded cuda.bindings artifacts
- run: |
- pwd
- ls -lahR $CUDA_BINDINGS_ARTIFACTS_DIR
-
- - name: Download cuda.core build artifacts
- if: ${{ !inputs.is-release }}
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
- with:
- name: ${{ env.CUDA_CORE_ARTIFACT_NAME }}
- path: ${{ env.CUDA_CORE_ARTIFACTS_DIR }}
-
- - name: Download cuda.core build artifacts
- if: ${{ inputs.is-release }}
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
- with:
- pattern: ${{ env.CUDA_CORE_ARTIFACT_NAME }}
- merge-multiple: true
- path: ${{ env.CUDA_CORE_ARTIFACTS_DIR }}
- run-id: ${{ inputs.run-id }}
- github-token: ${{ github.token }}
-
- - name: Display structure of downloaded cuda.core build artifacts
- run: |
- pwd
- ls -lahR $CUDA_CORE_ARTIFACTS_DIR
-
- - name: Install all packages
- run: |
- pushd cuda_pathfinder
- pip install *.whl
- popd
-
- pushd "${CUDA_BINDINGS_ARTIFACTS_DIR}"
- pip install *.whl
- popd
-
- pushd "${CUDA_CORE_ARTIFACTS_DIR}"
- pip install *.whl
- popd
-
- pip install cuda_python*.whl
-
- # This step sets the PR_NUMBER/BUILD_LATEST/BUILD_PREVIEW env vars.
- - name: Get PR number
- if: ${{ !inputs.is-release }}
- uses: ./.github/actions/get_pr_number
-
- - name: Set up artifact directories
- run: |
- mkdir -p artifacts/docs
- # create an empty folder for removal use
- mkdir -p artifacts/empty_docs
-
- - name: Build all docs
- if: ${{ inputs.component == 'all' }}
- run: |
- pushd cuda_python/docs/
- if [[ "${{ inputs.is-release }}" == "false" ]]; then
- ./build_all_docs.sh latest-only
- else
- ./build_all_docs.sh
- # At release time, we don't want to update the latest docs
- rm -rf build/html/latest
- fi
- ls -l build
- popd
- mv cuda_python/docs/build/html/* artifacts/docs/
-
- - name: Build component docs
- if: ${{ inputs.component != 'all' }}
- run: |
- COMPONENT=$(echo "${{ inputs.component }}" | tr '-' '_')
- pushd ${COMPONENT}/docs/
- if [[ "${{ inputs.is-release }}" == "false" ]]; then
- ./build_docs.sh latest-only
- else
- ./build_docs.sh
- # At release time, we don't want to update the latest docs
- rm -rf build/html/latest
- fi
- ls -l build
- popd
- if [[ "${{ inputs.component }}" != "cuda-python" ]]; then
- TARGET="${{ inputs.component }}"
- mkdir -p artifacts/docs/${TARGET}
- else
- TARGET=""
- fi
- mv ${COMPONENT}/docs/build/html/* artifacts/docs/${TARGET}
-
- # TODO: Consider removing this step?
- - name: Upload doc artifacts
- uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
- with:
- path: artifacts/
- retention-days: 3
-
- - name: Deploy or clean up doc preview
- if: ${{ !inputs.is-release }}
- uses: ./.github/actions/doc_preview
- with:
- source-folder: ${{ (github.ref_name != 'main' && 'artifacts/docs') ||
- 'artifacts/empty_docs' }}
- pr-number: ${{ env.PR_NUMBER }}
-
- - name: Deploy doc update
- if: ${{ github.ref_name == 'main' || inputs.is-release }}
- uses: JamesIves/github-pages-deploy-action@6c2d9db40f9296374acc17b90404b6e8864128c8 # v4.7.3
- with:
- git-config-name: cuda-python-bot
- git-config-email: cuda-python-bot@users.noreply.github.com
- folder: artifacts/docs/
- target-folder: docs/
- commit-message: "Deploy ${{ (inputs.is-release && 'release') || 'latest' }} docs: ${{ env.COMMIT_HASH }}"
- clean: false
diff --git a/.github/workflows/build-wheel.yml b/.github/workflows/build-wheel.yml
deleted file mode 100644
index 7a1da8bf2..000000000
--- a/.github/workflows/build-wheel.yml
+++ /dev/null
@@ -1,254 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-on:
- workflow_call:
- inputs:
- host-platform:
- required: true
- type: string
- cuda-version:
- required: true
- type: string
-
-defaults:
- run:
- shell: bash --noprofile --norc -xeuo pipefail {0}
-
-permissions:
- contents: read # This is required for actions/checkout
-
-jobs:
- build:
- strategy:
- fail-fast: false
- matrix:
- python-version:
- - "3.9"
- - "3.10"
- - "3.11"
- - "3.12"
- - "3.13"
- - "3.13t"
- - "3.14"
- - "3.14t"
- name: py${{ matrix.python-version }}
- runs-on: ${{ (inputs.host-platform == 'linux-64' && 'linux-amd64-cpu8') ||
- (inputs.host-platform == 'linux-aarch64' && 'linux-arm64-cpu8') ||
- (inputs.host-platform == 'win-64' && 'windows-2022') }}
- steps:
- - name: Checkout ${{ github.event.repository.name }}
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- with:
- fetch-depth: 0
-
- - name: Setup proxy cache
- uses: nv-gha-runners/setup-proxy-cache@main
- continue-on-error: true
- # Skip the cache on Windows nodes outside of our org.
- if: ${{ inputs.host-platform != 'win-64' }}
-
- - name: Set up Python
- id: setup-python1
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
- with:
- # WAR: setup-python is not relocatable, and cibuildwheel hard-wires to 3.12...
- # see https://github.com/actions/setup-python/issues/871
- python-version: "3.12"
-
- - name: Set up MSVC
- if: ${{ startsWith(inputs.host-platform, 'win') }}
- uses: ilammy/msvc-dev-cmd@v1 # TODO: ask admin to allow pinning commits
-
- - 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
-
- - name: Install twine
- run: |
- pip install twine
-
- # To keep the build workflow simple, all matrix jobs will build a wheel for later use within this workflow.
- - name: Build and check cuda.pathfinder wheel
- run: |
- pushd cuda_pathfinder
- pip wheel -v --no-deps .
- popd
-
- - name: List the cuda.pathfinder artifacts directory
- run: |
- if [[ "${{ inputs.host-platform }}" == win* ]]; then
- export CHOWN=chown
- else
- export CHOWN="sudo chown"
- fi
- $CHOWN -R $(whoami) cuda_pathfinder/*.whl
- ls -lahR cuda_pathfinder
-
- # We only need/want a single pure python wheel, pick linux-64 index 0.
- # This is what we will use for testing & releasing.
- - name: Check cuda.pathfinder wheel
- if: ${{ strategy.job-index == 0 && inputs.host-platform == 'linux-64' }}
- run: |
- twine check --strict cuda_pathfinder/*.whl
-
- - name: Upload cuda.pathfinder build artifacts
- if: ${{ strategy.job-index == 0 && inputs.host-platform == 'linux-64' }}
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
- with:
- name: cuda-pathfinder-wheel
- path: cuda_pathfinder/*.whl
- if-no-files-found: error
-
- - name: Build cuda.core wheel
- uses: pypa/cibuildwheel@c923d83ad9c1bc00211c5041d0c3f73294ff88f6 # v3.1.4
- with:
- package-dir: ./cuda_core/
- output-dir: ${{ env.CUDA_CORE_ARTIFACTS_DIR }}
-
- - name: List the cuda.core artifacts directory
- run: |
- if [[ "${{ inputs.host-platform }}" == win* ]]; then
- export CHOWN=chown
- else
- export CHOWN="sudo chown"
- fi
- $CHOWN -R $(whoami) ${{ env.CUDA_CORE_ARTIFACTS_DIR }}
- ls -lahR ${{ env.CUDA_CORE_ARTIFACTS_DIR }}
-
- - name: Check cuda.core wheel
- run: |
- twine check --strict ${{ env.CUDA_CORE_ARTIFACTS_DIR }}/*.whl
-
- - name: Upload cuda.core build artifacts
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
- with:
- name: ${{ env.CUDA_CORE_ARTIFACT_NAME }}
- path: ${{ env.CUDA_CORE_ARTIFACTS_DIR }}/*.whl
- if-no-files-found: error
-
- - name: Set up mini CTK
- uses: ./.github/actions/fetch_ctk
- continue-on-error: false
- with:
- host-platform: ${{ inputs.host-platform }}
- cuda-version: ${{ inputs.cuda-version }}
-
- - name: Build cuda.bindings wheel
- uses: pypa/cibuildwheel@c923d83ad9c1bc00211c5041d0c3f73294ff88f6 # v3.1.4
- with:
- package-dir: ./cuda_bindings/
- output-dir: ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}
-
- - name: List the cuda.bindings artifacts directory
- 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 }}
-
- - name: Check cuda.bindings wheel
- run: |
- twine check --strict ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}/*.whl
-
- - name: Upload cuda.bindings build artifacts
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
- with:
- name: ${{ env.CUDA_BINDINGS_ARTIFACT_NAME }}
- path: ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}/*.whl
- if-no-files-found: error
-
- # We only need/want a single pure python wheel, pick linux-64 index 0.
- - name: Build and check cuda-python wheel
- if: ${{ strategy.job-index == 0 && inputs.host-platform == 'linux-64' }}
- run: |
- pushd cuda_python
- pip wheel -v --no-deps .
- twine check --strict *.whl
- popd
-
- - 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' }}
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
- with:
- name: cuda-python-wheel
- path: cuda_python/*.whl
- if-no-files-found: error
-
- - name: Set up Python
- id: setup-python2
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
- with:
- # workaround for actions/runner-images#12377 (the cached 3.13.4 is buggy on Windows)
- python-version: ${{ matrix.python-version == '3.13' && '3.13.5' || matrix.python-version }}
- # allow prereleases only fetches prereleases for unreleased versions of Python
- allow-prereleases: true
-
- - name: verify free-threaded build
- if: endsWith(matrix.python-verison, 't')
- run: python -c 'import sys; assert not sys._is_gil_enabled()'
-
- - name: Set up Python include paths
- run: |
- if [[ "${{ inputs.host-platform }}" == linux* ]]; then
- echo "CPLUS_INCLUDE_PATH=${Python3_ROOT_DIR}/include/python${{ matrix.python-version }}" >> $GITHUB_ENV
- elif [[ "${{ inputs.host-platform }}" == win* ]]; then
- echo "CL=/I\"${Python3_ROOT_DIR}\include\python${{ matrix.python-version }}\"" >> $GITHUB_ENV
- fi
- # For caching
- echo "PY_EXT_SUFFIX=$(python -c "import sysconfig; print(sysconfig.get_config_var('EXT_SUFFIX'))")" >> $GITHUB_ENV
-
- - name: Install cuda.pathfinder (required for next step)
- run: |
- pip install cuda_pathfinder/*.whl
-
- - name: Build cuda.bindings Cython tests
- run: |
- pip install $(ls ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}/*.whl)[test]
- pushd ${{ env.CUDA_BINDINGS_CYTHON_TESTS_DIR }}
- bash build_tests.sh
- popd
-
- - name: Upload cuda.bindings Cython tests
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
- with:
- name: ${{ env.CUDA_BINDINGS_ARTIFACT_NAME }}-tests
- path: ${{ env.CUDA_BINDINGS_CYTHON_TESTS_DIR }}/test_*${{ env.PY_EXT_SUFFIX }}
- if-no-files-found: error
-
- - name: Build cuda.core Cython tests
- run: |
- pip install $(ls ${{ env.CUDA_CORE_ARTIFACTS_DIR }}/*.whl)[test]
- pushd ${{ env.CUDA_CORE_CYTHON_TESTS_DIR }}
- bash build_tests.sh
- popd
-
- - name: Upload cuda.core Cython tests
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.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
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
deleted file mode 100644
index 823be159f..000000000
--- a/.github/workflows/ci.yml
+++ /dev/null
@@ -1,120 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-#
-# 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:
- group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
- cancel-in-progress: true
-
-on:
- push:
- branches:
- - "pull-request/[0-9]+"
- - "main"
-
-jobs:
- ci-vars:
- runs-on: ubuntu-latest
- outputs:
- CUDA_BUILD_VER: ${{ steps.get-vars.outputs.cuda_build_ver }}
- steps:
- - name: Checkout repository
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- with:
- fetch-depth: 0
- - name: Get CUDA build version
- id: get-vars
- run: |
- cuda_build_ver=$(jq -r .cuda.build.version ci/versions.json)
- echo "cuda_build_ver=$cuda_build_ver" >> $GITHUB_OUTPUT
-
- build:
- needs:
- - ci-vars
- strategy:
- fail-fast: false
- matrix:
- host-platform:
- - linux-64
- - linux-aarch64
- - win-64
- name: Build ${{ matrix.host-platform }}, CUDA ${{ needs.ci-vars.outputs.CUDA_BUILD_VER }}
- if: ${{ github.repository_owner == 'nvidia' }}
- secrets: inherit
- uses: ./.github/workflows/build-wheel.yml
- with:
- host-platform: ${{ matrix.host-platform }}
- cuda-version: ${{ needs.ci-vars.outputs.CUDA_BUILD_VER }}
-
- test-linux:
- strategy:
- fail-fast: false
- matrix:
- host-platform:
- - linux-64
- - linux-aarch64
- name: Test ${{ matrix.host-platform }}
- if: ${{ github.repository_owner == 'nvidia' }}
- permissions:
- contents: read # This is required for actions/checkout
- needs:
- - ci-vars
- - build
- secrets: inherit
- uses: ./.github/workflows/test-wheel-linux.yml
- with:
- build-type: pull-request
- host-platform: ${{ matrix.host-platform }}
- build-ctk-ver: ${{ needs.ci-vars.outputs.CUDA_BUILD_VER }}
-
- test-windows:
- strategy:
- fail-fast: false
- matrix:
- host-platform:
- - win-64
- name: Test ${{ matrix.host-platform }}
- if: ${{ github.repository_owner == 'nvidia' }}
- permissions:
- contents: read # This is required for actions/checkout
- needs:
- - ci-vars
- - build
- secrets: inherit
- uses: ./.github/workflows/test-wheel-windows.yml
- with:
- build-type: pull-request
- host-platform: ${{ matrix.host-platform }}
- build-ctk-ver: ${{ needs.ci-vars.outputs.CUDA_BUILD_VER }}
-
- doc:
- name: Docs
- if: ${{ github.repository_owner == 'nvidia' }}
- # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
- permissions:
- id-token: write
- contents: write
- pull-requests: write
- needs:
- - ci-vars
- - build
- secrets: inherit
- uses: ./.github/workflows/build-docs.yml
- with:
- build-ctk-ver: ${{ needs.ci-vars.outputs.CUDA_BUILD_VER }}
-
- checks:
- name: Check job status
- permissions:
- checks: read
- needs:
- - build
- - test-linux
- - test-windows
- - doc
- secrets: inherit
- uses: ./.github/workflows/status-check.yml
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
deleted file mode 100644
index 3926e2688..000000000
--- a/.github/workflows/codeql.yml
+++ /dev/null
@@ -1,43 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-name: "Static Analysis: CodeQL Scan"
-
-on:
- push:
- branches:
- - "pull-request/[0-9]+"
- - "main"
-concurrency:
- group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
- cancel-in-progress: true
-
-jobs:
- analyze:
- name: Analyze (${{ matrix.language }})
- runs-on: ubuntu-latest
- permissions:
- security-events: write
-
- strategy:
- fail-fast: false
- matrix:
- include:
- - language: python
- build-mode: none
- steps:
- - name: Checkout repository
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
-
- - name: Initialize CodeQL
- uses: github/codeql-action/init@2d92b76c45b91eb80fc44c74ce3fce0ee94e8f9d # v3.30.0
- with:
- languages: ${{ matrix.language }}
- build-mode: ${{ matrix.build-mode }}
- queries: security-extended
-
- - name: Perform CodeQL Analysis
- uses: github/codeql-action/analyze@2d92b76c45b91eb80fc44c74ce3fce0ee94e8f9d # v3.30.0
- with:
- category: "/language:${{matrix.language}}"
diff --git a/.github/workflows/guess_latest.sh b/.github/workflows/guess_latest.sh
deleted file mode 100644
index 8a0a13034..000000000
--- a/.github/workflows/guess_latest.sh
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/bin/bash
-# SPDX-FileCopyrightText: Copyright (c) 2025 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/.github/workflows/install_gpu_driver.ps1 b/.github/workflows/install_gpu_driver.ps1
deleted file mode 100644
index 256c5cf3a..000000000
--- a/.github/workflows/install_gpu_driver.ps1
+++ /dev/null
@@ -1,35 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-# Install the driver
-function Install-Driver {
-
- # Set the correct URL, filename, and arguments to the installer
- # This driver is picked to support Windows 11 & CUDA 13.0
- $url = 'https://us.download.nvidia.com/tesla/580.88/580.88-data-center-tesla-desktop-win10-win11-64bit-dch-international.exe';
- $file_dir = 'C:\NVIDIA-Driver\580.88-data-center-tesla-desktop-win10-win11-64bit-dch-international.exe';
- $install_args = '/s /noeula /noreboot';
-
- # Create the folder for the driver download
- if (!(Test-Path -Path 'C:\NVIDIA-Driver')) {
- New-Item -Path 'C:\' -Name 'NVIDIA-Driver' -ItemType 'directory' | Out-Null
- }
-
- # Download the file to a specified directory
- # Disabling progress bar due to https://github.com/GoogleCloudPlatform/compute-gpu-installation/issues/29
- $ProgressPreference_tmp = $ProgressPreference
- $ProgressPreference = 'SilentlyContinue'
- Write-Output 'Downloading the driver installer...'
- Invoke-WebRequest $url -OutFile $file_dir
- $ProgressPreference = $ProgressPreference_tmp
- Write-Output 'Download complete!'
-
- # Install the file with the specified path from earlier
- Write-Output 'Running the driver installer...'
- Start-Process -FilePath $file_dir -ArgumentList $install_args -Wait
- Write-Output 'Done!'
-}
-
-# Run the functions
-Install-Driver
diff --git a/.github/workflows/release-upload.yml b/.github/workflows/release-upload.yml
deleted file mode 100644
index 8ae08c502..000000000
--- a/.github/workflows/release-upload.yml
+++ /dev/null
@@ -1,86 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-name: "CI: Upload git archive"
-
-on:
- workflow_call:
- inputs:
- git-tag:
- type: string
- required: true
- run-id:
- description: "The GHA run ID that generated validated artifacts"
- type: string
- required: true
- component:
- description: "Component to download wheels for"
- type: string
- required: true
-
-concurrency:
- # Concurrency group that uses the workflow name and PR number if available
- # or commit SHA as a fallback. If a new build is triggered under that
- # concurrency group while a previous build is running it will be canceled.
- # Repeated pushes to a PR will cancel all previous builds, while multiple
- # merges to main will not cancel.
- group: ${{ github.workflow }}-${{ github.ref_name || github.sha }}
- cancel-in-progress: true
-
-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 }}
- runs-on: ubuntu-latest
- env:
- ARCHIVE_NAME: ${{ github.event.repository.name }}-${{ inputs.git-tag }}
- steps:
- - name: Checkout Source
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- with:
- fetch-depth: 0
- 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"
-
- - name: Upload Archive
- env:
- GH_TOKEN: ${{ github.token }}
- run: >
- gh release upload
- --clobber "${{ inputs.git-tag }}"
- --repo "${{ github.repository }}"
- release/*
-
- - name: Download and Upload 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"
-
- # Upload wheels to the release
- 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
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
deleted file mode 100644
index c10f6f049..000000000
--- a/.github/workflows/release.yml
+++ /dev/null
@@ -1,176 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-name: "CI: Release"
-
-description: Manually-triggered release workflow. Creates a release draft if one doesn't exist for the given tag, or uses existing draft.
-
-on:
- workflow_dispatch:
- inputs:
- component:
- description: "Component to release"
- required: true
- type: choice
- options:
- - cuda-core
- - cuda-bindings
- - cuda-pathfinder
- - cuda-python
- - all
- git-tag:
- description: "The release git tag"
- required: true
- type: string
- run-id:
- description: "The GHA run ID that generated validated artifacts (optional - will be auto-detected from git tag if not provided)"
- required: false
- type: string
- default: ""
- build-ctk-ver:
- type: string
- required: true
- wheel-dst:
- description: "Which wheel index to publish to?"
- required: true
- type: choice
- options:
- - testpypi
- - pypi
-
-defaults:
- run:
- shell: bash --noprofile --norc -xeuo pipefail {0}
-
-jobs:
- determine-run-id:
- runs-on: ubuntu-latest
- outputs:
- run-id: ${{ steps.lookup-run-id.outputs.run-id }}
- steps:
- - name: Checkout Source
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- with:
- # fetch-depth: 0 is required so the lookup-run-id script can access all git tags
- fetch-depth: 0
-
- - name: Determine Run ID
- id: lookup-run-id
- env:
- GH_TOKEN: ${{ github.token }}
- run: |
- if [[ -n "${{ inputs.run-id }}" ]]; then
- echo "Using provided run ID: ${{ inputs.run-id }}"
- echo "run-id=${{ inputs.run-id }}" >> $GITHUB_OUTPUT
- else
- echo "Auto-detecting run ID for tag: ${{ inputs.git-tag }}"
- RUN_ID=$(./ci/tools/lookup-run-id "${{ inputs.git-tag }}" "${{ github.repository }}")
- echo "Auto-detected run ID: $RUN_ID"
- echo "run-id=$RUN_ID" >> $GITHUB_OUTPUT
- fi
-
- check-tag:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout Source
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- with:
- fetch-depth: 0
-
- - name: Check or create draft release for the tag
- env:
- GH_TOKEN: ${{ github.token }}
- run: |
- tags=
- for i in $(gh release list -R ${{ github.repository }} --json tagName --jq '.[]| .tagName'); do
- tags+=( $i )
- done
- is_draft=
- for i in $(gh release list -R ${{ github.repository }} --json isDraft --jq '.[]| .isDraft'); do
- is_draft+=( $i )
- done
-
- found=0
- for idx in ${!tags[@]}; do
- if [[ "${tags[$idx]}" == "${{ inputs.git-tag }}" ]]; then
- echo "found existing release for ${{ inputs.git-tag }}"
- found=1
- if [[ "${is_draft[$idx]}" != "true" ]]; then
- echo "the release note is not in draft state"
- exit 1
- fi
- break
- 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 }}"
- fi
-
- doc:
- name: Build release docs
- if: ${{ github.repository_owner == 'nvidia' }}
- # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
- permissions:
- id-token: write
- contents: write
- pull-requests: write
- needs:
- - check-tag
- - determine-run-id
- secrets: inherit
- uses: ./.github/workflows/build-docs.yml
- with:
- build-ctk-ver: ${{ inputs.build-ctk-ver }}
- component: ${{ inputs.component }}
- git-tag: ${{ inputs.git-tag }}
- run-id: ${{ needs.determine-run-id.outputs.run-id }}
- is-release: true
-
- upload-archive:
- name: Upload source archive
- permissions:
- contents: write
- needs:
- - check-tag
- - determine-run-id
- secrets: inherit
- uses: ./.github/workflows/release-upload.yml
- with:
- git-tag: ${{ inputs.git-tag }}
- run-id: ${{ needs.determine-run-id.outputs.run-id }}
- component: ${{ inputs.component }}
-
- publish-wheels:
- name: Publish wheels
- runs-on: ubuntu-latest
- needs:
- - check-tag
- - determine-run-id
- environment:
- name: ${{ inputs.wheel-dst }}
- url: https://${{ (inputs.wheel-dst == 'testpypi' && 'test.') || '' }}pypi.org/p/${{ inputs.component }}/
- permissions:
- id-token: write
- steps:
- - name: Checkout Source
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
-
- - 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: Publish package distributions to PyPI
- if: ${{ inputs.wheel-dst == 'pypi' }}
- uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
-
- - name: Publish package distributions to TestPyPI
- if: ${{ inputs.wheel-dst == 'testpypi' }}
- uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
- with:
- repository-url: https://test.pypi.org/legacy/
-
- # TODO: add another job to make the release leave the draft state?
diff --git a/.github/workflows/status-check.yml b/.github/workflows/status-check.yml
deleted file mode 100644
index f8d3e0f60..000000000
--- a/.github/workflows/status-check.yml
+++ /dev/null
@@ -1,20 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-name: "CI: Summary"
-
-on:
- workflow_call:
-
-jobs:
- checks:
- name: Check job status
- runs-on: ubuntu-latest
- steps:
- - name: GitHub Checks
- uses: poseidon/wait-for-status-checks@899c768d191b56eef585c18f8558da19e1f3e707 # v0.6.0
- with:
- token: ${{ secrets.GITHUB_TOKEN }}
- match_pattern: "CI*"
- ignore_pattern: ".*Check job status.*" # ignore self
diff --git a/.github/workflows/test-wheel-linux.yml b/.github/workflows/test-wheel-linux.yml
deleted file mode 100644
index 99e9fc1f3..000000000
--- a/.github/workflows/test-wheel-linux.yml
+++ /dev/null
@@ -1,295 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-name: "CI: Test wheels"
-
-on:
- workflow_call:
- inputs:
- build-type:
- type: string
- required: true
- host-platform:
- type: string
- required: true
- build-ctk-ver:
- type: string
- required: true
- matrix_filter:
- type: string
- default: "."
-
-defaults:
- run:
- shell: bash --noprofile --norc -xeuo pipefail {0}
-
-jobs:
- compute-matrix:
- runs-on: ubuntu-latest
- env:
- BUILD_TYPE: ${{ inputs.build-type }}
- ARCH: ${{ (inputs.host-platform == 'linux-64' && 'amd64') ||
- (inputs.host-platform == 'linux-aarch64' && 'arm64') }}
- outputs:
- MATRIX: ${{ steps.compute-matrix.outputs.MATRIX }}
- steps:
- - name: Checkout ${{ github.event.repository.name }}
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- with:
- fetch-depth: 1
-
- - 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 JSON file for the specific architecture
- TEST_MATRIX=$(jq --arg arch "$ARCH" --arg matrix_type "$MATRIX_TYPE" '
- .linux[$matrix_type] |
- map(select(.ARCH == $arch))
- ' ci/test-matrix.json)
-
- # Add special runner for amd64 if applicable
- if [[ "${ARCH}" == "amd64" ]]; then
- SPECIAL_RUNNERS=$(jq '
- .linux.special_runners.amd64
- ' ci/test-matrix.json)
- TEST_MATRIX=$(jq --argjson special "$SPECIAL_RUNNERS" '. + $special' <<< "$TEST_MATRIX")
- fi
-
- MATRIX="$(
- jq -c '${{ inputs.matrix_filter }} | if (. | length) > 0 then {include: .} else "Error: Empty matrix\n" | halt_error(1) end' <<< "$TEST_MATRIX"
- )"
-
- echo "MATRIX=${MATRIX}" | tee --append "${GITHUB_OUTPUT}"
-
- test:
- name: py${{ matrix.PY_VER }}, ${{ matrix.CUDA_VER }}, ${{ (matrix.LOCAL_CTK == '1' && 'local') || 'wheels' }}, GPU ${{ matrix.GPU }}
- needs: compute-matrix
- strategy:
- fail-fast: false
- matrix: ${{ fromJSON(needs.compute-matrix.outputs.MATRIX) }}
- runs-on: "linux-${{ matrix.ARCH }}-gpu-${{ matrix.GPU }}-${{ matrix.DRIVER }}-1"
- # The build stage could fail but we want the CI to keep moving.
- if: ${{ github.repository_owner == 'nvidia' && !cancelled() }}
- # Our self-hosted runners require a container
- # TODO: use a different (nvidia?) container
- container:
- options: -u root --security-opt seccomp=unconfined --shm-size 16g
- image: ubuntu:22.04
- env:
- NVIDIA_VISIBLE_DEVICES: ${{ env.NVIDIA_VISIBLE_DEVICES }}
- steps:
- - name: Ensure GPU is working
- run: nvidia-smi
-
- - name: Checkout ${{ github.event.repository.name }}
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- with:
- fetch-depth: 0
-
- - 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
- continue-on-error: false
- with:
- # for artifact fetching
- dependencies: "jq wget"
- dependent_exes: "jq wget"
-
- - name: Set environment variables
- env:
- BUILD_CUDA_VER: ${{ inputs.build-ctk-ver }}
- CUDA_VER: ${{ matrix.CUDA_VER }}
- HOST_PLATFORM: ${{ inputs.host-platform }}
- LOCAL_CTK: ${{ matrix.LOCAL_CTK }}
- PY_VER: ${{ matrix.PY_VER }}
- SHA: ${{ github.sha }}
- run: ./ci/tools/env-vars test
-
- - name: Download cuda-pathfinder build artifacts
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
- with:
- name: cuda-pathfinder-wheel
- path: ./cuda_pathfinder
-
- - name: Download cuda-python build artifacts
- if: ${{ env.SKIP_CUDA_BINDINGS_TEST == '0'}}
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
- with:
- name: cuda-python-wheel
- path: .
-
- - name: Download cuda.bindings build artifacts
- if: ${{ env.SKIP_CUDA_BINDINGS_TEST == '0'}}
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
- with:
- name: ${{ env.CUDA_BINDINGS_ARTIFACT_NAME }}
- path: ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}
-
- - name: Download cuda-python & cuda.bindings build artifacts from the prior branch
- if: ${{ env.SKIP_CUDA_BINDINGS_TEST == '1'}}
- 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 artifact fetching.
- 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=$(cat .github/BACKPORT_BRANCH)
- OLD_BASENAME="cuda-bindings-python${PYTHON_VERSION_FORMATTED}-cuda*-${{ inputs.host-platform }}*"
- LATEST_PRIOR_RUN_ID=$(gh run list -b ${OLD_BRANCH} -L 1 -w "ci.yml" -s completed -R NVIDIA/cuda-python --json databaseId | jq '.[]| .databaseId')
- if [[ "$LATEST_PRIOR_RUN_ID" == "" ]]; then
- echo "LATEST_PRIOR_RUN_ID not found!"
- exit 1
- fi
-
- gh run download $LATEST_PRIOR_RUN_ID -p ${OLD_BASENAME} -R NVIDIA/cuda-python
- rm -rf ${OLD_BASENAME}-tests # exclude cython test artifacts
- ls -al $OLD_BASENAME
- mkdir -p "${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}"
- mv $OLD_BASENAME/*.whl "${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}"/
- rmdir $OLD_BASENAME
-
- gh run download $LATEST_PRIOR_RUN_ID -p cuda-python-wheel -R NVIDIA/cuda-python
- ls -al cuda-python-wheel
- mv cuda-python-wheel/*.whl .
- rmdir cuda-python-wheel
-
- - name: Display structure of downloaded cuda-python artifacts
- run: |
- pwd
- ls -lahR .
-
- - name: Display structure of downloaded cuda.bindings artifacts
- run: |
- pwd
- ls -lahR $CUDA_BINDINGS_ARTIFACTS_DIR
-
- - name: Download cuda.bindings Cython tests
- if: ${{ env.SKIP_CYTHON_TEST == '0' }}
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
- with:
- name: ${{ env.CUDA_BINDINGS_ARTIFACT_NAME }}-tests
- path: ${{ env.CUDA_BINDINGS_CYTHON_TESTS_DIR }}
-
- - name: Display structure of downloaded cuda.bindings Cython tests
- if: ${{ env.SKIP_CYTHON_TEST == '0' }}
- run: |
- pwd
- ls -lahR $CUDA_BINDINGS_CYTHON_TESTS_DIR
-
- - name: Download cuda.core build artifacts
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
- with:
- name: ${{ env.CUDA_CORE_ARTIFACT_NAME }}
- path: ${{ env.CUDA_CORE_ARTIFACTS_DIR }}
-
- - name: Display structure of downloaded cuda.core build artifacts
- run: |
- pwd
- ls -lahR $CUDA_CORE_ARTIFACTS_DIR
-
- - name: Download cuda.core Cython tests
- if: ${{ env.SKIP_CYTHON_TEST == '0' }}
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
- with:
- name: ${{ env.CUDA_CORE_ARTIFACT_NAME }}-tests
- path: ${{ env.CUDA_CORE_CYTHON_TESTS_DIR }}
-
- - name: Display structure of downloaded cuda.core Cython tests
- if: ${{ env.SKIP_CYTHON_TEST == '0' }}
- run: |
- pwd
- ls -lahR $CUDA_CORE_CYTHON_TESTS_DIR
-
- - name: Set up Python ${{ matrix.PY_VER }}
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
- with:
- python-version: ${{ matrix.PY_VER }}
- allow-prereleases: true
- env:
- # we use self-hosted runners on which setup-python behaves weirdly...
- AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache"
-
- - name: Set up mini CTK
- if: ${{ matrix.LOCAL_CTK == '1' }}
- uses: ./.github/actions/fetch_ctk
- continue-on-error: false
- with:
- host-platform: ${{ inputs.host-platform }}
- cuda-version: ${{ matrix.CUDA_VER }}
-
- - name: Set up latest cuda_sanitizer_api
- if: ${{ 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 }}
- cuda-components: "cuda_sanitizer_api"
-
- - name: Set up compute-sanitizer
- run: setup-sanitizer
-
- - name: Run cuda.pathfinder tests with see_what_works
- env:
- CUDA_PATHFINDER_TEST_LOAD_NVIDIA_DYNAMIC_LIB_STRICTNESS: see_what_works
- CUDA_PATHFINDER_TEST_FIND_NVIDIA_HEADERS_STRICTNESS: see_what_works
- run: run-tests pathfinder
-
- - name: Run cuda.bindings tests
- if: ${{ env.SKIP_CUDA_BINDINGS_TEST == '0' }}
- env:
- CUDA_VER: ${{ matrix.CUDA_VER }}
- LOCAL_CTK: ${{ matrix.LOCAL_CTK }}
- run: run-tests bindings
-
- - name: Run cuda.core tests
- env:
- CUDA_VER: ${{ matrix.CUDA_VER }}
- LOCAL_CTK: ${{ matrix.LOCAL_CTK }}
- run: run-tests core
-
- - name: Ensure cuda-python installable
- run: |
- if [[ "${{ matrix.LOCAL_CTK }}" == 1 ]]; then
- pip install cuda_python*.whl
- else
- pip install $(ls cuda_python*.whl)[all]
- fi
-
- - name: Install cuda.pathfinder extra wheels for testing
- run: |
- set -euo pipefail
- pushd cuda_pathfinder
- pip install --only-binary=:all: -v ".[test_nvidia_wheels_cu${TEST_CUDA_MAJOR},test_nvidia_wheels_host]"
- pip list
- popd
-
- - name: Run cuda.pathfinder tests with all_must_work
- env:
- CUDA_PATHFINDER_TEST_LOAD_NVIDIA_DYNAMIC_LIB_STRICTNESS: all_must_work
- CUDA_PATHFINDER_TEST_FIND_NVIDIA_HEADERS_STRICTNESS: all_must_work
- run: run-tests pathfinder
diff --git a/.github/workflows/test-wheel-windows.yml b/.github/workflows/test-wheel-windows.yml
deleted file mode 100644
index 7bc5ca559..000000000
--- a/.github/workflows/test-wheel-windows.yml
+++ /dev/null
@@ -1,269 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-name: "CI: Test wheels"
-
-on:
- workflow_call:
- inputs:
- build-type:
- type: string
- required: true
- host-platform:
- type: string
- required: true
- build-ctk-ver:
- type: string
- required: true
- matrix_filter:
- type: string
- default: "."
-
-jobs:
- compute-matrix:
- runs-on: ubuntu-latest
- defaults:
- run:
- shell: bash --noprofile --norc -xeuo pipefail {0}
- env:
- BUILD_TYPE: ${{ inputs.build-type }}
- ARCH: ${{ (inputs.host-platform == 'win-64' && 'amd64') }}
- outputs:
- MATRIX: ${{ steps.compute-matrix.outputs.MATRIX }}
- steps:
- - name: Checkout ${{ github.event.repository.name }}
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- with:
- fetch-depth: 1
-
- - 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 JSON file for the specific architecture
- TEST_MATRIX=$(jq --arg arch "$ARCH" --arg matrix_type "$MATRIX_TYPE" '
- .windows[$matrix_type] |
- map(select(.ARCH == $arch))
- ' ci/test-matrix.json)
-
- MATRIX="$(
- jq -c '${{ inputs.matrix_filter }} | if (. | length) > 0 then {include: .} else "Error: Empty matrix\n" | halt_error(1) end' <<< "$TEST_MATRIX"
- )"
-
- echo "MATRIX=${MATRIX}" | tee --append "${GITHUB_OUTPUT}"
-
- test:
- name: py${{ matrix.PY_VER }}, ${{ matrix.CUDA_VER }}, ${{ (matrix.LOCAL_CTK == '1' && 'local') || 'wheels' }}, GPU ${{ matrix.GPU }}
- # The build stage could fail but we want the CI to keep moving.
- needs: compute-matrix
- strategy:
- fail-fast: false
- matrix: ${{ fromJSON(needs.compute-matrix.outputs.MATRIX) }}
- if: ${{ github.repository_owner == 'nvidia' && !cancelled() }}
- runs-on: "windows-${{ matrix.ARCH }}-gpu-${{ matrix.GPU }}-${{ matrix.DRIVER }}-1"
- steps:
- - name: Checkout ${{ github.event.repository.name }}
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- with:
- fetch-depth: 0
-
- - name: Setup proxy cache
- uses: nv-gha-runners/setup-proxy-cache@main
- continue-on-error: true
-
- - name: Update driver
- run: |
- .github/workflows/install_gpu_driver.ps1
-
- - name: Ensure GPU is working
- run: nvidia-smi
-
- - name: Set environment variables
- env:
- BUILD_CUDA_VER: ${{ inputs.build-ctk-ver }}
- CUDA_VER: ${{ matrix.CUDA_VER }}
- HOST_PLATFORM: ${{ inputs.host-platform }}
- LOCAL_CTK: ${{ matrix.LOCAL_CTK }}
- PY_VER: ${{ matrix.PY_VER }}
- SHA: ${{ github.sha }}
- shell: bash --noprofile --norc -xeuo pipefail {0}
- run: ./ci/tools/env-vars test
-
- - name: Download cuda-pathfinder build artifacts
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
- with:
- name: cuda-pathfinder-wheel
- path: ./cuda_pathfinder
-
- - name: Download cuda-python build artifacts
- if: ${{ env.SKIP_CUDA_BINDINGS_TEST == '0'}}
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
- with:
- name: cuda-python-wheel
- path: .
-
- - name: Download cuda.bindings build artifacts
- if: ${{ env.SKIP_CUDA_BINDINGS_TEST == '0'}}
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
- with:
- name: ${{ env.CUDA_BINDINGS_ARTIFACT_NAME }}
- path: ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}
-
- - name: Install zstd
- # the GPU runner image does not have zstd pre-installed... and it's needed by actions/cache
- if: ${{ matrix.LOCAL_CTK == '1' }}
- env:
- # doesn't seem there's an easy way to avoid hard-coding it?
- ZSTD_URL: https://github.com/facebook/zstd/releases/download/v1.5.7/zstd-v1.5.7-win64.zip
- ZSTD_DIR: zstd-v1.5.7-win64
- run: |
- Invoke-WebRequest -Uri "$env:ZSTD_URL" -OutFile "zstd-win64.zip"
- Expand-Archive -Path "zstd-win64.zip" -DestinationPath .
- ls -l $env:ZSTD_DIR
- echo "$((Get-Location).Path)\\$env:ZSTD_DIR" >> $env:GITHUB_PATH
- $env:Path += ";$((Get-Location).Path)\\$env:ZSTD_DIR"
- zstd --version
-
- - name: Download cuda-python & cuda.bindings build artifacts from the prior branch
- if: ${{ env.SKIP_CUDA_BINDINGS_TEST == '1'}}
- env:
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
- $OLD_BRANCH = Get-Content .github/BACKPORT_BRANCH
- $OLD_BASENAME = "cuda-bindings-python${env:PYTHON_VERSION_FORMATTED}-cuda*-${{ inputs.host-platform }}*"
- $runData = gh run list -b $OLD_BRANCH -L 1 -w "ci.yml" -s completed -R NVIDIA/cuda-python --json databaseId | ConvertFrom-Json
- if (-not $runData -or $runData.Length -eq 0 -or -not $runData[0].databaseId -or [string]::IsNullOrEmpty($runData[0].databaseId)) {
- Write-Host "LATEST_PRIOR_RUN_ID not found!"
- exit 1
- }
- $LATEST_PRIOR_RUN_ID = $runData[0].databaseId
-
- gh run download $LATEST_PRIOR_RUN_ID -p $OLD_BASENAME -R NVIDIA/cuda-python
- Remove-Item -Recurse -Force "${OLD_BASENAME}-tests" # exclude cython test artifacts
- Get-ChildItem -Path $OLD_BASENAME
- New-Item -Path "${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}" -ItemType Directory -Force
- Move-Item -Path "$OLD_BASENAME/*.whl" -Destination "${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}"
- Remove-Item -Path $OLD_BASENAME -Force
-
- gh run download $LATEST_PRIOR_RUN_ID -p cuda-python-wheel -R NVIDIA/cuda-python
- Get-ChildItem -Path cuda-python-wheel
- Move-Item -Path "cuda-python-wheel/*.whl" -Destination .
- Remove-Item -Path cuda-python-wheel -Force
-
- - name: Display structure of downloaded cuda-python artifacts
- run: |
- Get-Location
- Get-ChildItem -Recurse -Force | Select-Object Mode, LastWriteTime, Length, FullName
-
- - name: Display structure of downloaded cuda.bindings artifacts
- 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.SKIP_CYTHON_TEST == '0' }}
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
- with:
- name: ${{ env.CUDA_BINDINGS_ARTIFACT_NAME }}-tests
- path: ${{ env.CUDA_BINDINGS_CYTHON_TESTS_DIR }}
-
- - name: Display structure of downloaded cuda.bindings Cython tests
- if: ${{ env.SKIP_CYTHON_TEST == '0' }}
- run: |
- Get-Location
- Get-ChildItem -Recurse -Force $env:CUDA_BINDINGS_CYTHON_TESTS_DIR | Select-Object Mode, LastWriteTime, Length, FullName
-
- - name: Download cuda.core build artifacts
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
- with:
- name: ${{ env.CUDA_CORE_ARTIFACT_NAME }}
- path: ${{ env.CUDA_CORE_ARTIFACTS_DIR }}
-
- - name: Display structure of downloaded cuda.core build artifacts
- run: |
- Get-Location
- Get-ChildItem -Recurse -Force $env:CUDA_CORE_ARTIFACTS_DIR | Select-Object Mode, LastWriteTime, Length, FullName
-
- - name: Download cuda.core Cython tests
- if: ${{ env.SKIP_CYTHON_TEST == '0' }}
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
- with:
- name: ${{ env.CUDA_CORE_ARTIFACT_NAME }}-tests
- path: ${{ env.CUDA_CORE_CYTHON_TESTS_DIR }}
-
- - name: Display structure of downloaded cuda.core Cython tests
- if: ${{ env.SKIP_CYTHON_TEST == '0' }}
- run: |
- Get-Location
- Get-ChildItem -Recurse -Force $env:CUDA_CORE_CYTHON_TESTS_DIR | Select-Object Mode, LastWriteTime, Length, FullName
-
- - name: Set up Python ${{ matrix.PY_VER }}
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
- with:
- python-version: ${{ matrix.PY_VER }}
- allow-prereleases: true
-
- - name: Set up mini CTK
- if: ${{ matrix.LOCAL_CTK == '1' }}
- uses: ./.github/actions/fetch_ctk
- continue-on-error: false
- with:
- host-platform: ${{ inputs.host-platform }}
- cuda-version: ${{ matrix.CUDA_VER }}
-
- - name: Run cuda.pathfinder tests with see_what_works
- env:
- CUDA_PATHFINDER_TEST_LOAD_NVIDIA_DYNAMIC_LIB_STRICTNESS: see_what_works
- CUDA_PATHFINDER_TEST_FIND_NVIDIA_HEADERS_STRICTNESS: see_what_works
- shell: bash --noprofile --norc -xeuo pipefail {0}
- run: run-tests pathfinder
-
- - name: Run cuda.bindings tests
- if: ${{ env.SKIP_CUDA_BINDINGS_TEST == '0' }}
- env:
- CUDA_VER: ${{ matrix.CUDA_VER }}
- LOCAL_CTK: ${{ matrix.LOCAL_CTK }}
- shell: bash --noprofile --norc -xeuo pipefail {0}
- run: run-tests bindings
-
- - name: Run cuda.core tests
- env:
- CUDA_VER: ${{ matrix.CUDA_VER }}
- LOCAL_CTK: ${{ matrix.LOCAL_CTK }}
- shell: bash --noprofile --norc -xeuo pipefail {0}
- run: run-tests core
-
- - name: Ensure cuda-python installable
- run: |
- if ('${{ matrix.LOCAL_CTK }}' -eq '1') {
- pip install (Get-ChildItem -Filter cuda_python*.whl).FullName
- } else {
- pip install "$((Get-ChildItem -Filter cuda_python*.whl).FullName)[all]"
- }
-
- - name: Install cuda.pathfinder extra wheels for testing
- shell: bash --noprofile --norc -xeuo pipefail {0}
- run: |
- pushd cuda_pathfinder
- pip install --only-binary=:all: -v ".[test_nvidia_wheels_cu${TEST_CUDA_MAJOR},test_nvidia_wheels_host]"
- pip list
- popd
-
- - name: Run cuda.pathfinder tests with all_must_work
- env:
- CUDA_PATHFINDER_TEST_LOAD_NVIDIA_DYNAMIC_LIB_STRICTNESS: all_must_work
- CUDA_PATHFINDER_TEST_FIND_NVIDIA_HEADERS_STRICTNESS: all_must_work
- shell: bash --noprofile --norc -xeuo pipefail {0}
- run: run-tests pathfinder
diff --git a/.github/workflows/triagelabel.yml b/.github/workflows/triagelabel.yml
deleted file mode 100644
index 300efad36..000000000
--- a/.github/workflows/triagelabel.yml
+++ /dev/null
@@ -1,26 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-name: Add Triage Label
-
-on:
- issues:
- types:
- - reopened
- - opened
-
-jobs:
- triage:
- runs-on: ubuntu-latest
- permissions:
- issues: write
- steps:
- - name: Add or check for existing labels
- # add the triage label only if no label has been added
- if: ${{ github.event.issue.labels[0] == null }}
- run: gh issue edit "$NUMBER" --add-label "triage"
- env:
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- GH_REPO: ${{ github.repository }}
- NUMBER: ${{ github.event.issue.number }}
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index d2bb3b35c..000000000
--- a/.gitignore
+++ /dev/null
@@ -1,184 +0,0 @@
-# Byte-compiled / optimized / DLL files
-__pycache__/
-*.py[cod]
-*$py.class
-
-# C extensions
-*.so
-
-# CUDA Python specific
-.cache/
-.pytest_cache/
-.benchmarks/
-*.cpp
-!cuda_bindings/cuda/bindings/_lib/param_packer.cpp
-!cuda_bindings/cuda/bindings/_bindings/loader.cpp
-cache_driver
-cache_runtime
-cache_nvrtc
-cuda_bindings/cuda/bindings/_lib/utils.pxi
-
-# CUDA Python specific (auto-generated)
-cuda_bindings/cuda/bindings/_bindings/cydriver.pxd
-cuda_bindings/cuda/bindings/_bindings/cydriver.pyx
-cuda_bindings/cuda/bindings/_bindings/cyruntime.pxd
-cuda_bindings/cuda/bindings/_bindings/cyruntime.pyx
-cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pxd
-cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pyx
-cuda_bindings/cuda/bindings/_bindings/cynvrtc.pxd
-cuda_bindings/cuda/bindings/_bindings/cynvrtc.pyx
-cuda_bindings/cuda/bindings/_internal/cufile.pyx
-cuda_bindings/cuda/bindings/_internal/nvjitlink.pyx
-cuda_bindings/cuda/bindings/_internal/nvvm.pyx
-cuda_bindings/cuda/bindings/_lib/utils.pxd
-cuda_bindings/cuda/bindings/_lib/utils.pyx
-cuda_bindings/cuda/bindings/cydriver.pxd
-cuda_bindings/cuda/bindings/cydriver.pyx
-cuda_bindings/cuda/bindings/cyruntime.pxd
-cuda_bindings/cuda/bindings/cyruntime.pyx
-cuda_bindings/cuda/bindings/cyruntime_functions.pxi
-cuda_bindings/cuda/bindings/cyruntime_types.pxi
-cuda_bindings/cuda/bindings/cynvrtc.pxd
-cuda_bindings/cuda/bindings/cynvrtc.pyx
-cuda_bindings/cuda/bindings/driver.pxd
-cuda_bindings/cuda/bindings/driver.pyx
-cuda_bindings/cuda/bindings/runtime.pxd
-cuda_bindings/cuda/bindings/runtime.pyx
-cuda_bindings/cuda/bindings/nvrtc.pxd
-cuda_bindings/cuda/bindings/nvrtc.pyx
-cuda_bindings/cuda/bindings/utils/_get_handle.pyx
-
-# Distribution / packaging
-.Python
-build/
-develop-eggs/
-dist/
-downloads/
-eggs/
-.eggs/
-lib/
-lib64/
-parts/
-sdist/
-var/
-wheels/
-share/python-wheels/
-*.egg-info/
-.installed.cfg
-*.egg
-MANIFEST
-
-# PyInstaller
-# Usually these files are written by a python script from a template
-# before PyInstaller builds the exe, so as to inject date/other infos into it.
-*.manifest
-*.spec
-
-# Installer logs
-pip-log.txt
-pip-delete-this-directory.txt
-
-# Unit test / coverage reports
-htmlcov/
-.tox/
-.nox/
-.coverage
-.coverage.*
-.cache
-nosetests.xml
-coverage.xml
-*.cover
-*.py,cover
-.hypothesis/
-.pytest_cache/
-cover/
-
-# Translations
-*.mo
-*.pot
-
-# Django stuff:
-*.log
-local_settings.py
-db.sqlite3
-db.sqlite3-journal
-
-# Flask stuff:
-instance/
-.webassets-cache
-
-# Scrapy stuff:
-.scrapy
-
-# Sphinx documentation
-docs_src/_build/
-*/docs/source/generated/
-
-# PyBuilder
-.pybuilder/
-target/
-
-# Jupyter Notebook
-.ipynb_checkpoints
-
-# IPython
-profile_default/
-ipython_config.py
-
-# pyenv
-# For a library or package, you might want to ignore these files since the code is
-# intended to run in multiple environments; otherwise, check them in:
-# .python-version
-
-# pipenv
-# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
-# However, in case of collaboration, if having platform-specific dependencies or dependencies
-# having no cross-platform support, pipenv may install dependencies that don't work, or not
-# install all needed dependencies.
-#Pipfile.lock
-
-# PEP 582; used by e.g. github.com/David-OConnor/pyflow
-__pypackages__/
-
-# Celery stuff
-celerybeat-schedule
-celerybeat.pid
-
-# SageMath parsed files
-*.sage.py
-
-# Environments
-.env
-.venv
-env/
-venv/
-ENV/
-env.bak/
-venv.bak/
-
-# Spyder project settings
-.spyderproject
-.spyproject
-
-# Rope project settings
-.ropeproject
-
-# mkdocs documentation
-/site
-
-# mypy
-.mypy_cache/
-.dmypy.json
-dmypy.json
-
-# Pyre type checker
-.pyre/
-
-# pytype static type analyzer
-.pytype/
-
-# Cython debug symbols
-cython_debug/
-
-# Dont ignore
-!.github/actions/build/
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
deleted file mode 100644
index d65ffce91..000000000
--- a/.pre-commit-config.yaml
+++ /dev/null
@@ -1,84 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-ci:
- autofix_commit_msg: |
- [pre-commit.ci] auto code formatting
- autofix_prs: false
- autoupdate_branch: ''
- autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
- autoupdate_schedule: quarterly
- submodules: false
-
-# Please update the rev: SHAs below with this command:
-# pre-commit autoupdate --freeze
-repos:
- - repo: https://github.com/astral-sh/ruff-pre-commit
- rev: 0b19ef1fd6ad680ed7752d6daba883ce1265a6de # frozen: v0.12.2
- hooks:
- - id: ruff
- args: [--fix, --show-fixes, --target-version=py39]
- - id: ruff-format
-
- - repo: local
- hooks:
- - id: check-spdx
- name: Check SPDX Headers
- entry: python ./toolshed/check_spdx.py
- language: python
- additional_dependencies:
- - https://files.pythonhosted.org/packages/cc/20/ff623b09d963f88bfde16306a54e12ee5ea43e9b597108672ff3a408aad6/pathspec-0.12.1-py3-none-any.whl
-
- - id: no-markdown-in-docs-source
- name: Prevent markdown files in docs/source directories
- entry: bash -c
- args: ['if find . -path "*/docs/source/*.md" -not -path "./docs/README.md" | grep -q .; then echo "ERROR: Markdown files found in docs/source/ directories. Use reST (.rst) instead."; exit 1; fi']
- language: system
- pass_filenames: false
- always_run: true
-
- # Standard hooks
- - repo: https://github.com/pre-commit/pre-commit-hooks
- rev: "v5.0.0"
- hooks:
- - id: check-added-large-files
- - id: check-case-conflict
- - id: check-docstring-first
- - id: check-merge-conflict
- - id: check-symlinks
- - id: check-toml
- - id: check-yaml
- - id: debug-statements
- - id: end-of-file-fixer
- exclude: &gen_exclude '^(?:cuda_bindings/cuda/bindings/.*\.in?|cuda_bindings/docs/source/module/.*\.rst?)$'
- - id: mixed-line-ending
- - id: trailing-whitespace
- exclude: *gen_exclude
-
- # Checking for common mistakes
- - repo: https://github.com/pre-commit/pygrep-hooks
- rev: "v1.10.0"
- hooks:
- - id: rst-backticks
- - id: rst-directive-colons
- - id: rst-inline-touching-normal
-
- - repo: https://github.com/PyCQA/bandit
- rev: "36fd65054fc8864b4037d0918904f9331512feb5" # frozen: 1.7.10 KEEP IN SYNC WITH .github/workflows/bandit.yml
- hooks:
- - id: bandit
- args:
- - --ini
- - .bandit
-
- - repo: https://github.com/pre-commit/mirrors-mypy
- rev: 0f86793af5ef5f6dc63c8d04a3cabfa3ea8f9c6a # frozen: v1.16.1
- hooks:
- - id: mypy
- name: mypy-pathfinder
- files: ^cuda_pathfinder/cuda/.*\.py$ # Exclude tests directory
- args: [--config-file=cuda_pathfinder/pyproject.toml]
-
-default_language_version:
- python: python3
diff --git a/.spdx-ignore b/.spdx-ignore
deleted file mode 100644
index 60435ebb5..000000000
--- a/.spdx-ignore
+++ /dev/null
@@ -1,13 +0,0 @@
-LICENSE
-*.html
-*.json
-*.md
-*.png
-.gitattributes
-.gitignore
-.github/BACKPORT_BRANCH
-requirements*.txt
-cuda_bindings/examples/*
-
-# Vendored
-cuda_core/cuda/core/experimental/dlpack.h
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
deleted file mode 100644
index 183d21586..000000000
--- a/CONTRIBUTING.md
+++ /dev/null
@@ -1,212 +0,0 @@
-# Contributing to CUDA Python
-
-Thank you for your interest in contributing to CUDA Python! 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:
- - Please refer to each component's guideline:
- - [`cuda.core`](https://nvidia.github.io/cuda-python/cuda-core/latest/contribute.html)
- - [`cuda.bindings`](https://nvidia.github.io/cuda-python/cuda-bindings/latest/contribute.html)[1](#footnote1)
- - [`cuda.pathfinder`](https://nvidia.github.io/cuda-python/cuda-pathfinder/latest/contribute.html)
-
-## Table of Contents
-
-- [Pre-commit](#pre-commit)
-- [Code signing](#code-signing)
-- [Developer Certificate of Origin (DCO)](#developer-certificate-of-origin-dco)
-- [CI infrastructure overview](#ci-infrastructure-overview)
-
-
-## Pre-commit
-This project uses [pre-commit.ci](https://pre-commit.ci/) with GitHub Actions. All pull requests are automatically checked for pre-commit compliance, and any pre-commit failures will block merging until resolved.
-
-To set yourself up for running pre-commit checks locally and to catch issues before pushing your changes, follow these steps:
-
-* Install pre-commit with: `pip install pre-commit`
-* You can manually check all files at any time by running: `pre-commit run --all-files`
-
-This command runs all configured hooks (such as linters and formatters) across your repository, letting you review and address issues before committing.
-
-**Optional: Enable automatic checks on every commit**
-If you want pre-commit hooks to run automatically each time you make a commit, install the git hook with:
-
-`pre-commit install`
-
-This sets up a git pre-commit hook so that all configured checks will run before each commit is accepted. If any hook fails, the commit will be blocked until the issues are resolved.
-
-**Note on workflow flexibility**
-Some contributors prefer to commit intermediate or work-in-progress changes that may not pass all pre-commit checks, and only clean up their commits before pushing (for example, by squashing and running `pre-commit run --all-files` manually at the end). If this fits your workflow, you may choose not to run `pre-commit install` and instead rely on manual checks. This approach avoids disruption during iterative development, while still ensuring code quality before code is shared or merged.
-
-Choose the setup that best fits your workflow and development style.
-
-
-## Code signing
-
-This repository implements a security check to prevent the CI system from running untrusted code. A part of the security check consists of checking if the git commits are signed. Please ensure that your commits are signed [following GitHub’s instruction](https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification).
-
-
-## Developer Certificate of Origin (DCO)
-```
-Version 1.1
-
-Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
-
-Everyone is permitted to copy and distribute verbatim copies of this
-license document, but changing it is not allowed.
-
-
-Developer's Certificate of Origin 1.1
-
-By making a contribution to this project, I certify that:
-
-(a) The contribution was created in whole or in part by me and I
- have the right to submit it under the open source license
- indicated in the file; or
-
-(b) The contribution is based upon previous work that, to the best
- of my knowledge, is covered under an appropriate open source
- license and I have the right under that license to submit that
- work with modifications, whether created in whole or in part
- by me, under the same open source license (unless I am
- permitted to submit under a different license), as indicated
- in the file; or
-
-(c) The contribution was provided directly to me by some other
- person who certified (a), (b) or (c) and I have not modified
- it.
-
-(d) I understand and agree that this project and the contribution
- are public and that a record of the contribution (including all
- personal information I submit with it, including my sign-off) is
- maintained indefinitely and may be redistributed consistent with
- this project or the open source license(s) involved.
-```
-
-## CI infrastructure overview
-
-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
-
-
-
-Alternative Mermaid diagram representation:
-
-```mermaid
-flowchart TD
- %% Trigger Events
- subgraph TRIGGER["🔄 TRIGGER EVENTS"]
- T1["• Push to main branch"]
- T2["• Pull request • Manual workflow dispatch"]
- T1 --- T2
- end
-
- %% Build Stage
- subgraph BUILD["🔨 BUILD STAGE"]
- subgraph BUILD_PLATFORMS["Parallel Platform Builds"]
- B1["linux-64 (Self-hosted)"]
- B2["linux-aarch64 (Self-hosted)"]
- B3["win-64 (GitHub-hosted)"]
- end
- BUILD_DETAILS["• Python versions: 3.9, 3.10, 3.11, 3.12, 3.13 • CUDA version: 13.0.0 (build-time) • Components: cuda-core, cuda-bindings, cuda-pathfinder, cuda-python"]
- end
-
- %% Artifact Storage
- subgraph ARTIFACTS["📦 ARTIFACT STORAGE"]
- subgraph GITHUB_ARTIFACTS["GitHub Artifacts"]
- GA1["• Wheel files (.whl) • Test artifacts • Documentation (30-day retention)"]
- end
- subgraph GITHUB_CACHE["GitHub Cache"]
- GC1["• Mini CTK cache"]
- end
- end
-
- %% Test Stage
- subgraph TEST["🧪 TEST STAGE"]
- subgraph TEST_PLATFORMS["Parallel Platform Tests"]
- TS1["linux-64 (Self-hosted)"]
- TS2["linux-aarch64 (Self-hosted)"]
- TS3["win-64 (GitHub-hosted)"]
- end
- TEST_DETAILS["• Download wheels from artifacts • Test against multiple CUDA runtime versions • Run Python unit tests, Cython tests, examples"]
- ARTIFACT_FLOWS["Artifact Flows: • cuda-pathfinder: main → backport • cuda-bindings: backport → main"]
- end
-
- %% Release Pipeline
- subgraph RELEASE["🚀 RELEASE PIPELINE"]
- subgraph RELEASE_STAGES["Sequential Release Steps"]
- R1["Validation • Artifact integrity • Git tag verification"]
- R2["Publishing • PyPI/TestPyPI • Component or all releases"]
- R3["Documentation • GitHub Pages • Release notes"]
- R1 --> R2 --> R3
- end
- RELEASE_DETAILS["• Manual workflow dispatch with run ID • Supports individual component or full releases"]
- end
-
- %% Main Flow
- TRIGGER --> BUILD
- BUILD -.->|"wheel upload"| ARTIFACTS
- ARTIFACTS -.-> TEST
- TEST --> RELEASE
-
- %% Artifact Flow Arrows (Cache Reuse)
- GITHUB_CACHE -.->|"mini CTK reuse"| BUILD
- GITHUB_CACHE -.->|"mini CTK reuse"| TEST
-
- %% Artifact Flow Arrows (Wheel Fetch)
- GITHUB_ARTIFACTS -.->|"wheel fetch"| TEST
- GITHUB_ARTIFACTS -.->|"wheel fetch"| RELEASE
-
- %% Styling
- classDef triggerStyle fill:#e8f4fd,stroke:#2196F3,stroke-width:2px,color:#1976D2
- classDef buildStyle fill:#f3e5f5,stroke:#9C27B0,stroke-width:2px,color:#7B1FA2
- classDef artifactStyle fill:#fff3e0,stroke:#FF9800,stroke-width:2px,color:#F57C00
- classDef testStyle fill:#e8f5e8,stroke:#4CAF50,stroke-width:2px,color:#388E3C
- classDef releaseStyle fill:#ffebee,stroke:#f44336,stroke-width:2px,color:#D32F2F
-
- class TRIGGER,T1,T2 triggerStyle
- class BUILD,BUILD_PLATFORMS,B1,B2,B3,BUILD_DETAILS buildStyle
- class ARTIFACTS,GITHUB_ARTIFACTS,GITHUB_CACHE,GA1,GC1 artifactStyle
- class TEST,TEST_PLATFORMS,TS1,TS2,TS3,TEST_DETAILS,ARTIFACT_FLOWS testStyle
- class RELEASE,RELEASE_STAGES,R1,R2,R3,RELEASE_DETAILS releaseStyle
-```
-
-### 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
-
----
-
-1 : The `cuda-python` meta package shares the same license and the contributing guidelines as those of `cuda-bindings`.
diff --git a/LICENSE.md b/LICENSE.md
deleted file mode 100644
index f5b0c2e26..000000000
--- a/LICENSE.md
+++ /dev/null
@@ -1,4 +0,0 @@
-This repository is structured in a way that files are licensed differently
- - [`cuda.python`](./cuda_python/LICENSE): NVIDIA Software License
- - [`cuda.bindings`](./cuda_bindings/LICENSE): NVIDIA Software License
- - [`cuda.core`](./cuda_core/LICENSE) and everything else in this repository: Apache 2.0
diff --git a/README.md b/README.md
deleted file mode 100644
index cffa52f2e..000000000
--- a/README.md
+++ /dev/null
@@ -1,42 +0,0 @@
-# cuda-python
-
-CUDA Python is the home for accessing NVIDIA’s CUDA platform from Python. It consists of multiple components:
-
-* [cuda.core](https://nvidia.github.io/cuda-python/cuda-core/latest): Pythonic access to CUDA Runtime and other core functionalities
-* [cuda.bindings](https://nvidia.github.io/cuda-python/cuda-bindings/latest): Low-level Python bindings to CUDA C APIs
-* [cuda.pathfinder](https://nvidia.github.io/cuda-python/cuda-pathfinder/latest): Utilities for locating CUDA components installed in the user's Python environment
-* [cuda.cccl.cooperative](https://nvidia.github.io/cccl/python/cooperative): A Python module providing CCCL's reusable block-wide and warp-wide *device* primitives for use within Numba CUDA kernels
-* [cuda.cccl.parallel](https://nvidia.github.io/cccl/python/parallel): A Python module for easy access to CCCL's highly efficient and customizable parallel algorithms, like `sort`, `scan`, `reduce`, `transform`, etc. that are callable on the *host*
-* [numba.cuda](https://nvidia.github.io/numba-cuda/): Numba's target for CUDA GPU programming by directly compiling a restricted subset of Python code into CUDA kernels and device functions following the CUDA execution model.
-* [nvmath-python](https://docs.nvidia.com/cuda/nvmath-python/latest): Pythonic access to NVIDIA CPU & GPU Math Libraries, with both [*host*](https://docs.nvidia.com/cuda/nvmath-python/latest/overview.html#host-apis) and [*device* (nvmath.device)](https://docs.nvidia.com/cuda/nvmath-python/latest/overview.html#device-apis) APIs. It also provides low-level Python bindings to host C APIs ([nvmath.bindings](https://docs.nvidia.com/cuda/nvmath-python/latest/bindings/index.html)).
-
-CUDA Python is currently undergoing an overhaul to improve existing and introduce new components. All of the previously available functionalities from the `cuda-python` package will continue to be available, please refer to the [cuda.bindings](https://nvidia.github.io/cuda-python/cuda-bindings/latest) documentation for installation guide and further detail.
-
-## cuda-python as a metapackage
-
-`cuda-python` is being restructured to become a metapackage that contains a collection of subpackages. Each subpackage is versioned independently, allowing installation of each component as needed.
-
-### Subpackage: `cuda.core`
-
-The `cuda.core` package offers idiomatic, Pythonic access to CUDA Runtime and other functionalities.
-
-The goals are to
-
-1. Provide **idiomatic ("Pythonic")** access to CUDA Driver, Runtime, and JIT compiler toolchain
-2. Focus on **developer productivity** by ensuring end-to-end CUDA development can be performed quickly and entirely in Python
-3. **Avoid homegrown** Python abstractions for CUDA for new Python GPU libraries starting from scratch
-4. **Ease** developer **burden of maintaining** and catching up with latest CUDA features
-5. **Flatten the learning curve** for current and future generations of CUDA developers
-
-### Subpackage: `cuda.bindings`
-
-The `cuda.bindings` package is a standard set of low-level interfaces, providing full coverage of and access to the CUDA host APIs from Python.
-
-The list of available interfaces is:
-
-* CUDA Driver
-* CUDA Runtime
-* NVRTC
-* nvJitLink
-* NVVM
-* cuFile
diff --git a/SECURITY.md b/SECURITY.md
deleted file mode 100755
index 428354155..000000000
--- a/SECURITY.md
+++ /dev/null
@@ -1,35 +0,0 @@
-# Security
-
-NVIDIA is dedicated to the security and trust of our software products and services,
-including all source code repositories managed through our organization.
-
-If you need to report a security issue, please use the appropriate contact points outlined
-below. **Please do not report security vulnerabilities through GitHub/GitLab.**
-
-## Reporting Potential Security Vulnerability in CUDA Python
-
-To report a potential security vulnerability in CUDA Python:
-
-- Web: [Security Vulnerability Submission
- Form](https://www.nvidia.com/object/submit-security-vulnerability.html)
-- E-Mail:
- - We encourage you to use the following PGP key for secure email communication: [NVIDIA
- public PGP Key for communication](https://www.nvidia.com/en-us/security/pgp-key)
- - Please include the following information:
- - Product/Driver name and version/branch that contains the vulnerability
- - Type of vulnerability (code execution, denial of service, buffer overflow, etc.)
- - Instructions to reproduce the vulnerability
- - Proof-of-concept or exploit code
- - Potential impact of the vulnerability, including how an attacker could exploit the
- vulnerability
-
-While NVIDIA currently does not have a bug bounty program, we do offer acknowledgement when
-an externally reported security issue is addressed under our coordinated vulnerability
-disclosure policy. Please visit our [Product Security Incident Response Team
-(PSIRT)](https://www.nvidia.com/en-us/security/psirt-policies/) policies page for more
-information.
-
-## NVIDIA Product Security
-
-For all security-related concerns, please visit NVIDIA's Product Security portal at
-.
diff --git a/ci/.ci-pipeline-regen.md b/ci/.ci-pipeline-regen.md
deleted file mode 100644
index 7ddf9b970..000000000
--- a/ci/.ci-pipeline-regen.md
+++ /dev/null
@@ -1,106 +0,0 @@
-# CUDA Python CI Pipeline SVG Regeneration Instructions
-
-This file contains the prompt and requirements for regenerating `ci-pipeline.svg` with the same styling and content.
-
-## Styling Requirements
-
-- Hand-drawn Excalidraw-style design with rough, sketchy borders
-- Comic Sans MS font family for all text
-- Imperfect lines and curves that mimic hand-drawn aesthetics
-- Canvas size: 900x800 pixels
-- Color scheme:
- - Trigger Events: #e8f4fd background, #2196F3 border, #1976D2 text
- - Build Stage: #f3e5f5 background, #9C27B0 border, #7B1FA2 text
- - Artifact Storage: #fff3e0 background, #FF9800 border, #F57C00 text
- - Test Stage: #e8f5e8 background, #4CAF50 border, #388E3C text
- - Release Pipeline: #ffebee background, #f44336 border, #D32F2F text
-
-## Content Structure
-
-1. **Title**: "CUDA Python CI Pipeline Flow"
-
-2. **Trigger Events** (top blue box):
- - Push to main branch
- - Pull request
- - Manual workflow dispatch
-
-3. **Build Stage** (purple box):
- - Three platform boxes: linux-64 (Self-hosted), linux-aarch64 (Self-hosted), win-64 (GitHub-hosted)
- - Details: Python versions 3.9-3.13, CUDA 13.0.0 (build-time)
- - Components: cuda-core, cuda-bindings, cuda-pathfinder, cuda-python
-
-4. **Artifact Storage** (orange box):
- - GitHub Artifacts box: Wheel files (.whl), Test artifacts, Documentation (30-day retention)
- - GitHub Cache box: Mini CTK cache
-
-5. **Test Stage** (green box):
- - Three platform boxes: linux-64 (Self-hosted), linux-aarch64 (Self-hosted), win-64 (GitHub-hosted)
- - Details: Download wheels from artifacts, Test against multiple CUDA runtime versions, Run Python unit tests, Cython tests, examples
- - Artifact Flows (in red text):
- • cuda-pathfinder: main → backport
- • cuda-bindings: backport → main
-
-6. **Release Pipeline** (red box):
- - Three sequential boxes: Validation → Publishing → Documentation
- - Validation: Artifact integrity, Git tag verification
- - Publishing: PyPI/TestPyPI, Component or all releases
- - Documentation: GitHub Pages, Release notes
- - Details: Manual workflow dispatch with run ID, Supports individual component or full releases
-
-## Arrow Requirements
-
-- Main flow arrows: Trigger → Build → Artifact → Test → Release
-- Additional artifact flow arrows (dashed, orange #FF9800):
- - From GitHub Cache (mini CTK) back to Build Stage with "mini CTK reuse" label
- - From GitHub Artifacts (wheels) to Release Pipeline with "wheel fetch" label
- - **NEW**: From GitHub Cache (mini CTK) to Test Stage with "mini CTK reuse" label
- - **NEW**: From GitHub Artifacts (wheels) to Test Stage with "wheel fetch" label
-- Arrow marker definition with hand-drawn style (orange arrow heads, not black)
-- Use stroke-dasharray="5,3" for artifact flow arrows
-
-## Critical Arrow Positioning Requirements (UPDATED)
-
-**IMPORTANT**: Arrows must NOT overlap with stage boxes. Ensure proper clearance:
-
-1. **Mini CTK reuse arrow** (GitHub Cache → Build Stage):
- - Arrow endpoint Y coordinate must be BELOW the Build Stage box edge (y=292)
- - Use y=295 or greater for the endpoint to ensure no overlap
- - Position "mini CTK reuse" text to the RIGHT of the arrow (not left) for less visual clutter
- - Text color should be orange (#FF9800) to match arrow
-
-2. **Wheel fetch arrow** (GitHub Artifacts → Release Pipeline):
- - Arrow endpoint Y coordinate must be ABOVE the Release Pipeline box edge (y=652)
- - Use y=645 or smaller for the endpoint to provide proper margin
- - Position "wheel fetch" text between Test Stage and Release Pipeline boxes
- - Text should be to the LEFT of the arrow for better spacing
-
-## Font Size Requirements (UPDATED)
-
-- ALL text labels must use consistent 12pt font size for readability
-- No 9pt text - this is too small and hard to read
-- Title: 16pt, Stage headers: 14pt, All other text: 12pt
-
-## Key Features
-
-- All boxes use rough, hand-drawn paths (not perfect rectangles)
-- Text should be properly sized and positioned within boxes
-- Platform boxes within each stage should be clearly separated
-- Maintain consistent spacing and alignment
-- Orange arrow heads must match the orange arrow color
-
-## Text Positioning
-
-- Use text-anchor="middle" for centered headers
-- Use text-anchor="start" for left-aligned bullet points
-- Ensure all text fits within their enclosing boxes
-- Use transforms for angled text labels on artifact flow arrows
-- Artifact flow arrow text positioning is critical - follow positioning requirements above
-
-## Recent Manual Adjustments Applied
-
-- Fixed arrow endpoint positioning to prevent overlap with stage boxes
-- Moved mini CTK reuse arrow endpoint from y=285 to y=295
-- Moved wheel fetch arrow endpoint from y=650 to y=645
-- Repositioned text labels for better visual separation
-- Standardized all text to 12pt font size for consistency
-- Changed arrow heads from black to orange to match arrow color
diff --git a/ci/ci-pipeline.svg b/ci/ci-pipeline.svg
deleted file mode 100644
index eeff4c69f..000000000
--- a/ci/ci-pipeline.svg
+++ /dev/null
@@ -1,172 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- CUDA Python CI Pipeline Flow
-
-
-
- TRIGGER EVENTS
- • Push to main branch
- • Pull request
- • Manual workflow dispatch
-
-
-
-
-
- BUILD STAGE
-
-
-
- linux-64
- Self-hosted
-
-
- linux-aarch64
- Self-hosted
-
-
- win-64
- GitHub-hosted
-
-
- • Python versions: 3.9, 3.10, 3.11, 3.12, 3.13
- • CUDA version: 13.0.0 (build-time)
- • Components: cuda-core, cuda-bindings,
- cuda-pathfinder, cuda-python
-
-
-
- wheel upload
-
-
-
- ARTIFACT STORAGE
-
-
-
- GitHub Artifacts
- • Wheel files (.whl)
- • Test artifacts
- • Documentation
- (30-day retention)
-
-
- GitHub Cache
- • Mini CTK cache
-
-
-
-
-
-
-
- mini CTK reuse
-
-
-
- wheel fetch
-
-
-
-
- mini CTK reuse
-
-
-
- wheel fetch
-
-
-
- TEST STAGE
-
-
-
- linux-64
- Self-hosted
-
-
- linux-aarch64
- Self-hosted
-
-
- win-64
- GitHub-hosted
-
-
- • Download wheels from artifacts
- • Test against multiple CUDA runtime versions
- • Run Python unit tests, Cython tests, examples
- Artifact Flows:
- • cuda-pathfinder: main → backport
- • cuda-bindings: backport → main
-
-
-
-
-
-
- RELEASE PIPELINE
-
-
-
- Validation
- • Artifact integrity
- • Git tag verification
-
-
-
-
-
- Publishing
- • PyPI/TestPyPI
- • Component or all releases
-
-
-
-
-
- Documentation
- • GitHub Pages
- • Release notes
-
-
- • Manual workflow dispatch with run ID
- • Supports individual component or full releases
-
diff --git a/ci/test-matrix.json b/ci/test-matrix.json
deleted file mode 100644
index 10721659b..000000000
--- a/ci/test-matrix.json
+++ /dev/null
@@ -1,114 +0,0 @@
-{
- "_description": "Test matrix configurations for CUDA Python CI workflows. This file consolidates the test matrices that were previously hardcoded in the workflow files. All GPU and ARCH values are hard-coded for each architecture: l4 GPU for amd64, a100 GPU for arm64.",
- "_sorted_by": "Please keep matrices sorted in ascending order by [ARCH, PY_VER, CUDA_VER, LOCAL_CTK, GPU, DRIVER]",
- "_notes": "DRIVER: 'earliest' does not work with CUDA 12.9.1 and LOCAL_CTK: 0 does not work with CUDA 12.0.1",
- "linux": {
- "pull-request": [
- { "ARCH": "amd64", "PY_VER": "3.9", "CUDA_VER": "12.9.1", "LOCAL_CTK": "0", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.9", "CUDA_VER": "13.0.1", "LOCAL_CTK": "1", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.10", "CUDA_VER": "12.9.1", "LOCAL_CTK": "1", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.10", "CUDA_VER": "13.0.1", "LOCAL_CTK": "0", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.11", "CUDA_VER": "12.9.1", "LOCAL_CTK": "0", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.11", "CUDA_VER": "13.0.1", "LOCAL_CTK": "1", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.12", "CUDA_VER": "12.9.1", "LOCAL_CTK": "1", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.12", "CUDA_VER": "13.0.1", "LOCAL_CTK": "0", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.13", "CUDA_VER": "12.9.1", "LOCAL_CTK": "0", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.13", "CUDA_VER": "13.0.1", "LOCAL_CTK": "1", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.13t", "CUDA_VER": "13.0.1", "LOCAL_CTK": "1", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.14", "CUDA_VER": "13.0.1", "LOCAL_CTK": "1", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.14t", "CUDA_VER": "13.0.1", "LOCAL_CTK": "1", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "arm64", "PY_VER": "3.9", "CUDA_VER": "12.9.1", "LOCAL_CTK": "0", "GPU": "a100", "DRIVER": "latest" },
- { "ARCH": "arm64", "PY_VER": "3.9", "CUDA_VER": "13.0.1", "LOCAL_CTK": "1", "GPU": "a100", "DRIVER": "latest" },
- { "ARCH": "arm64", "PY_VER": "3.10", "CUDA_VER": "12.9.1", "LOCAL_CTK": "1", "GPU": "a100", "DRIVER": "latest" },
- { "ARCH": "arm64", "PY_VER": "3.10", "CUDA_VER": "13.0.1", "LOCAL_CTK": "0", "GPU": "a100", "DRIVER": "latest" },
- { "ARCH": "arm64", "PY_VER": "3.11", "CUDA_VER": "12.9.1", "LOCAL_CTK": "0", "GPU": "a100", "DRIVER": "latest" },
- { "ARCH": "arm64", "PY_VER": "3.11", "CUDA_VER": "13.0.1", "LOCAL_CTK": "1", "GPU": "a100", "DRIVER": "latest" },
- { "ARCH": "arm64", "PY_VER": "3.12", "CUDA_VER": "12.9.1", "LOCAL_CTK": "1", "GPU": "a100", "DRIVER": "latest" },
- { "ARCH": "arm64", "PY_VER": "3.12", "CUDA_VER": "13.0.1", "LOCAL_CTK": "0", "GPU": "a100", "DRIVER": "latest" },
- { "ARCH": "arm64", "PY_VER": "3.13", "CUDA_VER": "12.9.1", "LOCAL_CTK": "0", "GPU": "a100", "DRIVER": "latest" },
- { "ARCH": "arm64", "PY_VER": "3.13", "CUDA_VER": "13.0.1", "LOCAL_CTK": "1", "GPU": "a100", "DRIVER": "latest" },
- { "ARCH": "arm64", "PY_VER": "3.13t", "CUDA_VER": "13.0.1", "LOCAL_CTK": "1", "GPU": "a100", "DRIVER": "latest" },
- { "ARCH": "arm64", "PY_VER": "3.14", "CUDA_VER": "13.0.1", "LOCAL_CTK": "1", "GPU": "a100", "DRIVER": "latest" },
- { "ARCH": "arm64", "PY_VER": "3.14t", "CUDA_VER": "13.0.1", "LOCAL_CTK": "1", "GPU": "a100", "DRIVER": "latest" }
- ],
- "nightly": [
- { "ARCH": "amd64", "PY_VER": "3.9", "CUDA_VER": "11.8.0", "LOCAL_CTK": "0", "GPU": "l4", "DRIVER": "earliest" },
- { "ARCH": "amd64", "PY_VER": "3.9", "CUDA_VER": "11.8.0", "LOCAL_CTK": "1", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.9", "CUDA_VER": "12.0.1", "LOCAL_CTK": "1", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.9", "CUDA_VER": "12.9.1", "LOCAL_CTK": "0", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.9", "CUDA_VER": "12.9.1", "LOCAL_CTK": "1", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.10", "CUDA_VER": "11.8.0", "LOCAL_CTK": "0", "GPU": "l4", "DRIVER": "earliest" },
- { "ARCH": "amd64", "PY_VER": "3.10", "CUDA_VER": "11.8.0", "LOCAL_CTK": "1", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.10", "CUDA_VER": "12.0.1", "LOCAL_CTK": "1", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.10", "CUDA_VER": "12.9.1", "LOCAL_CTK": "0", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.10", "CUDA_VER": "12.9.1", "LOCAL_CTK": "1", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.11", "CUDA_VER": "11.8.0", "LOCAL_CTK": "0", "GPU": "l4", "DRIVER": "earliest" },
- { "ARCH": "amd64", "PY_VER": "3.11", "CUDA_VER": "11.8.0", "LOCAL_CTK": "1", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.11", "CUDA_VER": "12.0.1", "LOCAL_CTK": "1", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.11", "CUDA_VER": "12.9.1", "LOCAL_CTK": "0", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.11", "CUDA_VER": "12.9.1", "LOCAL_CTK": "1", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.12", "CUDA_VER": "11.8.0", "LOCAL_CTK": "0", "GPU": "l4", "DRIVER": "earliest" },
- { "ARCH": "amd64", "PY_VER": "3.12", "CUDA_VER": "11.8.0", "LOCAL_CTK": "1", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.12", "CUDA_VER": "12.0.1", "LOCAL_CTK": "1", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.12", "CUDA_VER": "12.9.1", "LOCAL_CTK": "0", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.12", "CUDA_VER": "12.9.1", "LOCAL_CTK": "1", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.13", "CUDA_VER": "11.8.0", "LOCAL_CTK": "0", "GPU": "l4", "DRIVER": "earliest" },
- { "ARCH": "amd64", "PY_VER": "3.13", "CUDA_VER": "11.8.0", "LOCAL_CTK": "1", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.13", "CUDA_VER": "12.0.1", "LOCAL_CTK": "1", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.13", "CUDA_VER": "12.9.1", "LOCAL_CTK": "0", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.13", "CUDA_VER": "12.9.1", "LOCAL_CTK": "1", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "arm64", "PY_VER": "3.9", "CUDA_VER": "11.8.0", "LOCAL_CTK": "0", "GPU": "a100", "DRIVER": "earliest" },
- { "ARCH": "arm64", "PY_VER": "3.9", "CUDA_VER": "11.8.0", "LOCAL_CTK": "1", "GPU": "a100", "DRIVER": "latest" },
- { "ARCH": "arm64", "PY_VER": "3.9", "CUDA_VER": "12.0.1", "LOCAL_CTK": "1", "GPU": "a100", "DRIVER": "latest" },
- { "ARCH": "arm64", "PY_VER": "3.9", "CUDA_VER": "12.9.1", "LOCAL_CTK": "0", "GPU": "a100", "DRIVER": "latest" },
- { "ARCH": "arm64", "PY_VER": "3.9", "CUDA_VER": "12.9.1", "LOCAL_CTK": "1", "GPU": "a100", "DRIVER": "latest" },
- { "ARCH": "arm64", "PY_VER": "3.10", "CUDA_VER": "11.8.0", "LOCAL_CTK": "0", "GPU": "a100", "DRIVER": "earliest" },
- { "ARCH": "arm64", "PY_VER": "3.10", "CUDA_VER": "11.8.0", "LOCAL_CTK": "1", "GPU": "a100", "DRIVER": "latest" },
- { "ARCH": "arm64", "PY_VER": "3.10", "CUDA_VER": "12.0.1", "LOCAL_CTK": "1", "GPU": "a100", "DRIVER": "latest" },
- { "ARCH": "arm64", "PY_VER": "3.10", "CUDA_VER": "12.9.1", "LOCAL_CTK": "0", "GPU": "a100", "DRIVER": "latest" },
- { "ARCH": "arm64", "PY_VER": "3.10", "CUDA_VER": "12.9.1", "LOCAL_CTK": "1", "GPU": "a100", "DRIVER": "latest" },
- { "ARCH": "arm64", "PY_VER": "3.11", "CUDA_VER": "11.8.0", "LOCAL_CTK": "0", "GPU": "a100", "DRIVER": "earliest" },
- { "ARCH": "arm64", "PY_VER": "3.11", "CUDA_VER": "11.8.0", "LOCAL_CTK": "1", "GPU": "a100", "DRIVER": "latest" },
- { "ARCH": "arm64", "PY_VER": "3.11", "CUDA_VER": "12.0.1", "LOCAL_CTK": "1", "GPU": "a100", "DRIVER": "latest" },
- { "ARCH": "arm64", "PY_VER": "3.11", "CUDA_VER": "12.9.1", "LOCAL_CTK": "0", "GPU": "a100", "DRIVER": "latest" },
- { "ARCH": "arm64", "PY_VER": "3.11", "CUDA_VER": "12.9.1", "LOCAL_CTK": "1", "GPU": "a100", "DRIVER": "latest" },
- { "ARCH": "arm64", "PY_VER": "3.12", "CUDA_VER": "11.8.0", "LOCAL_CTK": "0", "GPU": "a100", "DRIVER": "earliest" },
- { "ARCH": "arm64", "PY_VER": "3.12", "CUDA_VER": "11.8.0", "LOCAL_CTK": "1", "GPU": "a100", "DRIVER": "latest" },
- { "ARCH": "arm64", "PY_VER": "3.12", "CUDA_VER": "12.0.1", "LOCAL_CTK": "1", "GPU": "a100", "DRIVER": "latest" },
- { "ARCH": "arm64", "PY_VER": "3.12", "CUDA_VER": "12.9.1", "LOCAL_CTK": "0", "GPU": "a100", "DRIVER": "latest" },
- { "ARCH": "arm64", "PY_VER": "3.12", "CUDA_VER": "12.9.1", "LOCAL_CTK": "1", "GPU": "a100", "DRIVER": "latest" },
- { "ARCH": "arm64", "PY_VER": "3.13", "CUDA_VER": "11.8.0", "LOCAL_CTK": "0", "GPU": "a100", "DRIVER": "earliest" },
- { "ARCH": "arm64", "PY_VER": "3.13", "CUDA_VER": "11.8.0", "LOCAL_CTK": "1", "GPU": "a100", "DRIVER": "latest" },
- { "ARCH": "arm64", "PY_VER": "3.13", "CUDA_VER": "12.0.1", "LOCAL_CTK": "1", "GPU": "a100", "DRIVER": "latest" },
- { "ARCH": "arm64", "PY_VER": "3.13", "CUDA_VER": "12.9.1", "LOCAL_CTK": "0", "GPU": "a100", "DRIVER": "latest" },
- { "ARCH": "arm64", "PY_VER": "3.13", "CUDA_VER": "12.9.1", "LOCAL_CTK": "1", "GPU": "a100", "DRIVER": "latest" }
- ],
- "special_runners": {
- "amd64": [
- { "ARCH": "amd64", "PY_VER": "3.13", "CUDA_VER": "13.0.1", "LOCAL_CTK": "1", "GPU": "H100", "DRIVER": "latest" }
- ]
- }
- },
- "windows": {
- "pull-request": [
- { "ARCH": "amd64", "PY_VER": "3.12", "CUDA_VER": "12.9.1", "LOCAL_CTK": "0", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.12", "CUDA_VER": "12.9.1", "LOCAL_CTK": "1", "GPU": "t4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.13", "CUDA_VER": "13.0.1", "LOCAL_CTK": "0", "GPU": "t4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.13", "CUDA_VER": "13.0.1", "LOCAL_CTK": "1", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.13t", "CUDA_VER": "13.0.1", "LOCAL_CTK": "0", "GPU": "t4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.13t", "CUDA_VER": "13.0.1", "LOCAL_CTK": "1", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.14", "CUDA_VER": "13.0.1", "LOCAL_CTK": "0", "GPU": "t4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.14", "CUDA_VER": "13.0.1", "LOCAL_CTK": "1", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.14t", "CUDA_VER": "13.0.1", "LOCAL_CTK": "0", "GPU": "t4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.14t", "CUDA_VER": "13.0.1", "LOCAL_CTK": "1", "GPU": "l4", "DRIVER": "latest" }
- ],
- "nightly": [
- { "ARCH": "amd64", "PY_VER": "3.12", "CUDA_VER": "11.8.0", "LOCAL_CTK": "0", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.12", "CUDA_VER": "11.8.0", "LOCAL_CTK": "1", "GPU": "t4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.12", "CUDA_VER": "12.9.1", "LOCAL_CTK": "0", "GPU": "t4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.12", "CUDA_VER": "12.9.1", "LOCAL_CTK": "1", "GPU": "l4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.13t", "CUDA_VER": "13.0.1", "LOCAL_CTK": "0", "GPU": "t4", "DRIVER": "latest" },
- { "ARCH": "amd64", "PY_VER": "3.13t", "CUDA_VER": "13.0.1", "LOCAL_CTK": "1", "GPU": "l4", "DRIVER": "latest" }
- ]
- }
-}
diff --git a/ci/tools/download-wheels b/ci/tools/download-wheels
deleted file mode 100755
index a3141afb3..000000000
--- a/ci/tools/download-wheels
+++ /dev/null
@@ -1,75 +0,0 @@
-#!/usr/bin/env bash
-
-# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-# A utility script to download component wheels from GitHub Actions artifacts.
-# This script reuses the same logic that was in release.yml to maintain consistency.
-
-set -euo pipefail
-
-# Check required arguments
-if [[ $# -lt 3 ]]; then
- echo "Usage: $0 [output-dir]" >&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
- exit 1
-fi
-
-RUN_ID="$1"
-COMPONENT="$2"
-REPOSITORY="$3"
-OUTPUT_DIR="${4:-./dist}"
-
-# Ensure we have a GitHub token
-if [[ -z "${GH_TOKEN:-}" ]]; then
- echo "Error: GH_TOKEN environment variable is required"
- exit 1
-fi
-
-echo "Downloading wheels for component: $COMPONENT from run: $RUN_ID"
-
-# Download component wheels using the same logic as release.yml
-if [[ "$COMPONENT" == "all" ]]; then
- # Download all component patterns
- gh run download "$RUN_ID" -p "cuda-*" -R "$REPOSITORY"
-else
- gh run download "$RUN_ID" -p "${COMPONENT}*" -R "$REPOSITORY"
-fi
-
-# Create output directory
-mkdir -p "$OUTPUT_DIR"
-
-# Process downloaded artifacts
-for p in cuda-*
-do
- if [[ ! -d "$p" ]]; then
- continue
- fi
-
- # exclude cython test artifacts
- if [[ "${p}" == *-tests ]]; then
- echo "Skipping test artifact: $p"
- continue
- fi
-
- # If we're not downloading "all", only process matching component
- if [[ "$COMPONENT" != "all" && "$p" != ${COMPONENT}* ]]; then
- continue
- fi
-
- echo "Processing artifact: $p"
- # Move wheel files to output directory
- if [[ -d "$p" ]]; then
- find "$p" -name "*.whl" -exec mv {} "$OUTPUT_DIR/" \;
- fi
-done
-
-# Clean up artifact directories
-rm -rf cuda-*
-
-echo "Downloaded wheels to: $OUTPUT_DIR"
-ls -la "$OUTPUT_DIR"
diff --git a/ci/tools/env-vars b/ci/tools/env-vars
deleted file mode 100755
index de4a5a6b9..000000000
--- a/ci/tools/env-vars
+++ /dev/null
@@ -1,85 +0,0 @@
-#!/usr/bin/env bash
-
-# SPDX-FileCopyrightText: Copyright (c) 2025 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 '.')
-
-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 "PYTHON_VERSION_FORMATTED=${PYTHON_VERSION_FORMATTED}"
-} >> $GITHUB_ENV
-
-if [[ "${1}" == "build" ]]; then
- # platform is handled by the default value of platform (`auto`) in cibuildwheel
- # here we only need to specify the python version we want
- echo "CIBW_BUILD=cp${PYTHON_VERSION_FORMATTED}-*" >> $GITHUB_ENV
- CUDA_BINDINGS_ARTIFACT_BASENAME="cuda-bindings-python${PYTHON_VERSION_FORMATTED}-cuda${CUDA_VER}-${HOST_PLATFORM}"
-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}"
- if [[ ${BUILD_CUDA_MAJOR} != ${TEST_CUDA_MAJOR} ]]; then
- SKIP_CUDA_BINDINGS_TEST=1
- SKIP_CYTHON_TEST=1
- else
- SKIP_CUDA_BINDINGS_TEST=0
- BUILD_CUDA_MINOR="$(cut -d '.' -f 2 <<< ${BUILD_CUDA_VER})"
- TEST_CUDA_MINOR="$(cut -d '.' -f 2 <<< ${CUDA_VER})"
- if [[ ${BUILD_CUDA_MINOR} != ${TEST_CUDA_MINOR} ]]; then
- SKIP_CYTHON_TEST=1
- else
- SKIP_CYTHON_TEST=0
- fi
- 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
- echo "LATEST_CUDA_VERSION=$(bash .github/workflows/guess_latest.sh $TEST_CUDA_MAJOR)" >> $GITHUB_ENV
- SETUP_SANITIZER=1
- else
- SETUP_SANITIZER=0
- echo "SANITIZER_CMD=" >> $GITHUB_ENV
- fi
- {
- echo "SETUP_SANITIZER=${SETUP_SANITIZER}"
- echo "SKIP_CUDA_BINDINGS_TEST=${SKIP_CUDA_BINDINGS_TEST}"
- echo "SKIP_CYTHON_TEST=${SKIP_CYTHON_TEST}"
- echo "TEST_CUDA_MAJOR=${TEST_CUDA_MAJOR}"
- } >> $GITHUB_ENV
-fi
-
-{
- 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/dist")"
- echo "CUDA_BINDINGS_CYTHON_TESTS_DIR=$(realpath "${REPO_DIR}/cuda_bindings/tests/cython")"
-} >> $GITHUB_ENV
diff --git a/ci/tools/lookup-run-id b/ci/tools/lookup-run-id
deleted file mode 100755
index db2f84b79..000000000
--- a/ci/tools/lookup-run-id
+++ /dev/null
@@ -1,99 +0,0 @@
-#!/usr/bin/env bash
-
-# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-# A utility script to find the GitHub Actions workflow run ID for a given git tag.
-# This script looks for the CI workflow run that corresponds to the commit of the given tag.
-
-set -euo pipefail
-
-# Check required arguments
-if [[ $# -lt 2 ]]; then
- echo "Usage: $0 [workflow-name]" >&2
- echo " git-tag: The git tag to find the corresponding workflow run for" >&2
- echo " repository: The GitHub repository (e.g., NVIDIA/cuda-python)" >&2
- echo " workflow-name: Optional workflow name to filter by (default: CI)" >&2
- echo "" >&2
- echo "Examples:" >&2
- echo " $0 v13.0.1 NVIDIA/cuda-python" >&2
- echo " $0 v13.0.1 NVIDIA/cuda-python \"CI\"" >&2
- exit 1
-fi
-
-GIT_TAG="${1}"
-REPOSITORY="${2}"
-WORKFLOW_NAME="${3:-CI}"
-
-# Ensure we have required tools
-if [[ -z "${GH_TOKEN:-}" ]]; then
- echo "Error: GH_TOKEN environment variable is required" >&2
- exit 1
-fi
-
-if ! command -v jq >/dev/null 2>&1; then
- echo "Error: jq is required but not installed" >&2
- exit 1
-fi
-
-if ! command -v gh >/dev/null 2>&1; then
- echo "Error: GitHub CLI (gh) is required but not installed" >&2
- exit 1
-fi
-
-echo "Looking up run ID for tag: ${GIT_TAG} in repository: ${REPOSITORY}" >&2
-
-# Resolve git tag to commit SHA
-if ! COMMIT_SHA=$(git rev-parse "${GIT_TAG}"); then
- echo "Error: Could not resolve git tag '${GIT_TAG}' to a commit SHA" >&2
- echo "Make sure the tag exists and you have fetched it" >&2
- exit 1
-fi
-
-echo "Resolved tag '${GIT_TAG}' to commit: ${COMMIT_SHA}" >&2
-
-# Find workflow runs for this commit
-echo "Searching for '${WORKFLOW_NAME}' workflow runs for commit: ${COMMIT_SHA}" >&2
-
-# Get workflow runs for the commit, filter by workflow name and successful status
-RUN_DATA=$(gh run list \
- --repo "${REPOSITORY}" \
- --commit "${COMMIT_SHA}" \
- --workflow "${WORKFLOW_NAME}" \
- --status completed \
- --json databaseId,workflowName,status,conclusion,headSha \
- --limit 10)
-
-if [[ -z "${RUN_DATA}" || "${RUN_DATA}" == "[]" ]]; then
- echo "Error: No completed '${WORKFLOW_NAME}' workflow runs found for commit ${COMMIT_SHA}" >&2
- echo "Available workflow runs for this commit:" >&2
- gh run list --repo "${REPOSITORY}" --commit "${COMMIT_SHA}" --limit 10 || true
- exit 1
-fi
-
-# Filter for successful runs (conclusion = success) and extract the run ID from the first one
-RUN_ID=$(echo "${RUN_DATA}" | jq -r '.[] | select(.conclusion == "success") | .databaseId' | head -1)
-
-if [[ -z "${RUN_ID}" || "${RUN_ID}" == "null" ]]; then
- echo "Error: No successful '${WORKFLOW_NAME}' workflow runs found for commit ${COMMIT_SHA}" >&2
- echo "Available workflow runs for this commit:" >&2
- gh run list --repo "$REPOSITORY" --commit "${COMMIT_SHA}" --limit 10 || true
- echo "" >&2
- echo "Completed runs with their conclusions:" >&2
- echo "${RUN_DATA}" | jq -r '.[] | "\(.databaseId): \(.conclusion)"' >&2
- exit 1
-fi
-
-echo "Found workflow run ID: ${RUN_ID} for tag '${GIT_TAG}'" >&2
-
-# Verify the run has the expected artifacts by checking if there are any artifacts
-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
-
-# Output the run ID (this is what gets used by calling scripts)
-echo "${RUN_ID}"
diff --git a/ci/tools/run-tests b/ci/tools/run-tests
deleted file mode 100755
index 8992dfced..000000000
--- a/ci/tools/run-tests
+++ /dev/null
@@ -1,107 +0,0 @@
-#!/usr/bin/env bash
-
-# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-# A utility script to install the correct packages and run the tests.
-
-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. You provided ${#}"
- exit 1
-fi
-if [[ "${1}" != "bindings" && "${1}" != "core" && "${1}" != "pathfinder" ]]; then
- echo "Error: Invalid test module '${1}'. Must be 'bindings', 'core', or 'pathfinder'"
- exit 1
-fi
-
-test_module=${1}
-
-# Unconditionally install pathfinder wheel
-# (it is a direct dependency of bindings, and a transitive dependency of core)
-pushd ./cuda_pathfinder
-echo "Installing pathfinder wheel"
-pwd
-ls
-pip install $(ls *.whl)[test]
-popd
-
-if [[ "${test_module}" == "pathfinder" ]]; then
- pushd ./cuda_pathfinder
- echo "Running pathfinder tests with " \
- "LD:${CUDA_PATHFINDER_TEST_LOAD_NVIDIA_DYNAMIC_LIB_STRICTNESS} " \
- "FH:${CUDA_PATHFINDER_TEST_FIND_NVIDIA_HEADERS_STRICTNESS}"
- pwd
- pytest -ra -s -v tests/ |& tee /tmp/pathfinder_test_log.txt
- # Fail if no "INFO test_" lines are found; capture line count otherwise
- line_count=$(grep '^INFO test_' /tmp/pathfinder_test_log.txt | wc -l)
- echo "Number of \"INFO test_\" lines: $line_count"
- popd
-elif [[ "${test_module}" == "bindings" ]]; then
- pushd "${CUDA_BINDINGS_ARTIFACTS_DIR}"
- echo "Installing bindings wheel"
- pwd
- ls
- if [[ "${LOCAL_CTK}" == 1 ]]; then
- ls "${CUDA_PATH}"
- pip install $(ls *.whl)[test]
- else
- pip install $(ls *.whl)[all,test]
- fi
- popd
- pushd ./cuda_bindings
- echo "Running bindinds tests"
- pwd
- ${SANITIZER_CMD} pytest -rxXs -v tests/
- if [[ "${SKIP_CYTHON_TEST}" == 0 ]]; then
- ${SANITIZER_CMD} pytest -rxXs -v tests/cython
- fi
- popd
-elif [[ "${test_module}" == "core" ]]; then
- # If build/test majors match: cuda.bindings is installed in the previous step.
- # If mismatch: cuda.bindings is installed from the backport branch.
- if [[ "${SKIP_CUDA_BINDINGS_TEST}" == 1 ]]; then
- pushd "${CUDA_BINDINGS_ARTIFACTS_DIR}"
- echo "Installing bindings wheel"
- pwd
- ls
- if [[ "${LOCAL_CTK}" == 1 ]]; then
- pip install *.whl
- else
- pip install $(ls *.whl)[all]
- fi
- popd
- fi
- TEST_CUDA_MAJOR="$(cut -d '.' -f 1 <<< ${CUDA_VER})"
- pushd "${CUDA_CORE_ARTIFACTS_DIR}"
- echo "Installing core wheel"
- pwd
- ls
-
- FREE_THREADING=""
- if python -c 'import sys; assert not sys._is_gil_enabled()' 2> /dev/null; then
- FREE_THREADING+="-ft"
- fi
-
- if [[ "${LOCAL_CTK}" == 1 ]]; then
- # We already installed cuda-bindings, and all CTK components exist locally,
- # so just install the test dependencies.
- pip install $(ls *.whl)["test-cu${TEST_CUDA_MAJOR}${FREE_THREADING}"]
- else
- pip install $(ls *.whl)["cu${TEST_CUDA_MAJOR}","test-cu${TEST_CUDA_MAJOR}${FREE_THREADING}"]
- fi
- popd
- pushd ./cuda_core
- echo "Running core tests"
- pwd
- ${SANITIZER_CMD} pytest -rxXs -v tests/
- # Currently our CI always installs the latest bindings (from either major version).
- # This is not compatible with the test requirements.
- if [[ "${SKIP_CYTHON_TEST}" == 0 ]]; then
- ${SANITIZER_CMD} pytest -rxXs -v tests/cython
- fi
- popd
-fi
diff --git a/ci/tools/setup-sanitizer b/ci/tools/setup-sanitizer
deleted file mode 100755
index e4904ca58..000000000
--- a/ci/tools/setup-sanitizer
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/usr/bin/env bash
-
-# SPDX-FileCopyrightText: Copyright (c) 2025 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
-
-# Setup comppute sanitizer if requested.
-if [[ "${SETUP_SANITIZER}" == 1 ]]; then
- COMPUTE_SANITIZER="${CUDA_HOME}/bin/compute-sanitizer"
- COMPUTE_SANITIZER_VERSION=$(${COMPUTE_SANITIZER} --version | grep -Eo "[0-9]{4}\.[0-9]\.[0-9]" | sed -e 's/\.//g')
- SANITIZER_CMD="${COMPUTE_SANITIZER} --target-processes=all --launch-timeout=0 --tool=memcheck --error-exitcode=1 --report-api-errors=no"
- if [[ "$COMPUTE_SANITIZER_VERSION" -ge 202111 ]]; then
- SANITIZER_CMD="${SANITIZER_CMD} --padding=32"
- fi
-else
- SANITIZER_CMD=""
-fi
-echo "SANITIZER_CMD=${SANITIZER_CMD}" >> $GITHUB_ENV
diff --git a/ci/versions.json b/ci/versions.json
deleted file mode 100644
index 271c69ac3..000000000
--- a/ci/versions.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "cuda": {
- "build": {
- "version": "13.0.1"
- }
- }
-}
diff --git a/conftest.py b/conftest.py
deleted file mode 100644
index 1c4f9d279..000000000
--- a/conftest.py
+++ /dev/null
@@ -1,45 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: Apache-2.0
-
-import os
-import pytest
-
-
-def pytest_collection_modifyitems(config, items):
- cuda_home = os.environ.get("CUDA_HOME")
- for item in items:
- nodeid = item.nodeid.replace("\\", "/")
-
- # Package markers by path
- if (
- nodeid.startswith("cuda_pathfinder/tests/")
- or "/cuda_pathfinder/tests/" in nodeid
- ):
- item.add_marker(pytest.mark.pathfinder)
- if (
- nodeid.startswith("cuda_bindings/tests/")
- or "/cuda_bindings/tests/" in nodeid
- ):
- item.add_marker(pytest.mark.bindings)
- if nodeid.startswith("cuda_core/tests/") or "/cuda_core/tests/" in nodeid:
- item.add_marker(pytest.mark.core)
-
- # Smoke tests
- if nodeid.startswith("tests/integration/") or "/tests/integration/" in nodeid:
- item.add_marker(pytest.mark.smoke)
-
- # Cython tests (any tests/cython subtree)
- if (
- "/tests/cython/" in nodeid
- or nodeid.endswith("/tests/cython")
- or ("/cython/" in nodeid and "/tests/" in nodeid)
- ):
- item.add_marker(pytest.mark.cython)
-
- # Gate core cython tests on CUDA_HOME
- if "core" in item.keywords and not cuda_home:
- item.add_marker(
- pytest.mark.skip(
- reason="CUDA_HOME not set; skipping core cython tests"
- )
- )
diff --git a/cuda_bindings/DESCRIPTION.rst b/cuda_bindings/DESCRIPTION.rst
deleted file mode 100644
index 30bcb9a7c..000000000
--- a/cuda_bindings/DESCRIPTION.rst
+++ /dev/null
@@ -1,15 +0,0 @@
-.. SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-.. SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
-
-****************************************
-cuda-bindings: Low-level CUDA interfaces
-****************************************
-
-`cuda.bindings `_ is a standard set of low-level interfaces, providing full coverage of and 1:1 access to the CUDA host APIs from Python. Checkout the `Overview `_ for the workflow and performance results.
-
-* `Repository `_
-* `Documentation `_
-* `Examples `_
-* `Issue tracker `_
-
-For the installation instruction, please refer to the `Installation `_ page.
diff --git a/cuda_bindings/LICENSE b/cuda_bindings/LICENSE
deleted file mode 100644
index a5a65097c..000000000
--- a/cuda_bindings/LICENSE
+++ /dev/null
@@ -1,48 +0,0 @@
-NVIDIA SOFTWARE LICENSE
-
-This license is a legal agreement between you and NVIDIA Corporation ("NVIDIA") and governs your use of the NVIDIA CUDA Python software and materials provided hereunder ("SOFTWARE").
-
-This license can be accepted only by an adult of legal age of majority in the country in which the SOFTWARE is used. If you are under the legal age of majority, you must ask your parent or legal guardian to consent to this license. By taking delivery of the SOFTWARE, you affirm that you have reached the legal age of majority, you accept the terms of this license, and you take legal and financial responsibility for the actions of your permitted users.
-
-You agree to use the SOFTWARE only for purposes that are permitted by (a) this license, and (b) any applicable law, regulation or generally accepted practices or guidelines in the relevant jurisdictions.
-
-1. LICENSE. Subject to the terms of this license, NVIDIA grants you a non-exclusive limited license to: (a) install and use the SOFTWARE, and (b) distribute the SOFTWARE subject to the distribution requirements described in this license. NVIDIA reserves all rights, title and interest in and to the SOFTWARE not expressly granted to you under this license.
-
-2. DISTRIBUTION REQUIREMENTS. These are the distribution requirements for you to exercise the distribution grant:
-a. The terms under which you distribute the SOFTWARE must be consistent with the terms of this license, including (without limitation) terms relating to the license grant and license restrictions and protection of NVIDIA's intellectual property rights.
-b. You agree to notify NVIDIA in writing of any known or suspected distribution or use of the SOFTWARE not in compliance with the requirements of this license, and to enforce the terms of your agreements with respect to distributed SOFTWARE.
-
-3. LIMITATIONS. Your license to use the SOFTWARE is restricted as follows:
-a. The SOFTWARE is licensed for you to develop applications only for use in systems with NVIDIA GPUs.
-b. You may not reverse engineer, decompile or disassemble, or remove copyright or other proprietary notices from any portion of the SOFTWARE or copies of the SOFTWARE.
-c. You may not modify or create derivative works of any portion of the SOFTWARE.
-d. You may not bypass, disable, or circumvent any technical measure, encryption, security, digital rights management or authentication mechanism in the SOFTWARE.
-e. You may not use the SOFTWARE in any manner that would cause it to become subject to an open source software license. As examples, licenses that require as a condition of use, modification, and/or distribution that the SOFTWARE be (i) disclosed or distributed in source code form; (ii) licensed for the purpose of making derivative works; or (iii) redistributable at no charge.
-f. Unless you have an agreement with NVIDIA for this purpose, you may not use the SOFTWARE with any system or application where the use or failure of the system or application can reasonably be expected to threaten or result in personal injury, death, or catastrophic loss. Examples include use in avionics, navigation, military, medical, life support or other life critical applications. NVIDIA does not design, test or manufacture the SOFTWARE for these critical uses and NVIDIA shall not be liable to you or any third party, in whole or in part, for any claims or damages arising from such uses.
-g. You agree to defend, indemnify and hold harmless NVIDIA and its affiliates, and their respective employees, contractors, agents, officers and directors, from and against any and all claims, damages, obligations, losses, liabilities, costs or debt, fines, restitutions and expenses (including but not limited to attorney's fees and costs incident to establishing the right of indemnification) arising out of or related to use of the SOFTWARE outside of the scope of this Agreement, or not in compliance with its terms.
-
-4. PRE-RELEASE. SOFTWARE versions identified as alpha, beta, preview, early access or otherwise as pre-release may not be fully functional, may contain errors or design flaws, and may have reduced or different security, privacy, availability, and reliability standards relative to commercial versions of NVIDIA software and materials. You may use a pre-release SOFTWARE version at your own risk, understanding that these versions are not intended for use in production or business-critical systems.
-
-5. OWNERSHIP. The SOFTWARE and the related intellectual property rights therein are and will remain the sole and exclusive property of NVIDIA or its licensors. The SOFTWARE is copyrighted and protected by the laws of the United States and other countries, and international treaty provisions. NVIDIA may make changes to the SOFTWARE, at any time without notice, but is not obligated to support or update the SOFTWARE.
-
-6. COMPONENTS UNDER OTHER LICENSES. The SOFTWARE may include NVIDIA or third-party components with separate legal notices or terms as may be described in proprietary notices accompanying the SOFTWARE. If and to the extent there is a conflict between the terms in this license and the license terms associated with a component, the license terms associated with the components control only to the extent necessary to resolve the conflict.
-
-7. FEEDBACK. You may, but don't have to, provide to NVIDIA any Feedback. "Feedback" means any suggestions, bug fixes, enhancements, modifications, feature requests or other feedback regarding the SOFTWARE. For any Feedback that you voluntarily provide, you hereby grant NVIDIA and its affiliates a perpetual, non-exclusive, worldwide, irrevocable license to use, reproduce, modify, license, sublicense (through multiple tiers of sublicensees), and distribute (through multiple tiers of distributors) the Feedback without the payment of any royalties or fees to you. NVIDIA will use Feedback at its choice.
-
-8. NO WARRANTIES. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT ANY EXPRESS OR IMPLIED WARRANTY OF ANY KIND INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT, OR FITNESS FOR A PARTICULAR PURPOSE. NVIDIA DOES NOT WARRANT THAT THE SOFTWARE WILL MEET YOUR REQUIREMENTS OR THAT THE OPERATION THEREOF WILL BE UNINTERRUPTED OR ERROR-FREE, OR THAT ALL ERRORS WILL BE CORRECTED.
-
-9. LIMITATIONS OF LIABILITY. TO THE MAXIMUM EXTENT PERMITTED BY LAW, NVIDIA AND ITS AFFILIATES SHALL NOT BE LIABLE FOR ANY SPECIAL, INCIDENTAL, PUNITIVE OR CONSEQUENTIAL DAMAGES, OR ANY LOST PROFITS, PROJECT DELAYS, LOSS OF USE, LOSS OF DATA OR LOSS OF GOODWILL, OR THE COSTS OF PROCURING SUBSTITUTE PRODUCTS, ARISING OUT OF OR IN CONNECTION WITH THIS LICENSE OR THE USE OR PERFORMANCE OF THE SOFTWARE, WHETHER SUCH LIABILITY ARISES FROM ANY CLAIM BASED UPON BREACH OF CONTRACT, BREACH OF WARRANTY, TORT (INCLUDING NEGLIGENCE), PRODUCT LIABILITY OR ANY OTHER CAUSE OF ACTION OR THEORY OF LIABILITY, EVEN IF NVIDIA HAS PREVIOUSLY BEEN ADVISED OF, OR COULD REASONABLY HAVE FORESEEN, THE POSSIBILITY OF SUCH DAMAGES. IN NO EVENT WILL NVIDIA'S AND ITS AFFILIATES TOTAL CUMULATIVE LIABILITY UNDER OR ARISING OUT OF THIS LICENSE EXCEED US$10.00. THE NATURE OF THE LIABILITY OR THE NUMBER OF CLAIMS OR SUITS SHALL NOT ENLARGE OR EXTEND THIS LIMIT.
-
-10. TERMINATION. Your rights under this license will terminate automatically without notice from NVIDIA if you fail to comply with any term and condition of this license or if you commence or participate in any legal proceeding against NVIDIA with respect to the SOFTWARE. NVIDIA may terminate this license with advance written notice to you if NVIDIA decides to no longer provide the SOFTWARE in a country or, in NVIDIA's sole discretion, the continued use of it is no longer commercially viable. Upon any termination of this license, you agree to promptly discontinue use of the SOFTWARE and destroy all copies in your possession or control. Your prior distributions in accordance with this license are not affected by the termination of this license. All provisions of this license will survive termination, except for the license granted to you.
-
-11. APPLICABLE LAW. This license will be governed in all respects by the laws of the United States and of the State of Delaware as those laws are applied to contracts entered into and performed entirely within Delaware by Delaware residents, without regard to the conflicts of laws principles. The United Nations Convention on Contracts for the International Sale of Goods is specifically disclaimed. You agree to all terms of this Agreement in the English language. The state or federal courts residing in Santa Clara County, California shall have exclusive jurisdiction over any dispute or claim arising out of this license. Notwithstanding this, you agree that NVIDIA shall still be allowed to apply for injunctive remedies or an equivalent type of urgent legal relief in any jurisdiction.
-
-12. NO ASSIGNMENT. This license and your rights and obligations thereunder may not be assigned by you by any means or operation of law without NVIDIA's permission. Any attempted assignment not approved by NVIDIA in writing shall be void and of no effect.
-
-13. EXPORT. The SOFTWARE is subject to United States export laws and regulations. You agree that you will not ship, transfer or export the SOFTWARE into any country, or use the SOFTWARE in any manner, prohibited by the United States Bureau of Industry and Security or economic sanctions regulations administered by the U.S. Department of Treasury's Office of Foreign Assets Control (OFAC), or any applicable export laws, restrictions or regulations. These laws include restrictions on destinations, end users and end use. By accepting this license, you confirm that you are not a resident or citizen of any country currently embargoed by the U.S. and that you are not otherwise prohibited from receiving the SOFTWARE.
-
-14. GOVERNMENT USE. The SOFTWARE has been developed entirely at private expense and is "commercial items" consisting of "commercial computer software" and "commercial computer software documentation" provided with RESTRICTED RIGHTS. Use, duplication or disclosure by the U.S. Government or a U.S. Government subcontractor is subject to the restrictions in this license pursuant to DFARS 227.7202-3(a) or as set forth in subparagraphs (b)(1) and (2) of the Commercial Computer Software - Restricted Rights clause at FAR 52.227-19, as applicable. Contractor/manufacturer is NVIDIA, 2788 San Tomas Expressway, Santa Clara, CA 95051.
-
-15. ENTIRE AGREEMENT. This license is the final, complete and exclusive agreement between the parties relating to the subject matter of this license and supersedes all prior or contemporaneous understandings and agreements relating to this subject matter, whether oral or written. If any court of competent jurisdiction determines that any provision of this license is illegal, invalid or unenforceable, the remaining provisions will remain in full force and effect. This license may only be modified in a writing signed by an authorized representative of each party.
-
-(v. May 12, 2021)
diff --git a/cuda_bindings/MANIFEST.in b/cuda_bindings/MANIFEST.in
deleted file mode 100644
index a98aa53f2..000000000
--- a/cuda_bindings/MANIFEST.in
+++ /dev/null
@@ -1,8 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
-
-recursive-include cuda/ *.pyx *.pxd *.pxi
-# at least with setuptools 75.0.0 this folder was added erroneously
-# to the payload, causing file copying to the build environment failed
-exclude cuda/bindings cuda?bindings
-exclude cuda/bindings/_bindings cuda?bindings?_bindings
diff --git a/cuda_bindings/README.md b/cuda_bindings/README.md
deleted file mode 100644
index a0657706d..000000000
--- a/cuda_bindings/README.md
+++ /dev/null
@@ -1,67 +0,0 @@
-# `cuda.bindings`: Low-level CUDA interfaces
-
-`cuda.bindings` is a standard set of low-level interfaces, providing full coverage of and access to the CUDA host APIs from Python. Checkout the [Overview page](https://nvidia.github.io/cuda-python/cuda-bindings/latest/overview.html) for the workflow and performance results.
-
-## Installing
-
-Please refer to the [Installation page](https://nvidia.github.io/cuda-python/cuda-bindings/latest/install.html) for instructions and required/optional dependencies.
-
-## 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).
-
-## Testing
-
-Testing dependencies can be installed using the `[test]` optional dependency identifier. For example, `pip install -v -e .[test]`.
-
-Multiple testing options are available:
-
-* Python Unit Tests
-* Cython Unit Tests
-* Samples
-* Benchmark
-
-### Python Unit Tests
-
-Responsible for validating different binding usage patterns. Unit test `test_kernelParams.py` is particularly special since it demonstrates various approaches in setting up kernel launch parameters.
-
-To run these tests:
-* `python -m pytest tests/` against editable installations
-* `pytest tests/` against installed packages
-
-### Cython Unit 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_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.
-
-To run these tests:
-* `python -m pytest tests/cython/` against editable installations
-* `pytest tests/cython/` against installed packages
-
-### Samples
-
-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:
-
-* `examples/extra/jit_program_test.py`: Demonstrates the use of the API to compile and
- launch a kernel on the device. Includes device memory allocation /
- deallocation, transfers between host and device, creation and usage of
- streams, and context management.
-* `examples/extra/numba_emm_plugin.py`: Implements a Numba External Memory Management
- plugin, showing that this CUDA Python Driver API can coexist with other
- wrappers of the driver API.
-
-To run these samples:
-* `python -m pytest tests/cython/` against editable installations
-* `pytest tests/cython/` against installed packages
-
-### Benchmark
-
-Allows for analyzing binding performance using plugin [pytest-benchmark](https://github.com/ionelmc/pytest-benchmark).
-
-To run these benchmarks:
-* `python -m pytest --benchmark-only benchmarks/` against editable installations
-* `pytest --benchmark-only benchmarks/` against installed packages
diff --git a/cuda_bindings/benchmarks/conftest.py b/cuda_bindings/benchmarks/conftest.py
deleted file mode 100644
index 2787f41d1..000000000
--- a/cuda_bindings/benchmarks/conftest.py
+++ /dev/null
@@ -1,93 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2021-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
-
-import numpy as np
-import pytest
-
-from cuda.bindings import driver as cuda
-from cuda.bindings import nvrtc
-from cuda.bindings import runtime as cudart
-
-
-def ASSERT_DRV(err):
- if isinstance(err, cuda.CUresult):
- if err != cuda.CUresult.CUDA_SUCCESS:
- raise RuntimeError(f"Cuda Error: {err}")
- elif isinstance(err, cudart.cudaError_t):
- if err != cudart.cudaError_t.cudaSuccess:
- raise RuntimeError(f"Cudart 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}")
-
-
-@pytest.fixture(scope="function")
-def init_cuda():
- # Initialize
- (err,) = cuda.cuInit(0)
- ASSERT_DRV(err)
- err, device = cuda.cuDeviceGet(0)
- ASSERT_DRV(err)
- err, ctx = cuda.cuCtxCreate(None, 0, device)
- ASSERT_DRV(err)
-
- # create stream
- err, stream = cuda.cuStreamCreate(cuda.CUstream_flags.CU_STREAM_NON_BLOCKING.value)
- ASSERT_DRV(err)
-
- yield device, ctx, stream
-
- (err,) = cuda.cuStreamDestroy(stream)
- ASSERT_DRV(err)
- (err,) = cuda.cuCtxDestroy(ctx)
- ASSERT_DRV(err)
-
-
-@pytest.fixture(scope="function")
-def load_module():
- module = None
-
- def _load_module(kernel_string, device):
- nonlocal module
- # Get module
- err, major = cuda.cuDeviceGetAttribute(
- cuda.CUdevice_attribute.CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MAJOR, device
- )
- ASSERT_DRV(err)
- err, minor = cuda.cuDeviceGetAttribute(
- cuda.CUdevice_attribute.CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MINOR, device
- )
- ASSERT_DRV(err)
-
- err, prog = nvrtc.nvrtcCreateProgram(str.encode(kernel_string), b"kernelString.cu", 0, [], [])
- ASSERT_DRV(err)
- opts = [b"--fmad=false", bytes("--gpu-architecture=sm_" + str(major) + str(minor), "ascii")]
- (err,) = nvrtc.nvrtcCompileProgram(prog, 2, opts)
-
- err_log, logSize = nvrtc.nvrtcGetProgramLogSize(prog)
- ASSERT_DRV(err_log)
- log = b" " * logSize
- (err_log,) = nvrtc.nvrtcGetProgramLog(prog, log)
- ASSERT_DRV(err_log)
- result = log.decode()
- if len(result) > 1:
- print(result)
-
- ASSERT_DRV(err)
- err, cubinSize = nvrtc.nvrtcGetCUBINSize(prog)
- ASSERT_DRV(err)
- cubin = b" " * cubinSize
- (err,) = nvrtc.nvrtcGetCUBIN(prog, cubin)
- ASSERT_DRV(err)
- cubin = np.char.array(cubin)
- err, module = cuda.cuModuleLoadData(cubin)
- ASSERT_DRV(err)
-
- return module
-
- yield _load_module
-
- (err,) = cuda.cuModuleUnload(module)
- ASSERT_DRV(err)
diff --git a/cuda_bindings/benchmarks/kernels.py b/cuda_bindings/benchmarks/kernels.py
deleted file mode 100644
index 36646fba0..000000000
--- a/cuda_bindings/benchmarks/kernels.py
+++ /dev/null
@@ -1,159 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2021-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
-
-kernel_string = """\
-#define ITEM_PARAM(x, T) T x
-#define REP1(x, T) , ITEM_PARAM(x, T)
-#define REP2(x, T) REP1(x##0, T) REP1(x##1, T)
-#define REP4(x, T) REP2(x##0, T) REP2(x##1, T)
-#define REP8(x, T) REP4(x##0, T) REP4(x##1, T)
-#define REP16(x, T) REP8(x##0, T) REP8(x##1, T)
-#define REP32(x, T) REP16(x##0, T) REP16(x##1, T)
-#define REP64(x, T) REP32(x##0, T) REP32(x##1, T)
-#define REP128(x, T) REP64(x##0, T) REP64(x##1, T)
-#define REP256(x, T) REP128(x##0, T) REP128(x##1, T)
-
-template
-struct KernelFunctionParam
-{
- unsigned char p[maxBytes];
-};
-
-extern "C" __global__ void small_kernel(float *f)
-{
- *f = 0.0f;
-}
-
-extern "C" __global__ void empty_kernel()
-{
- return;
-}
-
-extern "C" __global__
-void small_kernel_512_args(
- ITEM_PARAM(F, int*)
- REP1(A, int*)
- REP2(A, int*)
- REP4(A, int*)
- REP8(A, int*)
- REP16(A, int*)
- REP32(A, int*)
- REP64(A, int*)
- REP128(A, int*)
- REP256(A, int*))
-{
- *F = 0;
-}
-
-extern "C" __global__
-void small_kernel_512_bools(
- ITEM_PARAM(F, bool)
- REP1(A, bool)
- REP2(A, bool)
- REP4(A, bool)
- REP8(A, bool)
- REP16(A, bool)
- REP32(A, bool)
- REP64(A, bool)
- REP128(A, bool)
- REP256(A, bool))
-{
- return;
-}
-
-extern "C" __global__
-void small_kernel_512_ints(
- ITEM_PARAM(F, int)
- REP1(A, int)
- REP2(A, int)
- REP4(A, int)
- REP8(A, int)
- REP16(A, int)
- REP32(A, int)
- REP64(A, int)
- REP128(A, int)
- REP256(A, int))
-{
- return;
-}
-
-extern "C" __global__
-void small_kernel_512_doubles(
- ITEM_PARAM(F, double)
- REP1(A, double)
- REP2(A, double)
- REP4(A, double)
- REP8(A, double)
- REP16(A, double)
- REP32(A, double)
- REP64(A, double)
- REP128(A, double)
- REP256(A, double))
-{
- return;
-}
-
-extern "C" __global__
-void small_kernel_512_chars(
- ITEM_PARAM(F, char)
- REP1(A, char)
- REP2(A, char)
- REP4(A, char)
- REP8(A, char)
- REP16(A, char)
- REP32(A, char)
- REP64(A, char)
- REP128(A, char)
- REP256(A, char))
-{
- return;
-}
-
-extern "C" __global__
-void small_kernel_512_longlongs(
- ITEM_PARAM(F, long long)
- REP1(A, long long)
- REP2(A, long long)
- REP4(A, long long)
- REP8(A, long long)
- REP16(A, long long)
- REP32(A, long long)
- REP64(A, long long)
- REP128(A, long long)
- REP256(A, long long))
-{
- return;
-}
-
-extern "C" __global__
-void small_kernel_256_args(
- ITEM_PARAM(F, int*)
- REP1(A, int*)
- REP2(A, int*)
- REP4(A, int*)
- REP8(A, int*)
- REP16(A, int*)
- REP32(A, int*)
- REP64(A, int*)
- REP128(A, int*))
-{
- *F = 0;
-}
-
-extern "C" __global__
-void small_kernel_16_args(
- ITEM_PARAM(F, int*)
- REP1(A, int*)
- REP2(A, int*)
- REP4(A, int*)
- REP8(A, int*))
-{
- *F = 0;
-}
-
-extern "C" __global__ void small_kernel_2048B(KernelFunctionParam<2048> param)
-{
- // Do not touch param to prevent compiler from copying
- // the whole structure from const bank to lmem.
-}
-"""
diff --git a/cuda_bindings/benchmarks/pytest.ini b/cuda_bindings/benchmarks/pytest.ini
deleted file mode 100644
index e4b518778..000000000
--- a/cuda_bindings/benchmarks/pytest.ini
+++ /dev/null
@@ -1,6 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2021-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
-
-[pytest]
-required_plugins = pytest-benchmark
-addopts = --benchmark-skip
diff --git a/cuda_bindings/benchmarks/test_cupy.py b/cuda_bindings/benchmarks/test_cupy.py
deleted file mode 100644
index 76dd6e6a4..000000000
--- a/cuda_bindings/benchmarks/test_cupy.py
+++ /dev/null
@@ -1,199 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2021-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
-
-import ctypes
-
-import pytest
-
-try:
- import cupy
-
- skip_tests = False
-except ImportError:
- skip_tests = True
-
-from kernels import kernel_string
-
-
-def launch(kernel, args=()):
- kernel((1,), (1,), args)
-
-
-# Measure launch latency with no parmaeters
-@pytest.mark.skipif(skip_tests, reason="cupy is not installed")
-@pytest.mark.benchmark(group="cupy")
-def test_launch_latency_empty_kernel(benchmark):
- module = cupy.RawModule(code=kernel_string)
- kernel = module.get_function("empty_kernel")
-
- stream = cupy.cuda.stream.Stream(non_blocking=True)
-
- with stream:
- benchmark(launch, kernel)
- stream.synchronize()
-
-
-# Measure launch latency with a single parameter
-@pytest.mark.skipif(skip_tests, reason="cupy is not installed")
-@pytest.mark.benchmark(group="cupy")
-def test_launch_latency_small_kernel(benchmark):
- module = cupy.RawModule(code=kernel_string)
- kernel = module.get_function("small_kernel")
- cupy.cuda.set_allocator()
- arg = cupy.cuda.alloc(ctypes.sizeof(ctypes.c_float))
-
- stream = cupy.cuda.stream.Stream(non_blocking=True)
-
- with stream:
- benchmark(launch, kernel, (arg,))
- stream.synchronize()
-
-
-# Measure launch latency with many parameters using builtin parameter packing
-@pytest.mark.skipif(skip_tests, reason="cupy is not installed")
-@pytest.mark.benchmark(group="cupy")
-def test_launch_latency_small_kernel_512_args(benchmark):
- module = cupy.RawModule(code=kernel_string)
- kernel = module.get_function("small_kernel_512_args")
- cupy.cuda.set_allocator()
-
- args = []
- for _ in range(512):
- args.append(cupy.cuda.alloc(ctypes.sizeof(ctypes.c_int)))
- args = tuple(args)
-
- stream = cupy.cuda.stream.Stream(non_blocking=True)
-
- with stream:
- benchmark(launch, kernel, args)
- stream.synchronize()
-
-
-# Measure launch latency with many parameters using builtin parameter packing
-@pytest.mark.skipif(skip_tests, reason="cupy is not installed")
-@pytest.mark.benchmark(group="cupy")
-def test_launch_latency_small_kernel_512_bools(benchmark):
- module = cupy.RawModule(code=kernel_string)
- kernel = module.get_function("small_kernel_512_bools")
- cupy.cuda.set_allocator()
-
- args = [True] * 512
- args = tuple(args)
-
- stream = cupy.cuda.stream.Stream(non_blocking=True)
-
- with stream:
- benchmark(launch, kernel, args)
- stream.synchronize()
-
-
-# Measure launch latency with many parameters using builtin parameter packing
-@pytest.mark.skipif(skip_tests, reason="cupy is not installed")
-@pytest.mark.benchmark(group="cupy")
-def test_launch_latency_small_kernel_512_doubles(benchmark):
- module = cupy.RawModule(code=kernel_string)
- kernel = module.get_function("small_kernel_512_doubles")
- cupy.cuda.set_allocator()
-
- args = [1.2345] * 512
- args = tuple(args)
-
- stream = cupy.cuda.stream.Stream(non_blocking=True)
-
- with stream:
- benchmark(launch, kernel, args)
- stream.synchronize()
-
-
-# Measure launch latency with many parameters using builtin parameter packing
-@pytest.mark.skipif(skip_tests, reason="cupy is not installed")
-@pytest.mark.benchmark(group="cupy")
-def test_launch_latency_small_kernel_512_ints(benchmark):
- module = cupy.RawModule(code=kernel_string)
- kernel = module.get_function("small_kernel_512_ints")
- cupy.cuda.set_allocator()
-
- args = [123] * 512
- args = tuple(args)
-
- stream = cupy.cuda.stream.Stream(non_blocking=True)
-
- with stream:
- benchmark(launch, kernel, args)
- stream.synchronize()
-
-
-# Measure launch latency with many parameters using builtin parameter packing
-@pytest.mark.skipif(skip_tests, reason="cupy is not installed")
-@pytest.mark.benchmark(group="cupy")
-def test_launch_latency_small_kernel_512_bytes(benchmark):
- module = cupy.RawModule(code=kernel_string)
- kernel = module.get_function("small_kernel_512_chars")
- cupy.cuda.set_allocator()
-
- args = [127] * 512
- args = tuple(args)
-
- stream = cupy.cuda.stream.Stream(non_blocking=True)
-
- with stream:
- benchmark(launch, kernel, args)
- stream.synchronize()
-
-
-# Measure launch latency with many parameters using builtin parameter packing
-@pytest.mark.skipif(skip_tests, reason="cupy is not installed")
-@pytest.mark.benchmark(group="cupy")
-def test_launch_latency_small_kernel_512_longlongs(benchmark):
- module = cupy.RawModule(code=kernel_string)
- kernel = module.get_function("small_kernel_512_longlongs")
- cupy.cuda.set_allocator()
-
- args = [9223372036854775806] * 512
- args = tuple(args)
-
- stream = cupy.cuda.stream.Stream(non_blocking=True)
-
- with stream:
- benchmark(launch, kernel, args)
- stream.synchronize()
-
-
-# Measure launch latency with many parameters using builtin parameter packing
-@pytest.mark.skipif(skip_tests, reason="cupy is not installed")
-@pytest.mark.benchmark(group="cupy")
-def test_launch_latency_small_kernel_256_args(benchmark):
- module = cupy.RawModule(code=kernel_string)
- kernel = module.get_function("small_kernel_256_args")
- cupy.cuda.set_allocator()
-
- args = []
- for _ in range(256):
- args.append(cupy.cuda.alloc(ctypes.sizeof(ctypes.c_int)))
- args = tuple(args)
-
- stream = cupy.cuda.stream.Stream(non_blocking=True)
-
- with stream:
- benchmark(launch, kernel, args)
- stream.synchronize()
-
-
-# Measure launch latency with many parameters using builtin parameter packing
-@pytest.mark.skipif(skip_tests, reason="cupy is not installed")
-@pytest.mark.benchmark(group="cupy")
-def test_launch_latency_small_kernel_16_args(benchmark):
- module = cupy.RawModule(code=kernel_string)
- kernel = module.get_function("small_kernel_16_args")
- cupy.cuda.set_allocator()
-
- args = []
- for _ in range(16):
- args.append(cupy.cuda.alloc(ctypes.sizeof(ctypes.c_int)))
- args = tuple(args)
-
- stream = cupy.cuda.stream.Stream(non_blocking=True)
-
- with stream:
- benchmark(launch, kernel, args)
- stream.synchronize()
diff --git a/cuda_bindings/benchmarks/test_launch_latency.py b/cuda_bindings/benchmarks/test_launch_latency.py
deleted file mode 100755
index 8fb2ef683..000000000
--- a/cuda_bindings/benchmarks/test_launch_latency.py
+++ /dev/null
@@ -1,336 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2021-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
-
-import ctypes
-
-import pytest
-from conftest import ASSERT_DRV
-from kernels import kernel_string
-
-from cuda.bindings import driver as cuda
-
-
-def launch(kernel, stream, args=(), arg_types=()):
- cuda.cuLaunchKernel(
- kernel,
- 1,
- 1,
- 1, # grid dim
- 1,
- 1,
- 1, # block dim
- 0,
- stream, # shared mem and stream
- (args, arg_types),
- 0,
- ) # arguments
-
-
-def launch_packed(kernel, stream, params):
- cuda.cuLaunchKernel(
- kernel,
- 1,
- 1,
- 1, # grid dim
- 1,
- 1,
- 1, # block dim
- 0,
- stream, # shared mem and stream
- params,
- 0,
- ) # arguments
-
-
-# Measure launch latency with no parmaeters
-@pytest.mark.benchmark(group="launch-latency")
-def test_launch_latency_empty_kernel(benchmark, init_cuda, load_module):
- device, ctx, stream = init_cuda
- module = load_module(kernel_string, device)
-
- err, func = cuda.cuModuleGetFunction(module, b"empty_kernel")
- ASSERT_DRV(err)
-
- benchmark(launch, func, stream)
-
- cuda.cuCtxSynchronize()
-
-
-# Measure launch latency with a single parameter
-@pytest.mark.benchmark(group="launch-latency")
-def test_launch_latency_small_kernel(benchmark, init_cuda, load_module):
- device, ctx, stream = init_cuda
- module = load_module(kernel_string, device)
-
- err, func = cuda.cuModuleGetFunction(module, b"small_kernel")
- ASSERT_DRV(err)
-
- err, f = cuda.cuMemAlloc(ctypes.sizeof(ctypes.c_float))
- ASSERT_DRV(err)
-
- benchmark(launch, func, stream, args=(f,), arg_types=(None,))
-
- cuda.cuCtxSynchronize()
-
- (err,) = cuda.cuMemFree(f)
- ASSERT_DRV(err)
-
-
-# Measure launch latency with many parameters using builtin parameter packing
-@pytest.mark.benchmark(group="launch-latency")
-def test_launch_latency_small_kernel_512_args(benchmark, init_cuda, load_module):
- device, ctx, stream = init_cuda
- module = load_module(kernel_string, device)
-
- err, func = cuda.cuModuleGetFunction(module, b"small_kernel_512_args")
- ASSERT_DRV(err)
-
- args = []
- arg_types = [None] * 512
- for _ in arg_types:
- err, p = cuda.cuMemAlloc(ctypes.sizeof(ctypes.c_int))
- ASSERT_DRV(err)
- args.append(p)
-
- args = tuple(args)
- arg_types = tuple(arg_types)
-
- benchmark(launch, func, stream, args=args, arg_types=arg_types)
-
- cuda.cuCtxSynchronize()
-
- for p in args:
- (err,) = cuda.cuMemFree(p)
- ASSERT_DRV(err)
-
-
-@pytest.mark.benchmark(group="launch-latency")
-def test_launch_latency_small_kernel_512_bools(benchmark, init_cuda, load_module):
- device, ctx, stream = init_cuda
- module = load_module(kernel_string, device)
-
- err, func = cuda.cuModuleGetFunction(module, b"small_kernel_512_bools")
- ASSERT_DRV(err)
-
- args = [True] * 512
- arg_types = [ctypes.c_bool] * 512
-
- args = tuple(args)
- arg_types = tuple(arg_types)
-
- benchmark(launch, func, stream, args=args, arg_types=arg_types)
-
- cuda.cuCtxSynchronize()
-
-
-@pytest.mark.benchmark(group="launch-latency")
-def test_launch_latency_small_kernel_512_doubles(benchmark, init_cuda, load_module):
- device, ctx, stream = init_cuda
- module = load_module(kernel_string, device)
-
- err, func = cuda.cuModuleGetFunction(module, b"small_kernel_512_doubles")
- ASSERT_DRV(err)
-
- args = [1.2345] * 512
- arg_types = [ctypes.c_double] * 512
-
- args = tuple(args)
- arg_types = tuple(arg_types)
-
- benchmark(launch, func, stream, args=args, arg_types=arg_types)
-
- cuda.cuCtxSynchronize()
-
-
-@pytest.mark.benchmark(group="launch-latency")
-def test_launch_latency_small_kernel_512_ints(benchmark, init_cuda, load_module):
- device, ctx, stream = init_cuda
- module = load_module(kernel_string, device)
-
- err, func = cuda.cuModuleGetFunction(module, b"small_kernel_512_ints")
- ASSERT_DRV(err)
-
- args = [123] * 512
- arg_types = [ctypes.c_int] * 512
-
- args = tuple(args)
- arg_types = tuple(arg_types)
-
- benchmark(launch, func, stream, args=args, arg_types=arg_types)
-
- cuda.cuCtxSynchronize()
-
-
-@pytest.mark.benchmark(group="launch-latency")
-def test_launch_latency_small_kernel_512_bytes(benchmark, init_cuda, load_module):
- device, ctx, stream = init_cuda
- module = load_module(kernel_string, device)
-
- err, func = cuda.cuModuleGetFunction(module, b"small_kernel_512_chars")
- ASSERT_DRV(err)
-
- args = [127] * 512
- arg_types = [ctypes.c_byte] * 512
-
- args = tuple(args)
- arg_types = tuple(arg_types)
-
- benchmark(launch, func, stream, args=args, arg_types=arg_types)
-
- cuda.cuCtxSynchronize()
-
-
-@pytest.mark.benchmark(group="launch-latency")
-def test_launch_latency_small_kernel_512_longlongs(benchmark, init_cuda, load_module):
- device, ctx, stream = init_cuda
- module = load_module(kernel_string, device)
-
- err, func = cuda.cuModuleGetFunction(module, b"small_kernel_512_longlongs")
- ASSERT_DRV(err)
-
- args = [9223372036854775806] * 512
- arg_types = [ctypes.c_longlong] * 512
-
- args = tuple(args)
- arg_types = tuple(arg_types)
-
- benchmark(launch, func, stream, args=args, arg_types=arg_types)
-
- cuda.cuCtxSynchronize()
-
-
-# Measure launch latency with many parameters using builtin parameter packing
-@pytest.mark.benchmark(group="launch-latency")
-def test_launch_latency_small_kernel_256_args(benchmark, init_cuda, load_module):
- device, ctx, stream = init_cuda
- module = load_module(kernel_string, device)
-
- err, func = cuda.cuModuleGetFunction(module, b"small_kernel_256_args")
- ASSERT_DRV(err)
-
- args = []
- arg_types = [None] * 256
- for _ in arg_types:
- err, p = cuda.cuMemAlloc(ctypes.sizeof(ctypes.c_int))
- ASSERT_DRV(err)
- args.append(p)
-
- args = tuple(args)
- arg_types = tuple(arg_types)
-
- benchmark(launch, func, stream, args=args, arg_types=arg_types)
-
- cuda.cuCtxSynchronize()
-
- for p in args:
- (err,) = cuda.cuMemFree(p)
- ASSERT_DRV(err)
-
-
-# Measure launch latency with many parameters using builtin parameter packing
-@pytest.mark.benchmark(group="launch-latency")
-def test_launch_latency_small_kernel_16_args(benchmark, init_cuda, load_module):
- device, ctx, stream = init_cuda
- module = load_module(kernel_string, device)
-
- err, func = cuda.cuModuleGetFunction(module, b"small_kernel_16_args")
- ASSERT_DRV(err)
-
- args = []
- arg_types = [None] * 16
- for _ in arg_types:
- err, p = cuda.cuMemAlloc(ctypes.sizeof(ctypes.c_int))
- ASSERT_DRV(err)
- args.append(p)
-
- args = tuple(args)
- arg_types = tuple(arg_types)
-
- benchmark(launch, func, stream, args=args, arg_types=arg_types)
-
- cuda.cuCtxSynchronize()
-
- for p in args:
- (err,) = cuda.cuMemFree(p)
- ASSERT_DRV(err)
-
-
-# Measure launch latency with many parameters, excluding parameter packing
-@pytest.mark.benchmark(group="launch-latency")
-def test_launch_latency_small_kernel_512_args_ctypes(benchmark, init_cuda, load_module):
- device, ctx, stream = init_cuda
- module = load_module(kernel_string, device)
-
- err, func = cuda.cuModuleGetFunction(module, b"small_kernel_512_args")
- ASSERT_DRV(err)
-
- vals = []
- val_ps = []
- for i in range(512):
- err, p = cuda.cuMemAlloc(ctypes.sizeof(ctypes.c_int))
- ASSERT_DRV(err)
- vals.append(p)
- val_ps.append(ctypes.c_void_p(int(vals[i])))
-
- packagedParams = (ctypes.c_void_p * 512)()
- for i in range(512):
- packagedParams[i] = ctypes.addressof(val_ps[i])
-
- benchmark(launch_packed, func, stream, packagedParams)
-
- cuda.cuCtxSynchronize()
-
- for p in vals:
- (err,) = cuda.cuMemFree(p)
- ASSERT_DRV(err)
-
-
-def pack_and_launch(kernel, stream, params):
- packed_params = (ctypes.c_void_p * len(params))()
- ptrs = [0] * len(params)
- for i in range(len(params)):
- ptrs[i] = ctypes.c_void_p(int(params[i]))
- packed_params[i] = ctypes.addressof(ptrs[i])
-
- cuda.cuLaunchKernel(kernel, 1, 1, 1, 1, 1, 1, 0, stream, packed_params, 0)
-
-
-# Measure launch latency plus parameter packing using ctypes
-@pytest.mark.benchmark(group="launch-latency")
-def test_launch_latency_small_kernel_512_args_ctypes_with_packing(benchmark, init_cuda, load_module):
- device, ctx, stream = init_cuda
- module = load_module(kernel_string, device)
-
- err, func = cuda.cuModuleGetFunction(module, b"small_kernel_512_args")
- ASSERT_DRV(err)
-
- vals = []
- for i in range(512):
- err, p = cuda.cuMemAlloc(ctypes.sizeof(ctypes.c_int))
- ASSERT_DRV(err)
- vals.append(p)
-
- benchmark(pack_and_launch, func, stream, vals)
-
- cuda.cuCtxSynchronize()
-
- for p in vals:
- (err,) = cuda.cuMemFree(p)
- ASSERT_DRV(err)
-
-
-# Measure launch latency with a single large struct parameter
-@pytest.mark.benchmark(group="launch-latency")
-def test_launch_latency_small_kernel_2048B(benchmark, init_cuda, load_module):
- device, ctx, stream = init_cuda
- module = load_module(kernel_string, device)
-
- err, func = cuda.cuModuleGetFunction(module, b"small_kernel_2048B")
- ASSERT_DRV(err)
-
- class struct_2048B(ctypes.Structure):
- _fields_ = [("values", ctypes.c_uint8 * 2048)]
-
- benchmark(launch, func, stream, args=(struct_2048B(),), arg_types=(None,))
-
- cuda.cuCtxSynchronize()
diff --git a/cuda_bindings/benchmarks/test_numba.py b/cuda_bindings/benchmarks/test_numba.py
deleted file mode 100644
index dfe084c6b..000000000
--- a/cuda_bindings/benchmarks/test_numba.py
+++ /dev/null
@@ -1,52 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2021-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
-
-import numpy as np
-import pytest
-
-try:
- from numba import cuda
-
- skip_tests = False
-except ImportError:
- skip_tests = True
-
-
-def launch_empty(kernel, stream):
- kernel[1, 1, stream]()
-
-
-def launch(kernel, stream, arg):
- kernel[1, 1, stream](arg)
-
-
-# Measure launch latency with no parmaeters
-@pytest.mark.skipif(skip_tests, reason="Numba is not installed")
-@pytest.mark.benchmark(group="numba", min_rounds=1000)
-def test_launch_latency_empty_kernel(benchmark):
- stream = cuda.stream()
-
- @cuda.jit
- def empty_kernel():
- return
-
- benchmark(launch_empty, empty_kernel, stream)
-
- cuda.synchronize()
-
-
-# Measure launch latency with a single parameter
-@pytest.mark.skipif(skip_tests, reason="Numba is not installed")
-@pytest.mark.benchmark(group="numba", min_rounds=1000)
-def test_launch_latency_small_kernel(benchmark):
- stream = cuda.stream()
-
- arg = cuda.device_array(1, dtype=np.float32, stream=stream)
-
- @cuda.jit
- def small_kernel(array):
- array[0] = 0.0
-
- benchmark(launch, small_kernel, stream, arg)
-
- cuda.synchronize()
diff --git a/cuda_bindings/benchmarks/test_pointer_attributes.py b/cuda_bindings/benchmarks/test_pointer_attributes.py
deleted file mode 100644
index 620afae7b..000000000
--- a/cuda_bindings/benchmarks/test_pointer_attributes.py
+++ /dev/null
@@ -1,112 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2021-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
-
-import random
-
-import pytest
-from conftest import ASSERT_DRV
-
-from cuda.bindings import driver as cuda
-
-random.seed(0)
-
-idx = 0
-
-
-def query_attribute(attribute, ptrs):
- global idx
- ptr = ptrs[idx]
- idx = (idx + 1) % len(ptrs)
-
- cuda.cuPointerGetAttribute(attribute, ptr)
-
-
-def query_attributes(attributes, ptrs):
- global idx
- ptr = ptrs[idx]
- idx = (idx + 1) % len(ptrs)
-
- cuda.cuPointerGetAttributes(len(attributes), attributes, ptr)
-
-
-@pytest.mark.benchmark(group="pointer-attributes")
-# Measure cuPointerGetAttribute in the same way as C benchmarks
-def test_pointer_get_attribute(benchmark, init_cuda):
- _ = init_cuda
-
- ptrs = []
- for _ in range(500):
- err, ptr = cuda.cuMemAlloc(1 << 18)
- ASSERT_DRV(err)
- ptrs.append(ptr)
-
- random.shuffle(ptrs)
-
- benchmark(query_attribute, cuda.CUpointer_attribute.CU_POINTER_ATTRIBUTE_MEMORY_TYPE, ptrs)
-
- for p in ptrs:
- (err,) = cuda.cuMemFree(p)
- ASSERT_DRV(err)
-
-
-@pytest.mark.benchmark(group="pointer-attributes")
-# Measure cuPointerGetAttributes with all attributes
-def test_pointer_get_attributes_all(benchmark, init_cuda):
- _ = init_cuda
-
- ptrs = []
- for _ in range(500):
- err, ptr = cuda.cuMemAlloc(1 << 18)
- ASSERT_DRV(err)
- ptrs.append(ptr)
-
- random.shuffle(ptrs)
-
- attributes = [
- cuda.CUpointer_attribute.CU_POINTER_ATTRIBUTE_CONTEXT,
- cuda.CUpointer_attribute.CU_POINTER_ATTRIBUTE_MEMORY_TYPE,
- cuda.CUpointer_attribute.CU_POINTER_ATTRIBUTE_HOST_POINTER,
- cuda.CUpointer_attribute.CU_POINTER_ATTRIBUTE_P2P_TOKENS,
- cuda.CUpointer_attribute.CU_POINTER_ATTRIBUTE_SYNC_MEMOPS,
- cuda.CUpointer_attribute.CU_POINTER_ATTRIBUTE_BUFFER_ID,
- cuda.CUpointer_attribute.CU_POINTER_ATTRIBUTE_IS_MANAGED,
- cuda.CUpointer_attribute.CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL,
- cuda.CUpointer_attribute.CU_POINTER_ATTRIBUTE_IS_LEGACY_CUDA_IPC_CAPABLE,
- cuda.CUpointer_attribute.CU_POINTER_ATTRIBUTE_RANGE_START_ADDR,
- cuda.CUpointer_attribute.CU_POINTER_ATTRIBUTE_RANGE_SIZE,
- cuda.CUpointer_attribute.CU_POINTER_ATTRIBUTE_MAPPED,
- cuda.CUpointer_attribute.CU_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES,
- cuda.CUpointer_attribute.CU_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE,
- cuda.CUpointer_attribute.CU_POINTER_ATTRIBUTE_ACCESS_FLAGS,
- cuda.CUpointer_attribute.CU_POINTER_ATTRIBUTE_MEMPOOL_HANDLE,
- ]
-
- benchmark(query_attributes, attributes, ptrs)
-
- for p in ptrs:
- (err,) = cuda.cuMemFree(p)
- ASSERT_DRV(err)
-
-
-@pytest.mark.benchmark(group="pointer-attributes")
-# Measure cuPointerGetAttributes with a single attribute
-def test_pointer_get_attributes_single(benchmark, init_cuda):
- _ = init_cuda
-
- ptrs = []
- for _ in range(500):
- err, ptr = cuda.cuMemAlloc(1 << 18)
- ASSERT_DRV(err)
- ptrs.append(ptr)
-
- random.shuffle(ptrs)
-
- attributes = [
- cuda.CUpointer_attribute.CU_POINTER_ATTRIBUTE_MEMORY_TYPE,
- ]
-
- benchmark(query_attributes, attributes, ptrs)
-
- for p in ptrs:
- (err,) = cuda.cuMemFree(p)
- ASSERT_DRV(err)
diff --git a/cuda_bindings/cuda/bindings/__init__.pxd b/cuda_bindings/cuda/bindings/__init__.pxd
deleted file mode 100644
index e69de29bb..000000000
diff --git a/cuda_bindings/cuda/bindings/__init__.py b/cuda_bindings/cuda/bindings/__init__.py
deleted file mode 100644
index 38d71fcfd..000000000
--- a/cuda_bindings/cuda/bindings/__init__.py
+++ /dev/null
@@ -1,5 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2021-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
-
-from cuda.bindings import utils
-from cuda.bindings._version import __version__
diff --git a/cuda_bindings/cuda/bindings/_bindings/__init__.py b/cuda_bindings/cuda/bindings/_bindings/__init__.py
deleted file mode 100644
index e69de29bb..000000000
diff --git a/cuda_bindings/cuda/bindings/_bindings/cydriver.pxd.in b/cuda_bindings/cuda/bindings/_bindings/cydriver.pxd.in
deleted file mode 100644
index 8038f8d95..000000000
--- a/cuda_bindings/cuda/bindings/_bindings/cydriver.pxd.in
+++ /dev/null
@@ -1,2356 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2021-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
-
-# This code was automatically generated with version 13.0.0. Do not modify it directly.
-from cuda.bindings.cydriver cimport *
-
-{{if 'cuGetErrorString' in found_functions}}
-
-cdef CUresult _cuGetErrorString(CUresult error, const char** pStr) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGetErrorName' in found_functions}}
-
-cdef CUresult _cuGetErrorName(CUresult error, const char** pStr) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuInit' in found_functions}}
-
-cdef CUresult _cuInit(unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuDriverGetVersion' in found_functions}}
-
-cdef CUresult _cuDriverGetVersion(int* driverVersion) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuDeviceGet' in found_functions}}
-
-cdef CUresult _cuDeviceGet(CUdevice* device, int ordinal) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuDeviceGetCount' in found_functions}}
-
-cdef CUresult _cuDeviceGetCount(int* count) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuDeviceGetName' in found_functions}}
-
-cdef CUresult _cuDeviceGetName(char* name, int length, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuDeviceGetUuid_v2' in found_functions}}
-
-cdef CUresult _cuDeviceGetUuid_v2(CUuuid* uuid, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuDeviceGetLuid' in found_functions}}
-
-cdef CUresult _cuDeviceGetLuid(char* luid, unsigned int* deviceNodeMask, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuDeviceTotalMem_v2' in found_functions}}
-
-cdef CUresult _cuDeviceTotalMem_v2(size_t* numbytes, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuDeviceGetTexture1DLinearMaxWidth' in found_functions}}
-
-cdef CUresult _cuDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, CUarray_format pformat, unsigned numChannels, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuDeviceGetAttribute' in found_functions}}
-
-cdef CUresult _cuDeviceGetAttribute(int* pi, CUdevice_attribute attrib, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuDeviceGetHostAtomicCapabilities' in found_functions}}
-
-cdef CUresult _cuDeviceGetHostAtomicCapabilities(unsigned int* capabilities, const CUatomicOperation* operations, unsigned int count, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuDeviceGetNvSciSyncAttributes' in found_functions}}
-
-cdef CUresult _cuDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, CUdevice dev, int flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuDeviceSetMemPool' in found_functions}}
-
-cdef CUresult _cuDeviceSetMemPool(CUdevice dev, CUmemoryPool pool) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuDeviceGetMemPool' in found_functions}}
-
-cdef CUresult _cuDeviceGetMemPool(CUmemoryPool* pool, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuDeviceGetDefaultMemPool' in found_functions}}
-
-cdef CUresult _cuDeviceGetDefaultMemPool(CUmemoryPool* pool_out, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuDeviceGetExecAffinitySupport' in found_functions}}
-
-cdef CUresult _cuDeviceGetExecAffinitySupport(int* pi, CUexecAffinityType typename, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuFlushGPUDirectRDMAWrites' in found_functions}}
-
-cdef CUresult _cuFlushGPUDirectRDMAWrites(CUflushGPUDirectRDMAWritesTarget target, CUflushGPUDirectRDMAWritesScope scope) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuDeviceGetProperties' in found_functions}}
-
-cdef CUresult _cuDeviceGetProperties(CUdevprop* prop, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuDeviceComputeCapability' in found_functions}}
-
-cdef CUresult _cuDeviceComputeCapability(int* major, int* minor, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuDevicePrimaryCtxRetain' in found_functions}}
-
-cdef CUresult _cuDevicePrimaryCtxRetain(CUcontext* pctx, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuDevicePrimaryCtxRelease_v2' in found_functions}}
-
-cdef CUresult _cuDevicePrimaryCtxRelease_v2(CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuDevicePrimaryCtxSetFlags_v2' in found_functions}}
-
-cdef CUresult _cuDevicePrimaryCtxSetFlags_v2(CUdevice dev, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuDevicePrimaryCtxGetState' in found_functions}}
-
-cdef CUresult _cuDevicePrimaryCtxGetState(CUdevice dev, unsigned int* flags, int* active) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuDevicePrimaryCtxReset_v2' in found_functions}}
-
-cdef CUresult _cuDevicePrimaryCtxReset_v2(CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCtxCreate_v4' in found_functions}}
-
-cdef CUresult _cuCtxCreate_v4(CUcontext* pctx, CUctxCreateParams* ctxCreateParams, unsigned int flags, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCtxDestroy_v2' in found_functions}}
-
-cdef CUresult _cuCtxDestroy_v2(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCtxPushCurrent_v2' in found_functions}}
-
-cdef CUresult _cuCtxPushCurrent_v2(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCtxPopCurrent_v2' in found_functions}}
-
-cdef CUresult _cuCtxPopCurrent_v2(CUcontext* pctx) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCtxSetCurrent' in found_functions}}
-
-cdef CUresult _cuCtxSetCurrent(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCtxGetCurrent' in found_functions}}
-
-cdef CUresult _cuCtxGetCurrent(CUcontext* pctx) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCtxGetDevice' in found_functions}}
-
-cdef CUresult _cuCtxGetDevice(CUdevice* device) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCtxGetDevice_v2' in found_functions}}
-
-cdef CUresult _cuCtxGetDevice_v2(CUdevice* device, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCtxGetFlags' in found_functions}}
-
-cdef CUresult _cuCtxGetFlags(unsigned int* flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCtxSetFlags' in found_functions}}
-
-cdef CUresult _cuCtxSetFlags(unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCtxGetId' in found_functions}}
-
-cdef CUresult _cuCtxGetId(CUcontext ctx, unsigned long long* ctxId) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCtxSynchronize' in found_functions}}
-
-cdef CUresult _cuCtxSynchronize() except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCtxSynchronize_v2' in found_functions}}
-
-cdef CUresult _cuCtxSynchronize_v2(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCtxSetLimit' in found_functions}}
-
-cdef CUresult _cuCtxSetLimit(CUlimit limit, size_t value) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCtxGetLimit' in found_functions}}
-
-cdef CUresult _cuCtxGetLimit(size_t* pvalue, CUlimit limit) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCtxGetCacheConfig' in found_functions}}
-
-cdef CUresult _cuCtxGetCacheConfig(CUfunc_cache* pconfig) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCtxSetCacheConfig' in found_functions}}
-
-cdef CUresult _cuCtxSetCacheConfig(CUfunc_cache config) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCtxGetApiVersion' in found_functions}}
-
-cdef CUresult _cuCtxGetApiVersion(CUcontext ctx, unsigned int* version) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCtxGetStreamPriorityRange' in found_functions}}
-
-cdef CUresult _cuCtxGetStreamPriorityRange(int* leastPriority, int* greatestPriority) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCtxResetPersistingL2Cache' in found_functions}}
-
-cdef CUresult _cuCtxResetPersistingL2Cache() except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCtxGetExecAffinity' in found_functions}}
-
-cdef CUresult _cuCtxGetExecAffinity(CUexecAffinityParam* pExecAffinity, CUexecAffinityType typename) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCtxRecordEvent' in found_functions}}
-
-cdef CUresult _cuCtxRecordEvent(CUcontext hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCtxWaitEvent' in found_functions}}
-
-cdef CUresult _cuCtxWaitEvent(CUcontext hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCtxAttach' in found_functions}}
-
-cdef CUresult _cuCtxAttach(CUcontext* pctx, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCtxDetach' in found_functions}}
-
-cdef CUresult _cuCtxDetach(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCtxGetSharedMemConfig' in found_functions}}
-
-cdef CUresult _cuCtxGetSharedMemConfig(CUsharedconfig* pConfig) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCtxSetSharedMemConfig' in found_functions}}
-
-cdef CUresult _cuCtxSetSharedMemConfig(CUsharedconfig config) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuModuleLoad' in found_functions}}
-
-cdef CUresult _cuModuleLoad(CUmodule* module, const char* fname) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuModuleLoadData' in found_functions}}
-
-cdef CUresult _cuModuleLoadData(CUmodule* module, const void* image) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuModuleLoadDataEx' in found_functions}}
-
-cdef CUresult _cuModuleLoadDataEx(CUmodule* module, const void* image, unsigned int numOptions, CUjit_option* options, void** optionValues) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuModuleLoadFatBinary' in found_functions}}
-
-cdef CUresult _cuModuleLoadFatBinary(CUmodule* module, const void* fatCubin) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuModuleUnload' in found_functions}}
-
-cdef CUresult _cuModuleUnload(CUmodule hmod) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuModuleGetLoadingMode' in found_functions}}
-
-cdef CUresult _cuModuleGetLoadingMode(CUmoduleLoadingMode* mode) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuModuleGetFunction' in found_functions}}
-
-cdef CUresult _cuModuleGetFunction(CUfunction* hfunc, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuModuleGetFunctionCount' in found_functions}}
-
-cdef CUresult _cuModuleGetFunctionCount(unsigned int* count, CUmodule mod) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuModuleEnumerateFunctions' in found_functions}}
-
-cdef CUresult _cuModuleEnumerateFunctions(CUfunction* functions, unsigned int numFunctions, CUmodule mod) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuModuleGetGlobal_v2' in found_functions}}
-
-cdef CUresult _cuModuleGetGlobal_v2(CUdeviceptr* dptr, size_t* numbytes, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuLinkCreate_v2' in found_functions}}
-
-cdef CUresult _cuLinkCreate_v2(unsigned int numOptions, CUjit_option* options, void** optionValues, CUlinkState* stateOut) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuLinkAddData_v2' in found_functions}}
-
-cdef CUresult _cuLinkAddData_v2(CUlinkState state, CUjitInputType typename, void* data, size_t size, const char* name, unsigned int numOptions, CUjit_option* options, void** optionValues) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuLinkAddFile_v2' in found_functions}}
-
-cdef CUresult _cuLinkAddFile_v2(CUlinkState state, CUjitInputType typename, const char* path, unsigned int numOptions, CUjit_option* options, void** optionValues) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuLinkComplete' in found_functions}}
-
-cdef CUresult _cuLinkComplete(CUlinkState state, void** cubinOut, size_t* sizeOut) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuLinkDestroy' in found_functions}}
-
-cdef CUresult _cuLinkDestroy(CUlinkState state) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuModuleGetTexRef' in found_functions}}
-
-cdef CUresult _cuModuleGetTexRef(CUtexref* pTexRef, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuModuleGetSurfRef' in found_functions}}
-
-cdef CUresult _cuModuleGetSurfRef(CUsurfref* pSurfRef, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuLibraryLoadData' in found_functions}}
-
-cdef CUresult _cuLibraryLoadData(CUlibrary* library, const void* code, CUjit_option* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, CUlibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuLibraryLoadFromFile' in found_functions}}
-
-cdef CUresult _cuLibraryLoadFromFile(CUlibrary* library, const char* fileName, CUjit_option* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, CUlibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuLibraryUnload' in found_functions}}
-
-cdef CUresult _cuLibraryUnload(CUlibrary library) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuLibraryGetKernel' in found_functions}}
-
-cdef CUresult _cuLibraryGetKernel(CUkernel* pKernel, CUlibrary library, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuLibraryGetKernelCount' in found_functions}}
-
-cdef CUresult _cuLibraryGetKernelCount(unsigned int* count, CUlibrary lib) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuLibraryEnumerateKernels' in found_functions}}
-
-cdef CUresult _cuLibraryEnumerateKernels(CUkernel* kernels, unsigned int numKernels, CUlibrary lib) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuLibraryGetModule' in found_functions}}
-
-cdef CUresult _cuLibraryGetModule(CUmodule* pMod, CUlibrary library) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuKernelGetFunction' in found_functions}}
-
-cdef CUresult _cuKernelGetFunction(CUfunction* pFunc, CUkernel kernel) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuKernelGetLibrary' in found_functions}}
-
-cdef CUresult _cuKernelGetLibrary(CUlibrary* pLib, CUkernel kernel) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuLibraryGetGlobal' in found_functions}}
-
-cdef CUresult _cuLibraryGetGlobal(CUdeviceptr* dptr, size_t* numbytes, CUlibrary library, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuLibraryGetManaged' in found_functions}}
-
-cdef CUresult _cuLibraryGetManaged(CUdeviceptr* dptr, size_t* numbytes, CUlibrary library, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuLibraryGetUnifiedFunction' in found_functions}}
-
-cdef CUresult _cuLibraryGetUnifiedFunction(void** fptr, CUlibrary library, const char* symbol) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuKernelGetAttribute' in found_functions}}
-
-cdef CUresult _cuKernelGetAttribute(int* pi, CUfunction_attribute attrib, CUkernel kernel, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuKernelSetAttribute' in found_functions}}
-
-cdef CUresult _cuKernelSetAttribute(CUfunction_attribute attrib, int val, CUkernel kernel, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuKernelSetCacheConfig' in found_functions}}
-
-cdef CUresult _cuKernelSetCacheConfig(CUkernel kernel, CUfunc_cache config, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuKernelGetName' in found_functions}}
-
-cdef CUresult _cuKernelGetName(const char** name, CUkernel hfunc) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuKernelGetParamInfo' in found_functions}}
-
-cdef CUresult _cuKernelGetParamInfo(CUkernel kernel, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemGetInfo_v2' in found_functions}}
-
-cdef CUresult _cuMemGetInfo_v2(size_t* free, size_t* total) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemAlloc_v2' in found_functions}}
-
-cdef CUresult _cuMemAlloc_v2(CUdeviceptr* dptr, size_t bytesize) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemAllocPitch_v2' in found_functions}}
-
-cdef CUresult _cuMemAllocPitch_v2(CUdeviceptr* dptr, size_t* pPitch, size_t WidthInBytes, size_t Height, unsigned int ElementSizeBytes) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemFree_v2' in found_functions}}
-
-cdef CUresult _cuMemFree_v2(CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemGetAddressRange_v2' in found_functions}}
-
-cdef CUresult _cuMemGetAddressRange_v2(CUdeviceptr* pbase, size_t* psize, CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemAllocHost_v2' in found_functions}}
-
-cdef CUresult _cuMemAllocHost_v2(void** pp, size_t bytesize) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemFreeHost' in found_functions}}
-
-cdef CUresult _cuMemFreeHost(void* p) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemHostAlloc' in found_functions}}
-
-cdef CUresult _cuMemHostAlloc(void** pp, size_t bytesize, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemHostGetDevicePointer_v2' in found_functions}}
-
-cdef CUresult _cuMemHostGetDevicePointer_v2(CUdeviceptr* pdptr, void* p, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemHostGetFlags' in found_functions}}
-
-cdef CUresult _cuMemHostGetFlags(unsigned int* pFlags, void* p) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemAllocManaged' in found_functions}}
-
-cdef CUresult _cuMemAllocManaged(CUdeviceptr* dptr, size_t bytesize, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuDeviceRegisterAsyncNotification' in found_functions}}
-
-cdef CUresult _cuDeviceRegisterAsyncNotification(CUdevice device, CUasyncCallback callbackFunc, void* userData, CUasyncCallbackHandle* callback) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuDeviceUnregisterAsyncNotification' in found_functions}}
-
-cdef CUresult _cuDeviceUnregisterAsyncNotification(CUdevice device, CUasyncCallbackHandle callback) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuDeviceGetByPCIBusId' in found_functions}}
-
-cdef CUresult _cuDeviceGetByPCIBusId(CUdevice* dev, const char* pciBusId) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuDeviceGetPCIBusId' in found_functions}}
-
-cdef CUresult _cuDeviceGetPCIBusId(char* pciBusId, int length, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuIpcGetEventHandle' in found_functions}}
-
-cdef CUresult _cuIpcGetEventHandle(CUipcEventHandle* pHandle, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuIpcOpenEventHandle' in found_functions}}
-
-cdef CUresult _cuIpcOpenEventHandle(CUevent* phEvent, CUipcEventHandle handle) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuIpcGetMemHandle' in found_functions}}
-
-cdef CUresult _cuIpcGetMemHandle(CUipcMemHandle* pHandle, CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuIpcOpenMemHandle_v2' in found_functions}}
-
-cdef CUresult _cuIpcOpenMemHandle_v2(CUdeviceptr* pdptr, CUipcMemHandle handle, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuIpcCloseMemHandle' in found_functions}}
-
-cdef CUresult _cuIpcCloseMemHandle(CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemHostRegister_v2' in found_functions}}
-
-cdef CUresult _cuMemHostRegister_v2(void* p, size_t bytesize, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemHostUnregister' in found_functions}}
-
-cdef CUresult _cuMemHostUnregister(void* p) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemcpy' in found_functions}}
-
-cdef CUresult _cuMemcpy(CUdeviceptr dst, CUdeviceptr src, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemcpyPeer' in found_functions}}
-
-cdef CUresult _cuMemcpyPeer(CUdeviceptr dstDevice, CUcontext dstContext, CUdeviceptr srcDevice, CUcontext srcContext, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemcpyHtoD_v2' in found_functions}}
-
-cdef CUresult _cuMemcpyHtoD_v2(CUdeviceptr dstDevice, const void* srcHost, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemcpyDtoH_v2' in found_functions}}
-
-cdef CUresult _cuMemcpyDtoH_v2(void* dstHost, CUdeviceptr srcDevice, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemcpyDtoD_v2' in found_functions}}
-
-cdef CUresult _cuMemcpyDtoD_v2(CUdeviceptr dstDevice, CUdeviceptr srcDevice, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemcpyDtoA_v2' in found_functions}}
-
-cdef CUresult _cuMemcpyDtoA_v2(CUarray dstArray, size_t dstOffset, CUdeviceptr srcDevice, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemcpyAtoD_v2' in found_functions}}
-
-cdef CUresult _cuMemcpyAtoD_v2(CUdeviceptr dstDevice, CUarray srcArray, size_t srcOffset, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemcpyHtoA_v2' in found_functions}}
-
-cdef CUresult _cuMemcpyHtoA_v2(CUarray dstArray, size_t dstOffset, const void* srcHost, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemcpyAtoH_v2' in found_functions}}
-
-cdef CUresult _cuMemcpyAtoH_v2(void* dstHost, CUarray srcArray, size_t srcOffset, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemcpyAtoA_v2' in found_functions}}
-
-cdef CUresult _cuMemcpyAtoA_v2(CUarray dstArray, size_t dstOffset, CUarray srcArray, size_t srcOffset, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemcpy2D_v2' in found_functions}}
-
-cdef CUresult _cuMemcpy2D_v2(const CUDA_MEMCPY2D* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemcpy2DUnaligned_v2' in found_functions}}
-
-cdef CUresult _cuMemcpy2DUnaligned_v2(const CUDA_MEMCPY2D* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemcpy3D_v2' in found_functions}}
-
-cdef CUresult _cuMemcpy3D_v2(const CUDA_MEMCPY3D* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemcpy3DPeer' in found_functions}}
-
-cdef CUresult _cuMemcpy3DPeer(const CUDA_MEMCPY3D_PEER* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemcpyAsync' in found_functions}}
-
-cdef CUresult _cuMemcpyAsync(CUdeviceptr dst, CUdeviceptr src, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemcpyPeerAsync' in found_functions}}
-
-cdef CUresult _cuMemcpyPeerAsync(CUdeviceptr dstDevice, CUcontext dstContext, CUdeviceptr srcDevice, CUcontext srcContext, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemcpyHtoDAsync_v2' in found_functions}}
-
-cdef CUresult _cuMemcpyHtoDAsync_v2(CUdeviceptr dstDevice, const void* srcHost, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemcpyDtoHAsync_v2' in found_functions}}
-
-cdef CUresult _cuMemcpyDtoHAsync_v2(void* dstHost, CUdeviceptr srcDevice, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemcpyDtoDAsync_v2' in found_functions}}
-
-cdef CUresult _cuMemcpyDtoDAsync_v2(CUdeviceptr dstDevice, CUdeviceptr srcDevice, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemcpyHtoAAsync_v2' in found_functions}}
-
-cdef CUresult _cuMemcpyHtoAAsync_v2(CUarray dstArray, size_t dstOffset, const void* srcHost, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemcpyAtoHAsync_v2' in found_functions}}
-
-cdef CUresult _cuMemcpyAtoHAsync_v2(void* dstHost, CUarray srcArray, size_t srcOffset, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemcpy2DAsync_v2' in found_functions}}
-
-cdef CUresult _cuMemcpy2DAsync_v2(const CUDA_MEMCPY2D* pCopy, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemcpy3DAsync_v2' in found_functions}}
-
-cdef CUresult _cuMemcpy3DAsync_v2(const CUDA_MEMCPY3D* pCopy, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemcpy3DPeerAsync' in found_functions}}
-
-cdef CUresult _cuMemcpy3DPeerAsync(const CUDA_MEMCPY3D_PEER* pCopy, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemcpyBatchAsync_v2' in found_functions}}
-
-cdef CUresult _cuMemcpyBatchAsync_v2(CUdeviceptr* dsts, CUdeviceptr* srcs, size_t* sizes, size_t count, CUmemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemcpy3DBatchAsync_v2' in found_functions}}
-
-cdef CUresult _cuMemcpy3DBatchAsync_v2(size_t numOps, CUDA_MEMCPY3D_BATCH_OP* opList, unsigned long long flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemsetD8_v2' in found_functions}}
-
-cdef CUresult _cuMemsetD8_v2(CUdeviceptr dstDevice, unsigned char uc, size_t N) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemsetD16_v2' in found_functions}}
-
-cdef CUresult _cuMemsetD16_v2(CUdeviceptr dstDevice, unsigned short us, size_t N) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemsetD32_v2' in found_functions}}
-
-cdef CUresult _cuMemsetD32_v2(CUdeviceptr dstDevice, unsigned int ui, size_t N) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemsetD2D8_v2' in found_functions}}
-
-cdef CUresult _cuMemsetD2D8_v2(CUdeviceptr dstDevice, size_t dstPitch, unsigned char uc, size_t Width, size_t Height) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemsetD2D16_v2' in found_functions}}
-
-cdef CUresult _cuMemsetD2D16_v2(CUdeviceptr dstDevice, size_t dstPitch, unsigned short us, size_t Width, size_t Height) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemsetD2D32_v2' in found_functions}}
-
-cdef CUresult _cuMemsetD2D32_v2(CUdeviceptr dstDevice, size_t dstPitch, unsigned int ui, size_t Width, size_t Height) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemsetD8Async' in found_functions}}
-
-cdef CUresult _cuMemsetD8Async(CUdeviceptr dstDevice, unsigned char uc, size_t N, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemsetD16Async' in found_functions}}
-
-cdef CUresult _cuMemsetD16Async(CUdeviceptr dstDevice, unsigned short us, size_t N, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemsetD32Async' in found_functions}}
-
-cdef CUresult _cuMemsetD32Async(CUdeviceptr dstDevice, unsigned int ui, size_t N, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemsetD2D8Async' in found_functions}}
-
-cdef CUresult _cuMemsetD2D8Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned char uc, size_t Width, size_t Height, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemsetD2D16Async' in found_functions}}
-
-cdef CUresult _cuMemsetD2D16Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned short us, size_t Width, size_t Height, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemsetD2D32Async' in found_functions}}
-
-cdef CUresult _cuMemsetD2D32Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned int ui, size_t Width, size_t Height, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuArrayCreate_v2' in found_functions}}
-
-cdef CUresult _cuArrayCreate_v2(CUarray* pHandle, const CUDA_ARRAY_DESCRIPTOR* pAllocateArray) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuArrayGetDescriptor_v2' in found_functions}}
-
-cdef CUresult _cuArrayGetDescriptor_v2(CUDA_ARRAY_DESCRIPTOR* pArrayDescriptor, CUarray hArray) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuArrayGetSparseProperties' in found_functions}}
-
-cdef CUresult _cuArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES* sparseProperties, CUarray array) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMipmappedArrayGetSparseProperties' in found_functions}}
-
-cdef CUresult _cuMipmappedArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES* sparseProperties, CUmipmappedArray mipmap) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuArrayGetMemoryRequirements' in found_functions}}
-
-cdef CUresult _cuArrayGetMemoryRequirements(CUDA_ARRAY_MEMORY_REQUIREMENTS* memoryRequirements, CUarray array, CUdevice device) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMipmappedArrayGetMemoryRequirements' in found_functions}}
-
-cdef CUresult _cuMipmappedArrayGetMemoryRequirements(CUDA_ARRAY_MEMORY_REQUIREMENTS* memoryRequirements, CUmipmappedArray mipmap, CUdevice device) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuArrayGetPlane' in found_functions}}
-
-cdef CUresult _cuArrayGetPlane(CUarray* pPlaneArray, CUarray hArray, unsigned int planeIdx) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuArrayDestroy' in found_functions}}
-
-cdef CUresult _cuArrayDestroy(CUarray hArray) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuArray3DCreate_v2' in found_functions}}
-
-cdef CUresult _cuArray3DCreate_v2(CUarray* pHandle, const CUDA_ARRAY3D_DESCRIPTOR* pAllocateArray) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuArray3DGetDescriptor_v2' in found_functions}}
-
-cdef CUresult _cuArray3DGetDescriptor_v2(CUDA_ARRAY3D_DESCRIPTOR* pArrayDescriptor, CUarray hArray) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMipmappedArrayCreate' in found_functions}}
-
-cdef CUresult _cuMipmappedArrayCreate(CUmipmappedArray* pHandle, const CUDA_ARRAY3D_DESCRIPTOR* pMipmappedArrayDesc, unsigned int numMipmapLevels) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMipmappedArrayGetLevel' in found_functions}}
-
-cdef CUresult _cuMipmappedArrayGetLevel(CUarray* pLevelArray, CUmipmappedArray hMipmappedArray, unsigned int level) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMipmappedArrayDestroy' in found_functions}}
-
-cdef CUresult _cuMipmappedArrayDestroy(CUmipmappedArray hMipmappedArray) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemGetHandleForAddressRange' in found_functions}}
-
-cdef CUresult _cuMemGetHandleForAddressRange(void* handle, CUdeviceptr dptr, size_t size, CUmemRangeHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemBatchDecompressAsync' in found_functions}}
-
-cdef CUresult _cuMemBatchDecompressAsync(CUmemDecompressParams* paramsArray, size_t count, unsigned int flags, size_t* errorIndex, CUstream stream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemAddressReserve' in found_functions}}
-
-cdef CUresult _cuMemAddressReserve(CUdeviceptr* ptr, size_t size, size_t alignment, CUdeviceptr addr, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemAddressFree' in found_functions}}
-
-cdef CUresult _cuMemAddressFree(CUdeviceptr ptr, size_t size) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemCreate' in found_functions}}
-
-cdef CUresult _cuMemCreate(CUmemGenericAllocationHandle* handle, size_t size, const CUmemAllocationProp* prop, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemRelease' in found_functions}}
-
-cdef CUresult _cuMemRelease(CUmemGenericAllocationHandle handle) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemMap' in found_functions}}
-
-cdef CUresult _cuMemMap(CUdeviceptr ptr, size_t size, size_t offset, CUmemGenericAllocationHandle handle, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemMapArrayAsync' in found_functions}}
-
-cdef CUresult _cuMemMapArrayAsync(CUarrayMapInfo* mapInfoList, unsigned int count, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemUnmap' in found_functions}}
-
-cdef CUresult _cuMemUnmap(CUdeviceptr ptr, size_t size) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemSetAccess' in found_functions}}
-
-cdef CUresult _cuMemSetAccess(CUdeviceptr ptr, size_t size, const CUmemAccessDesc* desc, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemGetAccess' in found_functions}}
-
-cdef CUresult _cuMemGetAccess(unsigned long long* flags, const CUmemLocation* location, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemExportToShareableHandle' in found_functions}}
-
-cdef CUresult _cuMemExportToShareableHandle(void* shareableHandle, CUmemGenericAllocationHandle handle, CUmemAllocationHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemImportFromShareableHandle' in found_functions}}
-
-cdef CUresult _cuMemImportFromShareableHandle(CUmemGenericAllocationHandle* handle, void* osHandle, CUmemAllocationHandleType shHandleType) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemGetAllocationGranularity' in found_functions}}
-
-cdef CUresult _cuMemGetAllocationGranularity(size_t* granularity, const CUmemAllocationProp* prop, CUmemAllocationGranularity_flags option) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemGetAllocationPropertiesFromHandle' in found_functions}}
-
-cdef CUresult _cuMemGetAllocationPropertiesFromHandle(CUmemAllocationProp* prop, CUmemGenericAllocationHandle handle) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemRetainAllocationHandle' in found_functions}}
-
-cdef CUresult _cuMemRetainAllocationHandle(CUmemGenericAllocationHandle* handle, void* addr) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemFreeAsync' in found_functions}}
-
-cdef CUresult _cuMemFreeAsync(CUdeviceptr dptr, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemAllocAsync' in found_functions}}
-
-cdef CUresult _cuMemAllocAsync(CUdeviceptr* dptr, size_t bytesize, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemPoolTrimTo' in found_functions}}
-
-cdef CUresult _cuMemPoolTrimTo(CUmemoryPool pool, size_t minBytesToKeep) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemPoolSetAttribute' in found_functions}}
-
-cdef CUresult _cuMemPoolSetAttribute(CUmemoryPool pool, CUmemPool_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemPoolGetAttribute' in found_functions}}
-
-cdef CUresult _cuMemPoolGetAttribute(CUmemoryPool pool, CUmemPool_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemPoolSetAccess' in found_functions}}
-
-cdef CUresult _cuMemPoolSetAccess(CUmemoryPool pool, const CUmemAccessDesc* map, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemPoolGetAccess' in found_functions}}
-
-cdef CUresult _cuMemPoolGetAccess(CUmemAccess_flags* flags, CUmemoryPool memPool, CUmemLocation* location) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemPoolCreate' in found_functions}}
-
-cdef CUresult _cuMemPoolCreate(CUmemoryPool* pool, const CUmemPoolProps* poolProps) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemPoolDestroy' in found_functions}}
-
-cdef CUresult _cuMemPoolDestroy(CUmemoryPool pool) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemGetDefaultMemPool' in found_functions}}
-
-cdef CUresult _cuMemGetDefaultMemPool(CUmemoryPool* pool_out, CUmemLocation* location, CUmemAllocationType typename) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemGetMemPool' in found_functions}}
-
-cdef CUresult _cuMemGetMemPool(CUmemoryPool* pool, CUmemLocation* location, CUmemAllocationType typename) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemSetMemPool' in found_functions}}
-
-cdef CUresult _cuMemSetMemPool(CUmemLocation* location, CUmemAllocationType typename, CUmemoryPool pool) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemAllocFromPoolAsync' in found_functions}}
-
-cdef CUresult _cuMemAllocFromPoolAsync(CUdeviceptr* dptr, size_t bytesize, CUmemoryPool pool, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemPoolExportToShareableHandle' in found_functions}}
-
-cdef CUresult _cuMemPoolExportToShareableHandle(void* handle_out, CUmemoryPool pool, CUmemAllocationHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemPoolImportFromShareableHandle' in found_functions}}
-
-cdef CUresult _cuMemPoolImportFromShareableHandle(CUmemoryPool* pool_out, void* handle, CUmemAllocationHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemPoolExportPointer' in found_functions}}
-
-cdef CUresult _cuMemPoolExportPointer(CUmemPoolPtrExportData* shareData_out, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemPoolImportPointer' in found_functions}}
-
-cdef CUresult _cuMemPoolImportPointer(CUdeviceptr* ptr_out, CUmemoryPool pool, CUmemPoolPtrExportData* shareData) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMulticastCreate' in found_functions}}
-
-cdef CUresult _cuMulticastCreate(CUmemGenericAllocationHandle* mcHandle, const CUmulticastObjectProp* prop) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMulticastAddDevice' in found_functions}}
-
-cdef CUresult _cuMulticastAddDevice(CUmemGenericAllocationHandle mcHandle, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMulticastBindMem' in found_functions}}
-
-cdef CUresult _cuMulticastBindMem(CUmemGenericAllocationHandle mcHandle, size_t mcOffset, CUmemGenericAllocationHandle memHandle, size_t memOffset, size_t size, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMulticastBindAddr' in found_functions}}
-
-cdef CUresult _cuMulticastBindAddr(CUmemGenericAllocationHandle mcHandle, size_t mcOffset, CUdeviceptr memptr, size_t size, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMulticastUnbind' in found_functions}}
-
-cdef CUresult _cuMulticastUnbind(CUmemGenericAllocationHandle mcHandle, CUdevice dev, size_t mcOffset, size_t size) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMulticastGetGranularity' in found_functions}}
-
-cdef CUresult _cuMulticastGetGranularity(size_t* granularity, const CUmulticastObjectProp* prop, CUmulticastGranularity_flags option) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuPointerGetAttribute' in found_functions}}
-
-cdef CUresult _cuPointerGetAttribute(void* data, CUpointer_attribute attribute, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemPrefetchAsync_v2' in found_functions}}
-
-cdef CUresult _cuMemPrefetchAsync_v2(CUdeviceptr devPtr, size_t count, CUmemLocation location, unsigned int flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemAdvise_v2' in found_functions}}
-
-cdef CUresult _cuMemAdvise_v2(CUdeviceptr devPtr, size_t count, CUmem_advise advice, CUmemLocation location) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemPrefetchBatchAsync' in found_functions}}
-
-cdef CUresult _cuMemPrefetchBatchAsync(CUdeviceptr* dptrs, size_t* sizes, size_t count, CUmemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemDiscardBatchAsync' in found_functions}}
-
-cdef CUresult _cuMemDiscardBatchAsync(CUdeviceptr* dptrs, size_t* sizes, size_t count, unsigned long long flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemDiscardAndPrefetchBatchAsync' in found_functions}}
-
-cdef CUresult _cuMemDiscardAndPrefetchBatchAsync(CUdeviceptr* dptrs, size_t* sizes, size_t count, CUmemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemRangeGetAttribute' in found_functions}}
-
-cdef CUresult _cuMemRangeGetAttribute(void* data, size_t dataSize, CUmem_range_attribute attribute, CUdeviceptr devPtr, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuMemRangeGetAttributes' in found_functions}}
-
-cdef CUresult _cuMemRangeGetAttributes(void** data, size_t* dataSizes, CUmem_range_attribute* attributes, size_t numAttributes, CUdeviceptr devPtr, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuPointerSetAttribute' in found_functions}}
-
-cdef CUresult _cuPointerSetAttribute(const void* value, CUpointer_attribute attribute, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuPointerGetAttributes' in found_functions}}
-
-cdef CUresult _cuPointerGetAttributes(unsigned int numAttributes, CUpointer_attribute* attributes, void** data, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuStreamCreate' in found_functions}}
-
-cdef CUresult _cuStreamCreate(CUstream* phStream, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuStreamCreateWithPriority' in found_functions}}
-
-cdef CUresult _cuStreamCreateWithPriority(CUstream* phStream, unsigned int flags, int priority) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuStreamGetPriority' in found_functions}}
-
-cdef CUresult _cuStreamGetPriority(CUstream hStream, int* priority) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuStreamGetDevice' in found_functions}}
-
-cdef CUresult _cuStreamGetDevice(CUstream hStream, CUdevice* device) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuStreamGetFlags' in found_functions}}
-
-cdef CUresult _cuStreamGetFlags(CUstream hStream, unsigned int* flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuStreamGetId' in found_functions}}
-
-cdef CUresult _cuStreamGetId(CUstream hStream, unsigned long long* streamId) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuStreamGetCtx' in found_functions}}
-
-cdef CUresult _cuStreamGetCtx(CUstream hStream, CUcontext* pctx) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuStreamGetCtx_v2' in found_functions}}
-
-cdef CUresult _cuStreamGetCtx_v2(CUstream hStream, CUcontext* pCtx, CUgreenCtx* pGreenCtx) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuStreamWaitEvent' in found_functions}}
-
-cdef CUresult _cuStreamWaitEvent(CUstream hStream, CUevent hEvent, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuStreamAddCallback' in found_functions}}
-
-cdef CUresult _cuStreamAddCallback(CUstream hStream, CUstreamCallback callback, void* userData, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuStreamBeginCapture_v2' in found_functions}}
-
-cdef CUresult _cuStreamBeginCapture_v2(CUstream hStream, CUstreamCaptureMode mode) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuStreamBeginCaptureToGraph' in found_functions}}
-
-cdef CUresult _cuStreamBeginCaptureToGraph(CUstream hStream, CUgraph hGraph, const CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, CUstreamCaptureMode mode) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuThreadExchangeStreamCaptureMode' in found_functions}}
-
-cdef CUresult _cuThreadExchangeStreamCaptureMode(CUstreamCaptureMode* mode) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuStreamEndCapture' in found_functions}}
-
-cdef CUresult _cuStreamEndCapture(CUstream hStream, CUgraph* phGraph) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuStreamIsCapturing' in found_functions}}
-
-cdef CUresult _cuStreamIsCapturing(CUstream hStream, CUstreamCaptureStatus* captureStatus) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuStreamGetCaptureInfo_v3' in found_functions}}
-
-cdef CUresult _cuStreamGetCaptureInfo_v3(CUstream hStream, CUstreamCaptureStatus* captureStatus_out, cuuint64_t* id_out, CUgraph* graph_out, const CUgraphNode** dependencies_out, const CUgraphEdgeData** edgeData_out, size_t* numDependencies_out) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuStreamUpdateCaptureDependencies_v2' in found_functions}}
-
-cdef CUresult _cuStreamUpdateCaptureDependencies_v2(CUstream hStream, CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuStreamAttachMemAsync' in found_functions}}
-
-cdef CUresult _cuStreamAttachMemAsync(CUstream hStream, CUdeviceptr dptr, size_t length, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuStreamQuery' in found_functions}}
-
-cdef CUresult _cuStreamQuery(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuStreamSynchronize' in found_functions}}
-
-cdef CUresult _cuStreamSynchronize(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuStreamDestroy_v2' in found_functions}}
-
-cdef CUresult _cuStreamDestroy_v2(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuStreamCopyAttributes' in found_functions}}
-
-cdef CUresult _cuStreamCopyAttributes(CUstream dst, CUstream src) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuStreamGetAttribute' in found_functions}}
-
-cdef CUresult _cuStreamGetAttribute(CUstream hStream, CUstreamAttrID attr, CUstreamAttrValue* value_out) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuStreamSetAttribute' in found_functions}}
-
-cdef CUresult _cuStreamSetAttribute(CUstream hStream, CUstreamAttrID attr, const CUstreamAttrValue* value) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuEventCreate' in found_functions}}
-
-cdef CUresult _cuEventCreate(CUevent* phEvent, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuEventRecord' in found_functions}}
-
-cdef CUresult _cuEventRecord(CUevent hEvent, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuEventRecordWithFlags' in found_functions}}
-
-cdef CUresult _cuEventRecordWithFlags(CUevent hEvent, CUstream hStream, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuEventQuery' in found_functions}}
-
-cdef CUresult _cuEventQuery(CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuEventSynchronize' in found_functions}}
-
-cdef CUresult _cuEventSynchronize(CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuEventDestroy_v2' in found_functions}}
-
-cdef CUresult _cuEventDestroy_v2(CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuEventElapsedTime_v2' in found_functions}}
-
-cdef CUresult _cuEventElapsedTime_v2(float* pMilliseconds, CUevent hStart, CUevent hEnd) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuImportExternalMemory' in found_functions}}
-
-cdef CUresult _cuImportExternalMemory(CUexternalMemory* extMem_out, const CUDA_EXTERNAL_MEMORY_HANDLE_DESC* memHandleDesc) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuExternalMemoryGetMappedBuffer' in found_functions}}
-
-cdef CUresult _cuExternalMemoryGetMappedBuffer(CUdeviceptr* devPtr, CUexternalMemory extMem, const CUDA_EXTERNAL_MEMORY_BUFFER_DESC* bufferDesc) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuExternalMemoryGetMappedMipmappedArray' in found_functions}}
-
-cdef CUresult _cuExternalMemoryGetMappedMipmappedArray(CUmipmappedArray* mipmap, CUexternalMemory extMem, const CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC* mipmapDesc) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuDestroyExternalMemory' in found_functions}}
-
-cdef CUresult _cuDestroyExternalMemory(CUexternalMemory extMem) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuImportExternalSemaphore' in found_functions}}
-
-cdef CUresult _cuImportExternalSemaphore(CUexternalSemaphore* extSem_out, const CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC* semHandleDesc) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuSignalExternalSemaphoresAsync' in found_functions}}
-
-cdef CUresult _cuSignalExternalSemaphoresAsync(const CUexternalSemaphore* extSemArray, const CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS* paramsArray, unsigned int numExtSems, CUstream stream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuWaitExternalSemaphoresAsync' in found_functions}}
-
-cdef CUresult _cuWaitExternalSemaphoresAsync(const CUexternalSemaphore* extSemArray, const CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS* paramsArray, unsigned int numExtSems, CUstream stream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuDestroyExternalSemaphore' in found_functions}}
-
-cdef CUresult _cuDestroyExternalSemaphore(CUexternalSemaphore extSem) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuStreamWaitValue32_v2' in found_functions}}
-
-cdef CUresult _cuStreamWaitValue32_v2(CUstream stream, CUdeviceptr addr, cuuint32_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuStreamWaitValue64_v2' in found_functions}}
-
-cdef CUresult _cuStreamWaitValue64_v2(CUstream stream, CUdeviceptr addr, cuuint64_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuStreamWriteValue32_v2' in found_functions}}
-
-cdef CUresult _cuStreamWriteValue32_v2(CUstream stream, CUdeviceptr addr, cuuint32_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuStreamWriteValue64_v2' in found_functions}}
-
-cdef CUresult _cuStreamWriteValue64_v2(CUstream stream, CUdeviceptr addr, cuuint64_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuStreamBatchMemOp_v2' in found_functions}}
-
-cdef CUresult _cuStreamBatchMemOp_v2(CUstream stream, unsigned int count, CUstreamBatchMemOpParams* paramArray, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuFuncGetAttribute' in found_functions}}
-
-cdef CUresult _cuFuncGetAttribute(int* pi, CUfunction_attribute attrib, CUfunction hfunc) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuFuncSetAttribute' in found_functions}}
-
-cdef CUresult _cuFuncSetAttribute(CUfunction hfunc, CUfunction_attribute attrib, int value) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuFuncSetCacheConfig' in found_functions}}
-
-cdef CUresult _cuFuncSetCacheConfig(CUfunction hfunc, CUfunc_cache config) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuFuncGetModule' in found_functions}}
-
-cdef CUresult _cuFuncGetModule(CUmodule* hmod, CUfunction hfunc) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuFuncGetName' in found_functions}}
-
-cdef CUresult _cuFuncGetName(const char** name, CUfunction hfunc) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuFuncGetParamInfo' in found_functions}}
-
-cdef CUresult _cuFuncGetParamInfo(CUfunction func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuFuncIsLoaded' in found_functions}}
-
-cdef CUresult _cuFuncIsLoaded(CUfunctionLoadingState* state, CUfunction function) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuFuncLoad' in found_functions}}
-
-cdef CUresult _cuFuncLoad(CUfunction function) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuLaunchKernel' in found_functions}}
-
-cdef CUresult _cuLaunchKernel(CUfunction f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, CUstream hStream, void** kernelParams, void** extra) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuLaunchKernelEx' in found_functions}}
-
-cdef CUresult _cuLaunchKernelEx(const CUlaunchConfig* config, CUfunction f, void** kernelParams, void** extra) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuLaunchCooperativeKernel' in found_functions}}
-
-cdef CUresult _cuLaunchCooperativeKernel(CUfunction f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, CUstream hStream, void** kernelParams) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuLaunchCooperativeKernelMultiDevice' in found_functions}}
-
-cdef CUresult _cuLaunchCooperativeKernelMultiDevice(CUDA_LAUNCH_PARAMS* launchParamsList, unsigned int numDevices, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuLaunchHostFunc' in found_functions}}
-
-cdef CUresult _cuLaunchHostFunc(CUstream hStream, CUhostFn fn, void* userData) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuFuncSetBlockShape' in found_functions}}
-
-cdef CUresult _cuFuncSetBlockShape(CUfunction hfunc, int x, int y, int z) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuFuncSetSharedSize' in found_functions}}
-
-cdef CUresult _cuFuncSetSharedSize(CUfunction hfunc, unsigned int numbytes) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuParamSetSize' in found_functions}}
-
-cdef CUresult _cuParamSetSize(CUfunction hfunc, unsigned int numbytes) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuParamSeti' in found_functions}}
-
-cdef CUresult _cuParamSeti(CUfunction hfunc, int offset, unsigned int value) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuParamSetf' in found_functions}}
-
-cdef CUresult _cuParamSetf(CUfunction hfunc, int offset, float value) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuParamSetv' in found_functions}}
-
-cdef CUresult _cuParamSetv(CUfunction hfunc, int offset, void* ptr, unsigned int numbytes) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuLaunch' in found_functions}}
-
-cdef CUresult _cuLaunch(CUfunction f) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuLaunchGrid' in found_functions}}
-
-cdef CUresult _cuLaunchGrid(CUfunction f, int grid_width, int grid_height) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuLaunchGridAsync' in found_functions}}
-
-cdef CUresult _cuLaunchGridAsync(CUfunction f, int grid_width, int grid_height, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuParamSetTexRef' in found_functions}}
-
-cdef CUresult _cuParamSetTexRef(CUfunction hfunc, int texunit, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuFuncSetSharedMemConfig' in found_functions}}
-
-cdef CUresult _cuFuncSetSharedMemConfig(CUfunction hfunc, CUsharedconfig config) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphCreate' in found_functions}}
-
-cdef CUresult _cuGraphCreate(CUgraph* phGraph, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphAddKernelNode_v2' in found_functions}}
-
-cdef CUresult _cuGraphAddKernelNode_v2(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphKernelNodeGetParams_v2' in found_functions}}
-
-cdef CUresult _cuGraphKernelNodeGetParams_v2(CUgraphNode hNode, CUDA_KERNEL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphKernelNodeSetParams_v2' in found_functions}}
-
-cdef CUresult _cuGraphKernelNodeSetParams_v2(CUgraphNode hNode, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphAddMemcpyNode' in found_functions}}
-
-cdef CUresult _cuGraphAddMemcpyNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_MEMCPY3D* copyParams, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphMemcpyNodeGetParams' in found_functions}}
-
-cdef CUresult _cuGraphMemcpyNodeGetParams(CUgraphNode hNode, CUDA_MEMCPY3D* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphMemcpyNodeSetParams' in found_functions}}
-
-cdef CUresult _cuGraphMemcpyNodeSetParams(CUgraphNode hNode, const CUDA_MEMCPY3D* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphAddMemsetNode' in found_functions}}
-
-cdef CUresult _cuGraphAddMemsetNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_MEMSET_NODE_PARAMS* memsetParams, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphMemsetNodeGetParams' in found_functions}}
-
-cdef CUresult _cuGraphMemsetNodeGetParams(CUgraphNode hNode, CUDA_MEMSET_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphMemsetNodeSetParams' in found_functions}}
-
-cdef CUresult _cuGraphMemsetNodeSetParams(CUgraphNode hNode, const CUDA_MEMSET_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphAddHostNode' in found_functions}}
-
-cdef CUresult _cuGraphAddHostNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphHostNodeGetParams' in found_functions}}
-
-cdef CUresult _cuGraphHostNodeGetParams(CUgraphNode hNode, CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphHostNodeSetParams' in found_functions}}
-
-cdef CUresult _cuGraphHostNodeSetParams(CUgraphNode hNode, const CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphAddChildGraphNode' in found_functions}}
-
-cdef CUresult _cuGraphAddChildGraphNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUgraph childGraph) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphChildGraphNodeGetGraph' in found_functions}}
-
-cdef CUresult _cuGraphChildGraphNodeGetGraph(CUgraphNode hNode, CUgraph* phGraph) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphAddEmptyNode' in found_functions}}
-
-cdef CUresult _cuGraphAddEmptyNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphAddEventRecordNode' in found_functions}}
-
-cdef CUresult _cuGraphAddEventRecordNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphEventRecordNodeGetEvent' in found_functions}}
-
-cdef CUresult _cuGraphEventRecordNodeGetEvent(CUgraphNode hNode, CUevent* event_out) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphEventRecordNodeSetEvent' in found_functions}}
-
-cdef CUresult _cuGraphEventRecordNodeSetEvent(CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphAddEventWaitNode' in found_functions}}
-
-cdef CUresult _cuGraphAddEventWaitNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphEventWaitNodeGetEvent' in found_functions}}
-
-cdef CUresult _cuGraphEventWaitNodeGetEvent(CUgraphNode hNode, CUevent* event_out) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphEventWaitNodeSetEvent' in found_functions}}
-
-cdef CUresult _cuGraphEventWaitNodeSetEvent(CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphAddExternalSemaphoresSignalNode' in found_functions}}
-
-cdef CUresult _cuGraphAddExternalSemaphoresSignalNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphExternalSemaphoresSignalNodeGetParams' in found_functions}}
-
-cdef CUresult _cuGraphExternalSemaphoresSignalNodeGetParams(CUgraphNode hNode, CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* params_out) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphExternalSemaphoresSignalNodeSetParams' in found_functions}}
-
-cdef CUresult _cuGraphExternalSemaphoresSignalNodeSetParams(CUgraphNode hNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphAddExternalSemaphoresWaitNode' in found_functions}}
-
-cdef CUresult _cuGraphAddExternalSemaphoresWaitNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphExternalSemaphoresWaitNodeGetParams' in found_functions}}
-
-cdef CUresult _cuGraphExternalSemaphoresWaitNodeGetParams(CUgraphNode hNode, CUDA_EXT_SEM_WAIT_NODE_PARAMS* params_out) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphExternalSemaphoresWaitNodeSetParams' in found_functions}}
-
-cdef CUresult _cuGraphExternalSemaphoresWaitNodeSetParams(CUgraphNode hNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphAddBatchMemOpNode' in found_functions}}
-
-cdef CUresult _cuGraphAddBatchMemOpNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphBatchMemOpNodeGetParams' in found_functions}}
-
-cdef CUresult _cuGraphBatchMemOpNodeGetParams(CUgraphNode hNode, CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams_out) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphBatchMemOpNodeSetParams' in found_functions}}
-
-cdef CUresult _cuGraphBatchMemOpNodeSetParams(CUgraphNode hNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphExecBatchMemOpNodeSetParams' in found_functions}}
-
-cdef CUresult _cuGraphExecBatchMemOpNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphAddMemAllocNode' in found_functions}}
-
-cdef CUresult _cuGraphAddMemAllocNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUDA_MEM_ALLOC_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphMemAllocNodeGetParams' in found_functions}}
-
-cdef CUresult _cuGraphMemAllocNodeGetParams(CUgraphNode hNode, CUDA_MEM_ALLOC_NODE_PARAMS* params_out) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphAddMemFreeNode' in found_functions}}
-
-cdef CUresult _cuGraphAddMemFreeNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphMemFreeNodeGetParams' in found_functions}}
-
-cdef CUresult _cuGraphMemFreeNodeGetParams(CUgraphNode hNode, CUdeviceptr* dptr_out) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuDeviceGraphMemTrim' in found_functions}}
-
-cdef CUresult _cuDeviceGraphMemTrim(CUdevice device) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuDeviceGetGraphMemAttribute' in found_functions}}
-
-cdef CUresult _cuDeviceGetGraphMemAttribute(CUdevice device, CUgraphMem_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuDeviceSetGraphMemAttribute' in found_functions}}
-
-cdef CUresult _cuDeviceSetGraphMemAttribute(CUdevice device, CUgraphMem_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphClone' in found_functions}}
-
-cdef CUresult _cuGraphClone(CUgraph* phGraphClone, CUgraph originalGraph) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphNodeFindInClone' in found_functions}}
-
-cdef CUresult _cuGraphNodeFindInClone(CUgraphNode* phNode, CUgraphNode hOriginalNode, CUgraph hClonedGraph) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphNodeGetType' in found_functions}}
-
-cdef CUresult _cuGraphNodeGetType(CUgraphNode hNode, CUgraphNodeType* typename) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphGetNodes' in found_functions}}
-
-cdef CUresult _cuGraphGetNodes(CUgraph hGraph, CUgraphNode* nodes, size_t* numNodes) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphGetRootNodes' in found_functions}}
-
-cdef CUresult _cuGraphGetRootNodes(CUgraph hGraph, CUgraphNode* rootNodes, size_t* numRootNodes) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphGetEdges_v2' in found_functions}}
-
-cdef CUresult _cuGraphGetEdges_v2(CUgraph hGraph, CUgraphNode* from_, CUgraphNode* to, CUgraphEdgeData* edgeData, size_t* numEdges) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphNodeGetDependencies_v2' in found_functions}}
-
-cdef CUresult _cuGraphNodeGetDependencies_v2(CUgraphNode hNode, CUgraphNode* dependencies, CUgraphEdgeData* edgeData, size_t* numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphNodeGetDependentNodes_v2' in found_functions}}
-
-cdef CUresult _cuGraphNodeGetDependentNodes_v2(CUgraphNode hNode, CUgraphNode* dependentNodes, CUgraphEdgeData* edgeData, size_t* numDependentNodes) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphAddDependencies_v2' in found_functions}}
-
-cdef CUresult _cuGraphAddDependencies_v2(CUgraph hGraph, const CUgraphNode* from_, const CUgraphNode* to, const CUgraphEdgeData* edgeData, size_t numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphRemoveDependencies_v2' in found_functions}}
-
-cdef CUresult _cuGraphRemoveDependencies_v2(CUgraph hGraph, const CUgraphNode* from_, const CUgraphNode* to, const CUgraphEdgeData* edgeData, size_t numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphDestroyNode' in found_functions}}
-
-cdef CUresult _cuGraphDestroyNode(CUgraphNode hNode) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphInstantiateWithFlags' in found_functions}}
-
-cdef CUresult _cuGraphInstantiateWithFlags(CUgraphExec* phGraphExec, CUgraph hGraph, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphInstantiateWithParams' in found_functions}}
-
-cdef CUresult _cuGraphInstantiateWithParams(CUgraphExec* phGraphExec, CUgraph hGraph, CUDA_GRAPH_INSTANTIATE_PARAMS* instantiateParams) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphExecGetFlags' in found_functions}}
-
-cdef CUresult _cuGraphExecGetFlags(CUgraphExec hGraphExec, cuuint64_t* flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphExecKernelNodeSetParams_v2' in found_functions}}
-
-cdef CUresult _cuGraphExecKernelNodeSetParams_v2(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphExecMemcpyNodeSetParams' in found_functions}}
-
-cdef CUresult _cuGraphExecMemcpyNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_MEMCPY3D* copyParams, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphExecMemsetNodeSetParams' in found_functions}}
-
-cdef CUresult _cuGraphExecMemsetNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_MEMSET_NODE_PARAMS* memsetParams, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphExecHostNodeSetParams' in found_functions}}
-
-cdef CUresult _cuGraphExecHostNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphExecChildGraphNodeSetParams' in found_functions}}
-
-cdef CUresult _cuGraphExecChildGraphNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, CUgraph childGraph) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphExecEventRecordNodeSetEvent' in found_functions}}
-
-cdef CUresult _cuGraphExecEventRecordNodeSetEvent(CUgraphExec hGraphExec, CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphExecEventWaitNodeSetEvent' in found_functions}}
-
-cdef CUresult _cuGraphExecEventWaitNodeSetEvent(CUgraphExec hGraphExec, CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphExecExternalSemaphoresSignalNodeSetParams' in found_functions}}
-
-cdef CUresult _cuGraphExecExternalSemaphoresSignalNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphExecExternalSemaphoresWaitNodeSetParams' in found_functions}}
-
-cdef CUresult _cuGraphExecExternalSemaphoresWaitNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphNodeSetEnabled' in found_functions}}
-
-cdef CUresult _cuGraphNodeSetEnabled(CUgraphExec hGraphExec, CUgraphNode hNode, unsigned int isEnabled) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphNodeGetEnabled' in found_functions}}
-
-cdef CUresult _cuGraphNodeGetEnabled(CUgraphExec hGraphExec, CUgraphNode hNode, unsigned int* isEnabled) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphUpload' in found_functions}}
-
-cdef CUresult _cuGraphUpload(CUgraphExec hGraphExec, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphLaunch' in found_functions}}
-
-cdef CUresult _cuGraphLaunch(CUgraphExec hGraphExec, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphExecDestroy' in found_functions}}
-
-cdef CUresult _cuGraphExecDestroy(CUgraphExec hGraphExec) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphDestroy' in found_functions}}
-
-cdef CUresult _cuGraphDestroy(CUgraph hGraph) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphExecUpdate_v2' in found_functions}}
-
-cdef CUresult _cuGraphExecUpdate_v2(CUgraphExec hGraphExec, CUgraph hGraph, CUgraphExecUpdateResultInfo* resultInfo) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphKernelNodeCopyAttributes' in found_functions}}
-
-cdef CUresult _cuGraphKernelNodeCopyAttributes(CUgraphNode dst, CUgraphNode src) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphKernelNodeGetAttribute' in found_functions}}
-
-cdef CUresult _cuGraphKernelNodeGetAttribute(CUgraphNode hNode, CUkernelNodeAttrID attr, CUkernelNodeAttrValue* value_out) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphKernelNodeSetAttribute' in found_functions}}
-
-cdef CUresult _cuGraphKernelNodeSetAttribute(CUgraphNode hNode, CUkernelNodeAttrID attr, const CUkernelNodeAttrValue* value) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphDebugDotPrint' in found_functions}}
-
-cdef CUresult _cuGraphDebugDotPrint(CUgraph hGraph, const char* path, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuUserObjectCreate' in found_functions}}
-
-cdef CUresult _cuUserObjectCreate(CUuserObject* object_out, void* ptr, CUhostFn destroy, unsigned int initialRefcount, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuUserObjectRetain' in found_functions}}
-
-cdef CUresult _cuUserObjectRetain(CUuserObject object, unsigned int count) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuUserObjectRelease' in found_functions}}
-
-cdef CUresult _cuUserObjectRelease(CUuserObject object, unsigned int count) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphRetainUserObject' in found_functions}}
-
-cdef CUresult _cuGraphRetainUserObject(CUgraph graph, CUuserObject object, unsigned int count, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphReleaseUserObject' in found_functions}}
-
-cdef CUresult _cuGraphReleaseUserObject(CUgraph graph, CUuserObject object, unsigned int count) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphAddNode_v2' in found_functions}}
-
-cdef CUresult _cuGraphAddNode_v2(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphNodeSetParams' in found_functions}}
-
-cdef CUresult _cuGraphNodeSetParams(CUgraphNode hNode, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphExecNodeSetParams' in found_functions}}
-
-cdef CUresult _cuGraphExecNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphConditionalHandleCreate' in found_functions}}
-
-cdef CUresult _cuGraphConditionalHandleCreate(CUgraphConditionalHandle* pHandle_out, CUgraph hGraph, CUcontext ctx, unsigned int defaultLaunchValue, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuOccupancyMaxActiveBlocksPerMultiprocessor' in found_functions}}
-
-cdef CUresult _cuOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, CUfunction func, int blockSize, size_t dynamicSMemSize) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags' in found_functions}}
-
-cdef CUresult _cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks, CUfunction func, int blockSize, size_t dynamicSMemSize, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuOccupancyMaxPotentialBlockSize' in found_functions}}
-
-cdef CUresult _cuOccupancyMaxPotentialBlockSize(int* minGridSize, int* blockSize, CUfunction func, CUoccupancyB2DSize blockSizeToDynamicSMemSize, size_t dynamicSMemSize, int blockSizeLimit) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuOccupancyMaxPotentialBlockSizeWithFlags' in found_functions}}
-
-cdef CUresult _cuOccupancyMaxPotentialBlockSizeWithFlags(int* minGridSize, int* blockSize, CUfunction func, CUoccupancyB2DSize blockSizeToDynamicSMemSize, size_t dynamicSMemSize, int blockSizeLimit, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuOccupancyAvailableDynamicSMemPerBlock' in found_functions}}
-
-cdef CUresult _cuOccupancyAvailableDynamicSMemPerBlock(size_t* dynamicSmemSize, CUfunction func, int numBlocks, int blockSize) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuOccupancyMaxPotentialClusterSize' in found_functions}}
-
-cdef CUresult _cuOccupancyMaxPotentialClusterSize(int* clusterSize, CUfunction func, const CUlaunchConfig* config) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuOccupancyMaxActiveClusters' in found_functions}}
-
-cdef CUresult _cuOccupancyMaxActiveClusters(int* numClusters, CUfunction func, const CUlaunchConfig* config) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuTexRefSetArray' in found_functions}}
-
-cdef CUresult _cuTexRefSetArray(CUtexref hTexRef, CUarray hArray, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuTexRefSetMipmappedArray' in found_functions}}
-
-cdef CUresult _cuTexRefSetMipmappedArray(CUtexref hTexRef, CUmipmappedArray hMipmappedArray, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuTexRefSetAddress_v2' in found_functions}}
-
-cdef CUresult _cuTexRefSetAddress_v2(size_t* ByteOffset, CUtexref hTexRef, CUdeviceptr dptr, size_t numbytes) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuTexRefSetAddress2D_v3' in found_functions}}
-
-cdef CUresult _cuTexRefSetAddress2D_v3(CUtexref hTexRef, const CUDA_ARRAY_DESCRIPTOR* desc, CUdeviceptr dptr, size_t Pitch) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuTexRefSetFormat' in found_functions}}
-
-cdef CUresult _cuTexRefSetFormat(CUtexref hTexRef, CUarray_format fmt, int NumPackedComponents) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuTexRefSetAddressMode' in found_functions}}
-
-cdef CUresult _cuTexRefSetAddressMode(CUtexref hTexRef, int dim, CUaddress_mode am) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuTexRefSetFilterMode' in found_functions}}
-
-cdef CUresult _cuTexRefSetFilterMode(CUtexref hTexRef, CUfilter_mode fm) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuTexRefSetMipmapFilterMode' in found_functions}}
-
-cdef CUresult _cuTexRefSetMipmapFilterMode(CUtexref hTexRef, CUfilter_mode fm) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuTexRefSetMipmapLevelBias' in found_functions}}
-
-cdef CUresult _cuTexRefSetMipmapLevelBias(CUtexref hTexRef, float bias) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuTexRefSetMipmapLevelClamp' in found_functions}}
-
-cdef CUresult _cuTexRefSetMipmapLevelClamp(CUtexref hTexRef, float minMipmapLevelClamp, float maxMipmapLevelClamp) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuTexRefSetMaxAnisotropy' in found_functions}}
-
-cdef CUresult _cuTexRefSetMaxAnisotropy(CUtexref hTexRef, unsigned int maxAniso) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuTexRefSetBorderColor' in found_functions}}
-
-cdef CUresult _cuTexRefSetBorderColor(CUtexref hTexRef, float* pBorderColor) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuTexRefSetFlags' in found_functions}}
-
-cdef CUresult _cuTexRefSetFlags(CUtexref hTexRef, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuTexRefGetAddress_v2' in found_functions}}
-
-cdef CUresult _cuTexRefGetAddress_v2(CUdeviceptr* pdptr, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuTexRefGetArray' in found_functions}}
-
-cdef CUresult _cuTexRefGetArray(CUarray* phArray, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuTexRefGetMipmappedArray' in found_functions}}
-
-cdef CUresult _cuTexRefGetMipmappedArray(CUmipmappedArray* phMipmappedArray, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuTexRefGetAddressMode' in found_functions}}
-
-cdef CUresult _cuTexRefGetAddressMode(CUaddress_mode* pam, CUtexref hTexRef, int dim) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuTexRefGetFilterMode' in found_functions}}
-
-cdef CUresult _cuTexRefGetFilterMode(CUfilter_mode* pfm, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuTexRefGetFormat' in found_functions}}
-
-cdef CUresult _cuTexRefGetFormat(CUarray_format* pFormat, int* pNumChannels, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuTexRefGetMipmapFilterMode' in found_functions}}
-
-cdef CUresult _cuTexRefGetMipmapFilterMode(CUfilter_mode* pfm, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuTexRefGetMipmapLevelBias' in found_functions}}
-
-cdef CUresult _cuTexRefGetMipmapLevelBias(float* pbias, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuTexRefGetMipmapLevelClamp' in found_functions}}
-
-cdef CUresult _cuTexRefGetMipmapLevelClamp(float* pminMipmapLevelClamp, float* pmaxMipmapLevelClamp, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuTexRefGetMaxAnisotropy' in found_functions}}
-
-cdef CUresult _cuTexRefGetMaxAnisotropy(int* pmaxAniso, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuTexRefGetBorderColor' in found_functions}}
-
-cdef CUresult _cuTexRefGetBorderColor(float* pBorderColor, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuTexRefGetFlags' in found_functions}}
-
-cdef CUresult _cuTexRefGetFlags(unsigned int* pFlags, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuTexRefCreate' in found_functions}}
-
-cdef CUresult _cuTexRefCreate(CUtexref* pTexRef) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuTexRefDestroy' in found_functions}}
-
-cdef CUresult _cuTexRefDestroy(CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuSurfRefSetArray' in found_functions}}
-
-cdef CUresult _cuSurfRefSetArray(CUsurfref hSurfRef, CUarray hArray, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuSurfRefGetArray' in found_functions}}
-
-cdef CUresult _cuSurfRefGetArray(CUarray* phArray, CUsurfref hSurfRef) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuTexObjectCreate' in found_functions}}
-
-cdef CUresult _cuTexObjectCreate(CUtexObject* pTexObject, const CUDA_RESOURCE_DESC* pResDesc, const CUDA_TEXTURE_DESC* pTexDesc, const CUDA_RESOURCE_VIEW_DESC* pResViewDesc) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuTexObjectDestroy' in found_functions}}
-
-cdef CUresult _cuTexObjectDestroy(CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuTexObjectGetResourceDesc' in found_functions}}
-
-cdef CUresult _cuTexObjectGetResourceDesc(CUDA_RESOURCE_DESC* pResDesc, CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuTexObjectGetTextureDesc' in found_functions}}
-
-cdef CUresult _cuTexObjectGetTextureDesc(CUDA_TEXTURE_DESC* pTexDesc, CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuTexObjectGetResourceViewDesc' in found_functions}}
-
-cdef CUresult _cuTexObjectGetResourceViewDesc(CUDA_RESOURCE_VIEW_DESC* pResViewDesc, CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuSurfObjectCreate' in found_functions}}
-
-cdef CUresult _cuSurfObjectCreate(CUsurfObject* pSurfObject, const CUDA_RESOURCE_DESC* pResDesc) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuSurfObjectDestroy' in found_functions}}
-
-cdef CUresult _cuSurfObjectDestroy(CUsurfObject surfObject) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuSurfObjectGetResourceDesc' in found_functions}}
-
-cdef CUresult _cuSurfObjectGetResourceDesc(CUDA_RESOURCE_DESC* pResDesc, CUsurfObject surfObject) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuTensorMapEncodeTiled' in found_functions}}
-
-cdef CUresult _cuTensorMapEncodeTiled(CUtensorMap* tensorMap, CUtensorMapDataType tensorDataType, cuuint32_t tensorRank, void* globalAddress, const cuuint64_t* globalDim, const cuuint64_t* globalStrides, const cuuint32_t* boxDim, const cuuint32_t* elementStrides, CUtensorMapInterleave interleave, CUtensorMapSwizzle swizzle, CUtensorMapL2promotion l2Promotion, CUtensorMapFloatOOBfill oobFill) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuTensorMapEncodeIm2col' in found_functions}}
-
-cdef CUresult _cuTensorMapEncodeIm2col(CUtensorMap* tensorMap, CUtensorMapDataType tensorDataType, cuuint32_t tensorRank, void* globalAddress, const cuuint64_t* globalDim, const cuuint64_t* globalStrides, const int* pixelBoxLowerCorner, const int* pixelBoxUpperCorner, cuuint32_t channelsPerPixel, cuuint32_t pixelsPerColumn, const cuuint32_t* elementStrides, CUtensorMapInterleave interleave, CUtensorMapSwizzle swizzle, CUtensorMapL2promotion l2Promotion, CUtensorMapFloatOOBfill oobFill) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuTensorMapEncodeIm2colWide' in found_functions}}
-
-cdef CUresult _cuTensorMapEncodeIm2colWide(CUtensorMap* tensorMap, CUtensorMapDataType tensorDataType, cuuint32_t tensorRank, void* globalAddress, const cuuint64_t* globalDim, const cuuint64_t* globalStrides, int pixelBoxLowerCornerWidth, int pixelBoxUpperCornerWidth, cuuint32_t channelsPerPixel, cuuint32_t pixelsPerColumn, const cuuint32_t* elementStrides, CUtensorMapInterleave interleave, CUtensorMapIm2ColWideMode mode, CUtensorMapSwizzle swizzle, CUtensorMapL2promotion l2Promotion, CUtensorMapFloatOOBfill oobFill) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuTensorMapReplaceAddress' in found_functions}}
-
-cdef CUresult _cuTensorMapReplaceAddress(CUtensorMap* tensorMap, void* globalAddress) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuDeviceCanAccessPeer' in found_functions}}
-
-cdef CUresult _cuDeviceCanAccessPeer(int* canAccessPeer, CUdevice dev, CUdevice peerDev) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCtxEnablePeerAccess' in found_functions}}
-
-cdef CUresult _cuCtxEnablePeerAccess(CUcontext peerContext, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCtxDisablePeerAccess' in found_functions}}
-
-cdef CUresult _cuCtxDisablePeerAccess(CUcontext peerContext) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuDeviceGetP2PAttribute' in found_functions}}
-
-cdef CUresult _cuDeviceGetP2PAttribute(int* value, CUdevice_P2PAttribute attrib, CUdevice srcDevice, CUdevice dstDevice) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuDeviceGetP2PAtomicCapabilities' in found_functions}}
-
-cdef CUresult _cuDeviceGetP2PAtomicCapabilities(unsigned int* capabilities, const CUatomicOperation* operations, unsigned int count, CUdevice srcDevice, CUdevice dstDevice) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphicsUnregisterResource' in found_functions}}
-
-cdef CUresult _cuGraphicsUnregisterResource(CUgraphicsResource resource) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphicsSubResourceGetMappedArray' in found_functions}}
-
-cdef CUresult _cuGraphicsSubResourceGetMappedArray(CUarray* pArray, CUgraphicsResource resource, unsigned int arrayIndex, unsigned int mipLevel) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphicsResourceGetMappedMipmappedArray' in found_functions}}
-
-cdef CUresult _cuGraphicsResourceGetMappedMipmappedArray(CUmipmappedArray* pMipmappedArray, CUgraphicsResource resource) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphicsResourceGetMappedPointer_v2' in found_functions}}
-
-cdef CUresult _cuGraphicsResourceGetMappedPointer_v2(CUdeviceptr* pDevPtr, size_t* pSize, CUgraphicsResource resource) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphicsResourceSetMapFlags_v2' in found_functions}}
-
-cdef CUresult _cuGraphicsResourceSetMapFlags_v2(CUgraphicsResource resource, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphicsMapResources' in found_functions}}
-
-cdef CUresult _cuGraphicsMapResources(unsigned int count, CUgraphicsResource* resources, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGraphicsUnmapResources' in found_functions}}
-
-cdef CUresult _cuGraphicsUnmapResources(unsigned int count, CUgraphicsResource* resources, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGetProcAddress_v2' in found_functions}}
-
-cdef CUresult _cuGetProcAddress_v2(const char* symbol, void** pfn, int cudaVersion, cuuint64_t flags, CUdriverProcAddressQueryResult* symbolStatus) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCoredumpGetAttribute' in found_functions}}
-
-cdef CUresult _cuCoredumpGetAttribute(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCoredumpGetAttributeGlobal' in found_functions}}
-
-cdef CUresult _cuCoredumpGetAttributeGlobal(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCoredumpSetAttribute' in found_functions}}
-
-cdef CUresult _cuCoredumpSetAttribute(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCoredumpSetAttributeGlobal' in found_functions}}
-
-cdef CUresult _cuCoredumpSetAttributeGlobal(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGetExportTable' in found_functions}}
-
-cdef CUresult _cuGetExportTable(const void** ppExportTable, const CUuuid* pExportTableId) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGreenCtxCreate' in found_functions}}
-
-cdef CUresult _cuGreenCtxCreate(CUgreenCtx* phCtx, CUdevResourceDesc desc, CUdevice dev, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGreenCtxDestroy' in found_functions}}
-
-cdef CUresult _cuGreenCtxDestroy(CUgreenCtx hCtx) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCtxFromGreenCtx' in found_functions}}
-
-cdef CUresult _cuCtxFromGreenCtx(CUcontext* pContext, CUgreenCtx hCtx) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuDeviceGetDevResource' in found_functions}}
-
-cdef CUresult _cuDeviceGetDevResource(CUdevice device, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCtxGetDevResource' in found_functions}}
-
-cdef CUresult _cuCtxGetDevResource(CUcontext hCtx, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGreenCtxGetDevResource' in found_functions}}
-
-cdef CUresult _cuGreenCtxGetDevResource(CUgreenCtx hCtx, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuDevSmResourceSplitByCount' in found_functions}}
-
-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
-{{endif}}
-
-{{if 'cuDevResourceGenerateDesc' in found_functions}}
-
-cdef CUresult _cuDevResourceGenerateDesc(CUdevResourceDesc* phDesc, CUdevResource* resources, unsigned int nbResources) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGreenCtxRecordEvent' in found_functions}}
-
-cdef CUresult _cuGreenCtxRecordEvent(CUgreenCtx hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGreenCtxWaitEvent' in found_functions}}
-
-cdef CUresult _cuGreenCtxWaitEvent(CUgreenCtx hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuStreamGetGreenCtx' in found_functions}}
-
-cdef CUresult _cuStreamGetGreenCtx(CUstream hStream, CUgreenCtx* phCtx) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGreenCtxStreamCreate' in found_functions}}
-
-cdef CUresult _cuGreenCtxStreamCreate(CUstream* phStream, CUgreenCtx greenCtx, unsigned int flags, int priority) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuGreenCtxGetId' in found_functions}}
-
-cdef CUresult _cuGreenCtxGetId(CUgreenCtx greenCtx, unsigned long long* greenCtxId) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuLogsRegisterCallback' in found_functions}}
-
-cdef CUresult _cuLogsRegisterCallback(CUlogsCallback callbackFunc, void* userData, CUlogsCallbackHandle* callback_out) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuLogsUnregisterCallback' in found_functions}}
-
-cdef CUresult _cuLogsUnregisterCallback(CUlogsCallbackHandle callback) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuLogsCurrent' in found_functions}}
-
-cdef CUresult _cuLogsCurrent(CUlogIterator* iterator_out, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuLogsDumpToFile' in found_functions}}
-
-cdef CUresult _cuLogsDumpToFile(CUlogIterator* iterator, const char* pathToFile, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuLogsDumpToMemory' in found_functions}}
-
-cdef CUresult _cuLogsDumpToMemory(CUlogIterator* iterator, char* buffer, size_t* size, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCheckpointProcessGetRestoreThreadId' in found_functions}}
-
-cdef CUresult _cuCheckpointProcessGetRestoreThreadId(int pid, int* tid) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCheckpointProcessGetState' in found_functions}}
-
-cdef CUresult _cuCheckpointProcessGetState(int pid, CUprocessState* state) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCheckpointProcessLock' in found_functions}}
-
-cdef CUresult _cuCheckpointProcessLock(int pid, CUcheckpointLockArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCheckpointProcessCheckpoint' in found_functions}}
-
-cdef CUresult _cuCheckpointProcessCheckpoint(int pid, CUcheckpointCheckpointArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCheckpointProcessRestore' in found_functions}}
-
-cdef CUresult _cuCheckpointProcessRestore(int pid, CUcheckpointRestoreArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuCheckpointProcessUnlock' in found_functions}}
-
-cdef CUresult _cuCheckpointProcessUnlock(int pid, CUcheckpointUnlockArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuProfilerStart' in found_functions}}
-
-cdef CUresult _cuProfilerStart() except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if 'cuProfilerStop' in found_functions}}
-
-cdef CUresult _cuProfilerStop() except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if True}}
-
-cdef CUresult _cuGraphicsEGLRegisterImage(CUgraphicsResource* pCudaResource, EGLImageKHR image, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if True}}
-
-cdef CUresult _cuEGLStreamConsumerConnect(CUeglStreamConnection* conn, EGLStreamKHR stream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if True}}
-
-cdef CUresult _cuEGLStreamConsumerConnectWithFlags(CUeglStreamConnection* conn, EGLStreamKHR stream, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if True}}
-
-cdef CUresult _cuEGLStreamConsumerDisconnect(CUeglStreamConnection* conn) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if True}}
-
-cdef CUresult _cuEGLStreamConsumerAcquireFrame(CUeglStreamConnection* conn, CUgraphicsResource* pCudaResource, CUstream* pStream, unsigned int timeout) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if True}}
-
-cdef CUresult _cuEGLStreamConsumerReleaseFrame(CUeglStreamConnection* conn, CUgraphicsResource pCudaResource, CUstream* pStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if True}}
-
-cdef CUresult _cuEGLStreamProducerConnect(CUeglStreamConnection* conn, EGLStreamKHR stream, EGLint width, EGLint height) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if True}}
-
-cdef CUresult _cuEGLStreamProducerDisconnect(CUeglStreamConnection* conn) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if True}}
-
-cdef CUresult _cuEGLStreamProducerPresentFrame(CUeglStreamConnection* conn, CUeglFrame eglframe, CUstream* pStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if True}}
-
-cdef CUresult _cuEGLStreamProducerReturnFrame(CUeglStreamConnection* conn, CUeglFrame* eglframe, CUstream* pStream) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if True}}
-
-cdef CUresult _cuGraphicsResourceGetMappedEglFrame(CUeglFrame* eglFrame, CUgraphicsResource resource, unsigned int index, unsigned int mipLevel) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if True}}
-
-cdef CUresult _cuEventCreateFromEGLSync(CUevent* phEvent, EGLSyncKHR eglSync, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if True}}
-
-cdef CUresult _cuGraphicsGLRegisterBuffer(CUgraphicsResource* pCudaResource, GLuint buffer, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if True}}
-
-cdef CUresult _cuGraphicsGLRegisterImage(CUgraphicsResource* pCudaResource, GLuint image, GLenum target, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if True}}
-
-cdef CUresult _cuGLGetDevices_v2(unsigned int* pCudaDeviceCount, CUdevice* pCudaDevices, unsigned int cudaDeviceCount, CUGLDeviceList deviceList) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if True}}
-
-cdef CUresult _cuVDPAUGetDevice(CUdevice* pDevice, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if True}}
-
-cdef CUresult _cuVDPAUCtxCreate_v2(CUcontext* pCtx, unsigned int flags, CUdevice device, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if True}}
-
-cdef CUresult _cuGraphicsVDPAURegisterVideoSurface(CUgraphicsResource* pCudaResource, VdpVideoSurface vdpSurface, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
-{{if True}}
-
-cdef CUresult _cuGraphicsVDPAURegisterOutputSurface(CUgraphicsResource* pCudaResource, VdpOutputSurface vdpSurface, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
-{{endif}}
-
diff --git a/cuda_bindings/cuda/bindings/_bindings/cydriver.pyx.in b/cuda_bindings/cuda/bindings/_bindings/cydriver.pyx.in
deleted file mode 100644
index 664d322b8..000000000
--- a/cuda_bindings/cuda/bindings/_bindings/cydriver.pyx.in
+++ /dev/null
@@ -1,16182 +0,0 @@
-# SPDX-FileCopyrightText: Copyright (c) 2021-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
-# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
-
-# This code was automatically generated with version 13.0.0. Do not modify it directly.
-{{if 'Windows' == platform.system()}}
-import os
-cimport cuda.bindings._lib.windll as windll
-{{else}}
-cimport cuda.bindings._lib.dlfcn as dlfcn
-{{endif}}
-from libc.stdint cimport intptr_t, uintptr_t
-import os
-import sys
-cimport cuda.bindings._bindings.loader as loader
-import threading
-
-cdef object __symbol_lock = threading.Lock()
-cdef bint __cuPythonInit = False
-{{if 'cuGetErrorString' in found_functions}}cdef void *__cuGetErrorString = NULL{{endif}}
-{{if 'cuGetErrorName' in found_functions}}cdef void *__cuGetErrorName = NULL{{endif}}
-{{if 'cuInit' in found_functions}}cdef void *__cuInit = NULL{{endif}}
-{{if 'cuDriverGetVersion' in found_functions}}cdef void *__cuDriverGetVersion = NULL{{endif}}
-{{if 'cuDeviceGet' in found_functions}}cdef void *__cuDeviceGet = NULL{{endif}}
-{{if 'cuDeviceGetCount' in found_functions}}cdef void *__cuDeviceGetCount = NULL{{endif}}
-{{if 'cuDeviceGetName' in found_functions}}cdef void *__cuDeviceGetName = NULL{{endif}}
-{{if 'cuDeviceGetUuid_v2' in found_functions}}cdef void *__cuDeviceGetUuid_v2 = NULL{{endif}}
-{{if 'cuDeviceGetLuid' in found_functions}}cdef void *__cuDeviceGetLuid = NULL{{endif}}
-{{if 'cuDeviceTotalMem_v2' in found_functions}}cdef void *__cuDeviceTotalMem_v2 = NULL{{endif}}
-{{if 'cuDeviceGetTexture1DLinearMaxWidth' in found_functions}}cdef void *__cuDeviceGetTexture1DLinearMaxWidth = NULL{{endif}}
-{{if 'cuDeviceGetAttribute' in found_functions}}cdef void *__cuDeviceGetAttribute = NULL{{endif}}
-{{if 'cuDeviceGetHostAtomicCapabilities' in found_functions}}cdef void *__cuDeviceGetHostAtomicCapabilities = NULL{{endif}}
-{{if 'cuDeviceGetNvSciSyncAttributes' in found_functions}}cdef void *__cuDeviceGetNvSciSyncAttributes = NULL{{endif}}
-{{if 'cuDeviceSetMemPool' in found_functions}}cdef void *__cuDeviceSetMemPool = NULL{{endif}}
-{{if 'cuDeviceGetMemPool' in found_functions}}cdef void *__cuDeviceGetMemPool = NULL{{endif}}
-{{if 'cuDeviceGetDefaultMemPool' in found_functions}}cdef void *__cuDeviceGetDefaultMemPool = NULL{{endif}}
-{{if 'cuDeviceGetExecAffinitySupport' in found_functions}}cdef void *__cuDeviceGetExecAffinitySupport = NULL{{endif}}
-{{if 'cuFlushGPUDirectRDMAWrites' in found_functions}}cdef void *__cuFlushGPUDirectRDMAWrites = NULL{{endif}}
-{{if 'cuDeviceGetProperties' in found_functions}}cdef void *__cuDeviceGetProperties = NULL{{endif}}
-{{if 'cuDeviceComputeCapability' in found_functions}}cdef void *__cuDeviceComputeCapability = NULL{{endif}}
-{{if 'cuDevicePrimaryCtxRetain' in found_functions}}cdef void *__cuDevicePrimaryCtxRetain = NULL{{endif}}
-{{if 'cuDevicePrimaryCtxRelease_v2' in found_functions}}cdef void *__cuDevicePrimaryCtxRelease_v2 = NULL{{endif}}
-{{if 'cuDevicePrimaryCtxSetFlags_v2' in found_functions}}cdef void *__cuDevicePrimaryCtxSetFlags_v2 = NULL{{endif}}
-{{if 'cuDevicePrimaryCtxGetState' in found_functions}}cdef void *__cuDevicePrimaryCtxGetState = NULL{{endif}}
-{{if 'cuDevicePrimaryCtxReset_v2' in found_functions}}cdef void *__cuDevicePrimaryCtxReset_v2 = NULL{{endif}}
-{{if 'cuCtxCreate_v4' in found_functions}}cdef void *__cuCtxCreate_v4 = NULL{{endif}}
-{{if 'cuCtxDestroy_v2' in found_functions}}cdef void *__cuCtxDestroy_v2 = NULL{{endif}}
-{{if 'cuCtxPushCurrent_v2' in found_functions}}cdef void *__cuCtxPushCurrent_v2 = NULL{{endif}}
-{{if 'cuCtxPopCurrent_v2' in found_functions}}cdef void *__cuCtxPopCurrent_v2 = NULL{{endif}}
-{{if 'cuCtxSetCurrent' in found_functions}}cdef void *__cuCtxSetCurrent = NULL{{endif}}
-{{if 'cuCtxGetCurrent' in found_functions}}cdef void *__cuCtxGetCurrent = NULL{{endif}}
-{{if 'cuCtxGetDevice' in found_functions}}cdef void *__cuCtxGetDevice = NULL{{endif}}
-{{if 'cuCtxGetDevice_v2' in found_functions}}cdef void *__cuCtxGetDevice_v2 = NULL{{endif}}
-{{if 'cuCtxGetFlags' in found_functions}}cdef void *__cuCtxGetFlags = NULL{{endif}}
-{{if 'cuCtxSetFlags' in found_functions}}cdef void *__cuCtxSetFlags = NULL{{endif}}
-{{if 'cuCtxGetId' in found_functions}}cdef void *__cuCtxGetId = NULL{{endif}}
-{{if 'cuCtxSynchronize' in found_functions}}cdef void *__cuCtxSynchronize = NULL{{endif}}
-{{if 'cuCtxSynchronize_v2' in found_functions}}cdef void *__cuCtxSynchronize_v2 = NULL{{endif}}
-{{if 'cuCtxSetLimit' in found_functions}}cdef void *__cuCtxSetLimit = NULL{{endif}}
-{{if 'cuCtxGetLimit' in found_functions}}cdef void *__cuCtxGetLimit = NULL{{endif}}
-{{if 'cuCtxGetCacheConfig' in found_functions}}cdef void *__cuCtxGetCacheConfig = NULL{{endif}}
-{{if 'cuCtxSetCacheConfig' in found_functions}}cdef void *__cuCtxSetCacheConfig = NULL{{endif}}
-{{if 'cuCtxGetApiVersion' in found_functions}}cdef void *__cuCtxGetApiVersion = NULL{{endif}}
-{{if 'cuCtxGetStreamPriorityRange' in found_functions}}cdef void *__cuCtxGetStreamPriorityRange = NULL{{endif}}
-{{if 'cuCtxResetPersistingL2Cache' in found_functions}}cdef void *__cuCtxResetPersistingL2Cache = NULL{{endif}}
-{{if 'cuCtxGetExecAffinity' in found_functions}}cdef void *__cuCtxGetExecAffinity = NULL{{endif}}
-{{if 'cuCtxRecordEvent' in found_functions}}cdef void *__cuCtxRecordEvent = NULL{{endif}}
-{{if 'cuCtxWaitEvent' in found_functions}}cdef void *__cuCtxWaitEvent = NULL{{endif}}
-{{if 'cuCtxAttach' in found_functions}}cdef void *__cuCtxAttach = NULL{{endif}}
-{{if 'cuCtxDetach' in found_functions}}cdef void *__cuCtxDetach = NULL{{endif}}
-{{if 'cuCtxGetSharedMemConfig' in found_functions}}cdef void *__cuCtxGetSharedMemConfig = NULL{{endif}}
-{{if 'cuCtxSetSharedMemConfig' in found_functions}}cdef void *__cuCtxSetSharedMemConfig = NULL{{endif}}
-{{if 'cuModuleLoad' in found_functions}}cdef void *__cuModuleLoad = NULL{{endif}}
-{{if 'cuModuleLoadData' in found_functions}}cdef void *__cuModuleLoadData = NULL{{endif}}
-{{if 'cuModuleLoadDataEx' in found_functions}}cdef void *__cuModuleLoadDataEx = NULL{{endif}}
-{{if 'cuModuleLoadFatBinary' in found_functions}}cdef void *__cuModuleLoadFatBinary = NULL{{endif}}
-{{if 'cuModuleUnload' in found_functions}}cdef void *__cuModuleUnload = NULL{{endif}}
-{{if 'cuModuleGetLoadingMode' in found_functions}}cdef void *__cuModuleGetLoadingMode = NULL{{endif}}
-{{if 'cuModuleGetFunction' in found_functions}}cdef void *__cuModuleGetFunction = NULL{{endif}}
-{{if 'cuModuleGetFunctionCount' in found_functions}}cdef void *__cuModuleGetFunctionCount = NULL{{endif}}
-{{if 'cuModuleEnumerateFunctions' in found_functions}}cdef void *__cuModuleEnumerateFunctions = NULL{{endif}}
-{{if 'cuModuleGetGlobal_v2' in found_functions}}cdef void *__cuModuleGetGlobal_v2 = NULL{{endif}}
-{{if 'cuLinkCreate_v2' in found_functions}}cdef void *__cuLinkCreate_v2 = NULL{{endif}}
-{{if 'cuLinkAddData_v2' in found_functions}}cdef void *__cuLinkAddData_v2 = NULL{{endif}}
-{{if 'cuLinkAddFile_v2' in found_functions}}cdef void *__cuLinkAddFile_v2 = NULL{{endif}}
-{{if 'cuLinkComplete' in found_functions}}cdef void *__cuLinkComplete = NULL{{endif}}
-{{if 'cuLinkDestroy' in found_functions}}cdef void *__cuLinkDestroy = NULL{{endif}}
-{{if 'cuModuleGetTexRef' in found_functions}}cdef void *__cuModuleGetTexRef = NULL{{endif}}
-{{if 'cuModuleGetSurfRef' in found_functions}}cdef void *__cuModuleGetSurfRef = NULL{{endif}}
-{{if 'cuLibraryLoadData' in found_functions}}cdef void *__cuLibraryLoadData = NULL{{endif}}
-{{if 'cuLibraryLoadFromFile' in found_functions}}cdef void *__cuLibraryLoadFromFile = NULL{{endif}}
-{{if 'cuLibraryUnload' in found_functions}}cdef void *__cuLibraryUnload = NULL{{endif}}
-{{if 'cuLibraryGetKernel' in found_functions}}cdef void *__cuLibraryGetKernel = NULL{{endif}}
-{{if 'cuLibraryGetKernelCount' in found_functions}}cdef void *__cuLibraryGetKernelCount = NULL{{endif}}
-{{if 'cuLibraryEnumerateKernels' in found_functions}}cdef void *__cuLibraryEnumerateKernels = NULL{{endif}}
-{{if 'cuLibraryGetModule' in found_functions}}cdef void *__cuLibraryGetModule = NULL{{endif}}
-{{if 'cuKernelGetFunction' in found_functions}}cdef void *__cuKernelGetFunction = NULL{{endif}}
-{{if 'cuKernelGetLibrary' in found_functions}}cdef void *__cuKernelGetLibrary = NULL{{endif}}
-{{if 'cuLibraryGetGlobal' in found_functions}}cdef void *__cuLibraryGetGlobal = NULL{{endif}}
-{{if 'cuLibraryGetManaged' in found_functions}}cdef void *__cuLibraryGetManaged = NULL{{endif}}
-{{if 'cuLibraryGetUnifiedFunction' in found_functions}}cdef void *__cuLibraryGetUnifiedFunction = NULL{{endif}}
-{{if 'cuKernelGetAttribute' in found_functions}}cdef void *__cuKernelGetAttribute = NULL{{endif}}
-{{if 'cuKernelSetAttribute' in found_functions}}cdef void *__cuKernelSetAttribute = NULL{{endif}}
-{{if 'cuKernelSetCacheConfig' in found_functions}}cdef void *__cuKernelSetCacheConfig = NULL{{endif}}
-{{if 'cuKernelGetName' in found_functions}}cdef void *__cuKernelGetName = NULL{{endif}}
-{{if 'cuKernelGetParamInfo' in found_functions}}cdef void *__cuKernelGetParamInfo = NULL{{endif}}
-{{if 'cuMemGetInfo_v2' in found_functions}}cdef void *__cuMemGetInfo_v2 = NULL{{endif}}
-{{if 'cuMemAlloc_v2' in found_functions}}cdef void *__cuMemAlloc_v2 = NULL{{endif}}
-{{if 'cuMemAllocPitch_v2' in found_functions}}cdef void *__cuMemAllocPitch_v2 = NULL{{endif}}
-{{if 'cuMemFree_v2' in found_functions}}cdef void *__cuMemFree_v2 = NULL{{endif}}
-{{if 'cuMemGetAddressRange_v2' in found_functions}}cdef void *__cuMemGetAddressRange_v2 = NULL{{endif}}
-{{if 'cuMemAllocHost_v2' in found_functions}}cdef void *__cuMemAllocHost_v2 = NULL{{endif}}
-{{if 'cuMemFreeHost' in found_functions}}cdef void *__cuMemFreeHost = NULL{{endif}}
-{{if 'cuMemHostAlloc' in found_functions}}cdef void *__cuMemHostAlloc = NULL{{endif}}
-{{if 'cuMemHostGetDevicePointer_v2' in found_functions}}cdef void *__cuMemHostGetDevicePointer_v2 = NULL{{endif}}
-{{if 'cuMemHostGetFlags' in found_functions}}cdef void *__cuMemHostGetFlags = NULL{{endif}}
-{{if 'cuMemAllocManaged' in found_functions}}cdef void *__cuMemAllocManaged = NULL{{endif}}
-{{if 'cuDeviceRegisterAsyncNotification' in found_functions}}cdef void *__cuDeviceRegisterAsyncNotification = NULL{{endif}}
-{{if 'cuDeviceUnregisterAsyncNotification' in found_functions}}cdef void *__cuDeviceUnregisterAsyncNotification = NULL{{endif}}
-{{if 'cuDeviceGetByPCIBusId' in found_functions}}cdef void *__cuDeviceGetByPCIBusId = NULL{{endif}}
-{{if 'cuDeviceGetPCIBusId' in found_functions}}cdef void *__cuDeviceGetPCIBusId = NULL{{endif}}
-{{if 'cuIpcGetEventHandle' in found_functions}}cdef void *__cuIpcGetEventHandle = NULL{{endif}}
-{{if 'cuIpcOpenEventHandle' in found_functions}}cdef void *__cuIpcOpenEventHandle = NULL{{endif}}
-{{if 'cuIpcGetMemHandle' in found_functions}}cdef void *__cuIpcGetMemHandle = NULL{{endif}}
-{{if 'cuIpcOpenMemHandle_v2' in found_functions}}cdef void *__cuIpcOpenMemHandle_v2 = NULL{{endif}}
-{{if 'cuIpcCloseMemHandle' in found_functions}}cdef void *__cuIpcCloseMemHandle = NULL{{endif}}
-{{if 'cuMemHostRegister_v2' in found_functions}}cdef void *__cuMemHostRegister_v2 = NULL{{endif}}
-{{if 'cuMemHostUnregister' in found_functions}}cdef void *__cuMemHostUnregister = NULL{{endif}}
-{{if 'cuMemcpy' in found_functions}}cdef void *__cuMemcpy = NULL{{endif}}
-{{if 'cuMemcpyPeer' in found_functions}}cdef void *__cuMemcpyPeer = NULL{{endif}}
-{{if 'cuMemcpyHtoD_v2' in found_functions}}cdef void *__cuMemcpyHtoD_v2 = NULL{{endif}}
-{{if 'cuMemcpyDtoH_v2' in found_functions}}cdef void *__cuMemcpyDtoH_v2 = NULL{{endif}}
-{{if 'cuMemcpyDtoD_v2' in found_functions}}cdef void *__cuMemcpyDtoD_v2 = NULL{{endif}}
-{{if 'cuMemcpyDtoA_v2' in found_functions}}cdef void *__cuMemcpyDtoA_v2 = NULL{{endif}}
-{{if 'cuMemcpyAtoD_v2' in found_functions}}cdef void *__cuMemcpyAtoD_v2 = NULL{{endif}}
-{{if 'cuMemcpyHtoA_v2' in found_functions}}cdef void *__cuMemcpyHtoA_v2 = NULL{{endif}}
-{{if 'cuMemcpyAtoH_v2' in found_functions}}cdef void *__cuMemcpyAtoH_v2 = NULL{{endif}}
-{{if 'cuMemcpyAtoA_v2' in found_functions}}cdef void *__cuMemcpyAtoA_v2 = NULL{{endif}}
-{{if 'cuMemcpy2D_v2' in found_functions}}cdef void *__cuMemcpy2D_v2 = NULL{{endif}}
-{{if 'cuMemcpy2DUnaligned_v2' in found_functions}}cdef void *__cuMemcpy2DUnaligned_v2 = NULL{{endif}}
-{{if 'cuMemcpy3D_v2' in found_functions}}cdef void *__cuMemcpy3D_v2 = NULL{{endif}}
-{{if 'cuMemcpy3DPeer' in found_functions}}cdef void *__cuMemcpy3DPeer = NULL{{endif}}
-{{if 'cuMemcpyAsync' in found_functions}}cdef void *__cuMemcpyAsync = NULL{{endif}}
-{{if 'cuMemcpyPeerAsync' in found_functions}}cdef void *__cuMemcpyPeerAsync = NULL{{endif}}
-{{if 'cuMemcpyHtoDAsync_v2' in found_functions}}cdef void *__cuMemcpyHtoDAsync_v2 = NULL{{endif}}
-{{if 'cuMemcpyDtoHAsync_v2' in found_functions}}cdef void *__cuMemcpyDtoHAsync_v2 = NULL{{endif}}
-{{if 'cuMemcpyDtoDAsync_v2' in found_functions}}cdef void *__cuMemcpyDtoDAsync_v2 = NULL{{endif}}
-{{if 'cuMemcpyHtoAAsync_v2' in found_functions}}cdef void *__cuMemcpyHtoAAsync_v2 = NULL{{endif}}
-{{if 'cuMemcpyAtoHAsync_v2' in found_functions}}cdef void *__cuMemcpyAtoHAsync_v2 = NULL{{endif}}
-{{if 'cuMemcpy2DAsync_v2' in found_functions}}cdef void *__cuMemcpy2DAsync_v2 = NULL{{endif}}
-{{if 'cuMemcpy3DAsync_v2' in found_functions}}cdef void *__cuMemcpy3DAsync_v2 = NULL{{endif}}
-{{if 'cuMemcpy3DPeerAsync' in found_functions}}cdef void *__cuMemcpy3DPeerAsync = NULL{{endif}}
-{{if 'cuMemcpyBatchAsync_v2' in found_functions}}cdef void *__cuMemcpyBatchAsync_v2 = NULL{{endif}}
-{{if 'cuMemcpy3DBatchAsync_v2' in found_functions}}cdef void *__cuMemcpy3DBatchAsync_v2 = NULL{{endif}}
-{{if 'cuMemsetD8_v2' in found_functions}}cdef void *__cuMemsetD8_v2 = NULL{{endif}}
-{{if 'cuMemsetD16_v2' in found_functions}}cdef void *__cuMemsetD16_v2 = NULL{{endif}}
-{{if 'cuMemsetD32_v2' in found_functions}}cdef void *__cuMemsetD32_v2 = NULL{{endif}}
-{{if 'cuMemsetD2D8_v2' in found_functions}}cdef void *__cuMemsetD2D8_v2 = NULL{{endif}}
-{{if 'cuMemsetD2D16_v2' in found_functions}}cdef void *__cuMemsetD2D16_v2 = NULL{{endif}}
-{{if 'cuMemsetD2D32_v2' in found_functions}}cdef void *__cuMemsetD2D32_v2 = NULL{{endif}}
-{{if 'cuMemsetD8Async' in found_functions}}cdef void *__cuMemsetD8Async = NULL{{endif}}
-{{if 'cuMemsetD16Async' in found_functions}}cdef void *__cuMemsetD16Async = NULL{{endif}}
-{{if 'cuMemsetD32Async' in found_functions}}cdef void *__cuMemsetD32Async = NULL{{endif}}
-{{if 'cuMemsetD2D8Async' in found_functions}}cdef void *__cuMemsetD2D8Async = NULL{{endif}}
-{{if 'cuMemsetD2D16Async' in found_functions}}cdef void *__cuMemsetD2D16Async = NULL{{endif}}
-{{if 'cuMemsetD2D32Async' in found_functions}}cdef void *__cuMemsetD2D32Async = NULL{{endif}}
-{{if 'cuArrayCreate_v2' in found_functions}}cdef void *__cuArrayCreate_v2 = NULL{{endif}}
-{{if 'cuArrayGetDescriptor_v2' in found_functions}}cdef void *__cuArrayGetDescriptor_v2 = NULL{{endif}}
-{{if 'cuArrayGetSparseProperties' in found_functions}}cdef void *__cuArrayGetSparseProperties = NULL{{endif}}
-{{if 'cuMipmappedArrayGetSparseProperties' in found_functions}}cdef void *__cuMipmappedArrayGetSparseProperties = NULL{{endif}}
-{{if 'cuArrayGetMemoryRequirements' in found_functions}}cdef void *__cuArrayGetMemoryRequirements = NULL{{endif}}
-{{if 'cuMipmappedArrayGetMemoryRequirements' in found_functions}}cdef void *__cuMipmappedArrayGetMemoryRequirements = NULL{{endif}}
-{{if 'cuArrayGetPlane' in found_functions}}cdef void *__cuArrayGetPlane = NULL{{endif}}
-{{if 'cuArrayDestroy' in found_functions}}cdef void *__cuArrayDestroy = NULL{{endif}}
-{{if 'cuArray3DCreate_v2' in found_functions}}cdef void *__cuArray3DCreate_v2 = NULL{{endif}}
-{{if 'cuArray3DGetDescriptor_v2' in found_functions}}cdef void *__cuArray3DGetDescriptor_v2 = NULL{{endif}}
-{{if 'cuMipmappedArrayCreate' in found_functions}}cdef void *__cuMipmappedArrayCreate = NULL{{endif}}
-{{if 'cuMipmappedArrayGetLevel' in found_functions}}cdef void *__cuMipmappedArrayGetLevel = NULL{{endif}}
-{{if 'cuMipmappedArrayDestroy' in found_functions}}cdef void *__cuMipmappedArrayDestroy = NULL{{endif}}
-{{if 'cuMemGetHandleForAddressRange' in found_functions}}cdef void *__cuMemGetHandleForAddressRange = NULL{{endif}}
-{{if 'cuMemBatchDecompressAsync' in found_functions}}cdef void *__cuMemBatchDecompressAsync = NULL{{endif}}
-{{if 'cuMemAddressReserve' in found_functions}}cdef void *__cuMemAddressReserve = NULL{{endif}}
-{{if 'cuMemAddressFree' in found_functions}}cdef void *__cuMemAddressFree = NULL{{endif}}
-{{if 'cuMemCreate' in found_functions}}cdef void *__cuMemCreate = NULL{{endif}}
-{{if 'cuMemRelease' in found_functions}}cdef void *__cuMemRelease = NULL{{endif}}
-{{if 'cuMemMap' in found_functions}}cdef void *__cuMemMap = NULL{{endif}}
-{{if 'cuMemMapArrayAsync' in found_functions}}cdef void *__cuMemMapArrayAsync = NULL{{endif}}
-{{if 'cuMemUnmap' in found_functions}}cdef void *__cuMemUnmap = NULL{{endif}}
-{{if 'cuMemSetAccess' in found_functions}}cdef void *__cuMemSetAccess = NULL{{endif}}
-{{if 'cuMemGetAccess' in found_functions}}cdef void *__cuMemGetAccess = NULL{{endif}}
-{{if 'cuMemExportToShareableHandle' in found_functions}}cdef void *__cuMemExportToShareableHandle = NULL{{endif}}
-{{if 'cuMemImportFromShareableHandle' in found_functions}}cdef void *__cuMemImportFromShareableHandle = NULL{{endif}}
-{{if 'cuMemGetAllocationGranularity' in found_functions}}cdef void *__cuMemGetAllocationGranularity = NULL{{endif}}
-{{if 'cuMemGetAllocationPropertiesFromHandle' in found_functions}}cdef void *__cuMemGetAllocationPropertiesFromHandle = NULL{{endif}}
-{{if 'cuMemRetainAllocationHandle' in found_functions}}cdef void *__cuMemRetainAllocationHandle = NULL{{endif}}
-{{if 'cuMemFreeAsync' in found_functions}}cdef void *__cuMemFreeAsync = NULL{{endif}}
-{{if 'cuMemAllocAsync' in found_functions}}cdef void *__cuMemAllocAsync = NULL{{endif}}
-{{if 'cuMemPoolTrimTo' in found_functions}}cdef void *__cuMemPoolTrimTo = NULL{{endif}}
-{{if 'cuMemPoolSetAttribute' in found_functions}}cdef void *__cuMemPoolSetAttribute = NULL{{endif}}
-{{if 'cuMemPoolGetAttribute' in found_functions}}cdef void *__cuMemPoolGetAttribute = NULL{{endif}}
-{{if 'cuMemPoolSetAccess' in found_functions}}cdef void *__cuMemPoolSetAccess = NULL{{endif}}
-{{if 'cuMemPoolGetAccess' in found_functions}}cdef void *__cuMemPoolGetAccess = NULL{{endif}}
-{{if 'cuMemPoolCreate' in found_functions}}cdef void *__cuMemPoolCreate = NULL{{endif}}
-{{if 'cuMemPoolDestroy' in found_functions}}cdef void *__cuMemPoolDestroy = NULL{{endif}}
-{{if 'cuMemGetDefaultMemPool' in found_functions}}cdef void *__cuMemGetDefaultMemPool = NULL{{endif}}
-{{if 'cuMemGetMemPool' in found_functions}}cdef void *__cuMemGetMemPool = NULL{{endif}}
-{{if 'cuMemSetMemPool' in found_functions}}cdef void *__cuMemSetMemPool = NULL{{endif}}
-{{if 'cuMemAllocFromPoolAsync' in found_functions}}cdef void *__cuMemAllocFromPoolAsync = NULL{{endif}}
-{{if 'cuMemPoolExportToShareableHandle' in found_functions}}cdef void *__cuMemPoolExportToShareableHandle = NULL{{endif}}
-{{if 'cuMemPoolImportFromShareableHandle' in found_functions}}cdef void *__cuMemPoolImportFromShareableHandle = NULL{{endif}}
-{{if 'cuMemPoolExportPointer' in found_functions}}cdef void *__cuMemPoolExportPointer = NULL{{endif}}
-{{if 'cuMemPoolImportPointer' in found_functions}}cdef void *__cuMemPoolImportPointer = NULL{{endif}}
-{{if 'cuMulticastCreate' in found_functions}}cdef void *__cuMulticastCreate = NULL{{endif}}
-{{if 'cuMulticastAddDevice' in found_functions}}cdef void *__cuMulticastAddDevice = NULL{{endif}}
-{{if 'cuMulticastBindMem' in found_functions}}cdef void *__cuMulticastBindMem = NULL{{endif}}
-{{if 'cuMulticastBindAddr' in found_functions}}cdef void *__cuMulticastBindAddr = NULL{{endif}}
-{{if 'cuMulticastUnbind' in found_functions}}cdef void *__cuMulticastUnbind = NULL{{endif}}
-{{if 'cuMulticastGetGranularity' in found_functions}}cdef void *__cuMulticastGetGranularity = NULL{{endif}}
-{{if 'cuPointerGetAttribute' in found_functions}}cdef void *__cuPointerGetAttribute = NULL{{endif}}
-{{if 'cuMemPrefetchAsync_v2' in found_functions}}cdef void *__cuMemPrefetchAsync_v2 = NULL{{endif}}
-{{if 'cuMemAdvise_v2' in found_functions}}cdef void *__cuMemAdvise_v2 = NULL{{endif}}
-{{if 'cuMemPrefetchBatchAsync' in found_functions}}cdef void *__cuMemPrefetchBatchAsync = NULL{{endif}}
-{{if 'cuMemDiscardBatchAsync' in found_functions}}cdef void *__cuMemDiscardBatchAsync = NULL{{endif}}
-{{if 'cuMemDiscardAndPrefetchBatchAsync' in found_functions}}cdef void *__cuMemDiscardAndPrefetchBatchAsync = NULL{{endif}}
-{{if 'cuMemRangeGetAttribute' in found_functions}}cdef void *__cuMemRangeGetAttribute = NULL{{endif}}
-{{if 'cuMemRangeGetAttributes' in found_functions}}cdef void *__cuMemRangeGetAttributes = NULL{{endif}}
-{{if 'cuPointerSetAttribute' in found_functions}}cdef void *__cuPointerSetAttribute = NULL{{endif}}
-{{if 'cuPointerGetAttributes' in found_functions}}cdef void *__cuPointerGetAttributes = NULL{{endif}}
-{{if 'cuStreamCreate' in found_functions}}cdef void *__cuStreamCreate = NULL{{endif}}
-{{if 'cuStreamCreateWithPriority' in found_functions}}cdef void *__cuStreamCreateWithPriority = NULL{{endif}}
-{{if 'cuStreamGetPriority' in found_functions}}cdef void *__cuStreamGetPriority = NULL{{endif}}
-{{if 'cuStreamGetDevice' in found_functions}}cdef void *__cuStreamGetDevice = NULL{{endif}}
-{{if 'cuStreamGetFlags' in found_functions}}cdef void *__cuStreamGetFlags = NULL{{endif}}
-{{if 'cuStreamGetId' in found_functions}}cdef void *__cuStreamGetId = NULL{{endif}}
-{{if 'cuStreamGetCtx' in found_functions}}cdef void *__cuStreamGetCtx = NULL{{endif}}
-{{if 'cuStreamGetCtx_v2' in found_functions}}cdef void *__cuStreamGetCtx_v2 = NULL{{endif}}
-{{if 'cuStreamWaitEvent' in found_functions}}cdef void *__cuStreamWaitEvent = NULL{{endif}}
-{{if 'cuStreamAddCallback' in found_functions}}cdef void *__cuStreamAddCallback = NULL{{endif}}
-{{if 'cuStreamBeginCapture_v2' in found_functions}}cdef void *__cuStreamBeginCapture_v2 = NULL{{endif}}
-{{if 'cuStreamBeginCaptureToGraph' in found_functions}}cdef void *__cuStreamBeginCaptureToGraph = NULL{{endif}}
-{{if 'cuThreadExchangeStreamCaptureMode' in found_functions}}cdef void *__cuThreadExchangeStreamCaptureMode = NULL{{endif}}
-{{if 'cuStreamEndCapture' in found_functions}}cdef void *__cuStreamEndCapture = NULL{{endif}}
-{{if 'cuStreamIsCapturing' in found_functions}}cdef void *__cuStreamIsCapturing = NULL{{endif}}
-{{if 'cuStreamGetCaptureInfo_v3' in found_functions}}cdef void *__cuStreamGetCaptureInfo_v3 = NULL{{endif}}
-{{if 'cuStreamUpdateCaptureDependencies_v2' in found_functions}}cdef void *__cuStreamUpdateCaptureDependencies_v2 = NULL{{endif}}
-{{if 'cuStreamAttachMemAsync' in found_functions}}cdef void *__cuStreamAttachMemAsync = NULL{{endif}}
-{{if 'cuStreamQuery' in found_functions}}cdef void *__cuStreamQuery = NULL{{endif}}
-{{if 'cuStreamSynchronize' in found_functions}}cdef void *__cuStreamSynchronize = NULL{{endif}}
-{{if 'cuStreamDestroy_v2' in found_functions}}cdef void *__cuStreamDestroy_v2 = NULL{{endif}}
-{{if 'cuStreamCopyAttributes' in found_functions}}cdef void *__cuStreamCopyAttributes = NULL{{endif}}
-{{if 'cuStreamGetAttribute' in found_functions}}cdef void *__cuStreamGetAttribute = NULL{{endif}}
-{{if 'cuStreamSetAttribute' in found_functions}}cdef void *__cuStreamSetAttribute = NULL{{endif}}
-{{if 'cuEventCreate' in found_functions}}cdef void *__cuEventCreate = NULL{{endif}}
-{{if 'cuEventRecord' in found_functions}}cdef void *__cuEventRecord = NULL{{endif}}
-{{if 'cuEventRecordWithFlags' in found_functions}}cdef void *__cuEventRecordWithFlags = NULL{{endif}}
-{{if 'cuEventQuery' in found_functions}}cdef void *__cuEventQuery = NULL{{endif}}
-{{if 'cuEventSynchronize' in found_functions}}cdef void *__cuEventSynchronize = NULL{{endif}}
-{{if 'cuEventDestroy_v2' in found_functions}}cdef void *__cuEventDestroy_v2 = NULL{{endif}}
-{{if 'cuEventElapsedTime_v2' in found_functions}}cdef void *__cuEventElapsedTime_v2 = NULL{{endif}}
-{{if 'cuImportExternalMemory' in found_functions}}cdef void *__cuImportExternalMemory = NULL{{endif}}
-{{if 'cuExternalMemoryGetMappedBuffer' in found_functions}}cdef void *__cuExternalMemoryGetMappedBuffer = NULL{{endif}}
-{{if 'cuExternalMemoryGetMappedMipmappedArray' in found_functions}}cdef void *__cuExternalMemoryGetMappedMipmappedArray = NULL{{endif}}
-{{if 'cuDestroyExternalMemory' in found_functions}}cdef void *__cuDestroyExternalMemory = NULL{{endif}}
-{{if 'cuImportExternalSemaphore' in found_functions}}cdef void *__cuImportExternalSemaphore = NULL{{endif}}
-{{if 'cuSignalExternalSemaphoresAsync' in found_functions}}cdef void *__cuSignalExternalSemaphoresAsync = NULL{{endif}}
-{{if 'cuWaitExternalSemaphoresAsync' in found_functions}}cdef void *__cuWaitExternalSemaphoresAsync = NULL{{endif}}
-{{if 'cuDestroyExternalSemaphore' in found_functions}}cdef void *__cuDestroyExternalSemaphore = NULL{{endif}}
-{{if 'cuStreamWaitValue32_v2' in found_functions}}cdef void *__cuStreamWaitValue32_v2 = NULL{{endif}}
-{{if 'cuStreamWaitValue64_v2' in found_functions}}cdef void *__cuStreamWaitValue64_v2 = NULL{{endif}}
-{{if 'cuStreamWriteValue32_v2' in found_functions}}cdef void *__cuStreamWriteValue32_v2 = NULL{{endif}}
-{{if 'cuStreamWriteValue64_v2' in found_functions}}cdef void *__cuStreamWriteValue64_v2 = NULL{{endif}}
-{{if 'cuStreamBatchMemOp_v2' in found_functions}}cdef void *__cuStreamBatchMemOp_v2 = NULL{{endif}}
-{{if 'cuFuncGetAttribute' in found_functions}}cdef void *__cuFuncGetAttribute = NULL{{endif}}
-{{if 'cuFuncSetAttribute' in found_functions}}cdef void *__cuFuncSetAttribute = NULL{{endif}}
-{{if 'cuFuncSetCacheConfig' in found_functions}}cdef void *__cuFuncSetCacheConfig = NULL{{endif}}
-{{if 'cuFuncGetModule' in found_functions}}cdef void *__cuFuncGetModule = NULL{{endif}}
-{{if 'cuFuncGetName' in found_functions}}cdef void *__cuFuncGetName = NULL{{endif}}
-{{if 'cuFuncGetParamInfo' in found_functions}}cdef void *__cuFuncGetParamInfo = NULL{{endif}}
-{{if 'cuFuncIsLoaded' in found_functions}}cdef void *__cuFuncIsLoaded = NULL{{endif}}
-{{if 'cuFuncLoad' in found_functions}}cdef void *__cuFuncLoad = NULL{{endif}}
-{{if 'cuLaunchKernel' in found_functions}}cdef void *__cuLaunchKernel = NULL{{endif}}
-{{if 'cuLaunchKernelEx' in found_functions}}cdef void *__cuLaunchKernelEx = NULL{{endif}}
-{{if 'cuLaunchCooperativeKernel' in found_functions}}cdef void *__cuLaunchCooperativeKernel = NULL{{endif}}
-{{if 'cuLaunchCooperativeKernelMultiDevice' in found_functions}}cdef void *__cuLaunchCooperativeKernelMultiDevice = NULL{{endif}}
-{{if 'cuLaunchHostFunc' in found_functions}}cdef void *__cuLaunchHostFunc = NULL{{endif}}
-{{if 'cuFuncSetBlockShape' in found_functions}}cdef void *__cuFuncSetBlockShape = NULL{{endif}}
-{{if 'cuFuncSetSharedSize' in found_functions}}cdef void *__cuFuncSetSharedSize = NULL{{endif}}
-{{if 'cuParamSetSize' in found_functions}}cdef void *__cuParamSetSize = NULL{{endif}}
-{{if 'cuParamSeti' in found_functions}}cdef void *__cuParamSeti = NULL{{endif}}
-{{if 'cuParamSetf' in found_functions}}cdef void *__cuParamSetf = NULL{{endif}}
-{{if 'cuParamSetv' in found_functions}}cdef void *__cuParamSetv = NULL{{endif}}
-{{if 'cuLaunch' in found_functions}}cdef void *__cuLaunch = NULL{{endif}}
-{{if 'cuLaunchGrid' in found_functions}}cdef void *__cuLaunchGrid = NULL{{endif}}
-{{if 'cuLaunchGridAsync' in found_functions}}cdef void *__cuLaunchGridAsync = NULL{{endif}}
-{{if 'cuParamSetTexRef' in found_functions}}cdef void *__cuParamSetTexRef = NULL{{endif}}
-{{if 'cuFuncSetSharedMemConfig' in found_functions}}cdef void *__cuFuncSetSharedMemConfig = NULL{{endif}}
-{{if 'cuGraphCreate' in found_functions}}cdef void *__cuGraphCreate = NULL{{endif}}
-{{if 'cuGraphAddKernelNode_v2' in found_functions}}cdef void *__cuGraphAddKernelNode_v2 = NULL{{endif}}
-{{if 'cuGraphKernelNodeGetParams_v2' in found_functions}}cdef void *__cuGraphKernelNodeGetParams_v2 = NULL{{endif}}
-{{if 'cuGraphKernelNodeSetParams_v2' in found_functions}}cdef void *__cuGraphKernelNodeSetParams_v2 = NULL{{endif}}
-{{if 'cuGraphAddMemcpyNode' in found_functions}}cdef void *__cuGraphAddMemcpyNode = NULL{{endif}}
-{{if 'cuGraphMemcpyNodeGetParams' in found_functions}}cdef void *__cuGraphMemcpyNodeGetParams = NULL{{endif}}
-{{if 'cuGraphMemcpyNodeSetParams' in found_functions}}cdef void *__cuGraphMemcpyNodeSetParams = NULL{{endif}}
-{{if 'cuGraphAddMemsetNode' in found_functions}}cdef void *__cuGraphAddMemsetNode = NULL{{endif}}
-{{if 'cuGraphMemsetNodeGetParams' in found_functions}}cdef void *__cuGraphMemsetNodeGetParams = NULL{{endif}}
-{{if 'cuGraphMemsetNodeSetParams' in found_functions}}cdef void *__cuGraphMemsetNodeSetParams = NULL{{endif}}
-{{if 'cuGraphAddHostNode' in found_functions}}cdef void *__cuGraphAddHostNode = NULL{{endif}}
-{{if 'cuGraphHostNodeGetParams' in found_functions}}cdef void *__cuGraphHostNodeGetParams = NULL{{endif}}
-{{if 'cuGraphHostNodeSetParams' in found_functions}}cdef void *__cuGraphHostNodeSetParams = NULL{{endif}}
-{{if 'cuGraphAddChildGraphNode' in found_functions}}cdef void *__cuGraphAddChildGraphNode = NULL{{endif}}
-{{if 'cuGraphChildGraphNodeGetGraph' in found_functions}}cdef void *__cuGraphChildGraphNodeGetGraph = NULL{{endif}}
-{{if 'cuGraphAddEmptyNode' in found_functions}}cdef void *__cuGraphAddEmptyNode = NULL{{endif}}
-{{if 'cuGraphAddEventRecordNode' in found_functions}}cdef void *__cuGraphAddEventRecordNode = NULL{{endif}}
-{{if 'cuGraphEventRecordNodeGetEvent' in found_functions}}cdef void *__cuGraphEventRecordNodeGetEvent = NULL{{endif}}
-{{if 'cuGraphEventRecordNodeSetEvent' in found_functions}}cdef void *__cuGraphEventRecordNodeSetEvent = NULL{{endif}}
-{{if 'cuGraphAddEventWaitNode' in found_functions}}cdef void *__cuGraphAddEventWaitNode = NULL{{endif}}
-{{if 'cuGraphEventWaitNodeGetEvent' in found_functions}}cdef void *__cuGraphEventWaitNodeGetEvent = NULL{{endif}}
-{{if 'cuGraphEventWaitNodeSetEvent' in found_functions}}cdef void *__cuGraphEventWaitNodeSetEvent = NULL{{endif}}
-{{if 'cuGraphAddExternalSemaphoresSignalNode' in found_functions}}cdef void *__cuGraphAddExternalSemaphoresSignalNode = NULL{{endif}}
-{{if 'cuGraphExternalSemaphoresSignalNodeGetParams' in found_functions}}cdef void *__cuGraphExternalSemaphoresSignalNodeGetParams = NULL{{endif}}
-{{if 'cuGraphExternalSemaphoresSignalNodeSetParams' in found_functions}}cdef void *__cuGraphExternalSemaphoresSignalNodeSetParams = NULL{{endif}}
-{{if 'cuGraphAddExternalSemaphoresWaitNode' in found_functions}}cdef void *__cuGraphAddExternalSemaphoresWaitNode = NULL{{endif}}
-{{if 'cuGraphExternalSemaphoresWaitNodeGetParams' in found_functions}}cdef void *__cuGraphExternalSemaphoresWaitNodeGetParams = NULL{{endif}}
-{{if 'cuGraphExternalSemaphoresWaitNodeSetParams' in found_functions}}cdef void *__cuGraphExternalSemaphoresWaitNodeSetParams = NULL{{endif}}
-{{if 'cuGraphAddBatchMemOpNode' in found_functions}}cdef void *__cuGraphAddBatchMemOpNode = NULL{{endif}}
-{{if 'cuGraphBatchMemOpNodeGetParams' in found_functions}}cdef void *__cuGraphBatchMemOpNodeGetParams = NULL{{endif}}
-{{if 'cuGraphBatchMemOpNodeSetParams' in found_functions}}cdef void *__cuGraphBatchMemOpNodeSetParams = NULL{{endif}}
-{{if 'cuGraphExecBatchMemOpNodeSetParams' in found_functions}}cdef void *__cuGraphExecBatchMemOpNodeSetParams = NULL{{endif}}
-{{if 'cuGraphAddMemAllocNode' in found_functions}}cdef void *__cuGraphAddMemAllocNode = NULL{{endif}}
-{{if 'cuGraphMemAllocNodeGetParams' in found_functions}}cdef void *__cuGraphMemAllocNodeGetParams = NULL{{endif}}
-{{if 'cuGraphAddMemFreeNode' in found_functions}}cdef void *__cuGraphAddMemFreeNode = NULL{{endif}}
-{{if 'cuGraphMemFreeNodeGetParams' in found_functions}}cdef void *__cuGraphMemFreeNodeGetParams = NULL{{endif}}
-{{if 'cuDeviceGraphMemTrim' in found_functions}}cdef void *__cuDeviceGraphMemTrim = NULL{{endif}}
-{{if 'cuDeviceGetGraphMemAttribute' in found_functions}}cdef void *__cuDeviceGetGraphMemAttribute = NULL{{endif}}
-{{if 'cuDeviceSetGraphMemAttribute' in found_functions}}cdef void *__cuDeviceSetGraphMemAttribute = NULL{{endif}}
-{{if 'cuGraphClone' in found_functions}}cdef void *__cuGraphClone = NULL{{endif}}
-{{if 'cuGraphNodeFindInClone' in found_functions}}cdef void *__cuGraphNodeFindInClone = NULL{{endif}}
-{{if 'cuGraphNodeGetType' in found_functions}}cdef void *__cuGraphNodeGetType = NULL{{endif}}
-{{if 'cuGraphGetNodes' in found_functions}}cdef void *__cuGraphGetNodes = NULL{{endif}}
-{{if 'cuGraphGetRootNodes' in found_functions}}cdef void *__cuGraphGetRootNodes = NULL{{endif}}
-{{if 'cuGraphGetEdges_v2' in found_functions}}cdef void *__cuGraphGetEdges_v2 = NULL{{endif}}
-{{if 'cuGraphNodeGetDependencies_v2' in found_functions}}cdef void *__cuGraphNodeGetDependencies_v2 = NULL{{endif}}
-{{if 'cuGraphNodeGetDependentNodes_v2' in found_functions}}cdef void *__cuGraphNodeGetDependentNodes_v2 = NULL{{endif}}
-{{if 'cuGraphAddDependencies_v2' in found_functions}}cdef void *__cuGraphAddDependencies_v2 = NULL{{endif}}
-{{if 'cuGraphRemoveDependencies_v2' in found_functions}}cdef void *__cuGraphRemoveDependencies_v2 = NULL{{endif}}
-{{if 'cuGraphDestroyNode' in found_functions}}cdef void *__cuGraphDestroyNode = NULL{{endif}}
-{{if 'cuGraphInstantiateWithFlags' in found_functions}}cdef void *__cuGraphInstantiateWithFlags = NULL{{endif}}
-{{if 'cuGraphInstantiateWithParams' in found_functions}}cdef void *__cuGraphInstantiateWithParams = NULL{{endif}}
-{{if 'cuGraphExecGetFlags' in found_functions}}cdef void *__cuGraphExecGetFlags = NULL{{endif}}
-{{if 'cuGraphExecKernelNodeSetParams_v2' in found_functions}}cdef void *__cuGraphExecKernelNodeSetParams_v2 = NULL{{endif}}
-{{if 'cuGraphExecMemcpyNodeSetParams' in found_functions}}cdef void *__cuGraphExecMemcpyNodeSetParams = NULL{{endif}}
-{{if 'cuGraphExecMemsetNodeSetParams' in found_functions}}cdef void *__cuGraphExecMemsetNodeSetParams = NULL{{endif}}
-{{if 'cuGraphExecHostNodeSetParams' in found_functions}}cdef void *__cuGraphExecHostNodeSetParams = NULL{{endif}}
-{{if 'cuGraphExecChildGraphNodeSetParams' in found_functions}}cdef void *__cuGraphExecChildGraphNodeSetParams = NULL{{endif}}
-{{if 'cuGraphExecEventRecordNodeSetEvent' in found_functions}}cdef void *__cuGraphExecEventRecordNodeSetEvent = NULL{{endif}}
-{{if 'cuGraphExecEventWaitNodeSetEvent' in found_functions}}cdef void *__cuGraphExecEventWaitNodeSetEvent = NULL{{endif}}
-{{if 'cuGraphExecExternalSemaphoresSignalNodeSetParams' in found_functions}}cdef void *__cuGraphExecExternalSemaphoresSignalNodeSetParams = NULL{{endif}}
-{{if 'cuGraphExecExternalSemaphoresWaitNodeSetParams' in found_functions}}cdef void *__cuGraphExecExternalSemaphoresWaitNodeSetParams = NULL{{endif}}
-{{if 'cuGraphNodeSetEnabled' in found_functions}}cdef void *__cuGraphNodeSetEnabled = NULL{{endif}}
-{{if 'cuGraphNodeGetEnabled' in found_functions}}cdef void *__cuGraphNodeGetEnabled = NULL{{endif}}
-{{if 'cuGraphUpload' in found_functions}}cdef void *__cuGraphUpload = NULL{{endif}}
-{{if 'cuGraphLaunch' in found_functions}}cdef void *__cuGraphLaunch = NULL{{endif}}
-{{if 'cuGraphExecDestroy' in found_functions}}cdef void *__cuGraphExecDestroy = NULL{{endif}}
-{{if 'cuGraphDestroy' in found_functions}}cdef void *__cuGraphDestroy = NULL{{endif}}
-{{if 'cuGraphExecUpdate_v2' in found_functions}}cdef void *__cuGraphExecUpdate_v2 = NULL{{endif}}
-{{if 'cuGraphKernelNodeCopyAttributes' in found_functions}}cdef void *__cuGraphKernelNodeCopyAttributes = NULL{{endif}}
-{{if 'cuGraphKernelNodeGetAttribute' in found_functions}}cdef void *__cuGraphKernelNodeGetAttribute = NULL{{endif}}
-{{if 'cuGraphKernelNodeSetAttribute' in found_functions}}cdef void *__cuGraphKernelNodeSetAttribute = NULL{{endif}}
-{{if 'cuGraphDebugDotPrint' in found_functions}}cdef void *__cuGraphDebugDotPrint = NULL{{endif}}
-{{if 'cuUserObjectCreate' in found_functions}}cdef void *__cuUserObjectCreate = NULL{{endif}}
-{{if 'cuUserObjectRetain' in found_functions}}cdef void *__cuUserObjectRetain = NULL{{endif}}
-{{if 'cuUserObjectRelease' in found_functions}}cdef void *__cuUserObjectRelease = NULL{{endif}}
-{{if 'cuGraphRetainUserObject' in found_functions}}cdef void *__cuGraphRetainUserObject = NULL{{endif}}
-{{if 'cuGraphReleaseUserObject' in found_functions}}cdef void *__cuGraphReleaseUserObject = NULL{{endif}}
-{{if 'cuGraphAddNode_v2' in found_functions}}cdef void *__cuGraphAddNode_v2 = NULL{{endif}}
-{{if 'cuGraphNodeSetParams' in found_functions}}cdef void *__cuGraphNodeSetParams = NULL{{endif}}
-{{if 'cuGraphExecNodeSetParams' in found_functions}}cdef void *__cuGraphExecNodeSetParams = NULL{{endif}}
-{{if 'cuGraphConditionalHandleCreate' in found_functions}}cdef void *__cuGraphConditionalHandleCreate = NULL{{endif}}
-{{if 'cuOccupancyMaxActiveBlocksPerMultiprocessor' in found_functions}}cdef void *__cuOccupancyMaxActiveBlocksPerMultiprocessor = NULL{{endif}}
-{{if 'cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags' in found_functions}}cdef void *__cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags = NULL{{endif}}
-{{if 'cuOccupancyMaxPotentialBlockSize' in found_functions}}cdef void *__cuOccupancyMaxPotentialBlockSize = NULL{{endif}}
-{{if 'cuOccupancyMaxPotentialBlockSizeWithFlags' in found_functions}}cdef void *__cuOccupancyMaxPotentialBlockSizeWithFlags = NULL{{endif}}
-{{if 'cuOccupancyAvailableDynamicSMemPerBlock' in found_functions}}cdef void *__cuOccupancyAvailableDynamicSMemPerBlock = NULL{{endif}}
-{{if 'cuOccupancyMaxPotentialClusterSize' in found_functions}}cdef void *__cuOccupancyMaxPotentialClusterSize = NULL{{endif}}
-{{if 'cuOccupancyMaxActiveClusters' in found_functions}}cdef void *__cuOccupancyMaxActiveClusters = NULL{{endif}}
-{{if 'cuTexRefSetArray' in found_functions}}cdef void *__cuTexRefSetArray = NULL{{endif}}
-{{if 'cuTexRefSetMipmappedArray' in found_functions}}cdef void *__cuTexRefSetMipmappedArray = NULL{{endif}}
-{{if 'cuTexRefSetAddress_v2' in found_functions}}cdef void *__cuTexRefSetAddress_v2 = NULL{{endif}}
-{{if 'cuTexRefSetAddress2D_v3' in found_functions}}cdef void *__cuTexRefSetAddress2D_v3 = NULL{{endif}}
-{{if 'cuTexRefSetFormat' in found_functions}}cdef void *__cuTexRefSetFormat = NULL{{endif}}
-{{if 'cuTexRefSetAddressMode' in found_functions}}cdef void *__cuTexRefSetAddressMode = NULL{{endif}}
-{{if 'cuTexRefSetFilterMode' in found_functions}}cdef void *__cuTexRefSetFilterMode = NULL{{endif}}
-{{if 'cuTexRefSetMipmapFilterMode' in found_functions}}cdef void *__cuTexRefSetMipmapFilterMode = NULL{{endif}}
-{{if 'cuTexRefSetMipmapLevelBias' in found_functions}}cdef void *__cuTexRefSetMipmapLevelBias = NULL{{endif}}
-{{if 'cuTexRefSetMipmapLevelClamp' in found_functions}}cdef void *__cuTexRefSetMipmapLevelClamp = NULL{{endif}}
-{{if 'cuTexRefSetMaxAnisotropy' in found_functions}}cdef void *__cuTexRefSetMaxAnisotropy = NULL{{endif}}
-{{if 'cuTexRefSetBorderColor' in found_functions}}cdef void *__cuTexRefSetBorderColor = NULL{{endif}}
-{{if 'cuTexRefSetFlags' in found_functions}}cdef void *__cuTexRefSetFlags = NULL{{endif}}
-{{if 'cuTexRefGetAddress_v2' in found_functions}}cdef void *__cuTexRefGetAddress_v2 = NULL{{endif}}
-{{if 'cuTexRefGetArray' in found_functions}}cdef void *__cuTexRefGetArray = NULL{{endif}}
-{{if 'cuTexRefGetMipmappedArray' in found_functions}}cdef void *__cuTexRefGetMipmappedArray = NULL{{endif}}
-{{if 'cuTexRefGetAddressMode' in found_functions}}cdef void *__cuTexRefGetAddressMode = NULL{{endif}}
-{{if 'cuTexRefGetFilterMode' in found_functions}}cdef void *__cuTexRefGetFilterMode = NULL{{endif}}
-{{if 'cuTexRefGetFormat' in found_functions}}cdef void *__cuTexRefGetFormat = NULL{{endif}}
-{{if 'cuTexRefGetMipmapFilterMode' in found_functions}}cdef void *__cuTexRefGetMipmapFilterMode = NULL{{endif}}
-{{if 'cuTexRefGetMipmapLevelBias' in found_functions}}cdef void *__cuTexRefGetMipmapLevelBias = NULL{{endif}}
-{{if 'cuTexRefGetMipmapLevelClamp' in found_functions}}cdef void *__cuTexRefGetMipmapLevelClamp = NULL{{endif}}
-{{if 'cuTexRefGetMaxAnisotropy' in found_functions}}cdef void *__cuTexRefGetMaxAnisotropy = NULL{{endif}}
-{{if 'cuTexRefGetBorderColor' in found_functions}}cdef void *__cuTexRefGetBorderColor = NULL{{endif}}
-{{if 'cuTexRefGetFlags' in found_functions}}cdef void *__cuTexRefGetFlags = NULL{{endif}}
-{{if 'cuTexRefCreate' in found_functions}}cdef void *__cuTexRefCreate = NULL{{endif}}
-{{if 'cuTexRefDestroy' in found_functions}}cdef void *__cuTexRefDestroy = NULL{{endif}}
-{{if 'cuSurfRefSetArray' in found_functions}}cdef void *__cuSurfRefSetArray = NULL{{endif}}
-{{if 'cuSurfRefGetArray' in found_functions}}cdef void *__cuSurfRefGetArray = NULL{{endif}}
-{{if 'cuTexObjectCreate' in found_functions}}cdef void *__cuTexObjectCreate = NULL{{endif}}
-{{if 'cuTexObjectDestroy' in found_functions}}cdef void *__cuTexObjectDestroy = NULL{{endif}}
-{{if 'cuTexObjectGetResourceDesc' in found_functions}}cdef void *__cuTexObjectGetResourceDesc = NULL{{endif}}
-{{if 'cuTexObjectGetTextureDesc' in found_functions}}cdef void *__cuTexObjectGetTextureDesc = NULL{{endif}}
-{{if 'cuTexObjectGetResourceViewDesc' in found_functions}}cdef void *__cuTexObjectGetResourceViewDesc = NULL{{endif}}
-{{if 'cuSurfObjectCreate' in found_functions}}cdef void *__cuSurfObjectCreate = NULL{{endif}}
-{{if 'cuSurfObjectDestroy' in found_functions}}cdef void *__cuSurfObjectDestroy = NULL{{endif}}
-{{if 'cuSurfObjectGetResourceDesc' in found_functions}}cdef void *__cuSurfObjectGetResourceDesc = NULL{{endif}}
-{{if 'cuTensorMapEncodeTiled' in found_functions}}cdef void *__cuTensorMapEncodeTiled = NULL{{endif}}
-{{if 'cuTensorMapEncodeIm2col' in found_functions}}cdef void *__cuTensorMapEncodeIm2col = NULL{{endif}}
-{{if 'cuTensorMapEncodeIm2colWide' in found_functions}}cdef void *__cuTensorMapEncodeIm2colWide = NULL{{endif}}
-{{if 'cuTensorMapReplaceAddress' in found_functions}}cdef void *__cuTensorMapReplaceAddress = NULL{{endif}}
-{{if 'cuDeviceCanAccessPeer' in found_functions}}cdef void *__cuDeviceCanAccessPeer = NULL{{endif}}
-{{if 'cuCtxEnablePeerAccess' in found_functions}}cdef void *__cuCtxEnablePeerAccess = NULL{{endif}}
-{{if 'cuCtxDisablePeerAccess' in found_functions}}cdef void *__cuCtxDisablePeerAccess = NULL{{endif}}
-{{if 'cuDeviceGetP2PAttribute' in found_functions}}cdef void *__cuDeviceGetP2PAttribute = NULL{{endif}}
-{{if 'cuDeviceGetP2PAtomicCapabilities' in found_functions}}cdef void *__cuDeviceGetP2PAtomicCapabilities = NULL{{endif}}
-{{if 'cuGraphicsUnregisterResource' in found_functions}}cdef void *__cuGraphicsUnregisterResource = NULL{{endif}}
-{{if 'cuGraphicsSubResourceGetMappedArray' in found_functions}}cdef void *__cuGraphicsSubResourceGetMappedArray = NULL{{endif}}
-{{if 'cuGraphicsResourceGetMappedMipmappedArray' in found_functions}}cdef void *__cuGraphicsResourceGetMappedMipmappedArray = NULL{{endif}}
-{{if 'cuGraphicsResourceGetMappedPointer_v2' in found_functions}}cdef void *__cuGraphicsResourceGetMappedPointer_v2 = NULL{{endif}}
-{{if 'cuGraphicsResourceSetMapFlags_v2' in found_functions}}cdef void *__cuGraphicsResourceSetMapFlags_v2 = NULL{{endif}}
-{{if 'cuGraphicsMapResources' in found_functions}}cdef void *__cuGraphicsMapResources = NULL{{endif}}
-{{if 'cuGraphicsUnmapResources' in found_functions}}cdef void *__cuGraphicsUnmapResources = NULL{{endif}}
-{{if 'cuGetProcAddress_v2' in found_functions}}cdef void *__cuGetProcAddress_v2 = NULL{{endif}}
-{{if 'cuCoredumpGetAttribute' in found_functions}}cdef void *__cuCoredumpGetAttribute = NULL{{endif}}
-{{if 'cuCoredumpGetAttributeGlobal' in found_functions}}cdef void *__cuCoredumpGetAttributeGlobal = NULL{{endif}}
-{{if 'cuCoredumpSetAttribute' in found_functions}}cdef void *__cuCoredumpSetAttribute = NULL{{endif}}
-{{if 'cuCoredumpSetAttributeGlobal' in found_functions}}cdef void *__cuCoredumpSetAttributeGlobal = NULL{{endif}}
-{{if 'cuGetExportTable' in found_functions}}cdef void *__cuGetExportTable = NULL{{endif}}
-{{if 'cuGreenCtxCreate' in found_functions}}cdef void *__cuGreenCtxCreate = NULL{{endif}}
-{{if 'cuGreenCtxDestroy' in found_functions}}cdef void *__cuGreenCtxDestroy = NULL{{endif}}
-{{if 'cuCtxFromGreenCtx' in found_functions}}cdef void *__cuCtxFromGreenCtx = NULL{{endif}}
-{{if 'cuDeviceGetDevResource' in found_functions}}cdef void *__cuDeviceGetDevResource = NULL{{endif}}
-{{if 'cuCtxGetDevResource' in found_functions}}cdef void *__cuCtxGetDevResource = NULL{{endif}}
-{{if 'cuGreenCtxGetDevResource' in found_functions}}cdef void *__cuGreenCtxGetDevResource = NULL{{endif}}
-{{if 'cuDevSmResourceSplitByCount' in found_functions}}cdef void *__cuDevSmResourceSplitByCount = NULL{{endif}}
-{{if 'cuDevResourceGenerateDesc' in found_functions}}cdef void *__cuDevResourceGenerateDesc = NULL{{endif}}
-{{if 'cuGreenCtxRecordEvent' in found_functions}}cdef void *__cuGreenCtxRecordEvent = NULL{{endif}}
-{{if 'cuGreenCtxWaitEvent' in found_functions}}cdef void *__cuGreenCtxWaitEvent = NULL{{endif}}
-{{if 'cuStreamGetGreenCtx' in found_functions}}cdef void *__cuStreamGetGreenCtx = NULL{{endif}}
-{{if 'cuGreenCtxStreamCreate' in found_functions}}cdef void *__cuGreenCtxStreamCreate = NULL{{endif}}
-{{if 'cuGreenCtxGetId' in found_functions}}cdef void *__cuGreenCtxGetId = NULL{{endif}}
-{{if 'cuLogsRegisterCallback' in found_functions}}cdef void *__cuLogsRegisterCallback = NULL{{endif}}
-{{if 'cuLogsUnregisterCallback' in found_functions}}cdef void *__cuLogsUnregisterCallback = NULL{{endif}}
-{{if 'cuLogsCurrent' in found_functions}}cdef void *__cuLogsCurrent = NULL{{endif}}
-{{if 'cuLogsDumpToFile' in found_functions}}cdef void *__cuLogsDumpToFile = NULL{{endif}}
-{{if 'cuLogsDumpToMemory' in found_functions}}cdef void *__cuLogsDumpToMemory = NULL{{endif}}
-{{if 'cuCheckpointProcessGetRestoreThreadId' in found_functions}}cdef void *__cuCheckpointProcessGetRestoreThreadId = NULL{{endif}}
-{{if 'cuCheckpointProcessGetState' in found_functions}}cdef void *__cuCheckpointProcessGetState = NULL{{endif}}
-{{if 'cuCheckpointProcessLock' in found_functions}}cdef void *__cuCheckpointProcessLock = NULL{{endif}}
-{{if 'cuCheckpointProcessCheckpoint' in found_functions}}cdef void *__cuCheckpointProcessCheckpoint = NULL{{endif}}
-{{if 'cuCheckpointProcessRestore' in found_functions}}cdef void *__cuCheckpointProcessRestore = NULL{{endif}}
-{{if 'cuCheckpointProcessUnlock' in found_functions}}cdef void *__cuCheckpointProcessUnlock = NULL{{endif}}
-{{if 'cuProfilerStart' in found_functions}}cdef void *__cuProfilerStart = NULL{{endif}}
-{{if 'cuProfilerStop' in found_functions}}cdef void *__cuProfilerStop = NULL{{endif}}
-{{if True}}cdef void *__cuGraphicsEGLRegisterImage = NULL{{endif}}
-{{if True}}cdef void *__cuEGLStreamConsumerConnect = NULL{{endif}}
-{{if True}}cdef void *__cuEGLStreamConsumerConnectWithFlags = NULL{{endif}}
-{{if True}}cdef void *__cuEGLStreamConsumerDisconnect = NULL{{endif}}
-{{if True}}cdef void *__cuEGLStreamConsumerAcquireFrame = NULL{{endif}}
-{{if True}}cdef void *__cuEGLStreamConsumerReleaseFrame = NULL{{endif}}
-{{if True}}cdef void *__cuEGLStreamProducerConnect = NULL{{endif}}
-{{if True}}cdef void *__cuEGLStreamProducerDisconnect = NULL{{endif}}
-{{if True}}cdef void *__cuEGLStreamProducerPresentFrame = NULL{{endif}}
-{{if True}}cdef void *__cuEGLStreamProducerReturnFrame = NULL{{endif}}
-{{if True}}cdef void *__cuGraphicsResourceGetMappedEglFrame = NULL{{endif}}
-{{if True}}cdef void *__cuEventCreateFromEGLSync = NULL{{endif}}
-{{if True}}cdef void *__cuGraphicsGLRegisterBuffer = NULL{{endif}}
-{{if True}}cdef void *__cuGraphicsGLRegisterImage = NULL{{endif}}
-{{if True}}cdef void *__cuGLGetDevices_v2 = NULL{{endif}}
-{{if True}}cdef void *__cuVDPAUGetDevice = NULL{{endif}}
-{{if True}}cdef void *__cuVDPAUCtxCreate_v2 = NULL{{endif}}
-{{if True}}cdef void *__cuGraphicsVDPAURegisterVideoSurface = NULL{{endif}}
-{{if True}}cdef void *__cuGraphicsVDPAURegisterOutputSurface = NULL{{endif}}
-
-# To make cuPythonInit reentrant
-ctypedef CUresult (*__cuGetProcAddress_v2_T)(const char*, void**, int, cuuint64_t, CUdriverProcAddressQueryResult*) except?CUDA_ERROR_NOT_FOUND nogil
-cdef __cuGetProcAddress_v2_T _F_cuGetProcAddress_v2 = NULL
-
-cdef int _cuPythonInit() except -1 nogil:
- global __cuPythonInit
-
- cdef bint usePTDS
- cdef char libPath[260]
-
- with gil, __symbol_lock:
- usePTDS = os.getenv('CUDA_PYTHON_CUDA_PER_THREAD_DEFAULT_STREAM', default=0)
-
- # Load library
- libPath[0] = 0
- status = loader.getCUDALibraryPath(libPath, sys.maxsize > 2**32)
- if status == 0 and len(libPath) != 0:
- path = libPath.decode('utf-8')
- else:
- {{if 'Windows' == platform.system()}}
- path = 'nvcuda.dll'
- {{else}}
- path = 'libcuda.so.1'
- {{endif}}
-
- {{if 'Windows' == platform.system()}}
- handle = windll.LoadLibraryExW(path, NULL, windll.LOAD_LIBRARY_SEARCH_SYSTEM32)
- if handle == 0:
- raise RuntimeError('Failed to LoadLibraryEx ' + path)
- {{else}}
- handle = dlfcn.dlopen(bytes(path, encoding='utf-8'), dlfcn.RTLD_NOW)
- if handle == NULL:
- raise RuntimeError('Failed to dlopen ' + path)
- {{endif}}
-
- # Get latest __cuGetProcAddress_v2
- global __cuGetProcAddress_v2
- {{if 'Windows' == platform.system()}}
- __cuGetProcAddress_v2 = windll.GetProcAddress(handle, 'cuGetProcAddress_v2')
- {{else}}
- __cuGetProcAddress_v2 = dlfcn.dlsym(handle, 'cuGetProcAddress_v2')
- {{endif}}
-
- # Load using cuGetProcAddress if available
- if __cuGetProcAddress_v2 != NULL:
- _F_cuGetProcAddress_v2 = <__cuGetProcAddress_v2_T>__cuGetProcAddress_v2
- if usePTDS:
- # Get all PTDS version of functions
- pass
- {{if 'cuMemcpy' in found_functions}}
- global __cuMemcpy
- _F_cuGetProcAddress_v2('cuMemcpy', &__cuMemcpy, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemcpyPeer' in found_functions}}
- global __cuMemcpyPeer
- _F_cuGetProcAddress_v2('cuMemcpyPeer', &__cuMemcpyPeer, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemcpyHtoD_v2' in found_functions}}
- global __cuMemcpyHtoD_v2
- _F_cuGetProcAddress_v2('cuMemcpyHtoD', &__cuMemcpyHtoD_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemcpyDtoH_v2' in found_functions}}
- global __cuMemcpyDtoH_v2
- _F_cuGetProcAddress_v2('cuMemcpyDtoH', &__cuMemcpyDtoH_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemcpyDtoD_v2' in found_functions}}
- global __cuMemcpyDtoD_v2
- _F_cuGetProcAddress_v2('cuMemcpyDtoD', &__cuMemcpyDtoD_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemcpyDtoA_v2' in found_functions}}
- global __cuMemcpyDtoA_v2
- _F_cuGetProcAddress_v2('cuMemcpyDtoA', &__cuMemcpyDtoA_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemcpyAtoD_v2' in found_functions}}
- global __cuMemcpyAtoD_v2
- _F_cuGetProcAddress_v2('cuMemcpyAtoD', &__cuMemcpyAtoD_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemcpyHtoA_v2' in found_functions}}
- global __cuMemcpyHtoA_v2
- _F_cuGetProcAddress_v2('cuMemcpyHtoA', &__cuMemcpyHtoA_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemcpyAtoH_v2' in found_functions}}
- global __cuMemcpyAtoH_v2
- _F_cuGetProcAddress_v2('cuMemcpyAtoH', &__cuMemcpyAtoH_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemcpyAtoA_v2' in found_functions}}
- global __cuMemcpyAtoA_v2
- _F_cuGetProcAddress_v2('cuMemcpyAtoA', &__cuMemcpyAtoA_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemcpy2D_v2' in found_functions}}
- global __cuMemcpy2D_v2
- _F_cuGetProcAddress_v2('cuMemcpy2D', &__cuMemcpy2D_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemcpy2DUnaligned_v2' in found_functions}}
- global __cuMemcpy2DUnaligned_v2
- _F_cuGetProcAddress_v2('cuMemcpy2DUnaligned', &__cuMemcpy2DUnaligned_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemcpy3D_v2' in found_functions}}
- global __cuMemcpy3D_v2
- _F_cuGetProcAddress_v2('cuMemcpy3D', &__cuMemcpy3D_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemcpy3DPeer' in found_functions}}
- global __cuMemcpy3DPeer
- _F_cuGetProcAddress_v2('cuMemcpy3DPeer', &__cuMemcpy3DPeer, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemcpyAsync' in found_functions}}
- global __cuMemcpyAsync
- _F_cuGetProcAddress_v2('cuMemcpyAsync', &__cuMemcpyAsync, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemcpyPeerAsync' in found_functions}}
- global __cuMemcpyPeerAsync
- _F_cuGetProcAddress_v2('cuMemcpyPeerAsync', &__cuMemcpyPeerAsync, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemcpyHtoDAsync_v2' in found_functions}}
- global __cuMemcpyHtoDAsync_v2
- _F_cuGetProcAddress_v2('cuMemcpyHtoDAsync', &__cuMemcpyHtoDAsync_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemcpyDtoHAsync_v2' in found_functions}}
- global __cuMemcpyDtoHAsync_v2
- _F_cuGetProcAddress_v2('cuMemcpyDtoHAsync', &__cuMemcpyDtoHAsync_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemcpyDtoDAsync_v2' in found_functions}}
- global __cuMemcpyDtoDAsync_v2
- _F_cuGetProcAddress_v2('cuMemcpyDtoDAsync', &__cuMemcpyDtoDAsync_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemcpyHtoAAsync_v2' in found_functions}}
- global __cuMemcpyHtoAAsync_v2
- _F_cuGetProcAddress_v2('cuMemcpyHtoAAsync', &__cuMemcpyHtoAAsync_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemcpyAtoHAsync_v2' in found_functions}}
- global __cuMemcpyAtoHAsync_v2
- _F_cuGetProcAddress_v2('cuMemcpyAtoHAsync', &__cuMemcpyAtoHAsync_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemcpy2DAsync_v2' in found_functions}}
- global __cuMemcpy2DAsync_v2
- _F_cuGetProcAddress_v2('cuMemcpy2DAsync', &__cuMemcpy2DAsync_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemcpy3DAsync_v2' in found_functions}}
- global __cuMemcpy3DAsync_v2
- _F_cuGetProcAddress_v2('cuMemcpy3DAsync', &__cuMemcpy3DAsync_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemcpy3DPeerAsync' in found_functions}}
- global __cuMemcpy3DPeerAsync
- _F_cuGetProcAddress_v2('cuMemcpy3DPeerAsync', &__cuMemcpy3DPeerAsync, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemcpyBatchAsync_v2' in found_functions}}
- global __cuMemcpyBatchAsync_v2
- _F_cuGetProcAddress_v2('cuMemcpyBatchAsync', &__cuMemcpyBatchAsync_v2, 13000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemcpy3DBatchAsync_v2' in found_functions}}
- global __cuMemcpy3DBatchAsync_v2
- _F_cuGetProcAddress_v2('cuMemcpy3DBatchAsync', &__cuMemcpy3DBatchAsync_v2, 13000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemsetD8_v2' in found_functions}}
- global __cuMemsetD8_v2
- _F_cuGetProcAddress_v2('cuMemsetD8', &__cuMemsetD8_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemsetD16_v2' in found_functions}}
- global __cuMemsetD16_v2
- _F_cuGetProcAddress_v2('cuMemsetD16', &__cuMemsetD16_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemsetD32_v2' in found_functions}}
- global __cuMemsetD32_v2
- _F_cuGetProcAddress_v2('cuMemsetD32', &__cuMemsetD32_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemsetD2D8_v2' in found_functions}}
- global __cuMemsetD2D8_v2
- _F_cuGetProcAddress_v2('cuMemsetD2D8', &__cuMemsetD2D8_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemsetD2D16_v2' in found_functions}}
- global __cuMemsetD2D16_v2
- _F_cuGetProcAddress_v2('cuMemsetD2D16', &__cuMemsetD2D16_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemsetD2D32_v2' in found_functions}}
- global __cuMemsetD2D32_v2
- _F_cuGetProcAddress_v2('cuMemsetD2D32', &__cuMemsetD2D32_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemsetD8Async' in found_functions}}
- global __cuMemsetD8Async
- _F_cuGetProcAddress_v2('cuMemsetD8Async', &__cuMemsetD8Async, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemsetD16Async' in found_functions}}
- global __cuMemsetD16Async
- _F_cuGetProcAddress_v2('cuMemsetD16Async', &__cuMemsetD16Async, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemsetD32Async' in found_functions}}
- global __cuMemsetD32Async
- _F_cuGetProcAddress_v2('cuMemsetD32Async', &__cuMemsetD32Async, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemsetD2D8Async' in found_functions}}
- global __cuMemsetD2D8Async
- _F_cuGetProcAddress_v2('cuMemsetD2D8Async', &__cuMemsetD2D8Async, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemsetD2D16Async' in found_functions}}
- global __cuMemsetD2D16Async
- _F_cuGetProcAddress_v2('cuMemsetD2D16Async', &__cuMemsetD2D16Async, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemsetD2D32Async' in found_functions}}
- global __cuMemsetD2D32Async
- _F_cuGetProcAddress_v2('cuMemsetD2D32Async', &__cuMemsetD2D32Async, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemBatchDecompressAsync' in found_functions}}
- global __cuMemBatchDecompressAsync
- _F_cuGetProcAddress_v2('cuMemBatchDecompressAsync', &__cuMemBatchDecompressAsync, 12060, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemMapArrayAsync' in found_functions}}
- global __cuMemMapArrayAsync
- _F_cuGetProcAddress_v2('cuMemMapArrayAsync', &__cuMemMapArrayAsync, 11010, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemFreeAsync' in found_functions}}
- global __cuMemFreeAsync
- _F_cuGetProcAddress_v2('cuMemFreeAsync', &__cuMemFreeAsync, 11020, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemAllocAsync' in found_functions}}
- global __cuMemAllocAsync
- _F_cuGetProcAddress_v2('cuMemAllocAsync', &__cuMemAllocAsync, 11020, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemAllocFromPoolAsync' in found_functions}}
- global __cuMemAllocFromPoolAsync
- _F_cuGetProcAddress_v2('cuMemAllocFromPoolAsync', &__cuMemAllocFromPoolAsync, 11020, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemPrefetchAsync_v2' in found_functions}}
- global __cuMemPrefetchAsync_v2
- _F_cuGetProcAddress_v2('cuMemPrefetchAsync', &__cuMemPrefetchAsync_v2, 12020, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemPrefetchBatchAsync' in found_functions}}
- global __cuMemPrefetchBatchAsync
- _F_cuGetProcAddress_v2('cuMemPrefetchBatchAsync', &__cuMemPrefetchBatchAsync, 13000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemDiscardBatchAsync' in found_functions}}
- global __cuMemDiscardBatchAsync
- _F_cuGetProcAddress_v2('cuMemDiscardBatchAsync', &__cuMemDiscardBatchAsync, 13000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuMemDiscardAndPrefetchBatchAsync' in found_functions}}
- global __cuMemDiscardAndPrefetchBatchAsync
- _F_cuGetProcAddress_v2('cuMemDiscardAndPrefetchBatchAsync', &__cuMemDiscardAndPrefetchBatchAsync, 13000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuStreamGetPriority' in found_functions}}
- global __cuStreamGetPriority
- _F_cuGetProcAddress_v2('cuStreamGetPriority', &__cuStreamGetPriority, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuStreamGetDevice' in found_functions}}
- global __cuStreamGetDevice
- _F_cuGetProcAddress_v2('cuStreamGetDevice', &__cuStreamGetDevice, 12080, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuStreamGetFlags' in found_functions}}
- global __cuStreamGetFlags
- _F_cuGetProcAddress_v2('cuStreamGetFlags', &__cuStreamGetFlags, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuStreamGetId' in found_functions}}
- global __cuStreamGetId
- _F_cuGetProcAddress_v2('cuStreamGetId', &__cuStreamGetId, 12000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuStreamGetCtx' in found_functions}}
- global __cuStreamGetCtx
- _F_cuGetProcAddress_v2('cuStreamGetCtx', &__cuStreamGetCtx, 9020, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuStreamGetCtx_v2' in found_functions}}
- global __cuStreamGetCtx_v2
- _F_cuGetProcAddress_v2('cuStreamGetCtx', &__cuStreamGetCtx_v2, 12050, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuStreamWaitEvent' in found_functions}}
- global __cuStreamWaitEvent
- _F_cuGetProcAddress_v2('cuStreamWaitEvent', &__cuStreamWaitEvent, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuStreamAddCallback' in found_functions}}
- global __cuStreamAddCallback
- _F_cuGetProcAddress_v2('cuStreamAddCallback', &__cuStreamAddCallback, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuStreamBeginCapture_v2' in found_functions}}
- global __cuStreamBeginCapture_v2
- _F_cuGetProcAddress_v2('cuStreamBeginCapture', &__cuStreamBeginCapture_v2, 10010, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuStreamBeginCaptureToGraph' in found_functions}}
- global __cuStreamBeginCaptureToGraph
- _F_cuGetProcAddress_v2('cuStreamBeginCaptureToGraph', &__cuStreamBeginCaptureToGraph, 12030, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuStreamEndCapture' in found_functions}}
- global __cuStreamEndCapture
- _F_cuGetProcAddress_v2('cuStreamEndCapture', &__cuStreamEndCapture, 10000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuStreamIsCapturing' in found_functions}}
- global __cuStreamIsCapturing
- _F_cuGetProcAddress_v2('cuStreamIsCapturing', &__cuStreamIsCapturing, 10000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuStreamGetCaptureInfo_v3' in found_functions}}
- global __cuStreamGetCaptureInfo_v3
- _F_cuGetProcAddress_v2('cuStreamGetCaptureInfo', &__cuStreamGetCaptureInfo_v3, 12030, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuStreamUpdateCaptureDependencies_v2' in found_functions}}
- global __cuStreamUpdateCaptureDependencies_v2
- _F_cuGetProcAddress_v2('cuStreamUpdateCaptureDependencies', &__cuStreamUpdateCaptureDependencies_v2, 12030, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuStreamAttachMemAsync' in found_functions}}
- global __cuStreamAttachMemAsync
- _F_cuGetProcAddress_v2('cuStreamAttachMemAsync', &__cuStreamAttachMemAsync, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuStreamQuery' in found_functions}}
- global __cuStreamQuery
- _F_cuGetProcAddress_v2('cuStreamQuery', &__cuStreamQuery, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuStreamSynchronize' in found_functions}}
- global __cuStreamSynchronize
- _F_cuGetProcAddress_v2('cuStreamSynchronize', &__cuStreamSynchronize, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuStreamCopyAttributes' in found_functions}}
- global __cuStreamCopyAttributes
- _F_cuGetProcAddress_v2('cuStreamCopyAttributes', &__cuStreamCopyAttributes, 11000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuStreamGetAttribute' in found_functions}}
- global __cuStreamGetAttribute
- _F_cuGetProcAddress_v2('cuStreamGetAttribute', &__cuStreamGetAttribute, 11000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuStreamSetAttribute' in found_functions}}
- global __cuStreamSetAttribute
- _F_cuGetProcAddress_v2('cuStreamSetAttribute', &__cuStreamSetAttribute, 11000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuEventRecord' in found_functions}}
- global __cuEventRecord
- _F_cuGetProcAddress_v2('cuEventRecord', &__cuEventRecord, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuEventRecordWithFlags' in found_functions}}
- global __cuEventRecordWithFlags
- _F_cuGetProcAddress_v2('cuEventRecordWithFlags', &__cuEventRecordWithFlags, 11010, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuSignalExternalSemaphoresAsync' in found_functions}}
- global __cuSignalExternalSemaphoresAsync
- _F_cuGetProcAddress_v2('cuSignalExternalSemaphoresAsync', &__cuSignalExternalSemaphoresAsync, 10000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuWaitExternalSemaphoresAsync' in found_functions}}
- global __cuWaitExternalSemaphoresAsync
- _F_cuGetProcAddress_v2('cuWaitExternalSemaphoresAsync', &__cuWaitExternalSemaphoresAsync, 10000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuStreamWaitValue32_v2' in found_functions}}
- global __cuStreamWaitValue32_v2
- _F_cuGetProcAddress_v2('cuStreamWaitValue32', &__cuStreamWaitValue32_v2, 11070, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuStreamWaitValue64_v2' in found_functions}}
- global __cuStreamWaitValue64_v2
- _F_cuGetProcAddress_v2('cuStreamWaitValue64', &__cuStreamWaitValue64_v2, 11070, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuStreamWriteValue32_v2' in found_functions}}
- global __cuStreamWriteValue32_v2
- _F_cuGetProcAddress_v2('cuStreamWriteValue32', &__cuStreamWriteValue32_v2, 11070, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuStreamWriteValue64_v2' in found_functions}}
- global __cuStreamWriteValue64_v2
- _F_cuGetProcAddress_v2('cuStreamWriteValue64', &__cuStreamWriteValue64_v2, 11070, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuStreamBatchMemOp_v2' in found_functions}}
- global __cuStreamBatchMemOp_v2
- _F_cuGetProcAddress_v2('cuStreamBatchMemOp', &__cuStreamBatchMemOp_v2, 11070, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuLaunchKernel' in found_functions}}
- global __cuLaunchKernel
- _F_cuGetProcAddress_v2('cuLaunchKernel', &__cuLaunchKernel, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuLaunchKernelEx' in found_functions}}
- global __cuLaunchKernelEx
- _F_cuGetProcAddress_v2('cuLaunchKernelEx', &__cuLaunchKernelEx, 11060, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuLaunchCooperativeKernel' in found_functions}}
- global __cuLaunchCooperativeKernel
- _F_cuGetProcAddress_v2('cuLaunchCooperativeKernel', &__cuLaunchCooperativeKernel, 9000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuLaunchHostFunc' in found_functions}}
- global __cuLaunchHostFunc
- _F_cuGetProcAddress_v2('cuLaunchHostFunc', &__cuLaunchHostFunc, 10000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuGraphInstantiateWithParams' in found_functions}}
- global __cuGraphInstantiateWithParams
- _F_cuGetProcAddress_v2('cuGraphInstantiateWithParams', &__cuGraphInstantiateWithParams, 12000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuGraphUpload' in found_functions}}
- global __cuGraphUpload
- _F_cuGetProcAddress_v2('cuGraphUpload', &__cuGraphUpload, 11010, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuGraphLaunch' in found_functions}}
- global __cuGraphLaunch
- _F_cuGetProcAddress_v2('cuGraphLaunch', &__cuGraphLaunch, 10000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuGraphicsMapResources' in found_functions}}
- global __cuGraphicsMapResources
- _F_cuGetProcAddress_v2('cuGraphicsMapResources', &__cuGraphicsMapResources, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- {{if 'cuGraphicsUnmapResources' in found_functions}}
- global __cuGraphicsUnmapResources
- _F_cuGetProcAddress_v2('cuGraphicsUnmapResources', &__cuGraphicsUnmapResources, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL)
- {{endif}}
- else:
- # Else get the regular version
- pass
- {{if 'cuMemcpy' in found_functions}}
- global __cuMemcpy
- _F_cuGetProcAddress_v2('cuMemcpy', &__cuMemcpy, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemcpyPeer' in found_functions}}
- global __cuMemcpyPeer
- _F_cuGetProcAddress_v2('cuMemcpyPeer', &__cuMemcpyPeer, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemcpyHtoD_v2' in found_functions}}
- global __cuMemcpyHtoD_v2
- _F_cuGetProcAddress_v2('cuMemcpyHtoD', &__cuMemcpyHtoD_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemcpyDtoH_v2' in found_functions}}
- global __cuMemcpyDtoH_v2
- _F_cuGetProcAddress_v2('cuMemcpyDtoH', &__cuMemcpyDtoH_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemcpyDtoD_v2' in found_functions}}
- global __cuMemcpyDtoD_v2
- _F_cuGetProcAddress_v2('cuMemcpyDtoD', &__cuMemcpyDtoD_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemcpyDtoA_v2' in found_functions}}
- global __cuMemcpyDtoA_v2
- _F_cuGetProcAddress_v2('cuMemcpyDtoA', &__cuMemcpyDtoA_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemcpyAtoD_v2' in found_functions}}
- global __cuMemcpyAtoD_v2
- _F_cuGetProcAddress_v2('cuMemcpyAtoD', &__cuMemcpyAtoD_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemcpyHtoA_v2' in found_functions}}
- global __cuMemcpyHtoA_v2
- _F_cuGetProcAddress_v2('cuMemcpyHtoA', &__cuMemcpyHtoA_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemcpyAtoH_v2' in found_functions}}
- global __cuMemcpyAtoH_v2
- _F_cuGetProcAddress_v2('cuMemcpyAtoH', &__cuMemcpyAtoH_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemcpyAtoA_v2' in found_functions}}
- global __cuMemcpyAtoA_v2
- _F_cuGetProcAddress_v2('cuMemcpyAtoA', &__cuMemcpyAtoA_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemcpy2D_v2' in found_functions}}
- global __cuMemcpy2D_v2
- _F_cuGetProcAddress_v2('cuMemcpy2D', &__cuMemcpy2D_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemcpy2DUnaligned_v2' in found_functions}}
- global __cuMemcpy2DUnaligned_v2
- _F_cuGetProcAddress_v2('cuMemcpy2DUnaligned', &__cuMemcpy2DUnaligned_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemcpy3D_v2' in found_functions}}
- global __cuMemcpy3D_v2
- _F_cuGetProcAddress_v2('cuMemcpy3D', &__cuMemcpy3D_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemcpy3DPeer' in found_functions}}
- global __cuMemcpy3DPeer
- _F_cuGetProcAddress_v2('cuMemcpy3DPeer', &__cuMemcpy3DPeer, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemcpyAsync' in found_functions}}
- global __cuMemcpyAsync
- _F_cuGetProcAddress_v2('cuMemcpyAsync', &__cuMemcpyAsync, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemcpyPeerAsync' in found_functions}}
- global __cuMemcpyPeerAsync
- _F_cuGetProcAddress_v2('cuMemcpyPeerAsync', &__cuMemcpyPeerAsync, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemcpyHtoDAsync_v2' in found_functions}}
- global __cuMemcpyHtoDAsync_v2
- _F_cuGetProcAddress_v2('cuMemcpyHtoDAsync', &__cuMemcpyHtoDAsync_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemcpyDtoHAsync_v2' in found_functions}}
- global __cuMemcpyDtoHAsync_v2
- _F_cuGetProcAddress_v2('cuMemcpyDtoHAsync', &__cuMemcpyDtoHAsync_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemcpyDtoDAsync_v2' in found_functions}}
- global __cuMemcpyDtoDAsync_v2
- _F_cuGetProcAddress_v2('cuMemcpyDtoDAsync', &__cuMemcpyDtoDAsync_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemcpyHtoAAsync_v2' in found_functions}}
- global __cuMemcpyHtoAAsync_v2
- _F_cuGetProcAddress_v2('cuMemcpyHtoAAsync', &__cuMemcpyHtoAAsync_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemcpyAtoHAsync_v2' in found_functions}}
- global __cuMemcpyAtoHAsync_v2
- _F_cuGetProcAddress_v2('cuMemcpyAtoHAsync', &__cuMemcpyAtoHAsync_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemcpy2DAsync_v2' in found_functions}}
- global __cuMemcpy2DAsync_v2
- _F_cuGetProcAddress_v2('cuMemcpy2DAsync', &__cuMemcpy2DAsync_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemcpy3DAsync_v2' in found_functions}}
- global __cuMemcpy3DAsync_v2
- _F_cuGetProcAddress_v2('cuMemcpy3DAsync', &__cuMemcpy3DAsync_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemcpy3DPeerAsync' in found_functions}}
- global __cuMemcpy3DPeerAsync
- _F_cuGetProcAddress_v2('cuMemcpy3DPeerAsync', &__cuMemcpy3DPeerAsync, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemcpyBatchAsync_v2' in found_functions}}
- global __cuMemcpyBatchAsync_v2
- _F_cuGetProcAddress_v2('cuMemcpyBatchAsync', &__cuMemcpyBatchAsync_v2, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemcpy3DBatchAsync_v2' in found_functions}}
- global __cuMemcpy3DBatchAsync_v2
- _F_cuGetProcAddress_v2('cuMemcpy3DBatchAsync', &__cuMemcpy3DBatchAsync_v2, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemsetD8_v2' in found_functions}}
- global __cuMemsetD8_v2
- _F_cuGetProcAddress_v2('cuMemsetD8', &__cuMemsetD8_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemsetD16_v2' in found_functions}}
- global __cuMemsetD16_v2
- _F_cuGetProcAddress_v2('cuMemsetD16', &__cuMemsetD16_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemsetD32_v2' in found_functions}}
- global __cuMemsetD32_v2
- _F_cuGetProcAddress_v2('cuMemsetD32', &__cuMemsetD32_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemsetD2D8_v2' in found_functions}}
- global __cuMemsetD2D8_v2
- _F_cuGetProcAddress_v2('cuMemsetD2D8', &__cuMemsetD2D8_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemsetD2D16_v2' in found_functions}}
- global __cuMemsetD2D16_v2
- _F_cuGetProcAddress_v2('cuMemsetD2D16', &__cuMemsetD2D16_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemsetD2D32_v2' in found_functions}}
- global __cuMemsetD2D32_v2
- _F_cuGetProcAddress_v2('cuMemsetD2D32', &__cuMemsetD2D32_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemsetD8Async' in found_functions}}
- global __cuMemsetD8Async
- _F_cuGetProcAddress_v2('cuMemsetD8Async', &__cuMemsetD8Async, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemsetD16Async' in found_functions}}
- global __cuMemsetD16Async
- _F_cuGetProcAddress_v2('cuMemsetD16Async', &__cuMemsetD16Async, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemsetD32Async' in found_functions}}
- global __cuMemsetD32Async
- _F_cuGetProcAddress_v2('cuMemsetD32Async', &__cuMemsetD32Async, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemsetD2D8Async' in found_functions}}
- global __cuMemsetD2D8Async
- _F_cuGetProcAddress_v2('cuMemsetD2D8Async', &__cuMemsetD2D8Async, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemsetD2D16Async' in found_functions}}
- global __cuMemsetD2D16Async
- _F_cuGetProcAddress_v2('cuMemsetD2D16Async', &__cuMemsetD2D16Async, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemsetD2D32Async' in found_functions}}
- global __cuMemsetD2D32Async
- _F_cuGetProcAddress_v2('cuMemsetD2D32Async', &__cuMemsetD2D32Async, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemBatchDecompressAsync' in found_functions}}
- global __cuMemBatchDecompressAsync
- _F_cuGetProcAddress_v2('cuMemBatchDecompressAsync', &__cuMemBatchDecompressAsync, 12060, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemMapArrayAsync' in found_functions}}
- global __cuMemMapArrayAsync
- _F_cuGetProcAddress_v2('cuMemMapArrayAsync', &__cuMemMapArrayAsync, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemFreeAsync' in found_functions}}
- global __cuMemFreeAsync
- _F_cuGetProcAddress_v2('cuMemFreeAsync', &__cuMemFreeAsync, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemAllocAsync' in found_functions}}
- global __cuMemAllocAsync
- _F_cuGetProcAddress_v2('cuMemAllocAsync', &__cuMemAllocAsync, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemAllocFromPoolAsync' in found_functions}}
- global __cuMemAllocFromPoolAsync
- _F_cuGetProcAddress_v2('cuMemAllocFromPoolAsync', &__cuMemAllocFromPoolAsync, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemPrefetchAsync_v2' in found_functions}}
- global __cuMemPrefetchAsync_v2
- _F_cuGetProcAddress_v2('cuMemPrefetchAsync', &__cuMemPrefetchAsync_v2, 12020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemPrefetchBatchAsync' in found_functions}}
- global __cuMemPrefetchBatchAsync
- _F_cuGetProcAddress_v2('cuMemPrefetchBatchAsync', &__cuMemPrefetchBatchAsync, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemDiscardBatchAsync' in found_functions}}
- global __cuMemDiscardBatchAsync
- _F_cuGetProcAddress_v2('cuMemDiscardBatchAsync', &__cuMemDiscardBatchAsync, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemDiscardAndPrefetchBatchAsync' in found_functions}}
- global __cuMemDiscardAndPrefetchBatchAsync
- _F_cuGetProcAddress_v2('cuMemDiscardAndPrefetchBatchAsync', &__cuMemDiscardAndPrefetchBatchAsync, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuStreamGetPriority' in found_functions}}
- global __cuStreamGetPriority
- _F_cuGetProcAddress_v2('cuStreamGetPriority', &__cuStreamGetPriority, 5050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuStreamGetDevice' in found_functions}}
- global __cuStreamGetDevice
- _F_cuGetProcAddress_v2('cuStreamGetDevice', &__cuStreamGetDevice, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuStreamGetFlags' in found_functions}}
- global __cuStreamGetFlags
- _F_cuGetProcAddress_v2('cuStreamGetFlags', &__cuStreamGetFlags, 5050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuStreamGetId' in found_functions}}
- global __cuStreamGetId
- _F_cuGetProcAddress_v2('cuStreamGetId', &__cuStreamGetId, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuStreamGetCtx' in found_functions}}
- global __cuStreamGetCtx
- _F_cuGetProcAddress_v2('cuStreamGetCtx', &__cuStreamGetCtx, 9020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuStreamGetCtx_v2' in found_functions}}
- global __cuStreamGetCtx_v2
- _F_cuGetProcAddress_v2('cuStreamGetCtx', &__cuStreamGetCtx_v2, 12050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuStreamWaitEvent' in found_functions}}
- global __cuStreamWaitEvent
- _F_cuGetProcAddress_v2('cuStreamWaitEvent', &__cuStreamWaitEvent, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuStreamAddCallback' in found_functions}}
- global __cuStreamAddCallback
- _F_cuGetProcAddress_v2('cuStreamAddCallback', &__cuStreamAddCallback, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuStreamBeginCapture_v2' in found_functions}}
- global __cuStreamBeginCapture_v2
- _F_cuGetProcAddress_v2('cuStreamBeginCapture', &__cuStreamBeginCapture_v2, 10010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuStreamBeginCaptureToGraph' in found_functions}}
- global __cuStreamBeginCaptureToGraph
- _F_cuGetProcAddress_v2('cuStreamBeginCaptureToGraph', &__cuStreamBeginCaptureToGraph, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuStreamEndCapture' in found_functions}}
- global __cuStreamEndCapture
- _F_cuGetProcAddress_v2('cuStreamEndCapture', &__cuStreamEndCapture, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuStreamIsCapturing' in found_functions}}
- global __cuStreamIsCapturing
- _F_cuGetProcAddress_v2('cuStreamIsCapturing', &__cuStreamIsCapturing, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuStreamGetCaptureInfo_v3' in found_functions}}
- global __cuStreamGetCaptureInfo_v3
- _F_cuGetProcAddress_v2('cuStreamGetCaptureInfo', &__cuStreamGetCaptureInfo_v3, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuStreamUpdateCaptureDependencies_v2' in found_functions}}
- global __cuStreamUpdateCaptureDependencies_v2
- _F_cuGetProcAddress_v2('cuStreamUpdateCaptureDependencies', &__cuStreamUpdateCaptureDependencies_v2, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuStreamAttachMemAsync' in found_functions}}
- global __cuStreamAttachMemAsync
- _F_cuGetProcAddress_v2('cuStreamAttachMemAsync', &__cuStreamAttachMemAsync, 6000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuStreamQuery' in found_functions}}
- global __cuStreamQuery
- _F_cuGetProcAddress_v2('cuStreamQuery', &__cuStreamQuery, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuStreamSynchronize' in found_functions}}
- global __cuStreamSynchronize
- _F_cuGetProcAddress_v2('cuStreamSynchronize', &__cuStreamSynchronize, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuStreamCopyAttributes' in found_functions}}
- global __cuStreamCopyAttributes
- _F_cuGetProcAddress_v2('cuStreamCopyAttributes', &__cuStreamCopyAttributes, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuStreamGetAttribute' in found_functions}}
- global __cuStreamGetAttribute
- _F_cuGetProcAddress_v2('cuStreamGetAttribute', &__cuStreamGetAttribute, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuStreamSetAttribute' in found_functions}}
- global __cuStreamSetAttribute
- _F_cuGetProcAddress_v2('cuStreamSetAttribute', &__cuStreamSetAttribute, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuEventRecord' in found_functions}}
- global __cuEventRecord
- _F_cuGetProcAddress_v2('cuEventRecord', &__cuEventRecord, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuEventRecordWithFlags' in found_functions}}
- global __cuEventRecordWithFlags
- _F_cuGetProcAddress_v2('cuEventRecordWithFlags', &__cuEventRecordWithFlags, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuSignalExternalSemaphoresAsync' in found_functions}}
- global __cuSignalExternalSemaphoresAsync
- _F_cuGetProcAddress_v2('cuSignalExternalSemaphoresAsync', &__cuSignalExternalSemaphoresAsync, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuWaitExternalSemaphoresAsync' in found_functions}}
- global __cuWaitExternalSemaphoresAsync
- _F_cuGetProcAddress_v2('cuWaitExternalSemaphoresAsync', &__cuWaitExternalSemaphoresAsync, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuStreamWaitValue32_v2' in found_functions}}
- global __cuStreamWaitValue32_v2
- _F_cuGetProcAddress_v2('cuStreamWaitValue32', &__cuStreamWaitValue32_v2, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuStreamWaitValue64_v2' in found_functions}}
- global __cuStreamWaitValue64_v2
- _F_cuGetProcAddress_v2('cuStreamWaitValue64', &__cuStreamWaitValue64_v2, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuStreamWriteValue32_v2' in found_functions}}
- global __cuStreamWriteValue32_v2
- _F_cuGetProcAddress_v2('cuStreamWriteValue32', &__cuStreamWriteValue32_v2, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuStreamWriteValue64_v2' in found_functions}}
- global __cuStreamWriteValue64_v2
- _F_cuGetProcAddress_v2('cuStreamWriteValue64', &__cuStreamWriteValue64_v2, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuStreamBatchMemOp_v2' in found_functions}}
- global __cuStreamBatchMemOp_v2
- _F_cuGetProcAddress_v2('cuStreamBatchMemOp', &__cuStreamBatchMemOp_v2, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuLaunchKernel' in found_functions}}
- global __cuLaunchKernel
- _F_cuGetProcAddress_v2('cuLaunchKernel', &__cuLaunchKernel, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuLaunchKernelEx' in found_functions}}
- global __cuLaunchKernelEx
- _F_cuGetProcAddress_v2('cuLaunchKernelEx', &__cuLaunchKernelEx, 11060, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuLaunchCooperativeKernel' in found_functions}}
- global __cuLaunchCooperativeKernel
- _F_cuGetProcAddress_v2('cuLaunchCooperativeKernel', &__cuLaunchCooperativeKernel, 9000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuLaunchHostFunc' in found_functions}}
- global __cuLaunchHostFunc
- _F_cuGetProcAddress_v2('cuLaunchHostFunc', &__cuLaunchHostFunc, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphInstantiateWithParams' in found_functions}}
- global __cuGraphInstantiateWithParams
- _F_cuGetProcAddress_v2('cuGraphInstantiateWithParams', &__cuGraphInstantiateWithParams, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphUpload' in found_functions}}
- global __cuGraphUpload
- _F_cuGetProcAddress_v2('cuGraphUpload', &__cuGraphUpload, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphLaunch' in found_functions}}
- global __cuGraphLaunch
- _F_cuGetProcAddress_v2('cuGraphLaunch', &__cuGraphLaunch, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphicsMapResources' in found_functions}}
- global __cuGraphicsMapResources
- _F_cuGetProcAddress_v2('cuGraphicsMapResources', &__cuGraphicsMapResources, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphicsUnmapResources' in found_functions}}
- global __cuGraphicsUnmapResources
- _F_cuGetProcAddress_v2('cuGraphicsUnmapResources', &__cuGraphicsUnmapResources, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- # Get remaining functions
- {{if 'cuGetErrorString' in found_functions}}
- global __cuGetErrorString
- _F_cuGetProcAddress_v2('cuGetErrorString', &__cuGetErrorString, 6000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGetErrorName' in found_functions}}
- global __cuGetErrorName
- _F_cuGetProcAddress_v2('cuGetErrorName', &__cuGetErrorName, 6000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuInit' in found_functions}}
- global __cuInit
- _F_cuGetProcAddress_v2('cuInit', &__cuInit, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuDriverGetVersion' in found_functions}}
- global __cuDriverGetVersion
- _F_cuGetProcAddress_v2('cuDriverGetVersion', &__cuDriverGetVersion, 2020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuDeviceGet' in found_functions}}
- global __cuDeviceGet
- _F_cuGetProcAddress_v2('cuDeviceGet', &__cuDeviceGet, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuDeviceGetCount' in found_functions}}
- global __cuDeviceGetCount
- _F_cuGetProcAddress_v2('cuDeviceGetCount', &__cuDeviceGetCount, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuDeviceGetName' in found_functions}}
- global __cuDeviceGetName
- _F_cuGetProcAddress_v2('cuDeviceGetName', &__cuDeviceGetName, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuDeviceGetUuid_v2' in found_functions}}
- global __cuDeviceGetUuid_v2
- _F_cuGetProcAddress_v2('cuDeviceGetUuid', &__cuDeviceGetUuid_v2, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuDeviceGetLuid' in found_functions}}
- global __cuDeviceGetLuid
- _F_cuGetProcAddress_v2('cuDeviceGetLuid', &__cuDeviceGetLuid, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuDeviceTotalMem_v2' in found_functions}}
- global __cuDeviceTotalMem_v2
- _F_cuGetProcAddress_v2('cuDeviceTotalMem', &__cuDeviceTotalMem_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuDeviceGetTexture1DLinearMaxWidth' in found_functions}}
- global __cuDeviceGetTexture1DLinearMaxWidth
- _F_cuGetProcAddress_v2('cuDeviceGetTexture1DLinearMaxWidth', &__cuDeviceGetTexture1DLinearMaxWidth, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuDeviceGetAttribute' in found_functions}}
- global __cuDeviceGetAttribute
- _F_cuGetProcAddress_v2('cuDeviceGetAttribute', &__cuDeviceGetAttribute, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuDeviceGetHostAtomicCapabilities' in found_functions}}
- global __cuDeviceGetHostAtomicCapabilities
- _F_cuGetProcAddress_v2('cuDeviceGetHostAtomicCapabilities', &__cuDeviceGetHostAtomicCapabilities, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuDeviceGetNvSciSyncAttributes' in found_functions}}
- global __cuDeviceGetNvSciSyncAttributes
- _F_cuGetProcAddress_v2('cuDeviceGetNvSciSyncAttributes', &__cuDeviceGetNvSciSyncAttributes, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuDeviceSetMemPool' in found_functions}}
- global __cuDeviceSetMemPool
- _F_cuGetProcAddress_v2('cuDeviceSetMemPool', &__cuDeviceSetMemPool, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuDeviceGetMemPool' in found_functions}}
- global __cuDeviceGetMemPool
- _F_cuGetProcAddress_v2('cuDeviceGetMemPool', &__cuDeviceGetMemPool, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuDeviceGetDefaultMemPool' in found_functions}}
- global __cuDeviceGetDefaultMemPool
- _F_cuGetProcAddress_v2('cuDeviceGetDefaultMemPool', &__cuDeviceGetDefaultMemPool, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuDeviceGetExecAffinitySupport' in found_functions}}
- global __cuDeviceGetExecAffinitySupport
- _F_cuGetProcAddress_v2('cuDeviceGetExecAffinitySupport', &__cuDeviceGetExecAffinitySupport, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuFlushGPUDirectRDMAWrites' in found_functions}}
- global __cuFlushGPUDirectRDMAWrites
- _F_cuGetProcAddress_v2('cuFlushGPUDirectRDMAWrites', &__cuFlushGPUDirectRDMAWrites, 11030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuDeviceGetProperties' in found_functions}}
- global __cuDeviceGetProperties
- _F_cuGetProcAddress_v2('cuDeviceGetProperties', &__cuDeviceGetProperties, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuDeviceComputeCapability' in found_functions}}
- global __cuDeviceComputeCapability
- _F_cuGetProcAddress_v2('cuDeviceComputeCapability', &__cuDeviceComputeCapability, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuDevicePrimaryCtxRetain' in found_functions}}
- global __cuDevicePrimaryCtxRetain
- _F_cuGetProcAddress_v2('cuDevicePrimaryCtxRetain', &__cuDevicePrimaryCtxRetain, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuDevicePrimaryCtxRelease_v2' in found_functions}}
- global __cuDevicePrimaryCtxRelease_v2
- _F_cuGetProcAddress_v2('cuDevicePrimaryCtxRelease', &__cuDevicePrimaryCtxRelease_v2, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuDevicePrimaryCtxSetFlags_v2' in found_functions}}
- global __cuDevicePrimaryCtxSetFlags_v2
- _F_cuGetProcAddress_v2('cuDevicePrimaryCtxSetFlags', &__cuDevicePrimaryCtxSetFlags_v2, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuDevicePrimaryCtxGetState' in found_functions}}
- global __cuDevicePrimaryCtxGetState
- _F_cuGetProcAddress_v2('cuDevicePrimaryCtxGetState', &__cuDevicePrimaryCtxGetState, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuDevicePrimaryCtxReset_v2' in found_functions}}
- global __cuDevicePrimaryCtxReset_v2
- _F_cuGetProcAddress_v2('cuDevicePrimaryCtxReset', &__cuDevicePrimaryCtxReset_v2, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCtxCreate_v4' in found_functions}}
- global __cuCtxCreate_v4
- _F_cuGetProcAddress_v2('cuCtxCreate', &__cuCtxCreate_v4, 12050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCtxDestroy_v2' in found_functions}}
- global __cuCtxDestroy_v2
- _F_cuGetProcAddress_v2('cuCtxDestroy', &__cuCtxDestroy_v2, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCtxPushCurrent_v2' in found_functions}}
- global __cuCtxPushCurrent_v2
- _F_cuGetProcAddress_v2('cuCtxPushCurrent', &__cuCtxPushCurrent_v2, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCtxPopCurrent_v2' in found_functions}}
- global __cuCtxPopCurrent_v2
- _F_cuGetProcAddress_v2('cuCtxPopCurrent', &__cuCtxPopCurrent_v2, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCtxSetCurrent' in found_functions}}
- global __cuCtxSetCurrent
- _F_cuGetProcAddress_v2('cuCtxSetCurrent', &__cuCtxSetCurrent, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCtxGetCurrent' in found_functions}}
- global __cuCtxGetCurrent
- _F_cuGetProcAddress_v2('cuCtxGetCurrent', &__cuCtxGetCurrent, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCtxGetDevice' in found_functions}}
- global __cuCtxGetDevice
- _F_cuGetProcAddress_v2('cuCtxGetDevice', &__cuCtxGetDevice, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCtxGetDevice_v2' in found_functions}}
- global __cuCtxGetDevice_v2
- _F_cuGetProcAddress_v2('cuCtxGetDevice', &__cuCtxGetDevice_v2, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCtxGetFlags' in found_functions}}
- global __cuCtxGetFlags
- _F_cuGetProcAddress_v2('cuCtxGetFlags', &__cuCtxGetFlags, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCtxSetFlags' in found_functions}}
- global __cuCtxSetFlags
- _F_cuGetProcAddress_v2('cuCtxSetFlags', &__cuCtxSetFlags, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCtxGetId' in found_functions}}
- global __cuCtxGetId
- _F_cuGetProcAddress_v2('cuCtxGetId', &__cuCtxGetId, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCtxSynchronize' in found_functions}}
- global __cuCtxSynchronize
- _F_cuGetProcAddress_v2('cuCtxSynchronize', &__cuCtxSynchronize, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCtxSynchronize_v2' in found_functions}}
- global __cuCtxSynchronize_v2
- _F_cuGetProcAddress_v2('cuCtxSynchronize', &__cuCtxSynchronize_v2, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCtxSetLimit' in found_functions}}
- global __cuCtxSetLimit
- _F_cuGetProcAddress_v2('cuCtxSetLimit', &__cuCtxSetLimit, 3010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCtxGetLimit' in found_functions}}
- global __cuCtxGetLimit
- _F_cuGetProcAddress_v2('cuCtxGetLimit', &__cuCtxGetLimit, 3010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCtxGetCacheConfig' in found_functions}}
- global __cuCtxGetCacheConfig
- _F_cuGetProcAddress_v2('cuCtxGetCacheConfig', &__cuCtxGetCacheConfig, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCtxSetCacheConfig' in found_functions}}
- global __cuCtxSetCacheConfig
- _F_cuGetProcAddress_v2('cuCtxSetCacheConfig', &__cuCtxSetCacheConfig, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCtxGetApiVersion' in found_functions}}
- global __cuCtxGetApiVersion
- _F_cuGetProcAddress_v2('cuCtxGetApiVersion', &__cuCtxGetApiVersion, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCtxGetStreamPriorityRange' in found_functions}}
- global __cuCtxGetStreamPriorityRange
- _F_cuGetProcAddress_v2('cuCtxGetStreamPriorityRange', &__cuCtxGetStreamPriorityRange, 5050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCtxResetPersistingL2Cache' in found_functions}}
- global __cuCtxResetPersistingL2Cache
- _F_cuGetProcAddress_v2('cuCtxResetPersistingL2Cache', &__cuCtxResetPersistingL2Cache, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCtxGetExecAffinity' in found_functions}}
- global __cuCtxGetExecAffinity
- _F_cuGetProcAddress_v2('cuCtxGetExecAffinity', &__cuCtxGetExecAffinity, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCtxRecordEvent' in found_functions}}
- global __cuCtxRecordEvent
- _F_cuGetProcAddress_v2('cuCtxRecordEvent', &__cuCtxRecordEvent, 12050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCtxWaitEvent' in found_functions}}
- global __cuCtxWaitEvent
- _F_cuGetProcAddress_v2('cuCtxWaitEvent', &__cuCtxWaitEvent, 12050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCtxAttach' in found_functions}}
- global __cuCtxAttach
- _F_cuGetProcAddress_v2('cuCtxAttach', &__cuCtxAttach, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCtxDetach' in found_functions}}
- global __cuCtxDetach
- _F_cuGetProcAddress_v2('cuCtxDetach', &__cuCtxDetach, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCtxGetSharedMemConfig' in found_functions}}
- global __cuCtxGetSharedMemConfig
- _F_cuGetProcAddress_v2('cuCtxGetSharedMemConfig', &__cuCtxGetSharedMemConfig, 4020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCtxSetSharedMemConfig' in found_functions}}
- global __cuCtxSetSharedMemConfig
- _F_cuGetProcAddress_v2('cuCtxSetSharedMemConfig', &__cuCtxSetSharedMemConfig, 4020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuModuleLoad' in found_functions}}
- global __cuModuleLoad
- _F_cuGetProcAddress_v2('cuModuleLoad', &__cuModuleLoad, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuModuleLoadData' in found_functions}}
- global __cuModuleLoadData
- _F_cuGetProcAddress_v2('cuModuleLoadData', &__cuModuleLoadData, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuModuleLoadDataEx' in found_functions}}
- global __cuModuleLoadDataEx
- _F_cuGetProcAddress_v2('cuModuleLoadDataEx', &__cuModuleLoadDataEx, 2010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuModuleLoadFatBinary' in found_functions}}
- global __cuModuleLoadFatBinary
- _F_cuGetProcAddress_v2('cuModuleLoadFatBinary', &__cuModuleLoadFatBinary, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuModuleUnload' in found_functions}}
- global __cuModuleUnload
- _F_cuGetProcAddress_v2('cuModuleUnload', &__cuModuleUnload, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuModuleGetLoadingMode' in found_functions}}
- global __cuModuleGetLoadingMode
- _F_cuGetProcAddress_v2('cuModuleGetLoadingMode', &__cuModuleGetLoadingMode, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuModuleGetFunction' in found_functions}}
- global __cuModuleGetFunction
- _F_cuGetProcAddress_v2('cuModuleGetFunction', &__cuModuleGetFunction, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuModuleGetFunctionCount' in found_functions}}
- global __cuModuleGetFunctionCount
- _F_cuGetProcAddress_v2('cuModuleGetFunctionCount', &__cuModuleGetFunctionCount, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuModuleEnumerateFunctions' in found_functions}}
- global __cuModuleEnumerateFunctions
- _F_cuGetProcAddress_v2('cuModuleEnumerateFunctions', &__cuModuleEnumerateFunctions, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuModuleGetGlobal_v2' in found_functions}}
- global __cuModuleGetGlobal_v2
- _F_cuGetProcAddress_v2('cuModuleGetGlobal', &__cuModuleGetGlobal_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuLinkCreate_v2' in found_functions}}
- global __cuLinkCreate_v2
- _F_cuGetProcAddress_v2('cuLinkCreate', &__cuLinkCreate_v2, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuLinkAddData_v2' in found_functions}}
- global __cuLinkAddData_v2
- _F_cuGetProcAddress_v2('cuLinkAddData', &__cuLinkAddData_v2, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuLinkAddFile_v2' in found_functions}}
- global __cuLinkAddFile_v2
- _F_cuGetProcAddress_v2('cuLinkAddFile', &__cuLinkAddFile_v2, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuLinkComplete' in found_functions}}
- global __cuLinkComplete
- _F_cuGetProcAddress_v2('cuLinkComplete', &__cuLinkComplete, 5050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuLinkDestroy' in found_functions}}
- global __cuLinkDestroy
- _F_cuGetProcAddress_v2('cuLinkDestroy', &__cuLinkDestroy, 5050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuModuleGetTexRef' in found_functions}}
- global __cuModuleGetTexRef
- _F_cuGetProcAddress_v2('cuModuleGetTexRef', &__cuModuleGetTexRef, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuModuleGetSurfRef' in found_functions}}
- global __cuModuleGetSurfRef
- _F_cuGetProcAddress_v2('cuModuleGetSurfRef', &__cuModuleGetSurfRef, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuLibraryLoadData' in found_functions}}
- global __cuLibraryLoadData
- _F_cuGetProcAddress_v2('cuLibraryLoadData', &__cuLibraryLoadData, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuLibraryLoadFromFile' in found_functions}}
- global __cuLibraryLoadFromFile
- _F_cuGetProcAddress_v2('cuLibraryLoadFromFile', &__cuLibraryLoadFromFile, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuLibraryUnload' in found_functions}}
- global __cuLibraryUnload
- _F_cuGetProcAddress_v2('cuLibraryUnload', &__cuLibraryUnload, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuLibraryGetKernel' in found_functions}}
- global __cuLibraryGetKernel
- _F_cuGetProcAddress_v2('cuLibraryGetKernel', &__cuLibraryGetKernel, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuLibraryGetKernelCount' in found_functions}}
- global __cuLibraryGetKernelCount
- _F_cuGetProcAddress_v2('cuLibraryGetKernelCount', &__cuLibraryGetKernelCount, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuLibraryEnumerateKernels' in found_functions}}
- global __cuLibraryEnumerateKernels
- _F_cuGetProcAddress_v2('cuLibraryEnumerateKernels', &__cuLibraryEnumerateKernels, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuLibraryGetModule' in found_functions}}
- global __cuLibraryGetModule
- _F_cuGetProcAddress_v2('cuLibraryGetModule', &__cuLibraryGetModule, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuKernelGetFunction' in found_functions}}
- global __cuKernelGetFunction
- _F_cuGetProcAddress_v2('cuKernelGetFunction', &__cuKernelGetFunction, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuKernelGetLibrary' in found_functions}}
- global __cuKernelGetLibrary
- _F_cuGetProcAddress_v2('cuKernelGetLibrary', &__cuKernelGetLibrary, 12050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuLibraryGetGlobal' in found_functions}}
- global __cuLibraryGetGlobal
- _F_cuGetProcAddress_v2('cuLibraryGetGlobal', &__cuLibraryGetGlobal, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuLibraryGetManaged' in found_functions}}
- global __cuLibraryGetManaged
- _F_cuGetProcAddress_v2('cuLibraryGetManaged', &__cuLibraryGetManaged, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuLibraryGetUnifiedFunction' in found_functions}}
- global __cuLibraryGetUnifiedFunction
- _F_cuGetProcAddress_v2('cuLibraryGetUnifiedFunction', &__cuLibraryGetUnifiedFunction, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuKernelGetAttribute' in found_functions}}
- global __cuKernelGetAttribute
- _F_cuGetProcAddress_v2('cuKernelGetAttribute', &__cuKernelGetAttribute, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuKernelSetAttribute' in found_functions}}
- global __cuKernelSetAttribute
- _F_cuGetProcAddress_v2('cuKernelSetAttribute', &__cuKernelSetAttribute, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuKernelSetCacheConfig' in found_functions}}
- global __cuKernelSetCacheConfig
- _F_cuGetProcAddress_v2('cuKernelSetCacheConfig', &__cuKernelSetCacheConfig, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuKernelGetName' in found_functions}}
- global __cuKernelGetName
- _F_cuGetProcAddress_v2('cuKernelGetName', &__cuKernelGetName, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuKernelGetParamInfo' in found_functions}}
- global __cuKernelGetParamInfo
- _F_cuGetProcAddress_v2('cuKernelGetParamInfo', &__cuKernelGetParamInfo, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemGetInfo_v2' in found_functions}}
- global __cuMemGetInfo_v2
- _F_cuGetProcAddress_v2('cuMemGetInfo', &__cuMemGetInfo_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemAlloc_v2' in found_functions}}
- global __cuMemAlloc_v2
- _F_cuGetProcAddress_v2('cuMemAlloc', &__cuMemAlloc_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemAllocPitch_v2' in found_functions}}
- global __cuMemAllocPitch_v2
- _F_cuGetProcAddress_v2('cuMemAllocPitch', &__cuMemAllocPitch_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemFree_v2' in found_functions}}
- global __cuMemFree_v2
- _F_cuGetProcAddress_v2('cuMemFree', &__cuMemFree_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemGetAddressRange_v2' in found_functions}}
- global __cuMemGetAddressRange_v2
- _F_cuGetProcAddress_v2('cuMemGetAddressRange', &__cuMemGetAddressRange_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemAllocHost_v2' in found_functions}}
- global __cuMemAllocHost_v2
- _F_cuGetProcAddress_v2('cuMemAllocHost', &__cuMemAllocHost_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemFreeHost' in found_functions}}
- global __cuMemFreeHost
- _F_cuGetProcAddress_v2('cuMemFreeHost', &__cuMemFreeHost, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemHostAlloc' in found_functions}}
- global __cuMemHostAlloc
- _F_cuGetProcAddress_v2('cuMemHostAlloc', &__cuMemHostAlloc, 2020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemHostGetDevicePointer_v2' in found_functions}}
- global __cuMemHostGetDevicePointer_v2
- _F_cuGetProcAddress_v2('cuMemHostGetDevicePointer', &__cuMemHostGetDevicePointer_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemHostGetFlags' in found_functions}}
- global __cuMemHostGetFlags
- _F_cuGetProcAddress_v2('cuMemHostGetFlags', &__cuMemHostGetFlags, 2030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemAllocManaged' in found_functions}}
- global __cuMemAllocManaged
- _F_cuGetProcAddress_v2('cuMemAllocManaged', &__cuMemAllocManaged, 6000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuDeviceRegisterAsyncNotification' in found_functions}}
- global __cuDeviceRegisterAsyncNotification
- _F_cuGetProcAddress_v2('cuDeviceRegisterAsyncNotification', &__cuDeviceRegisterAsyncNotification, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuDeviceUnregisterAsyncNotification' in found_functions}}
- global __cuDeviceUnregisterAsyncNotification
- _F_cuGetProcAddress_v2('cuDeviceUnregisterAsyncNotification', &__cuDeviceUnregisterAsyncNotification, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuDeviceGetByPCIBusId' in found_functions}}
- global __cuDeviceGetByPCIBusId
- _F_cuGetProcAddress_v2('cuDeviceGetByPCIBusId', &__cuDeviceGetByPCIBusId, 4010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuDeviceGetPCIBusId' in found_functions}}
- global __cuDeviceGetPCIBusId
- _F_cuGetProcAddress_v2('cuDeviceGetPCIBusId', &__cuDeviceGetPCIBusId, 4010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuIpcGetEventHandle' in found_functions}}
- global __cuIpcGetEventHandle
- _F_cuGetProcAddress_v2('cuIpcGetEventHandle', &__cuIpcGetEventHandle, 4010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuIpcOpenEventHandle' in found_functions}}
- global __cuIpcOpenEventHandle
- _F_cuGetProcAddress_v2('cuIpcOpenEventHandle', &__cuIpcOpenEventHandle, 4010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuIpcGetMemHandle' in found_functions}}
- global __cuIpcGetMemHandle
- _F_cuGetProcAddress_v2('cuIpcGetMemHandle', &__cuIpcGetMemHandle, 4010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuIpcOpenMemHandle_v2' in found_functions}}
- global __cuIpcOpenMemHandle_v2
- _F_cuGetProcAddress_v2('cuIpcOpenMemHandle', &__cuIpcOpenMemHandle_v2, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuIpcCloseMemHandle' in found_functions}}
- global __cuIpcCloseMemHandle
- _F_cuGetProcAddress_v2('cuIpcCloseMemHandle', &__cuIpcCloseMemHandle, 4010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemHostRegister_v2' in found_functions}}
- global __cuMemHostRegister_v2
- _F_cuGetProcAddress_v2('cuMemHostRegister', &__cuMemHostRegister_v2, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemHostUnregister' in found_functions}}
- global __cuMemHostUnregister
- _F_cuGetProcAddress_v2('cuMemHostUnregister', &__cuMemHostUnregister, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuArrayCreate_v2' in found_functions}}
- global __cuArrayCreate_v2
- _F_cuGetProcAddress_v2('cuArrayCreate', &__cuArrayCreate_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuArrayGetDescriptor_v2' in found_functions}}
- global __cuArrayGetDescriptor_v2
- _F_cuGetProcAddress_v2('cuArrayGetDescriptor', &__cuArrayGetDescriptor_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuArrayGetSparseProperties' in found_functions}}
- global __cuArrayGetSparseProperties
- _F_cuGetProcAddress_v2('cuArrayGetSparseProperties', &__cuArrayGetSparseProperties, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMipmappedArrayGetSparseProperties' in found_functions}}
- global __cuMipmappedArrayGetSparseProperties
- _F_cuGetProcAddress_v2('cuMipmappedArrayGetSparseProperties', &__cuMipmappedArrayGetSparseProperties, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuArrayGetMemoryRequirements' in found_functions}}
- global __cuArrayGetMemoryRequirements
- _F_cuGetProcAddress_v2('cuArrayGetMemoryRequirements', &__cuArrayGetMemoryRequirements, 11060, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMipmappedArrayGetMemoryRequirements' in found_functions}}
- global __cuMipmappedArrayGetMemoryRequirements
- _F_cuGetProcAddress_v2('cuMipmappedArrayGetMemoryRequirements', &__cuMipmappedArrayGetMemoryRequirements, 11060, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuArrayGetPlane' in found_functions}}
- global __cuArrayGetPlane
- _F_cuGetProcAddress_v2('cuArrayGetPlane', &__cuArrayGetPlane, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuArrayDestroy' in found_functions}}
- global __cuArrayDestroy
- _F_cuGetProcAddress_v2('cuArrayDestroy', &__cuArrayDestroy, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuArray3DCreate_v2' in found_functions}}
- global __cuArray3DCreate_v2
- _F_cuGetProcAddress_v2('cuArray3DCreate', &__cuArray3DCreate_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuArray3DGetDescriptor_v2' in found_functions}}
- global __cuArray3DGetDescriptor_v2
- _F_cuGetProcAddress_v2('cuArray3DGetDescriptor', &__cuArray3DGetDescriptor_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMipmappedArrayCreate' in found_functions}}
- global __cuMipmappedArrayCreate
- _F_cuGetProcAddress_v2('cuMipmappedArrayCreate', &__cuMipmappedArrayCreate, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMipmappedArrayGetLevel' in found_functions}}
- global __cuMipmappedArrayGetLevel
- _F_cuGetProcAddress_v2('cuMipmappedArrayGetLevel', &__cuMipmappedArrayGetLevel, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMipmappedArrayDestroy' in found_functions}}
- global __cuMipmappedArrayDestroy
- _F_cuGetProcAddress_v2('cuMipmappedArrayDestroy', &__cuMipmappedArrayDestroy, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemGetHandleForAddressRange' in found_functions}}
- global __cuMemGetHandleForAddressRange
- _F_cuGetProcAddress_v2('cuMemGetHandleForAddressRange', &__cuMemGetHandleForAddressRange, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemAddressReserve' in found_functions}}
- global __cuMemAddressReserve
- _F_cuGetProcAddress_v2('cuMemAddressReserve', &__cuMemAddressReserve, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemAddressFree' in found_functions}}
- global __cuMemAddressFree
- _F_cuGetProcAddress_v2('cuMemAddressFree', &__cuMemAddressFree, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemCreate' in found_functions}}
- global __cuMemCreate
- _F_cuGetProcAddress_v2('cuMemCreate', &__cuMemCreate, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemRelease' in found_functions}}
- global __cuMemRelease
- _F_cuGetProcAddress_v2('cuMemRelease', &__cuMemRelease, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemMap' in found_functions}}
- global __cuMemMap
- _F_cuGetProcAddress_v2('cuMemMap', &__cuMemMap, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemUnmap' in found_functions}}
- global __cuMemUnmap
- _F_cuGetProcAddress_v2('cuMemUnmap', &__cuMemUnmap, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemSetAccess' in found_functions}}
- global __cuMemSetAccess
- _F_cuGetProcAddress_v2('cuMemSetAccess', &__cuMemSetAccess, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemGetAccess' in found_functions}}
- global __cuMemGetAccess
- _F_cuGetProcAddress_v2('cuMemGetAccess', &__cuMemGetAccess, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemExportToShareableHandle' in found_functions}}
- global __cuMemExportToShareableHandle
- _F_cuGetProcAddress_v2('cuMemExportToShareableHandle', &__cuMemExportToShareableHandle, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemImportFromShareableHandle' in found_functions}}
- global __cuMemImportFromShareableHandle
- _F_cuGetProcAddress_v2('cuMemImportFromShareableHandle', &__cuMemImportFromShareableHandle, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemGetAllocationGranularity' in found_functions}}
- global __cuMemGetAllocationGranularity
- _F_cuGetProcAddress_v2('cuMemGetAllocationGranularity', &__cuMemGetAllocationGranularity, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemGetAllocationPropertiesFromHandle' in found_functions}}
- global __cuMemGetAllocationPropertiesFromHandle
- _F_cuGetProcAddress_v2('cuMemGetAllocationPropertiesFromHandle', &__cuMemGetAllocationPropertiesFromHandle, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemRetainAllocationHandle' in found_functions}}
- global __cuMemRetainAllocationHandle
- _F_cuGetProcAddress_v2('cuMemRetainAllocationHandle', &__cuMemRetainAllocationHandle, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemPoolTrimTo' in found_functions}}
- global __cuMemPoolTrimTo
- _F_cuGetProcAddress_v2('cuMemPoolTrimTo', &__cuMemPoolTrimTo, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemPoolSetAttribute' in found_functions}}
- global __cuMemPoolSetAttribute
- _F_cuGetProcAddress_v2('cuMemPoolSetAttribute', &__cuMemPoolSetAttribute, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemPoolGetAttribute' in found_functions}}
- global __cuMemPoolGetAttribute
- _F_cuGetProcAddress_v2('cuMemPoolGetAttribute', &__cuMemPoolGetAttribute, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemPoolSetAccess' in found_functions}}
- global __cuMemPoolSetAccess
- _F_cuGetProcAddress_v2('cuMemPoolSetAccess', &__cuMemPoolSetAccess, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemPoolGetAccess' in found_functions}}
- global __cuMemPoolGetAccess
- _F_cuGetProcAddress_v2('cuMemPoolGetAccess', &__cuMemPoolGetAccess, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemPoolCreate' in found_functions}}
- global __cuMemPoolCreate
- _F_cuGetProcAddress_v2('cuMemPoolCreate', &__cuMemPoolCreate, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemPoolDestroy' in found_functions}}
- global __cuMemPoolDestroy
- _F_cuGetProcAddress_v2('cuMemPoolDestroy', &__cuMemPoolDestroy, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemGetDefaultMemPool' in found_functions}}
- global __cuMemGetDefaultMemPool
- _F_cuGetProcAddress_v2('cuMemGetDefaultMemPool', &__cuMemGetDefaultMemPool, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemGetMemPool' in found_functions}}
- global __cuMemGetMemPool
- _F_cuGetProcAddress_v2('cuMemGetMemPool', &__cuMemGetMemPool, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemSetMemPool' in found_functions}}
- global __cuMemSetMemPool
- _F_cuGetProcAddress_v2('cuMemSetMemPool', &__cuMemSetMemPool, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemPoolExportToShareableHandle' in found_functions}}
- global __cuMemPoolExportToShareableHandle
- _F_cuGetProcAddress_v2('cuMemPoolExportToShareableHandle', &__cuMemPoolExportToShareableHandle, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemPoolImportFromShareableHandle' in found_functions}}
- global __cuMemPoolImportFromShareableHandle
- _F_cuGetProcAddress_v2('cuMemPoolImportFromShareableHandle', &__cuMemPoolImportFromShareableHandle, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemPoolExportPointer' in found_functions}}
- global __cuMemPoolExportPointer
- _F_cuGetProcAddress_v2('cuMemPoolExportPointer', &__cuMemPoolExportPointer, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemPoolImportPointer' in found_functions}}
- global __cuMemPoolImportPointer
- _F_cuGetProcAddress_v2('cuMemPoolImportPointer', &__cuMemPoolImportPointer, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMulticastCreate' in found_functions}}
- global __cuMulticastCreate
- _F_cuGetProcAddress_v2('cuMulticastCreate', &__cuMulticastCreate, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMulticastAddDevice' in found_functions}}
- global __cuMulticastAddDevice
- _F_cuGetProcAddress_v2('cuMulticastAddDevice', &__cuMulticastAddDevice, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMulticastBindMem' in found_functions}}
- global __cuMulticastBindMem
- _F_cuGetProcAddress_v2('cuMulticastBindMem', &__cuMulticastBindMem, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMulticastBindAddr' in found_functions}}
- global __cuMulticastBindAddr
- _F_cuGetProcAddress_v2('cuMulticastBindAddr', &__cuMulticastBindAddr, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMulticastUnbind' in found_functions}}
- global __cuMulticastUnbind
- _F_cuGetProcAddress_v2('cuMulticastUnbind', &__cuMulticastUnbind, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMulticastGetGranularity' in found_functions}}
- global __cuMulticastGetGranularity
- _F_cuGetProcAddress_v2('cuMulticastGetGranularity', &__cuMulticastGetGranularity, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuPointerGetAttribute' in found_functions}}
- global __cuPointerGetAttribute
- _F_cuGetProcAddress_v2('cuPointerGetAttribute', &__cuPointerGetAttribute, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemAdvise_v2' in found_functions}}
- global __cuMemAdvise_v2
- _F_cuGetProcAddress_v2('cuMemAdvise', &__cuMemAdvise_v2, 12020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemRangeGetAttribute' in found_functions}}
- global __cuMemRangeGetAttribute
- _F_cuGetProcAddress_v2('cuMemRangeGetAttribute', &__cuMemRangeGetAttribute, 8000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuMemRangeGetAttributes' in found_functions}}
- global __cuMemRangeGetAttributes
- _F_cuGetProcAddress_v2('cuMemRangeGetAttributes', &__cuMemRangeGetAttributes, 8000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuPointerSetAttribute' in found_functions}}
- global __cuPointerSetAttribute
- _F_cuGetProcAddress_v2('cuPointerSetAttribute', &__cuPointerSetAttribute, 6000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuPointerGetAttributes' in found_functions}}
- global __cuPointerGetAttributes
- _F_cuGetProcAddress_v2('cuPointerGetAttributes', &__cuPointerGetAttributes, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuStreamCreate' in found_functions}}
- global __cuStreamCreate
- _F_cuGetProcAddress_v2('cuStreamCreate', &__cuStreamCreate, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuStreamCreateWithPriority' in found_functions}}
- global __cuStreamCreateWithPriority
- _F_cuGetProcAddress_v2('cuStreamCreateWithPriority', &__cuStreamCreateWithPriority, 5050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuThreadExchangeStreamCaptureMode' in found_functions}}
- global __cuThreadExchangeStreamCaptureMode
- _F_cuGetProcAddress_v2('cuThreadExchangeStreamCaptureMode', &__cuThreadExchangeStreamCaptureMode, 10010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuStreamDestroy_v2' in found_functions}}
- global __cuStreamDestroy_v2
- _F_cuGetProcAddress_v2('cuStreamDestroy', &__cuStreamDestroy_v2, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuEventCreate' in found_functions}}
- global __cuEventCreate
- _F_cuGetProcAddress_v2('cuEventCreate', &__cuEventCreate, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuEventQuery' in found_functions}}
- global __cuEventQuery
- _F_cuGetProcAddress_v2('cuEventQuery', &__cuEventQuery, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuEventSynchronize' in found_functions}}
- global __cuEventSynchronize
- _F_cuGetProcAddress_v2('cuEventSynchronize', &__cuEventSynchronize, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuEventDestroy_v2' in found_functions}}
- global __cuEventDestroy_v2
- _F_cuGetProcAddress_v2('cuEventDestroy', &__cuEventDestroy_v2, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuEventElapsedTime_v2' in found_functions}}
- global __cuEventElapsedTime_v2
- _F_cuGetProcAddress_v2('cuEventElapsedTime', &__cuEventElapsedTime_v2, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuImportExternalMemory' in found_functions}}
- global __cuImportExternalMemory
- _F_cuGetProcAddress_v2('cuImportExternalMemory', &__cuImportExternalMemory, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuExternalMemoryGetMappedBuffer' in found_functions}}
- global __cuExternalMemoryGetMappedBuffer
- _F_cuGetProcAddress_v2('cuExternalMemoryGetMappedBuffer', &__cuExternalMemoryGetMappedBuffer, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuExternalMemoryGetMappedMipmappedArray' in found_functions}}
- global __cuExternalMemoryGetMappedMipmappedArray
- _F_cuGetProcAddress_v2('cuExternalMemoryGetMappedMipmappedArray', &__cuExternalMemoryGetMappedMipmappedArray, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuDestroyExternalMemory' in found_functions}}
- global __cuDestroyExternalMemory
- _F_cuGetProcAddress_v2('cuDestroyExternalMemory', &__cuDestroyExternalMemory, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuImportExternalSemaphore' in found_functions}}
- global __cuImportExternalSemaphore
- _F_cuGetProcAddress_v2('cuImportExternalSemaphore', &__cuImportExternalSemaphore, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuDestroyExternalSemaphore' in found_functions}}
- global __cuDestroyExternalSemaphore
- _F_cuGetProcAddress_v2('cuDestroyExternalSemaphore', &__cuDestroyExternalSemaphore, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuFuncGetAttribute' in found_functions}}
- global __cuFuncGetAttribute
- _F_cuGetProcAddress_v2('cuFuncGetAttribute', &__cuFuncGetAttribute, 2020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuFuncSetAttribute' in found_functions}}
- global __cuFuncSetAttribute
- _F_cuGetProcAddress_v2('cuFuncSetAttribute', &__cuFuncSetAttribute, 9000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuFuncSetCacheConfig' in found_functions}}
- global __cuFuncSetCacheConfig
- _F_cuGetProcAddress_v2('cuFuncSetCacheConfig', &__cuFuncSetCacheConfig, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuFuncGetModule' in found_functions}}
- global __cuFuncGetModule
- _F_cuGetProcAddress_v2('cuFuncGetModule', &__cuFuncGetModule, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuFuncGetName' in found_functions}}
- global __cuFuncGetName
- _F_cuGetProcAddress_v2('cuFuncGetName', &__cuFuncGetName, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuFuncGetParamInfo' in found_functions}}
- global __cuFuncGetParamInfo
- _F_cuGetProcAddress_v2('cuFuncGetParamInfo', &__cuFuncGetParamInfo, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuFuncIsLoaded' in found_functions}}
- global __cuFuncIsLoaded
- _F_cuGetProcAddress_v2('cuFuncIsLoaded', &__cuFuncIsLoaded, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuFuncLoad' in found_functions}}
- global __cuFuncLoad
- _F_cuGetProcAddress_v2('cuFuncLoad', &__cuFuncLoad, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuLaunchCooperativeKernelMultiDevice' in found_functions}}
- global __cuLaunchCooperativeKernelMultiDevice
- _F_cuGetProcAddress_v2('cuLaunchCooperativeKernelMultiDevice', &__cuLaunchCooperativeKernelMultiDevice, 9000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuFuncSetBlockShape' in found_functions}}
- global __cuFuncSetBlockShape
- _F_cuGetProcAddress_v2('cuFuncSetBlockShape', &__cuFuncSetBlockShape, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuFuncSetSharedSize' in found_functions}}
- global __cuFuncSetSharedSize
- _F_cuGetProcAddress_v2('cuFuncSetSharedSize', &__cuFuncSetSharedSize, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuParamSetSize' in found_functions}}
- global __cuParamSetSize
- _F_cuGetProcAddress_v2('cuParamSetSize', &__cuParamSetSize, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuParamSeti' in found_functions}}
- global __cuParamSeti
- _F_cuGetProcAddress_v2('cuParamSeti', &__cuParamSeti, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuParamSetf' in found_functions}}
- global __cuParamSetf
- _F_cuGetProcAddress_v2('cuParamSetf', &__cuParamSetf, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuParamSetv' in found_functions}}
- global __cuParamSetv
- _F_cuGetProcAddress_v2('cuParamSetv', &__cuParamSetv, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuLaunch' in found_functions}}
- global __cuLaunch
- _F_cuGetProcAddress_v2('cuLaunch', &__cuLaunch, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuLaunchGrid' in found_functions}}
- global __cuLaunchGrid
- _F_cuGetProcAddress_v2('cuLaunchGrid', &__cuLaunchGrid, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuLaunchGridAsync' in found_functions}}
- global __cuLaunchGridAsync
- _F_cuGetProcAddress_v2('cuLaunchGridAsync', &__cuLaunchGridAsync, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuParamSetTexRef' in found_functions}}
- global __cuParamSetTexRef
- _F_cuGetProcAddress_v2('cuParamSetTexRef', &__cuParamSetTexRef, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuFuncSetSharedMemConfig' in found_functions}}
- global __cuFuncSetSharedMemConfig
- _F_cuGetProcAddress_v2('cuFuncSetSharedMemConfig', &__cuFuncSetSharedMemConfig, 4020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphCreate' in found_functions}}
- global __cuGraphCreate
- _F_cuGetProcAddress_v2('cuGraphCreate', &__cuGraphCreate, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphAddKernelNode_v2' in found_functions}}
- global __cuGraphAddKernelNode_v2
- _F_cuGetProcAddress_v2('cuGraphAddKernelNode', &__cuGraphAddKernelNode_v2, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphKernelNodeGetParams_v2' in found_functions}}
- global __cuGraphKernelNodeGetParams_v2
- _F_cuGetProcAddress_v2('cuGraphKernelNodeGetParams', &__cuGraphKernelNodeGetParams_v2, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphKernelNodeSetParams_v2' in found_functions}}
- global __cuGraphKernelNodeSetParams_v2
- _F_cuGetProcAddress_v2('cuGraphKernelNodeSetParams', &__cuGraphKernelNodeSetParams_v2, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphAddMemcpyNode' in found_functions}}
- global __cuGraphAddMemcpyNode
- _F_cuGetProcAddress_v2('cuGraphAddMemcpyNode', &__cuGraphAddMemcpyNode, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphMemcpyNodeGetParams' in found_functions}}
- global __cuGraphMemcpyNodeGetParams
- _F_cuGetProcAddress_v2('cuGraphMemcpyNodeGetParams', &__cuGraphMemcpyNodeGetParams, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphMemcpyNodeSetParams' in found_functions}}
- global __cuGraphMemcpyNodeSetParams
- _F_cuGetProcAddress_v2('cuGraphMemcpyNodeSetParams', &__cuGraphMemcpyNodeSetParams, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphAddMemsetNode' in found_functions}}
- global __cuGraphAddMemsetNode
- _F_cuGetProcAddress_v2('cuGraphAddMemsetNode', &__cuGraphAddMemsetNode, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphMemsetNodeGetParams' in found_functions}}
- global __cuGraphMemsetNodeGetParams
- _F_cuGetProcAddress_v2('cuGraphMemsetNodeGetParams', &__cuGraphMemsetNodeGetParams, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphMemsetNodeSetParams' in found_functions}}
- global __cuGraphMemsetNodeSetParams
- _F_cuGetProcAddress_v2('cuGraphMemsetNodeSetParams', &__cuGraphMemsetNodeSetParams, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphAddHostNode' in found_functions}}
- global __cuGraphAddHostNode
- _F_cuGetProcAddress_v2('cuGraphAddHostNode', &__cuGraphAddHostNode, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphHostNodeGetParams' in found_functions}}
- global __cuGraphHostNodeGetParams
- _F_cuGetProcAddress_v2('cuGraphHostNodeGetParams', &__cuGraphHostNodeGetParams, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphHostNodeSetParams' in found_functions}}
- global __cuGraphHostNodeSetParams
- _F_cuGetProcAddress_v2('cuGraphHostNodeSetParams', &__cuGraphHostNodeSetParams, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphAddChildGraphNode' in found_functions}}
- global __cuGraphAddChildGraphNode
- _F_cuGetProcAddress_v2('cuGraphAddChildGraphNode', &__cuGraphAddChildGraphNode, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphChildGraphNodeGetGraph' in found_functions}}
- global __cuGraphChildGraphNodeGetGraph
- _F_cuGetProcAddress_v2('cuGraphChildGraphNodeGetGraph', &__cuGraphChildGraphNodeGetGraph, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphAddEmptyNode' in found_functions}}
- global __cuGraphAddEmptyNode
- _F_cuGetProcAddress_v2('cuGraphAddEmptyNode', &__cuGraphAddEmptyNode, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphAddEventRecordNode' in found_functions}}
- global __cuGraphAddEventRecordNode
- _F_cuGetProcAddress_v2('cuGraphAddEventRecordNode', &__cuGraphAddEventRecordNode, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphEventRecordNodeGetEvent' in found_functions}}
- global __cuGraphEventRecordNodeGetEvent
- _F_cuGetProcAddress_v2('cuGraphEventRecordNodeGetEvent', &__cuGraphEventRecordNodeGetEvent, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphEventRecordNodeSetEvent' in found_functions}}
- global __cuGraphEventRecordNodeSetEvent
- _F_cuGetProcAddress_v2('cuGraphEventRecordNodeSetEvent', &__cuGraphEventRecordNodeSetEvent, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphAddEventWaitNode' in found_functions}}
- global __cuGraphAddEventWaitNode
- _F_cuGetProcAddress_v2('cuGraphAddEventWaitNode', &__cuGraphAddEventWaitNode, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphEventWaitNodeGetEvent' in found_functions}}
- global __cuGraphEventWaitNodeGetEvent
- _F_cuGetProcAddress_v2('cuGraphEventWaitNodeGetEvent', &__cuGraphEventWaitNodeGetEvent, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphEventWaitNodeSetEvent' in found_functions}}
- global __cuGraphEventWaitNodeSetEvent
- _F_cuGetProcAddress_v2('cuGraphEventWaitNodeSetEvent', &__cuGraphEventWaitNodeSetEvent, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphAddExternalSemaphoresSignalNode' in found_functions}}
- global __cuGraphAddExternalSemaphoresSignalNode
- _F_cuGetProcAddress_v2('cuGraphAddExternalSemaphoresSignalNode', &__cuGraphAddExternalSemaphoresSignalNode, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphExternalSemaphoresSignalNodeGetParams' in found_functions}}
- global __cuGraphExternalSemaphoresSignalNodeGetParams
- _F_cuGetProcAddress_v2('cuGraphExternalSemaphoresSignalNodeGetParams', &__cuGraphExternalSemaphoresSignalNodeGetParams, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphExternalSemaphoresSignalNodeSetParams' in found_functions}}
- global __cuGraphExternalSemaphoresSignalNodeSetParams
- _F_cuGetProcAddress_v2('cuGraphExternalSemaphoresSignalNodeSetParams', &__cuGraphExternalSemaphoresSignalNodeSetParams, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphAddExternalSemaphoresWaitNode' in found_functions}}
- global __cuGraphAddExternalSemaphoresWaitNode
- _F_cuGetProcAddress_v2('cuGraphAddExternalSemaphoresWaitNode', &__cuGraphAddExternalSemaphoresWaitNode, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphExternalSemaphoresWaitNodeGetParams' in found_functions}}
- global __cuGraphExternalSemaphoresWaitNodeGetParams
- _F_cuGetProcAddress_v2('cuGraphExternalSemaphoresWaitNodeGetParams', &__cuGraphExternalSemaphoresWaitNodeGetParams, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphExternalSemaphoresWaitNodeSetParams' in found_functions}}
- global __cuGraphExternalSemaphoresWaitNodeSetParams
- _F_cuGetProcAddress_v2('cuGraphExternalSemaphoresWaitNodeSetParams', &__cuGraphExternalSemaphoresWaitNodeSetParams, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphAddBatchMemOpNode' in found_functions}}
- global __cuGraphAddBatchMemOpNode
- _F_cuGetProcAddress_v2('cuGraphAddBatchMemOpNode', &__cuGraphAddBatchMemOpNode, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphBatchMemOpNodeGetParams' in found_functions}}
- global __cuGraphBatchMemOpNodeGetParams
- _F_cuGetProcAddress_v2('cuGraphBatchMemOpNodeGetParams', &__cuGraphBatchMemOpNodeGetParams, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphBatchMemOpNodeSetParams' in found_functions}}
- global __cuGraphBatchMemOpNodeSetParams
- _F_cuGetProcAddress_v2('cuGraphBatchMemOpNodeSetParams', &__cuGraphBatchMemOpNodeSetParams, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphExecBatchMemOpNodeSetParams' in found_functions}}
- global __cuGraphExecBatchMemOpNodeSetParams
- _F_cuGetProcAddress_v2('cuGraphExecBatchMemOpNodeSetParams', &__cuGraphExecBatchMemOpNodeSetParams, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphAddMemAllocNode' in found_functions}}
- global __cuGraphAddMemAllocNode
- _F_cuGetProcAddress_v2('cuGraphAddMemAllocNode', &__cuGraphAddMemAllocNode, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphMemAllocNodeGetParams' in found_functions}}
- global __cuGraphMemAllocNodeGetParams
- _F_cuGetProcAddress_v2('cuGraphMemAllocNodeGetParams', &__cuGraphMemAllocNodeGetParams, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphAddMemFreeNode' in found_functions}}
- global __cuGraphAddMemFreeNode
- _F_cuGetProcAddress_v2('cuGraphAddMemFreeNode', &__cuGraphAddMemFreeNode, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphMemFreeNodeGetParams' in found_functions}}
- global __cuGraphMemFreeNodeGetParams
- _F_cuGetProcAddress_v2('cuGraphMemFreeNodeGetParams', &__cuGraphMemFreeNodeGetParams, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuDeviceGraphMemTrim' in found_functions}}
- global __cuDeviceGraphMemTrim
- _F_cuGetProcAddress_v2('cuDeviceGraphMemTrim', &__cuDeviceGraphMemTrim, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuDeviceGetGraphMemAttribute' in found_functions}}
- global __cuDeviceGetGraphMemAttribute
- _F_cuGetProcAddress_v2('cuDeviceGetGraphMemAttribute', &__cuDeviceGetGraphMemAttribute, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuDeviceSetGraphMemAttribute' in found_functions}}
- global __cuDeviceSetGraphMemAttribute
- _F_cuGetProcAddress_v2('cuDeviceSetGraphMemAttribute', &__cuDeviceSetGraphMemAttribute, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphClone' in found_functions}}
- global __cuGraphClone
- _F_cuGetProcAddress_v2('cuGraphClone', &__cuGraphClone, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphNodeFindInClone' in found_functions}}
- global __cuGraphNodeFindInClone
- _F_cuGetProcAddress_v2('cuGraphNodeFindInClone', &__cuGraphNodeFindInClone, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphNodeGetType' in found_functions}}
- global __cuGraphNodeGetType
- _F_cuGetProcAddress_v2('cuGraphNodeGetType', &__cuGraphNodeGetType, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphGetNodes' in found_functions}}
- global __cuGraphGetNodes
- _F_cuGetProcAddress_v2('cuGraphGetNodes', &__cuGraphGetNodes, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphGetRootNodes' in found_functions}}
- global __cuGraphGetRootNodes
- _F_cuGetProcAddress_v2('cuGraphGetRootNodes', &__cuGraphGetRootNodes, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphGetEdges_v2' in found_functions}}
- global __cuGraphGetEdges_v2
- _F_cuGetProcAddress_v2('cuGraphGetEdges', &__cuGraphGetEdges_v2, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphNodeGetDependencies_v2' in found_functions}}
- global __cuGraphNodeGetDependencies_v2
- _F_cuGetProcAddress_v2('cuGraphNodeGetDependencies', &__cuGraphNodeGetDependencies_v2, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphNodeGetDependentNodes_v2' in found_functions}}
- global __cuGraphNodeGetDependentNodes_v2
- _F_cuGetProcAddress_v2('cuGraphNodeGetDependentNodes', &__cuGraphNodeGetDependentNodes_v2, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphAddDependencies_v2' in found_functions}}
- global __cuGraphAddDependencies_v2
- _F_cuGetProcAddress_v2('cuGraphAddDependencies', &__cuGraphAddDependencies_v2, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphRemoveDependencies_v2' in found_functions}}
- global __cuGraphRemoveDependencies_v2
- _F_cuGetProcAddress_v2('cuGraphRemoveDependencies', &__cuGraphRemoveDependencies_v2, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphDestroyNode' in found_functions}}
- global __cuGraphDestroyNode
- _F_cuGetProcAddress_v2('cuGraphDestroyNode', &__cuGraphDestroyNode, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphInstantiateWithFlags' in found_functions}}
- global __cuGraphInstantiateWithFlags
- _F_cuGetProcAddress_v2('cuGraphInstantiateWithFlags', &__cuGraphInstantiateWithFlags, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphExecGetFlags' in found_functions}}
- global __cuGraphExecGetFlags
- _F_cuGetProcAddress_v2('cuGraphExecGetFlags', &__cuGraphExecGetFlags, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphExecKernelNodeSetParams_v2' in found_functions}}
- global __cuGraphExecKernelNodeSetParams_v2
- _F_cuGetProcAddress_v2('cuGraphExecKernelNodeSetParams', &__cuGraphExecKernelNodeSetParams_v2, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphExecMemcpyNodeSetParams' in found_functions}}
- global __cuGraphExecMemcpyNodeSetParams
- _F_cuGetProcAddress_v2('cuGraphExecMemcpyNodeSetParams', &__cuGraphExecMemcpyNodeSetParams, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphExecMemsetNodeSetParams' in found_functions}}
- global __cuGraphExecMemsetNodeSetParams
- _F_cuGetProcAddress_v2('cuGraphExecMemsetNodeSetParams', &__cuGraphExecMemsetNodeSetParams, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphExecHostNodeSetParams' in found_functions}}
- global __cuGraphExecHostNodeSetParams
- _F_cuGetProcAddress_v2('cuGraphExecHostNodeSetParams', &__cuGraphExecHostNodeSetParams, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphExecChildGraphNodeSetParams' in found_functions}}
- global __cuGraphExecChildGraphNodeSetParams
- _F_cuGetProcAddress_v2('cuGraphExecChildGraphNodeSetParams', &__cuGraphExecChildGraphNodeSetParams, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphExecEventRecordNodeSetEvent' in found_functions}}
- global __cuGraphExecEventRecordNodeSetEvent
- _F_cuGetProcAddress_v2('cuGraphExecEventRecordNodeSetEvent', &__cuGraphExecEventRecordNodeSetEvent, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphExecEventWaitNodeSetEvent' in found_functions}}
- global __cuGraphExecEventWaitNodeSetEvent
- _F_cuGetProcAddress_v2('cuGraphExecEventWaitNodeSetEvent', &__cuGraphExecEventWaitNodeSetEvent, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphExecExternalSemaphoresSignalNodeSetParams' in found_functions}}
- global __cuGraphExecExternalSemaphoresSignalNodeSetParams
- _F_cuGetProcAddress_v2('cuGraphExecExternalSemaphoresSignalNodeSetParams', &__cuGraphExecExternalSemaphoresSignalNodeSetParams, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphExecExternalSemaphoresWaitNodeSetParams' in found_functions}}
- global __cuGraphExecExternalSemaphoresWaitNodeSetParams
- _F_cuGetProcAddress_v2('cuGraphExecExternalSemaphoresWaitNodeSetParams', &__cuGraphExecExternalSemaphoresWaitNodeSetParams, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphNodeSetEnabled' in found_functions}}
- global __cuGraphNodeSetEnabled
- _F_cuGetProcAddress_v2('cuGraphNodeSetEnabled', &__cuGraphNodeSetEnabled, 11060, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphNodeGetEnabled' in found_functions}}
- global __cuGraphNodeGetEnabled
- _F_cuGetProcAddress_v2('cuGraphNodeGetEnabled', &__cuGraphNodeGetEnabled, 11060, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphExecDestroy' in found_functions}}
- global __cuGraphExecDestroy
- _F_cuGetProcAddress_v2('cuGraphExecDestroy', &__cuGraphExecDestroy, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphDestroy' in found_functions}}
- global __cuGraphDestroy
- _F_cuGetProcAddress_v2('cuGraphDestroy', &__cuGraphDestroy, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphExecUpdate_v2' in found_functions}}
- global __cuGraphExecUpdate_v2
- _F_cuGetProcAddress_v2('cuGraphExecUpdate', &__cuGraphExecUpdate_v2, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphKernelNodeCopyAttributes' in found_functions}}
- global __cuGraphKernelNodeCopyAttributes
- _F_cuGetProcAddress_v2('cuGraphKernelNodeCopyAttributes', &__cuGraphKernelNodeCopyAttributes, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphKernelNodeGetAttribute' in found_functions}}
- global __cuGraphKernelNodeGetAttribute
- _F_cuGetProcAddress_v2('cuGraphKernelNodeGetAttribute', &__cuGraphKernelNodeGetAttribute, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphKernelNodeSetAttribute' in found_functions}}
- global __cuGraphKernelNodeSetAttribute
- _F_cuGetProcAddress_v2('cuGraphKernelNodeSetAttribute', &__cuGraphKernelNodeSetAttribute, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphDebugDotPrint' in found_functions}}
- global __cuGraphDebugDotPrint
- _F_cuGetProcAddress_v2('cuGraphDebugDotPrint', &__cuGraphDebugDotPrint, 11030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuUserObjectCreate' in found_functions}}
- global __cuUserObjectCreate
- _F_cuGetProcAddress_v2('cuUserObjectCreate', &__cuUserObjectCreate, 11030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuUserObjectRetain' in found_functions}}
- global __cuUserObjectRetain
- _F_cuGetProcAddress_v2('cuUserObjectRetain', &__cuUserObjectRetain, 11030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuUserObjectRelease' in found_functions}}
- global __cuUserObjectRelease
- _F_cuGetProcAddress_v2('cuUserObjectRelease', &__cuUserObjectRelease, 11030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphRetainUserObject' in found_functions}}
- global __cuGraphRetainUserObject
- _F_cuGetProcAddress_v2('cuGraphRetainUserObject', &__cuGraphRetainUserObject, 11030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphReleaseUserObject' in found_functions}}
- global __cuGraphReleaseUserObject
- _F_cuGetProcAddress_v2('cuGraphReleaseUserObject', &__cuGraphReleaseUserObject, 11030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphAddNode_v2' in found_functions}}
- global __cuGraphAddNode_v2
- _F_cuGetProcAddress_v2('cuGraphAddNode', &__cuGraphAddNode_v2, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphNodeSetParams' in found_functions}}
- global __cuGraphNodeSetParams
- _F_cuGetProcAddress_v2('cuGraphNodeSetParams', &__cuGraphNodeSetParams, 12020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphExecNodeSetParams' in found_functions}}
- global __cuGraphExecNodeSetParams
- _F_cuGetProcAddress_v2('cuGraphExecNodeSetParams', &__cuGraphExecNodeSetParams, 12020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphConditionalHandleCreate' in found_functions}}
- global __cuGraphConditionalHandleCreate
- _F_cuGetProcAddress_v2('cuGraphConditionalHandleCreate', &__cuGraphConditionalHandleCreate, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuOccupancyMaxActiveBlocksPerMultiprocessor' in found_functions}}
- global __cuOccupancyMaxActiveBlocksPerMultiprocessor
- _F_cuGetProcAddress_v2('cuOccupancyMaxActiveBlocksPerMultiprocessor', &__cuOccupancyMaxActiveBlocksPerMultiprocessor, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags' in found_functions}}
- global __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags
- _F_cuGetProcAddress_v2('cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags', &__cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuOccupancyMaxPotentialBlockSize' in found_functions}}
- global __cuOccupancyMaxPotentialBlockSize
- _F_cuGetProcAddress_v2('cuOccupancyMaxPotentialBlockSize', &__cuOccupancyMaxPotentialBlockSize, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuOccupancyMaxPotentialBlockSizeWithFlags' in found_functions}}
- global __cuOccupancyMaxPotentialBlockSizeWithFlags
- _F_cuGetProcAddress_v2('cuOccupancyMaxPotentialBlockSizeWithFlags', &__cuOccupancyMaxPotentialBlockSizeWithFlags, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuOccupancyAvailableDynamicSMemPerBlock' in found_functions}}
- global __cuOccupancyAvailableDynamicSMemPerBlock
- _F_cuGetProcAddress_v2('cuOccupancyAvailableDynamicSMemPerBlock', &__cuOccupancyAvailableDynamicSMemPerBlock, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuOccupancyMaxPotentialClusterSize' in found_functions}}
- global __cuOccupancyMaxPotentialClusterSize
- _F_cuGetProcAddress_v2('cuOccupancyMaxPotentialClusterSize', &__cuOccupancyMaxPotentialClusterSize, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuOccupancyMaxActiveClusters' in found_functions}}
- global __cuOccupancyMaxActiveClusters
- _F_cuGetProcAddress_v2('cuOccupancyMaxActiveClusters', &__cuOccupancyMaxActiveClusters, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuTexRefSetArray' in found_functions}}
- global __cuTexRefSetArray
- _F_cuGetProcAddress_v2('cuTexRefSetArray', &__cuTexRefSetArray, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuTexRefSetMipmappedArray' in found_functions}}
- global __cuTexRefSetMipmappedArray
- _F_cuGetProcAddress_v2('cuTexRefSetMipmappedArray', &__cuTexRefSetMipmappedArray, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuTexRefSetAddress_v2' in found_functions}}
- global __cuTexRefSetAddress_v2
- _F_cuGetProcAddress_v2('cuTexRefSetAddress', &__cuTexRefSetAddress_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuTexRefSetAddress2D_v3' in found_functions}}
- global __cuTexRefSetAddress2D_v3
- _F_cuGetProcAddress_v2('cuTexRefSetAddress2D', &__cuTexRefSetAddress2D_v3, 4010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuTexRefSetFormat' in found_functions}}
- global __cuTexRefSetFormat
- _F_cuGetProcAddress_v2('cuTexRefSetFormat', &__cuTexRefSetFormat, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuTexRefSetAddressMode' in found_functions}}
- global __cuTexRefSetAddressMode
- _F_cuGetProcAddress_v2('cuTexRefSetAddressMode', &__cuTexRefSetAddressMode, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuTexRefSetFilterMode' in found_functions}}
- global __cuTexRefSetFilterMode
- _F_cuGetProcAddress_v2('cuTexRefSetFilterMode', &__cuTexRefSetFilterMode, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuTexRefSetMipmapFilterMode' in found_functions}}
- global __cuTexRefSetMipmapFilterMode
- _F_cuGetProcAddress_v2('cuTexRefSetMipmapFilterMode', &__cuTexRefSetMipmapFilterMode, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuTexRefSetMipmapLevelBias' in found_functions}}
- global __cuTexRefSetMipmapLevelBias
- _F_cuGetProcAddress_v2('cuTexRefSetMipmapLevelBias', &__cuTexRefSetMipmapLevelBias, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuTexRefSetMipmapLevelClamp' in found_functions}}
- global __cuTexRefSetMipmapLevelClamp
- _F_cuGetProcAddress_v2('cuTexRefSetMipmapLevelClamp', &__cuTexRefSetMipmapLevelClamp, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuTexRefSetMaxAnisotropy' in found_functions}}
- global __cuTexRefSetMaxAnisotropy
- _F_cuGetProcAddress_v2('cuTexRefSetMaxAnisotropy', &__cuTexRefSetMaxAnisotropy, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuTexRefSetBorderColor' in found_functions}}
- global __cuTexRefSetBorderColor
- _F_cuGetProcAddress_v2('cuTexRefSetBorderColor', &__cuTexRefSetBorderColor, 8000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuTexRefSetFlags' in found_functions}}
- global __cuTexRefSetFlags
- _F_cuGetProcAddress_v2('cuTexRefSetFlags', &__cuTexRefSetFlags, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuTexRefGetAddress_v2' in found_functions}}
- global __cuTexRefGetAddress_v2
- _F_cuGetProcAddress_v2('cuTexRefGetAddress', &__cuTexRefGetAddress_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuTexRefGetArray' in found_functions}}
- global __cuTexRefGetArray
- _F_cuGetProcAddress_v2('cuTexRefGetArray', &__cuTexRefGetArray, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuTexRefGetMipmappedArray' in found_functions}}
- global __cuTexRefGetMipmappedArray
- _F_cuGetProcAddress_v2('cuTexRefGetMipmappedArray', &__cuTexRefGetMipmappedArray, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuTexRefGetAddressMode' in found_functions}}
- global __cuTexRefGetAddressMode
- _F_cuGetProcAddress_v2('cuTexRefGetAddressMode', &__cuTexRefGetAddressMode, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuTexRefGetFilterMode' in found_functions}}
- global __cuTexRefGetFilterMode
- _F_cuGetProcAddress_v2('cuTexRefGetFilterMode', &__cuTexRefGetFilterMode, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuTexRefGetFormat' in found_functions}}
- global __cuTexRefGetFormat
- _F_cuGetProcAddress_v2('cuTexRefGetFormat', &__cuTexRefGetFormat, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuTexRefGetMipmapFilterMode' in found_functions}}
- global __cuTexRefGetMipmapFilterMode
- _F_cuGetProcAddress_v2('cuTexRefGetMipmapFilterMode', &__cuTexRefGetMipmapFilterMode, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuTexRefGetMipmapLevelBias' in found_functions}}
- global __cuTexRefGetMipmapLevelBias
- _F_cuGetProcAddress_v2('cuTexRefGetMipmapLevelBias', &__cuTexRefGetMipmapLevelBias, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuTexRefGetMipmapLevelClamp' in found_functions}}
- global __cuTexRefGetMipmapLevelClamp
- _F_cuGetProcAddress_v2('cuTexRefGetMipmapLevelClamp', &__cuTexRefGetMipmapLevelClamp, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuTexRefGetMaxAnisotropy' in found_functions}}
- global __cuTexRefGetMaxAnisotropy
- _F_cuGetProcAddress_v2('cuTexRefGetMaxAnisotropy', &__cuTexRefGetMaxAnisotropy, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuTexRefGetBorderColor' in found_functions}}
- global __cuTexRefGetBorderColor
- _F_cuGetProcAddress_v2('cuTexRefGetBorderColor', &__cuTexRefGetBorderColor, 8000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuTexRefGetFlags' in found_functions}}
- global __cuTexRefGetFlags
- _F_cuGetProcAddress_v2('cuTexRefGetFlags', &__cuTexRefGetFlags, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuTexRefCreate' in found_functions}}
- global __cuTexRefCreate
- _F_cuGetProcAddress_v2('cuTexRefCreate', &__cuTexRefCreate, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuTexRefDestroy' in found_functions}}
- global __cuTexRefDestroy
- _F_cuGetProcAddress_v2('cuTexRefDestroy', &__cuTexRefDestroy, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuSurfRefSetArray' in found_functions}}
- global __cuSurfRefSetArray
- _F_cuGetProcAddress_v2('cuSurfRefSetArray', &__cuSurfRefSetArray, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuSurfRefGetArray' in found_functions}}
- global __cuSurfRefGetArray
- _F_cuGetProcAddress_v2('cuSurfRefGetArray', &__cuSurfRefGetArray, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuTexObjectCreate' in found_functions}}
- global __cuTexObjectCreate
- _F_cuGetProcAddress_v2('cuTexObjectCreate', &__cuTexObjectCreate, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuTexObjectDestroy' in found_functions}}
- global __cuTexObjectDestroy
- _F_cuGetProcAddress_v2('cuTexObjectDestroy', &__cuTexObjectDestroy, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuTexObjectGetResourceDesc' in found_functions}}
- global __cuTexObjectGetResourceDesc
- _F_cuGetProcAddress_v2('cuTexObjectGetResourceDesc', &__cuTexObjectGetResourceDesc, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuTexObjectGetTextureDesc' in found_functions}}
- global __cuTexObjectGetTextureDesc
- _F_cuGetProcAddress_v2('cuTexObjectGetTextureDesc', &__cuTexObjectGetTextureDesc, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuTexObjectGetResourceViewDesc' in found_functions}}
- global __cuTexObjectGetResourceViewDesc
- _F_cuGetProcAddress_v2('cuTexObjectGetResourceViewDesc', &__cuTexObjectGetResourceViewDesc, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuSurfObjectCreate' in found_functions}}
- global __cuSurfObjectCreate
- _F_cuGetProcAddress_v2('cuSurfObjectCreate', &__cuSurfObjectCreate, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuSurfObjectDestroy' in found_functions}}
- global __cuSurfObjectDestroy
- _F_cuGetProcAddress_v2('cuSurfObjectDestroy', &__cuSurfObjectDestroy, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuSurfObjectGetResourceDesc' in found_functions}}
- global __cuSurfObjectGetResourceDesc
- _F_cuGetProcAddress_v2('cuSurfObjectGetResourceDesc', &__cuSurfObjectGetResourceDesc, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuTensorMapEncodeTiled' in found_functions}}
- global __cuTensorMapEncodeTiled
- _F_cuGetProcAddress_v2('cuTensorMapEncodeTiled', &__cuTensorMapEncodeTiled, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuTensorMapEncodeIm2col' in found_functions}}
- global __cuTensorMapEncodeIm2col
- _F_cuGetProcAddress_v2('cuTensorMapEncodeIm2col', &__cuTensorMapEncodeIm2col, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuTensorMapEncodeIm2colWide' in found_functions}}
- global __cuTensorMapEncodeIm2colWide
- _F_cuGetProcAddress_v2('cuTensorMapEncodeIm2colWide', &__cuTensorMapEncodeIm2colWide, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuTensorMapReplaceAddress' in found_functions}}
- global __cuTensorMapReplaceAddress
- _F_cuGetProcAddress_v2('cuTensorMapReplaceAddress', &__cuTensorMapReplaceAddress, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuDeviceCanAccessPeer' in found_functions}}
- global __cuDeviceCanAccessPeer
- _F_cuGetProcAddress_v2('cuDeviceCanAccessPeer', &__cuDeviceCanAccessPeer, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCtxEnablePeerAccess' in found_functions}}
- global __cuCtxEnablePeerAccess
- _F_cuGetProcAddress_v2('cuCtxEnablePeerAccess', &__cuCtxEnablePeerAccess, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCtxDisablePeerAccess' in found_functions}}
- global __cuCtxDisablePeerAccess
- _F_cuGetProcAddress_v2('cuCtxDisablePeerAccess', &__cuCtxDisablePeerAccess, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuDeviceGetP2PAttribute' in found_functions}}
- global __cuDeviceGetP2PAttribute
- _F_cuGetProcAddress_v2('cuDeviceGetP2PAttribute', &__cuDeviceGetP2PAttribute, 8000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuDeviceGetP2PAtomicCapabilities' in found_functions}}
- global __cuDeviceGetP2PAtomicCapabilities
- _F_cuGetProcAddress_v2('cuDeviceGetP2PAtomicCapabilities', &__cuDeviceGetP2PAtomicCapabilities, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphicsUnregisterResource' in found_functions}}
- global __cuGraphicsUnregisterResource
- _F_cuGetProcAddress_v2('cuGraphicsUnregisterResource', &__cuGraphicsUnregisterResource, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphicsSubResourceGetMappedArray' in found_functions}}
- global __cuGraphicsSubResourceGetMappedArray
- _F_cuGetProcAddress_v2('cuGraphicsSubResourceGetMappedArray', &__cuGraphicsSubResourceGetMappedArray, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphicsResourceGetMappedMipmappedArray' in found_functions}}
- global __cuGraphicsResourceGetMappedMipmappedArray
- _F_cuGetProcAddress_v2('cuGraphicsResourceGetMappedMipmappedArray', &__cuGraphicsResourceGetMappedMipmappedArray, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphicsResourceGetMappedPointer_v2' in found_functions}}
- global __cuGraphicsResourceGetMappedPointer_v2
- _F_cuGetProcAddress_v2('cuGraphicsResourceGetMappedPointer', &__cuGraphicsResourceGetMappedPointer_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGraphicsResourceSetMapFlags_v2' in found_functions}}
- global __cuGraphicsResourceSetMapFlags_v2
- _F_cuGetProcAddress_v2('cuGraphicsResourceSetMapFlags', &__cuGraphicsResourceSetMapFlags_v2, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGetProcAddress_v2' in found_functions}}
- global __cuGetProcAddress_v2
- _F_cuGetProcAddress_v2('cuGetProcAddress', &__cuGetProcAddress_v2, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCoredumpGetAttribute' in found_functions}}
- global __cuCoredumpGetAttribute
- _F_cuGetProcAddress_v2('cuCoredumpGetAttribute', &__cuCoredumpGetAttribute, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCoredumpGetAttributeGlobal' in found_functions}}
- global __cuCoredumpGetAttributeGlobal
- _F_cuGetProcAddress_v2('cuCoredumpGetAttributeGlobal', &__cuCoredumpGetAttributeGlobal, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCoredumpSetAttribute' in found_functions}}
- global __cuCoredumpSetAttribute
- _F_cuGetProcAddress_v2('cuCoredumpSetAttribute', &__cuCoredumpSetAttribute, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCoredumpSetAttributeGlobal' in found_functions}}
- global __cuCoredumpSetAttributeGlobal
- _F_cuGetProcAddress_v2('cuCoredumpSetAttributeGlobal', &__cuCoredumpSetAttributeGlobal, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGetExportTable' in found_functions}}
- global __cuGetExportTable
- _F_cuGetProcAddress_v2('cuGetExportTable', &__cuGetExportTable, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGreenCtxCreate' in found_functions}}
- global __cuGreenCtxCreate
- _F_cuGetProcAddress_v2('cuGreenCtxCreate', &__cuGreenCtxCreate, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGreenCtxDestroy' in found_functions}}
- global __cuGreenCtxDestroy
- _F_cuGetProcAddress_v2('cuGreenCtxDestroy', &__cuGreenCtxDestroy, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCtxFromGreenCtx' in found_functions}}
- global __cuCtxFromGreenCtx
- _F_cuGetProcAddress_v2('cuCtxFromGreenCtx', &__cuCtxFromGreenCtx, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuDeviceGetDevResource' in found_functions}}
- global __cuDeviceGetDevResource
- _F_cuGetProcAddress_v2('cuDeviceGetDevResource', &__cuDeviceGetDevResource, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCtxGetDevResource' in found_functions}}
- global __cuCtxGetDevResource
- _F_cuGetProcAddress_v2('cuCtxGetDevResource', &__cuCtxGetDevResource, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGreenCtxGetDevResource' in found_functions}}
- global __cuGreenCtxGetDevResource
- _F_cuGetProcAddress_v2('cuGreenCtxGetDevResource', &__cuGreenCtxGetDevResource, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuDevSmResourceSplitByCount' in found_functions}}
- global __cuDevSmResourceSplitByCount
- _F_cuGetProcAddress_v2('cuDevSmResourceSplitByCount', &__cuDevSmResourceSplitByCount, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuDevResourceGenerateDesc' in found_functions}}
- global __cuDevResourceGenerateDesc
- _F_cuGetProcAddress_v2('cuDevResourceGenerateDesc', &__cuDevResourceGenerateDesc, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGreenCtxRecordEvent' in found_functions}}
- global __cuGreenCtxRecordEvent
- _F_cuGetProcAddress_v2('cuGreenCtxRecordEvent', &__cuGreenCtxRecordEvent, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGreenCtxWaitEvent' in found_functions}}
- global __cuGreenCtxWaitEvent
- _F_cuGetProcAddress_v2('cuGreenCtxWaitEvent', &__cuGreenCtxWaitEvent, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuStreamGetGreenCtx' in found_functions}}
- global __cuStreamGetGreenCtx
- _F_cuGetProcAddress_v2('cuStreamGetGreenCtx', &__cuStreamGetGreenCtx, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGreenCtxStreamCreate' in found_functions}}
- global __cuGreenCtxStreamCreate
- _F_cuGetProcAddress_v2('cuGreenCtxStreamCreate', &__cuGreenCtxStreamCreate, 12050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuGreenCtxGetId' in found_functions}}
- global __cuGreenCtxGetId
- _F_cuGetProcAddress_v2('cuGreenCtxGetId', &__cuGreenCtxGetId, 12090, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuLogsRegisterCallback' in found_functions}}
- global __cuLogsRegisterCallback
- _F_cuGetProcAddress_v2('cuLogsRegisterCallback', &__cuLogsRegisterCallback, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuLogsUnregisterCallback' in found_functions}}
- global __cuLogsUnregisterCallback
- _F_cuGetProcAddress_v2('cuLogsUnregisterCallback', &__cuLogsUnregisterCallback, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuLogsCurrent' in found_functions}}
- global __cuLogsCurrent
- _F_cuGetProcAddress_v2('cuLogsCurrent', &__cuLogsCurrent, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuLogsDumpToFile' in found_functions}}
- global __cuLogsDumpToFile
- _F_cuGetProcAddress_v2('cuLogsDumpToFile', &__cuLogsDumpToFile, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuLogsDumpToMemory' in found_functions}}
- global __cuLogsDumpToMemory
- _F_cuGetProcAddress_v2('cuLogsDumpToMemory', &__cuLogsDumpToMemory, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCheckpointProcessGetRestoreThreadId' in found_functions}}
- global __cuCheckpointProcessGetRestoreThreadId
- _F_cuGetProcAddress_v2('cuCheckpointProcessGetRestoreThreadId', &__cuCheckpointProcessGetRestoreThreadId, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCheckpointProcessGetState' in found_functions}}
- global __cuCheckpointProcessGetState
- _F_cuGetProcAddress_v2('cuCheckpointProcessGetState', &__cuCheckpointProcessGetState, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCheckpointProcessLock' in found_functions}}
- global __cuCheckpointProcessLock
- _F_cuGetProcAddress_v2('cuCheckpointProcessLock', &__cuCheckpointProcessLock, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCheckpointProcessCheckpoint' in found_functions}}
- global __cuCheckpointProcessCheckpoint
- _F_cuGetProcAddress_v2('cuCheckpointProcessCheckpoint', &__cuCheckpointProcessCheckpoint, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCheckpointProcessRestore' in found_functions}}
- global __cuCheckpointProcessRestore
- _F_cuGetProcAddress_v2('cuCheckpointProcessRestore', &__cuCheckpointProcessRestore, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuCheckpointProcessUnlock' in found_functions}}
- global __cuCheckpointProcessUnlock
- _F_cuGetProcAddress_v2('cuCheckpointProcessUnlock', &__cuCheckpointProcessUnlock, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuProfilerStart' in found_functions}}
- global __cuProfilerStart
- _F_cuGetProcAddress_v2('cuProfilerStart', &__cuProfilerStart, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if 'cuProfilerStop' in found_functions}}
- global __cuProfilerStop
- _F_cuGetProcAddress_v2('cuProfilerStop', &__cuProfilerStop, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if True}}
- global __cuGraphicsEGLRegisterImage
- _F_cuGetProcAddress_v2('cuGraphicsEGLRegisterImage', &__cuGraphicsEGLRegisterImage, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if True}}
- global __cuEGLStreamConsumerConnect
- _F_cuGetProcAddress_v2('cuEGLStreamConsumerConnect', &__cuEGLStreamConsumerConnect, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if True}}
- global __cuEGLStreamConsumerConnectWithFlags
- _F_cuGetProcAddress_v2('cuEGLStreamConsumerConnectWithFlags', &__cuEGLStreamConsumerConnectWithFlags, 8000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if True}}
- global __cuEGLStreamConsumerDisconnect
- _F_cuGetProcAddress_v2('cuEGLStreamConsumerDisconnect', &__cuEGLStreamConsumerDisconnect, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if True}}
- global __cuEGLStreamConsumerAcquireFrame
- _F_cuGetProcAddress_v2('cuEGLStreamConsumerAcquireFrame', &__cuEGLStreamConsumerAcquireFrame, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if True}}
- global __cuEGLStreamConsumerReleaseFrame
- _F_cuGetProcAddress_v2('cuEGLStreamConsumerReleaseFrame', &__cuEGLStreamConsumerReleaseFrame, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if True}}
- global __cuEGLStreamProducerConnect
- _F_cuGetProcAddress_v2('cuEGLStreamProducerConnect', &__cuEGLStreamProducerConnect, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if True}}
- global __cuEGLStreamProducerDisconnect
- _F_cuGetProcAddress_v2('cuEGLStreamProducerDisconnect', &__cuEGLStreamProducerDisconnect, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if True}}
- global __cuEGLStreamProducerPresentFrame
- _F_cuGetProcAddress_v2('cuEGLStreamProducerPresentFrame', &__cuEGLStreamProducerPresentFrame, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if True}}
- global __cuEGLStreamProducerReturnFrame
- _F_cuGetProcAddress_v2('cuEGLStreamProducerReturnFrame', &__cuEGLStreamProducerReturnFrame, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if True}}
- global __cuGraphicsResourceGetMappedEglFrame
- _F_cuGetProcAddress_v2('cuGraphicsResourceGetMappedEglFrame', &__cuGraphicsResourceGetMappedEglFrame, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if True}}
- global __cuEventCreateFromEGLSync
- _F_cuGetProcAddress_v2('cuEventCreateFromEGLSync', &__cuEventCreateFromEGLSync, 9000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if True}}
- global __cuGraphicsGLRegisterBuffer
- _F_cuGetProcAddress_v2('cuGraphicsGLRegisterBuffer', &__cuGraphicsGLRegisterBuffer, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if True}}
- global __cuGraphicsGLRegisterImage
- _F_cuGetProcAddress_v2('cuGraphicsGLRegisterImage', &__cuGraphicsGLRegisterImage, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if True}}
- global __cuGLGetDevices_v2
- _F_cuGetProcAddress_v2('cuGLGetDevices', &__cuGLGetDevices_v2, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if True}}
- global __cuVDPAUGetDevice
- _F_cuGetProcAddress_v2('cuVDPAUGetDevice', &__cuVDPAUGetDevice, 3010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if True}}
- global __cuVDPAUCtxCreate_v2
- _F_cuGetProcAddress_v2('cuVDPAUCtxCreate', &__cuVDPAUCtxCreate_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if True}}
- global __cuGraphicsVDPAURegisterVideoSurface
- _F_cuGetProcAddress_v2('cuGraphicsVDPAURegisterVideoSurface', &__cuGraphicsVDPAURegisterVideoSurface, 3010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- {{if True}}
- global __cuGraphicsVDPAURegisterOutputSurface
- _F_cuGetProcAddress_v2('cuGraphicsVDPAURegisterOutputSurface', &__cuGraphicsVDPAURegisterOutputSurface, 3010, CU_GET_PROC_ADDRESS_DEFAULT, NULL)
- {{endif}}
- __cuPythonInit = True
- return 0
-
- {{if 'Windows' == platform.system()}}
- # Load using win32GetAddr
- if usePTDS:
- # Get all PTDS version of functions
- pass
- {{if 'cuMemcpy' in found_functions}}
- global __cuMemcpy
- __cuMemcpy = windll.GetProcAddress(handle, 'cuMemcpy_ptds')
- {{endif}}
- {{if 'cuMemcpyPeer' in found_functions}}
- global __cuMemcpyPeer
- __cuMemcpyPeer = windll.GetProcAddress(handle, 'cuMemcpyPeer_ptds')
- {{endif}}
- {{if 'cuMemcpyHtoD_v2' in found_functions}}
- global __cuMemcpyHtoD_v2
- __cuMemcpyHtoD_v2 = windll.GetProcAddress(handle, 'cuMemcpyHtoD_v2_ptds')
- {{endif}}
- {{if 'cuMemcpyDtoH_v2' in found_functions}}
- global __cuMemcpyDtoH_v2
- __cuMemcpyDtoH_v2 = windll.GetProcAddress(handle, 'cuMemcpyDtoH_v2_ptds')
- {{endif}}
- {{if 'cuMemcpyDtoD_v2' in found_functions}}
- global __cuMemcpyDtoD_v2
- __cuMemcpyDtoD_v2 = windll.GetProcAddress(handle, 'cuMemcpyDtoD_v2_ptds')
- {{endif}}
- {{if 'cuMemcpyDtoA_v2' in found_functions}}
- global __cuMemcpyDtoA_v2
- __cuMemcpyDtoA_v2 = windll.GetProcAddress(handle, 'cuMemcpyDtoA_v2_ptds')
- {{endif}}
- {{if 'cuMemcpyAtoD_v2' in found_functions}}
- global __cuMemcpyAtoD_v2
- __cuMemcpyAtoD_v2 = windll.GetProcAddress(handle, 'cuMemcpyAtoD_v2_ptds')
- {{endif}}
- {{if 'cuMemcpyHtoA_v2' in found_functions}}
- global __cuMemcpyHtoA_v2
- __cuMemcpyHtoA_v2 = windll.GetProcAddress(handle, 'cuMemcpyHtoA_v2_ptds')
- {{endif}}
- {{if 'cuMemcpyAtoH_v2' in found_functions}}
- global __cuMemcpyAtoH_v2
- __cuMemcpyAtoH_v2 = windll.GetProcAddress(handle, 'cuMemcpyAtoH_v2_ptds')
- {{endif}}
- {{if 'cuMemcpyAtoA_v2' in found_functions}}
- global __cuMemcpyAtoA_v2
- __cuMemcpyAtoA_v2 = windll.GetProcAddress(handle, 'cuMemcpyAtoA_v2_ptds')
- {{endif}}
- {{if 'cuMemcpy2D_v2' in found_functions}}
- global __cuMemcpy2D_v2
- __cuMemcpy2D_v2 = windll.GetProcAddress(handle, 'cuMemcpy2D_v2_ptds')
- {{endif}}
- {{if 'cuMemcpy2DUnaligned_v2' in found_functions}}
- global __cuMemcpy2DUnaligned_v2
- __cuMemcpy2DUnaligned_v2 = windll.GetProcAddress(handle, 'cuMemcpy2DUnaligned_v2_ptds')
- {{endif}}
- {{if 'cuMemcpy3D_v2' in found_functions}}
- global __cuMemcpy3D_v2
- __cuMemcpy3D_v2 = windll.GetProcAddress(handle, 'cuMemcpy3D_v2_ptds')
- {{endif}}
- {{if 'cuMemcpy3DPeer' in found_functions}}
- global __cuMemcpy3DPeer
- __cuMemcpy3DPeer = windll.GetProcAddress(handle, 'cuMemcpy3DPeer_ptds')
- {{endif}}
- {{if 'cuMemcpyAsync' in found_functions}}
- global __cuMemcpyAsync
- __cuMemcpyAsync = windll.GetProcAddress(handle, 'cuMemcpyAsync_ptsz')
- {{endif}}
- {{if 'cuMemcpyPeerAsync' in found_functions}}
- global __cuMemcpyPeerAsync
- __cuMemcpyPeerAsync = windll.GetProcAddress(handle, 'cuMemcpyPeerAsync_ptsz')
- {{endif}}
- {{if 'cuMemcpyHtoDAsync_v2' in found_functions}}
- global __cuMemcpyHtoDAsync_v2
- __cuMemcpyHtoDAsync_v2 = windll.GetProcAddress(handle, 'cuMemcpyHtoDAsync_v2_ptsz')
- {{endif}}
- {{if 'cuMemcpyDtoHAsync_v2' in found_functions}}
- global __cuMemcpyDtoHAsync_v2
- __cuMemcpyDtoHAsync_v2 = windll.GetProcAddress(handle, 'cuMemcpyDtoHAsync_v2_ptsz')
- {{endif}}
- {{if 'cuMemcpyDtoDAsync_v2' in found_functions}}
- global __cuMemcpyDtoDAsync_v2
- __cuMemcpyDtoDAsync_v2 = windll.GetProcAddress(handle, 'cuMemcpyDtoDAsync_v2_ptsz')
- {{endif}}
- {{if 'cuMemcpyHtoAAsync_v2' in found_functions}}
- global __cuMemcpyHtoAAsync_v2
- __cuMemcpyHtoAAsync_v2 = windll.GetProcAddress(handle, 'cuMemcpyHtoAAsync_v2_ptsz')
- {{endif}}
- {{if 'cuMemcpyAtoHAsync_v2' in found_functions}}
- global __cuMemcpyAtoHAsync_v2
- __cuMemcpyAtoHAsync_v2 = windll.GetProcAddress(handle, 'cuMemcpyAtoHAsync_v2_ptsz')
- {{endif}}
- {{if 'cuMemcpy2DAsync_v2' in found_functions}}
- global __cuMemcpy2DAsync_v2
- __cuMemcpy2DAsync_v2 = windll.GetProcAddress(handle, 'cuMemcpy2DAsync_v2_ptsz')
- {{endif}}
- {{if 'cuMemcpy3DAsync_v2' in found_functions}}
- global __cuMemcpy3DAsync_v2
- __cuMemcpy3DAsync_v2 = windll.GetProcAddress(handle, 'cuMemcpy3DAsync_v2_ptsz')
- {{endif}}
- {{if 'cuMemcpy3DPeerAsync' in found_functions}}
- global __cuMemcpy3DPeerAsync
- __cuMemcpy3DPeerAsync = windll.GetProcAddress(handle, 'cuMemcpy3DPeerAsync_ptsz')
- {{endif}}
- {{if 'cuMemcpyBatchAsync_v2' in found_functions}}
- global __cuMemcpyBatchAsync_v2
- __cuMemcpyBatchAsync_v2 = windll.GetProcAddress(handle, 'cuMemcpyBatchAsync_v2_ptsz')
- {{endif}}
- {{if 'cuMemcpy3DBatchAsync_v2' in found_functions}}
- global __cuMemcpy3DBatchAsync_v2
- __cuMemcpy3DBatchAsync_v2 = windll.GetProcAddress(handle, 'cuMemcpy3DBatchAsync_v2_ptsz')
- {{endif}}
- {{if 'cuMemsetD8_v2' in found_functions}}
- global __cuMemsetD8_v2
- __cuMemsetD8_v2 = windll.GetProcAddress(handle, 'cuMemsetD8_v2_ptds')
- {{endif}}
- {{if 'cuMemsetD16_v2' in found_functions}}
- global __cuMemsetD16_v2
- __cuMemsetD16_v2 = windll.GetProcAddress(handle, 'cuMemsetD16_v2_ptds')
- {{endif}}
- {{if 'cuMemsetD32_v2' in found_functions}}
- global __cuMemsetD32_v2
- __cuMemsetD32_v2 = windll.GetProcAddress(handle, 'cuMemsetD32_v2_ptds')
- {{endif}}
- {{if 'cuMemsetD2D8_v2' in found_functions}}
- global __cuMemsetD2D8_v2
- __cuMemsetD2D8_v2 = windll.GetProcAddress(handle, 'cuMemsetD2D8_v2_ptds')
- {{endif}}
- {{if 'cuMemsetD2D16_v2' in found_functions}}
- global __cuMemsetD2D16_v2
- __cuMemsetD2D16_v2 = windll.GetProcAddress(handle, 'cuMemsetD2D16_v2_ptds')
- {{endif}}
- {{if 'cuMemsetD2D32_v2' in found_functions}}
- global __cuMemsetD2D32_v2
- __cuMemsetD2D32_v2 = windll.GetProcAddress(handle, 'cuMemsetD2D32_v2_ptds')
- {{endif}}
- {{if 'cuMemsetD8Async' in found_functions}}
- global __cuMemsetD8Async
- __cuMemsetD8Async = windll.GetProcAddress(handle, 'cuMemsetD8Async_ptsz')
- {{endif}}
- {{if 'cuMemsetD16Async' in found_functions}}
- global __cuMemsetD16Async
- __cuMemsetD16Async = windll.GetProcAddress(handle, 'cuMemsetD16Async_ptsz')
- {{endif}}
- {{if 'cuMemsetD32Async' in found_functions}}
- global __cuMemsetD32Async
- __cuMemsetD32Async = windll.GetProcAddress(handle, 'cuMemsetD32Async_ptsz')
- {{endif}}
- {{if 'cuMemsetD2D8Async' in found_functions}}
- global __cuMemsetD2D8Async
- __cuMemsetD2D8Async = windll.GetProcAddress(handle, 'cuMemsetD2D8Async_ptsz')
- {{endif}}
- {{if 'cuMemsetD2D16Async' in found_functions}}
- global __cuMemsetD2D16Async
- __cuMemsetD2D16Async = windll.GetProcAddress(handle, 'cuMemsetD2D16Async_ptsz')
- {{endif}}
- {{if 'cuMemsetD2D32Async' in found_functions}}
- global __cuMemsetD2D32Async
- __cuMemsetD2D32Async = windll.GetProcAddress(handle, 'cuMemsetD2D32Async_ptsz')
- {{endif}}
- {{if 'cuMemBatchDecompressAsync' in found_functions}}
- global __cuMemBatchDecompressAsync
- __cuMemBatchDecompressAsync = windll.GetProcAddress(handle, 'cuMemBatchDecompressAsync_ptsz')
- {{endif}}
- {{if 'cuMemMapArrayAsync' in found_functions}}
- global __cuMemMapArrayAsync
- __cuMemMapArrayAsync = windll.GetProcAddress(handle, 'cuMemMapArrayAsync_ptsz')
- {{endif}}
- {{if 'cuMemFreeAsync' in found_functions}}
- global __cuMemFreeAsync
- __cuMemFreeAsync = windll.GetProcAddress(handle, 'cuMemFreeAsync_ptsz')
- {{endif}}
- {{if 'cuMemAllocAsync' in found_functions}}
- global __cuMemAllocAsync
- __cuMemAllocAsync = windll.GetProcAddress(handle, 'cuMemAllocAsync_ptsz')
- {{endif}}
- {{if 'cuMemAllocFromPoolAsync' in found_functions}}
- global __cuMemAllocFromPoolAsync
- __cuMemAllocFromPoolAsync = windll.GetProcAddress(handle, 'cuMemAllocFromPoolAsync_ptsz')
- {{endif}}
- {{if 'cuMemPrefetchAsync_v2' in found_functions}}
- global __cuMemPrefetchAsync_v2
- __cuMemPrefetchAsync_v2 = windll.GetProcAddress(handle, 'cuMemPrefetchAsync_v2_ptsz')
- {{endif}}
- {{if 'cuMemPrefetchBatchAsync' in found_functions}}
- global __cuMemPrefetchBatchAsync
- __cuMemPrefetchBatchAsync = windll.GetProcAddress(handle, 'cuMemPrefetchBatchAsync_ptsz')
- {{endif}}
- {{if 'cuMemDiscardBatchAsync' in found_functions}}
- global __cuMemDiscardBatchAsync
- __cuMemDiscardBatchAsync = windll.GetProcAddress(handle, 'cuMemDiscardBatchAsync_ptsz')
- {{endif}}
- {{if 'cuMemDiscardAndPrefetchBatchAsync' in found_functions}}
- global __cuMemDiscardAndPrefetchBatchAsync
- __cuMemDiscardAndPrefetchBatchAsync = windll.GetProcAddress(handle, 'cuMemDiscardAndPrefetchBatchAsync_ptsz')
- {{endif}}
- {{if 'cuStreamGetPriority' in found_functions}}
- global __cuStreamGetPriority
- __cuStreamGetPriority = windll.GetProcAddress(handle, 'cuStreamGetPriority_ptsz')
- {{endif}}
- {{if 'cuStreamGetDevice' in found_functions}}
- global __cuStreamGetDevice
- __cuStreamGetDevice = windll.GetProcAddress(handle, 'cuStreamGetDevice_ptsz')
- {{endif}}
- {{if 'cuStreamGetFlags' in found_functions}}
- global __cuStreamGetFlags
- __cuStreamGetFlags = windll.GetProcAddress(handle, 'cuStreamGetFlags_ptsz')
- {{endif}}
- {{if 'cuStreamGetId' in found_functions}}
- global __cuStreamGetId
- __cuStreamGetId = windll.GetProcAddress(handle, 'cuStreamGetId_ptsz')
- {{endif}}
- {{if 'cuStreamGetCtx' in found_functions}}
- global __cuStreamGetCtx
- __cuStreamGetCtx = windll.GetProcAddress(handle, 'cuStreamGetCtx_ptsz')
- {{endif}}
- {{if 'cuStreamGetCtx_v2' in found_functions}}
- global __cuStreamGetCtx_v2
- __cuStreamGetCtx_v2 = windll.GetProcAddress(handle, 'cuStreamGetCtx_v2_ptsz')
- {{endif}}
- {{if 'cuStreamWaitEvent' in found_functions}}
- global __cuStreamWaitEvent
- __cuStreamWaitEvent = windll.GetProcAddress(handle, 'cuStreamWaitEvent_ptsz')
- {{endif}}
- {{if 'cuStreamAddCallback' in found_functions}}
- global __cuStreamAddCallback
- __cuStreamAddCallback = windll.GetProcAddress(handle, 'cuStreamAddCallback_ptsz')
- {{endif}}
- {{if 'cuStreamBeginCapture_v2' in found_functions}}
- global __cuStreamBeginCapture_v2
- __cuStreamBeginCapture_v2 = windll.GetProcAddress(handle, 'cuStreamBeginCapture_v2_ptsz')
- {{endif}}
- {{if 'cuStreamBeginCaptureToGraph' in found_functions}}
- global __cuStreamBeginCaptureToGraph
- __cuStreamBeginCaptureToGraph = windll.GetProcAddress(handle, 'cuStreamBeginCaptureToGraph_ptsz')
- {{endif}}
- {{if 'cuStreamEndCapture' in found_functions}}
- global __cuStreamEndCapture
- __cuStreamEndCapture = windll.GetProcAddress(handle, 'cuStreamEndCapture_ptsz')
- {{endif}}
- {{if 'cuStreamIsCapturing' in found_functions}}
- global __cuStreamIsCapturing
- __cuStreamIsCapturing = windll.GetProcAddress(handle, 'cuStreamIsCapturing_ptsz')
- {{endif}}
- {{if 'cuStreamGetCaptureInfo_v3' in found_functions}}
- global __cuStreamGetCaptureInfo_v3
- __cuStreamGetCaptureInfo_v3 = windll.GetProcAddress(handle, 'cuStreamGetCaptureInfo_v3_ptsz')
- {{endif}}
- {{if 'cuStreamUpdateCaptureDependencies_v2' in found_functions}}
- global __cuStreamUpdateCaptureDependencies_v2
- __cuStreamUpdateCaptureDependencies_v2 = windll.GetProcAddress(handle, 'cuStreamUpdateCaptureDependencies_v2_ptsz')
- {{endif}}
- {{if 'cuStreamAttachMemAsync' in found_functions}}
- global __cuStreamAttachMemAsync
- __cuStreamAttachMemAsync = windll.GetProcAddress(handle, 'cuStreamAttachMemAsync_ptsz')
- {{endif}}
- {{if 'cuStreamQuery' in found_functions}}
- global __cuStreamQuery
- __cuStreamQuery = windll.GetProcAddress(handle, 'cuStreamQuery_ptsz')
- {{endif}}
- {{if 'cuStreamSynchronize' in found_functions}}
- global __cuStreamSynchronize
- __cuStreamSynchronize = windll.GetProcAddress(handle, 'cuStreamSynchronize_ptsz')
- {{endif}}
- {{if 'cuStreamCopyAttributes' in found_functions}}
- global __cuStreamCopyAttributes
- __cuStreamCopyAttributes = windll.GetProcAddress(handle, 'cuStreamCopyAttributes_ptsz')
- {{endif}}
- {{if 'cuStreamGetAttribute' in found_functions}}
- global __cuStreamGetAttribute
- __cuStreamGetAttribute = windll.GetProcAddress(handle, 'cuStreamGetAttribute_ptsz')
- {{endif}}
- {{if 'cuStreamSetAttribute' in found_functions}}
- global __cuStreamSetAttribute
- __cuStreamSetAttribute = windll.GetProcAddress(handle, 'cuStreamSetAttribute_ptsz')
- {{endif}}
- {{if 'cuEventRecord' in found_functions}}
- global __cuEventRecord
- __cuEventRecord = windll.GetProcAddress(handle, 'cuEventRecord_ptsz')
- {{endif}}
- {{if 'cuEventRecordWithFlags' in found_functions}}
- global __cuEventRecordWithFlags
- __cuEventRecordWithFlags = windll.GetProcAddress(handle, 'cuEventRecordWithFlags_ptsz')
- {{endif}}
- {{if 'cuSignalExternalSemaphoresAsync' in found_functions}}
- global __cuSignalExternalSemaphoresAsync
- __cuSignalExternalSemaphoresAsync = windll.GetProcAddress(handle, 'cuSignalExternalSemaphoresAsync_ptsz')
- {{endif}}
- {{if 'cuWaitExternalSemaphoresAsync' in found_functions}}
- global __cuWaitExternalSemaphoresAsync
- __cuWaitExternalSemaphoresAsync = windll.GetProcAddress(handle, 'cuWaitExternalSemaphoresAsync_ptsz')
- {{endif}}
- {{if 'cuStreamWaitValue32_v2' in found_functions}}
- global __cuStreamWaitValue32_v2
- __cuStreamWaitValue32_v2 = windll.GetProcAddress(handle, 'cuStreamWaitValue32_v2_ptsz')
- {{endif}}
- {{if 'cuStreamWaitValue64_v2' in found_functions}}
- global __cuStreamWaitValue64_v2
- __cuStreamWaitValue64_v2 = windll.GetProcAddress(handle, 'cuStreamWaitValue64_v2_ptsz')
- {{endif}}
- {{if 'cuStreamWriteValue32_v2' in found_functions}}
- global __cuStreamWriteValue32_v2
- __cuStreamWriteValue32_v2 = windll.GetProcAddress(handle, 'cuStreamWriteValue32_v2_ptsz')
- {{endif}}
- {{if 'cuStreamWriteValue64_v2' in found_functions}}
- global __cuStreamWriteValue64_v2
- __cuStreamWriteValue64_v2 = windll.GetProcAddress(handle, 'cuStreamWriteValue64_v2_ptsz')
- {{endif}}
- {{if 'cuStreamBatchMemOp_v2' in found_functions}}
- global __cuStreamBatchMemOp_v2
- __cuStreamBatchMemOp_v2 = windll.GetProcAddress(handle, 'cuStreamBatchMemOp_v2_ptsz')
- {{endif}}
- {{if 'cuLaunchKernel' in found_functions}}
- global __cuLaunchKernel
- __cuLaunchKernel = windll.GetProcAddress(handle, 'cuLaunchKernel_ptsz')
- {{endif}}
- {{if 'cuLaunchKernelEx' in found_functions}}
- global __cuLaunchKernelEx
- __cuLaunchKernelEx = windll.GetProcAddress(handle, 'cuLaunchKernelEx_ptsz')
- {{endif}}
- {{if 'cuLaunchCooperativeKernel' in found_functions}}
- global __cuLaunchCooperativeKernel
- __cuLaunchCooperativeKernel = windll.GetProcAddress(handle, 'cuLaunchCooperativeKernel_ptsz')
- {{endif}}
- {{if 'cuLaunchHostFunc' in found_functions}}
- global __cuLaunchHostFunc
- __cuLaunchHostFunc = windll.GetProcAddress(handle, 'cuLaunchHostFunc_ptsz')
- {{endif}}
- {{if 'cuGraphInstantiateWithParams' in found_functions}}
- global __cuGraphInstantiateWithParams
- __cuGraphInstantiateWithParams = windll.GetProcAddress(handle, 'cuGraphInstantiateWithParams_ptsz')
- {{endif}}
- {{if 'cuGraphUpload' in found_functions}}
- global __cuGraphUpload
- __cuGraphUpload = windll.GetProcAddress(handle, 'cuGraphUpload_ptsz')
- {{endif}}
- {{if 'cuGraphLaunch' in found_functions}}
- global __cuGraphLaunch
- __cuGraphLaunch = windll.GetProcAddress(handle, 'cuGraphLaunch_ptsz')
- {{endif}}
- {{if 'cuGraphicsMapResources' in found_functions}}
- global __cuGraphicsMapResources
- __cuGraphicsMapResources = windll.GetProcAddress(handle, 'cuGraphicsMapResources_ptsz')
- {{endif}}
- {{if 'cuGraphicsUnmapResources' in found_functions}}
- global __cuGraphicsUnmapResources
- __cuGraphicsUnmapResources = windll.GetProcAddress(handle, 'cuGraphicsUnmapResources_ptsz')
- {{endif}}
- else:
- # Else get the regular version
- pass
- {{if 'cuMemcpy' in found_functions}}
- global __cuMemcpy
- __cuMemcpy = windll.GetProcAddress(handle, 'cuMemcpy')
- {{endif}}
- {{if 'cuMemcpyPeer' in found_functions}}
- global __cuMemcpyPeer
- __cuMemcpyPeer = windll.GetProcAddress(handle, 'cuMemcpyPeer')
- {{endif}}
- {{if 'cuMemcpyHtoD_v2' in found_functions}}
- global __cuMemcpyHtoD_v2
- __cuMemcpyHtoD_v2 = windll.GetProcAddress(handle, 'cuMemcpyHtoD_v2')
- {{endif}}
- {{if 'cuMemcpyDtoH_v2' in found_functions}}
- global __cuMemcpyDtoH_v2
- __cuMemcpyDtoH_v2 = windll.GetProcAddress(handle, 'cuMemcpyDtoH_v2')
- {{endif}}
- {{if 'cuMemcpyDtoD_v2' in found_functions}}
- global __cuMemcpyDtoD_v2
- __cuMemcpyDtoD_v2 = windll.GetProcAddress(handle, 'cuMemcpyDtoD_v2')
- {{endif}}
- {{if 'cuMemcpyDtoA_v2' in found_functions}}
- global __cuMemcpyDtoA_v2
- __cuMemcpyDtoA_v2 = windll.GetProcAddress(handle, 'cuMemcpyDtoA_v2')
- {{endif}}
- {{if 'cuMemcpyAtoD_v2' in found_functions}}
- global __cuMemcpyAtoD_v2
- __cuMemcpyAtoD_v2 = windll.GetProcAddress(handle, 'cuMemcpyAtoD_v2')
- {{endif}}
- {{if 'cuMemcpyHtoA_v2' in found_functions}}
- global __cuMemcpyHtoA_v2
- __cuMemcpyHtoA_v2 = windll.GetProcAddress(handle, 'cuMemcpyHtoA_v2')
- {{endif}}
- {{if 'cuMemcpyAtoH_v2' in found_functions}}
- global __cuMemcpyAtoH_v2
- __cuMemcpyAtoH_v2 = windll.GetProcAddress(handle, 'cuMemcpyAtoH_v2')
- {{endif}}
- {{if 'cuMemcpyAtoA_v2' in found_functions}}
- global __cuMemcpyAtoA_v2
- __cuMemcpyAtoA_v2 = windll.GetProcAddress(handle, 'cuMemcpyAtoA_v2')
- {{endif}}
- {{if 'cuMemcpy2D_v2' in found_functions}}
- global __cuMemcpy2D_v2
- __cuMemcpy2D_v2 = windll.GetProcAddress(handle, 'cuMemcpy2D_v2')
- {{endif}}
- {{if 'cuMemcpy2DUnaligned_v2' in found_functions}}
- global __cuMemcpy2DUnaligned_v2
- __cuMemcpy2DUnaligned_v2 = windll.GetProcAddress(handle, 'cuMemcpy2DUnaligned_v2')
- {{endif}}
- {{if 'cuMemcpy3D_v2' in found_functions}}
- global __cuMemcpy3D_v2
- __cuMemcpy3D_v2 = windll.GetProcAddress(handle, 'cuMemcpy3D_v2')
- {{endif}}
- {{if 'cuMemcpy3DPeer' in found_functions}}
- global __cuMemcpy3DPeer
- __cuMemcpy3DPeer = windll.GetProcAddress(handle, 'cuMemcpy3DPeer')
- {{endif}}
- {{if 'cuMemcpyAsync' in found_functions}}
- global __cuMemcpyAsync
- __cuMemcpyAsync = windll.GetProcAddress(handle, 'cuMemcpyAsync')
- {{endif}}
- {{if 'cuMemcpyPeerAsync' in found_functions}}
- global __cuMemcpyPeerAsync
- __cuMemcpyPeerAsync = windll.GetProcAddress(handle, 'cuMemcpyPeerAsync')
- {{endif}}
- {{if 'cuMemcpyHtoDAsync_v2' in found_functions}}
- global __cuMemcpyHtoDAsync_v2
- __cuMemcpyHtoDAsync_v2 = windll.GetProcAddress(handle, 'cuMemcpyHtoDAsync_v2')
- {{endif}}
- {{if 'cuMemcpyDtoHAsync_v2' in found_functions}}
- global __cuMemcpyDtoHAsync_v2
- __cuMemcpyDtoHAsync_v2 = windll.GetProcAddress(handle, 'cuMemcpyDtoHAsync_v2')
- {{endif}}
- {{if 'cuMemcpyDtoDAsync_v2' in found_functions}}
- global __cuMemcpyDtoDAsync_v2
- __cuMemcpyDtoDAsync_v2 = windll.GetProcAddress(handle, 'cuMemcpyDtoDAsync_v2')
- {{endif}}
- {{if 'cuMemcpyHtoAAsync_v2' in found_functions}}
- global __cuMemcpyHtoAAsync_v2
- __cuMemcpyHtoAAsync_v2 = windll.GetProcAddress(handle, 'cuMemcpyHtoAAsync_v2')
- {{endif}}
- {{if 'cuMemcpyAtoHAsync_v2' in found_functions}}
- global __cuMemcpyAtoHAsync_v2
- __cuMemcpyAtoHAsync_v2 = windll.GetProcAddress(handle, 'cuMemcpyAtoHAsync_v2')
- {{endif}}
- {{if 'cuMemcpy2DAsync_v2' in found_functions}}
- global __cuMemcpy2DAsync_v2
- __cuMemcpy2DAsync_v2 = windll.GetProcAddress(handle, 'cuMemcpy2DAsync_v2')
- {{endif}}
- {{if 'cuMemcpy3DAsync_v2' in found_functions}}
- global __cuMemcpy3DAsync_v2
- __cuMemcpy3DAsync_v2 = windll.GetProcAddress(handle, 'cuMemcpy3DAsync_v2')
- {{endif}}
- {{if 'cuMemcpy3DPeerAsync' in found_functions}}
- global __cuMemcpy3DPeerAsync
- __cuMemcpy3DPeerAsync = windll.GetProcAddress(handle, 'cuMemcpy3DPeerAsync')
- {{endif}}
- {{if 'cuMemcpyBatchAsync_v2' in found_functions}}
- global __cuMemcpyBatchAsync_v2
- __cuMemcpyBatchAsync_v2 = windll.GetProcAddress(handle, 'cuMemcpyBatchAsync_v2')
- {{endif}}
- {{if 'cuMemcpy3DBatchAsync_v2' in found_functions}}
- global __cuMemcpy3DBatchAsync_v2
- __cuMemcpy3DBatchAsync_v2 = windll.GetProcAddress(handle, 'cuMemcpy3DBatchAsync_v2')
- {{endif}}
- {{if 'cuMemsetD8_v2' in found_functions}}
- global __cuMemsetD8_v2
- __cuMemsetD8_v2 = windll.GetProcAddress(handle, 'cuMemsetD8_v2')
- {{endif}}
- {{if 'cuMemsetD16_v2' in found_functions}}
- global __cuMemsetD16_v2
- __cuMemsetD16_v2 = windll.GetProcAddress(handle, 'cuMemsetD16_v2')
- {{endif}}
- {{if 'cuMemsetD32_v2' in found_functions}}
- global __cuMemsetD32_v2
- __cuMemsetD32_v2 = windll.GetProcAddress(handle, 'cuMemsetD32_v2')
- {{endif}}
- {{if 'cuMemsetD2D8_v2' in found_functions}}
- global __cuMemsetD2D8_v2
- __cuMemsetD2D8_v2 = windll.GetProcAddress(handle, 'cuMemsetD2D8_v2')
- {{endif}}
- {{if 'cuMemsetD2D16_v2' in found_functions}}
- global __cuMemsetD2D16_v2
- __cuMemsetD2D16_v2 = windll.GetProcAddress(handle, 'cuMemsetD2D16_v2')
- {{endif}}
- {{if 'cuMemsetD2D32_v2' in found_functions}}
- global __cuMemsetD2D32_v2
- __cuMemsetD2D32_v2 = windll.GetProcAddress(handle, 'cuMemsetD2D32_v2')
- {{endif}}
- {{if 'cuMemsetD8Async' in found_functions}}
- global __cuMemsetD8Async
- __cuMemsetD8Async = windll.GetProcAddress(handle, 'cuMemsetD8Async')
- {{endif}}
- {{if 'cuMemsetD16Async' in found_functions}}
- global __cuMemsetD16Async
- __cuMemsetD16Async = windll.GetProcAddress(handle, 'cuMemsetD16Async')
- {{endif}}
- {{if 'cuMemsetD32Async' in found_functions}}
- global __cuMemsetD32Async
- __cuMemsetD32Async = windll.GetProcAddress(handle, 'cuMemsetD32Async')
- {{endif}}
- {{if 'cuMemsetD2D8Async' in found_functions}}
- global __cuMemsetD2D8Async
- __cuMemsetD2D8Async = windll.GetProcAddress(handle, 'cuMemsetD2D8Async')
- {{endif}}
- {{if 'cuMemsetD2D16Async' in found_functions}}
- global __cuMemsetD2D16Async
- __cuMemsetD2D16Async = windll.GetProcAddress(handle, 'cuMemsetD2D16Async')
- {{endif}}
- {{if 'cuMemsetD2D32Async' in found_functions}}
- global __cuMemsetD2D32Async
- __cuMemsetD2D32Async = windll.GetProcAddress(handle, 'cuMemsetD2D32Async')
- {{endif}}
- {{if 'cuMemBatchDecompressAsync' in found_functions}}
- global __cuMemBatchDecompressAsync
- __cuMemBatchDecompressAsync = windll.GetProcAddress(handle, 'cuMemBatchDecompressAsync')
- {{endif}}
- {{if 'cuMemMapArrayAsync' in found_functions}}
- global __cuMemMapArrayAsync
- __cuMemMapArrayAsync = windll.GetProcAddress(handle, 'cuMemMapArrayAsync')
- {{endif}}
- {{if 'cuMemFreeAsync' in found_functions}}
- global __cuMemFreeAsync
- __cuMemFreeAsync = windll.GetProcAddress(handle, 'cuMemFreeAsync')
- {{endif}}
- {{if 'cuMemAllocAsync' in found_functions}}
- global __cuMemAllocAsync
- __cuMemAllocAsync = windll.GetProcAddress(handle, 'cuMemAllocAsync')
- {{endif}}
- {{if 'cuMemAllocFromPoolAsync' in found_functions}}
- global __cuMemAllocFromPoolAsync
- __cuMemAllocFromPoolAsync = windll.GetProcAddress(handle, 'cuMemAllocFromPoolAsync')
- {{endif}}
- {{if 'cuMemPrefetchAsync_v2' in found_functions}}
- global __cuMemPrefetchAsync_v2
- __cuMemPrefetchAsync_v2 = windll.GetProcAddress(handle, 'cuMemPrefetchAsync_v2')
- {{endif}}
- {{if 'cuMemPrefetchBatchAsync' in found_functions}}
- global __cuMemPrefetchBatchAsync
- __cuMemPrefetchBatchAsync = windll.GetProcAddress(handle, 'cuMemPrefetchBatchAsync')
- {{endif}}
- {{if 'cuMemDiscardBatchAsync' in found_functions}}
- global __cuMemDiscardBatchAsync
- __cuMemDiscardBatchAsync = windll.GetProcAddress(handle, 'cuMemDiscardBatchAsync')
- {{endif}}
- {{if 'cuMemDiscardAndPrefetchBatchAsync' in found_functions}}
- global __cuMemDiscardAndPrefetchBatchAsync
- __cuMemDiscardAndPrefetchBatchAsync = windll.GetProcAddress(handle, 'cuMemDiscardAndPrefetchBatchAsync')
- {{endif}}
- {{if 'cuStreamGetPriority' in found_functions}}
- global __cuStreamGetPriority
- __cuStreamGetPriority = windll.GetProcAddress(handle, 'cuStreamGetPriority')
- {{endif}}
- {{if 'cuStreamGetDevice' in found_functions}}
- global __cuStreamGetDevice
- __cuStreamGetDevice = windll.GetProcAddress(handle, 'cuStreamGetDevice')
- {{endif}}
- {{if 'cuStreamGetFlags' in found_functions}}
- global __cuStreamGetFlags
- __cuStreamGetFlags = windll.GetProcAddress(handle, 'cuStreamGetFlags')
- {{endif}}
- {{if 'cuStreamGetId' in found_functions}}
- global __cuStreamGetId
- __cuStreamGetId = windll.GetProcAddress(handle, 'cuStreamGetId')
- {{endif}}
- {{if 'cuStreamGetCtx' in found_functions}}
- global __cuStreamGetCtx
- __cuStreamGetCtx = windll.GetProcAddress(handle, 'cuStreamGetCtx')
- {{endif}}
- {{if 'cuStreamGetCtx_v2' in found_functions}}
- global __cuStreamGetCtx_v2
- __cuStreamGetCtx_v2 = windll.GetProcAddress(handle, 'cuStreamGetCtx_v2')
- {{endif}}
- {{if 'cuStreamWaitEvent' in found_functions}}
- global __cuStreamWaitEvent
- __cuStreamWaitEvent = windll.GetProcAddress(handle, 'cuStreamWaitEvent')
- {{endif}}
- {{if 'cuStreamAddCallback' in found_functions}}
- global __cuStreamAddCallback
- __cuStreamAddCallback = windll.GetProcAddress(handle, 'cuStreamAddCallback')
- {{endif}}
- {{if 'cuStreamBeginCapture_v2' in found_functions}}
- global __cuStreamBeginCapture_v2
- __cuStreamBeginCapture_v2 = windll.GetProcAddress(handle, 'cuStreamBeginCapture_v2')
- {{endif}}
- {{if 'cuStreamBeginCaptureToGraph' in found_functions}}
- global __cuStreamBeginCaptureToGraph
- __cuStreamBeginCaptureToGraph = windll.GetProcAddress(handle, 'cuStreamBeginCaptureToGraph')
- {{endif}}
- {{if 'cuStreamEndCapture' in found_functions}}
- global __cuStreamEndCapture
- __cuStreamEndCapture = windll.GetProcAddress(handle, 'cuStreamEndCapture')
- {{endif}}
- {{if 'cuStreamIsCapturing' in found_functions}}
- global __cuStreamIsCapturing
- __cuStreamIsCapturing = windll.GetProcAddress(handle, 'cuStreamIsCapturing')
- {{endif}}
- {{if 'cuStreamGetCaptureInfo_v3' in found_functions}}
- global __cuStreamGetCaptureInfo_v3
- __cuStreamGetCaptureInfo_v3 = windll.GetProcAddress(handle, 'cuStreamGetCaptureInfo_v3')
- {{endif}}
- {{if 'cuStreamUpdateCaptureDependencies_v2' in found_functions}}
- global __cuStreamUpdateCaptureDependencies_v2
- __cuStreamUpdateCaptureDependencies_v2 = windll.GetProcAddress(handle, 'cuStreamUpdateCaptureDependencies_v2')
- {{endif}}
- {{if 'cuStreamAttachMemAsync' in found_functions}}
- global __cuStreamAttachMemAsync
- __cuStreamAttachMemAsync = windll.GetProcAddress(handle, 'cuStreamAttachMemAsync')
- {{endif}}
- {{if 'cuStreamQuery' in found_functions}}
- global __cuStreamQuery
- __cuStreamQuery = windll.GetProcAddress(handle, 'cuStreamQuery')
- {{endif}}
- {{if 'cuStreamSynchronize' in found_functions}}
- global __cuStreamSynchronize
- __cuStreamSynchronize = windll.GetProcAddress(handle, 'cuStreamSynchronize')
- {{endif}}
- {{if 'cuStreamCopyAttributes' in found_functions}}
- global __cuStreamCopyAttributes
- __cuStreamCopyAttributes = windll.GetProcAddress(handle, 'cuStreamCopyAttributes')
- {{endif}}
- {{if 'cuStreamGetAttribute' in found_functions}}
- global __cuStreamGetAttribute
- __cuStreamGetAttribute = windll.GetProcAddress(handle, 'cuStreamGetAttribute')
- {{endif}}
- {{if 'cuStreamSetAttribute' in found_functions}}
- global __cuStreamSetAttribute
- __cuStreamSetAttribute = windll.GetProcAddress(handle, 'cuStreamSetAttribute')
- {{endif}}
- {{if 'cuEventRecord' in found_functions}}
- global __cuEventRecord
- __cuEventRecord = windll.GetProcAddress(handle, 'cuEventRecord')
- {{endif}}
- {{if 'cuEventRecordWithFlags' in found_functions}}
- global __cuEventRecordWithFlags
- __cuEventRecordWithFlags = windll.GetProcAddress(handle, 'cuEventRecordWithFlags')
- {{endif}}
- {{if 'cuSignalExternalSemaphoresAsync' in found_functions}}
- global __cuSignalExternalSemaphoresAsync
- __cuSignalExternalSemaphoresAsync = windll.GetProcAddress(handle, 'cuSignalExternalSemaphoresAsync')
- {{endif}}
- {{if 'cuWaitExternalSemaphoresAsync' in found_functions}}
- global __cuWaitExternalSemaphoresAsync
- __cuWaitExternalSemaphoresAsync = windll.GetProcAddress(handle, 'cuWaitExternalSemaphoresAsync')
- {{endif}}
- {{if 'cuStreamWaitValue32_v2' in found_functions}}
- global __cuStreamWaitValue32_v2
- __cuStreamWaitValue32_v2 = windll.GetProcAddress(handle, 'cuStreamWaitValue32_v2')
- {{endif}}
- {{if 'cuStreamWaitValue64_v2' in found_functions}}
- global __cuStreamWaitValue64_v2
- __cuStreamWaitValue64_v2 = windll.GetProcAddress(handle, 'cuStreamWaitValue64_v2')
- {{endif}}
- {{if 'cuStreamWriteValue32_v2' in found_functions}}
- global __cuStreamWriteValue32_v2
- __cuStreamWriteValue32_v2 = windll.GetProcAddress(handle, 'cuStreamWriteValue32_v2')
- {{endif}}
- {{if 'cuStreamWriteValue64_v2' in found_functions}}
- global __cuStreamWriteValue64_v2
- __cuStreamWriteValue64_v2 = windll.GetProcAddress(handle, 'cuStreamWriteValue64_v2')
- {{endif}}
- {{if 'cuStreamBatchMemOp_v2' in found_functions}}
- global __cuStreamBatchMemOp_v2
- __cuStreamBatchMemOp_v2 = windll.GetProcAddress(handle, 'cuStreamBatchMemOp_v2')
- {{endif}}
- {{if 'cuLaunchKernel' in found_functions}}
- global __cuLaunchKernel
- __cuLaunchKernel = windll.GetProcAddress(handle, 'cuLaunchKernel')
- {{endif}}
- {{if 'cuLaunchKernelEx' in found_functions}}
- global __cuLaunchKernelEx
- __cuLaunchKernelEx = windll.GetProcAddress(handle, 'cuLaunchKernelEx')
- {{endif}}
- {{if 'cuLaunchCooperativeKernel' in found_functions}}
- global __cuLaunchCooperativeKernel
- __cuLaunchCooperativeKernel = windll.GetProcAddress(handle, 'cuLaunchCooperativeKernel')
- {{endif}}
- {{if 'cuLaunchHostFunc' in found_functions}}
- global __cuLaunchHostFunc
- __cuLaunchHostFunc = windll.GetProcAddress(handle, 'cuLaunchHostFunc')
- {{endif}}
- {{if 'cuGraphInstantiateWithParams' in found_functions}}
- global __cuGraphInstantiateWithParams
- __cuGraphInstantiateWithParams = windll.GetProcAddress(handle, 'cuGraphInstantiateWithParams')
- {{endif}}
- {{if 'cuGraphUpload' in found_functions}}
- global __cuGraphUpload
- __cuGraphUpload = windll.GetProcAddress(handle, 'cuGraphUpload')
- {{endif}}
- {{if 'cuGraphLaunch' in found_functions}}
- global __cuGraphLaunch
- __cuGraphLaunch = windll.GetProcAddress(handle, 'cuGraphLaunch')
- {{endif}}
- {{if 'cuGraphicsMapResources' in found_functions}}
- global __cuGraphicsMapResources
- __cuGraphicsMapResources = windll.GetProcAddress(handle, 'cuGraphicsMapResources')
- {{endif}}
- {{if 'cuGraphicsUnmapResources' in found_functions}}
- global __cuGraphicsUnmapResources
- __cuGraphicsUnmapResources = windll.GetProcAddress(handle, 'cuGraphicsUnmapResources')
- {{endif}}
- # Get remaining functions
- {{if 'cuGetErrorString' in found_functions}}
- global __cuGetErrorString
- __cuGetErrorString = windll.GetProcAddress(handle, 'cuGetErrorString')
- {{endif}}
- {{if 'cuGetErrorName' in found_functions}}
- global __cuGetErrorName
- __cuGetErrorName = windll.GetProcAddress(handle, 'cuGetErrorName')
- {{endif}}
- {{if 'cuInit' in found_functions}}
- global __cuInit
- __cuInit = windll.GetProcAddress(handle, 'cuInit')
- {{endif}}
- {{if 'cuDriverGetVersion' in found_functions}}
- global __cuDriverGetVersion
- __cuDriverGetVersion = windll.GetProcAddress(handle, 'cuDriverGetVersion')
- {{endif}}
- {{if 'cuDeviceGet' in found_functions}}
- global __cuDeviceGet
- __cuDeviceGet = windll.GetProcAddress(handle, 'cuDeviceGet')
- {{endif}}
- {{if 'cuDeviceGetCount' in found_functions}}
- global __cuDeviceGetCount
- __cuDeviceGetCount = windll.GetProcAddress(handle, 'cuDeviceGetCount')
- {{endif}}
- {{if 'cuDeviceGetName' in found_functions}}
- global __cuDeviceGetName
- __cuDeviceGetName = windll.GetProcAddress(handle, 'cuDeviceGetName')
- {{endif}}
- {{if 'cuDeviceGetUuid_v2' in found_functions}}
- global __cuDeviceGetUuid_v2
- __cuDeviceGetUuid_v2 = windll.GetProcAddress(handle, 'cuDeviceGetUuid_v2')
- {{endif}}
- {{if 'cuDeviceGetLuid' in found_functions}}
- global __cuDeviceGetLuid
- __cuDeviceGetLuid = windll.GetProcAddress(handle, 'cuDeviceGetLuid')
- {{endif}}
- {{if 'cuDeviceTotalMem_v2' in found_functions}}
- global __cuDeviceTotalMem_v2
- __cuDeviceTotalMem_v2 = windll.GetProcAddress(handle, 'cuDeviceTotalMem_v2')
- {{endif}}
- {{if 'cuDeviceGetTexture1DLinearMaxWidth' in found_functions}}
- global __cuDeviceGetTexture1DLinearMaxWidth
- __cuDeviceGetTexture1DLinearMaxWidth = windll.GetProcAddress(handle, 'cuDeviceGetTexture1DLinearMaxWidth')
- {{endif}}
- {{if 'cuDeviceGetAttribute' in found_functions}}
- global __cuDeviceGetAttribute
- __cuDeviceGetAttribute = windll.GetProcAddress(handle, 'cuDeviceGetAttribute')
- {{endif}}
- {{if 'cuDeviceGetHostAtomicCapabilities' in found_functions}}
- global __cuDeviceGetHostAtomicCapabilities
- __cuDeviceGetHostAtomicCapabilities = windll.GetProcAddress(handle, 'cuDeviceGetHostAtomicCapabilities')
- {{endif}}
- {{if 'cuDeviceGetNvSciSyncAttributes' in found_functions}}
- global __cuDeviceGetNvSciSyncAttributes
- __cuDeviceGetNvSciSyncAttributes = windll.GetProcAddress(handle, 'cuDeviceGetNvSciSyncAttributes')
- {{endif}}
- {{if 'cuDeviceSetMemPool' in found_functions}}
- global __cuDeviceSetMemPool
- __cuDeviceSetMemPool = windll.GetProcAddress(handle, 'cuDeviceSetMemPool')
- {{endif}}
- {{if 'cuDeviceGetMemPool' in found_functions}}
- global __cuDeviceGetMemPool
- __cuDeviceGetMemPool = windll.GetProcAddress(handle, 'cuDeviceGetMemPool')
- {{endif}}
- {{if 'cuDeviceGetDefaultMemPool' in found_functions}}
- global __cuDeviceGetDefaultMemPool
- __cuDeviceGetDefaultMemPool = windll.GetProcAddress(handle, 'cuDeviceGetDefaultMemPool')
- {{endif}}
- {{if 'cuDeviceGetExecAffinitySupport' in found_functions}}
- global __cuDeviceGetExecAffinitySupport
- __cuDeviceGetExecAffinitySupport = windll.GetProcAddress(handle, 'cuDeviceGetExecAffinitySupport')
- {{endif}}
- {{if 'cuFlushGPUDirectRDMAWrites' in found_functions}}
- global __cuFlushGPUDirectRDMAWrites
- __cuFlushGPUDirectRDMAWrites = windll.GetProcAddress(handle, 'cuFlushGPUDirectRDMAWrites')
- {{endif}}
- {{if 'cuDeviceGetProperties' in found_functions}}
- global __cuDeviceGetProperties
- __cuDeviceGetProperties = windll.GetProcAddress(handle, 'cuDeviceGetProperties')
- {{endif}}
- {{if 'cuDeviceComputeCapability' in found_functions}}
- global __cuDeviceComputeCapability
- __cuDeviceComputeCapability = windll.GetProcAddress(handle, 'cuDeviceComputeCapability')
- {{endif}}
- {{if 'cuDevicePrimaryCtxRetain' in found_functions}}
- global __cuDevicePrimaryCtxRetain
- __cuDevicePrimaryCtxRetain = windll.GetProcAddress(handle, 'cuDevicePrimaryCtxRetain')
- {{endif}}
- {{if 'cuDevicePrimaryCtxRelease_v2' in found_functions}}
- global __cuDevicePrimaryCtxRelease_v2
- __cuDevicePrimaryCtxRelease_v2 = windll.GetProcAddress(handle, 'cuDevicePrimaryCtxRelease_v2')
- {{endif}}
- {{if 'cuDevicePrimaryCtxSetFlags_v2' in found_functions}}
- global __cuDevicePrimaryCtxSetFlags_v2
- __cuDevicePrimaryCtxSetFlags_v2 = windll.GetProcAddress(handle, 'cuDevicePrimaryCtxSetFlags_v2')
- {{endif}}
- {{if 'cuDevicePrimaryCtxGetState' in found_functions}}
- global __cuDevicePrimaryCtxGetState
- __cuDevicePrimaryCtxGetState = windll.GetProcAddress(handle, 'cuDevicePrimaryCtxGetState')
- {{endif}}
- {{if 'cuDevicePrimaryCtxReset_v2' in found_functions}}
- global __cuDevicePrimaryCtxReset_v2
- __cuDevicePrimaryCtxReset_v2 = windll.GetProcAddress(handle, 'cuDevicePrimaryCtxReset_v2')
- {{endif}}
- {{if 'cuCtxCreate_v4' in found_functions}}
- global __cuCtxCreate_v4
- __cuCtxCreate_v4 = windll.GetProcAddress(handle, 'cuCtxCreate_v4')
- {{endif}}
- {{if 'cuCtxDestroy_v2' in found_functions}}
- global __cuCtxDestroy_v2
- __cuCtxDestroy_v2 = windll.GetProcAddress(handle, 'cuCtxDestroy_v2')
- {{endif}}
- {{if 'cuCtxPushCurrent_v2' in found_functions}}
- global __cuCtxPushCurrent_v2
- __cuCtxPushCurrent_v2 = windll.GetProcAddress(handle, 'cuCtxPushCurrent_v2')
- {{endif}}
- {{if 'cuCtxPopCurrent_v2' in found_functions}}
- global __cuCtxPopCurrent_v2
- __cuCtxPopCurrent_v2 = windll.GetProcAddress(handle, 'cuCtxPopCurrent_v2')
- {{endif}}
- {{if 'cuCtxSetCurrent' in found_functions}}
- global __cuCtxSetCurrent
- __cuCtxSetCurrent = windll.GetProcAddress(handle, 'cuCtxSetCurrent')
- {{endif}}
- {{if 'cuCtxGetCurrent' in found_functions}}
- global __cuCtxGetCurrent
- __cuCtxGetCurrent = windll.GetProcAddress(handle, 'cuCtxGetCurrent')
- {{endif}}
- {{if 'cuCtxGetDevice' in found_functions}}
- global __cuCtxGetDevice
- __cuCtxGetDevice = windll.GetProcAddress(handle, 'cuCtxGetDevice')
- {{endif}}
- {{if 'cuCtxGetDevice_v2' in found_functions}}
- global __cuCtxGetDevice_v2
- __cuCtxGetDevice_v2 = windll.GetProcAddress(handle, 'cuCtxGetDevice_v2')
- {{endif}}
- {{if 'cuCtxGetFlags' in found_functions}}
- global __cuCtxGetFlags
- __cuCtxGetFlags = windll.GetProcAddress(handle, 'cuCtxGetFlags')
- {{endif}}
- {{if 'cuCtxSetFlags' in found_functions}}
- global __cuCtxSetFlags
- __cuCtxSetFlags = windll.GetProcAddress(handle, 'cuCtxSetFlags')
- {{endif}}
- {{if 'cuCtxGetId' in found_functions}}
- global __cuCtxGetId
- __cuCtxGetId = windll.GetProcAddress(handle, 'cuCtxGetId')
- {{endif}}
- {{if 'cuCtxSynchronize' in found_functions}}
- global __cuCtxSynchronize
- __cuCtxSynchronize = windll.GetProcAddress(handle, 'cuCtxSynchronize')
- {{endif}}
- {{if 'cuCtxSynchronize_v2' in found_functions}}
- global __cuCtxSynchronize_v2
- __cuCtxSynchronize_v2 = windll.GetProcAddress(handle, 'cuCtxSynchronize_v2')
- {{endif}}
- {{if 'cuCtxSetLimit' in found_functions}}
- global __cuCtxSetLimit
- __cuCtxSetLimit = windll.GetProcAddress(handle, 'cuCtxSetLimit')
- {{endif}}
- {{if 'cuCtxGetLimit' in found_functions}}
- global __cuCtxGetLimit
- __cuCtxGetLimit = windll.GetProcAddress(handle, 'cuCtxGetLimit')
- {{endif}}
- {{if 'cuCtxGetCacheConfig' in found_functions}}
- global __cuCtxGetCacheConfig
- __cuCtxGetCacheConfig = windll.GetProcAddress(handle, 'cuCtxGetCacheConfig')
- {{endif}}
- {{if 'cuCtxSetCacheConfig' in found_functions}}
- global __cuCtxSetCacheConfig
- __cuCtxSetCacheConfig = windll.GetProcAddress(handle, 'cuCtxSetCacheConfig')
- {{endif}}
- {{if 'cuCtxGetApiVersion' in found_functions}}
- global __cuCtxGetApiVersion
- __cuCtxGetApiVersion = windll.GetProcAddress(handle, 'cuCtxGetApiVersion')
- {{endif}}
- {{if 'cuCtxGetStreamPriorityRange' in found_functions}}
- global __cuCtxGetStreamPriorityRange
- __cuCtxGetStreamPriorityRange = windll.GetProcAddress(handle, 'cuCtxGetStreamPriorityRange')
- {{endif}}
- {{if 'cuCtxResetPersistingL2Cache' in found_functions}}
- global __cuCtxResetPersistingL2Cache
- __cuCtxResetPersistingL2Cache = windll.GetProcAddress(handle, 'cuCtxResetPersistingL2Cache')
- {{endif}}
- {{if 'cuCtxGetExecAffinity' in found_functions}}
- global __cuCtxGetExecAffinity
- __cuCtxGetExecAffinity = windll.GetProcAddress(handle, 'cuCtxGetExecAffinity')
- {{endif}}
- {{if 'cuCtxRecordEvent' in found_functions}}
- global __cuCtxRecordEvent
- __cuCtxRecordEvent = windll.GetProcAddress(handle, 'cuCtxRecordEvent')
- {{endif}}
- {{if 'cuCtxWaitEvent' in found_functions}}
- global __cuCtxWaitEvent
- __cuCtxWaitEvent = windll.GetProcAddress(handle, 'cuCtxWaitEvent')
- {{endif}}
- {{if 'cuCtxAttach' in found_functions}}
- global __cuCtxAttach
- __cuCtxAttach = windll.GetProcAddress(handle, 'cuCtxAttach')
- {{endif}}
- {{if 'cuCtxDetach' in found_functions}}
- global __cuCtxDetach
- __cuCtxDetach = windll.GetProcAddress(handle, 'cuCtxDetach')
- {{endif}}
- {{if 'cuCtxGetSharedMemConfig' in found_functions}}
- global __cuCtxGetSharedMemConfig
- __cuCtxGetSharedMemConfig = windll.GetProcAddress(handle, 'cuCtxGetSharedMemConfig')
- {{endif}}
- {{if 'cuCtxSetSharedMemConfig' in found_functions}}
- global __cuCtxSetSharedMemConfig
- __cuCtxSetSharedMemConfig = windll.GetProcAddress(handle, 'cuCtxSetSharedMemConfig')
- {{endif}}
- {{if 'cuModuleLoad' in found_functions}}
- global __cuModuleLoad
- __cuModuleLoad = windll.GetProcAddress(handle, 'cuModuleLoad')
- {{endif}}
- {{if 'cuModuleLoadData' in found_functions}}
- global __cuModuleLoadData
- __cuModuleLoadData = windll.GetProcAddress(handle, 'cuModuleLoadData')
- {{endif}}
- {{if 'cuModuleLoadDataEx' in found_functions}}
- global __cuModuleLoadDataEx
- __cuModuleLoadDataEx = windll.GetProcAddress(handle, 'cuModuleLoadDataEx')
- {{endif}}
- {{if 'cuModuleLoadFatBinary' in found_functions}}
- global __cuModuleLoadFatBinary
- __cuModuleLoadFatBinary = windll.GetProcAddress(handle, 'cuModuleLoadFatBinary')
- {{endif}}
- {{if 'cuModuleUnload' in found_functions}}
- global __cuModuleUnload
- __cuModuleUnload = windll.GetProcAddress(handle, 'cuModuleUnload')
- {{endif}}
- {{if 'cuModuleGetLoadingMode' in found_functions}}
- global __cuModuleGetLoadingMode
- __cuModuleGetLoadingMode = windll.GetProcAddress(handle, 'cuModuleGetLoadingMode')
- {{endif}}
- {{if 'cuModuleGetFunction' in found_functions}}
- global __cuModuleGetFunction
- __cuModuleGetFunction = windll.GetProcAddress(handle, 'cuModuleGetFunction')
- {{endif}}
- {{if 'cuModuleGetFunctionCount' in found_functions}}
- global __cuModuleGetFunctionCount
- __cuModuleGetFunctionCount = windll.GetProcAddress(handle, 'cuModuleGetFunctionCount')
- {{endif}}
- {{if 'cuModuleEnumerateFunctions' in found_functions}}
- global __cuModuleEnumerateFunctions
- __cuModuleEnumerateFunctions = windll.GetProcAddress(handle, 'cuModuleEnumerateFunctions')
- {{endif}}
- {{if 'cuModuleGetGlobal_v2' in found_functions}}
- global __cuModuleGetGlobal_v2
- __cuModuleGetGlobal_v2 = windll.GetProcAddress(handle, 'cuModuleGetGlobal_v2')
- {{endif}}
- {{if 'cuLinkCreate_v2' in found_functions}}
- global __cuLinkCreate_v2
- __cuLinkCreate_v2 = windll.GetProcAddress(handle, 'cuLinkCreate_v2')
- {{endif}}
- {{if 'cuLinkAddData_v2' in found_functions}}
- global __cuLinkAddData_v2
- __cuLinkAddData_v2 = windll.GetProcAddress(handle, 'cuLinkAddData_v2')
- {{endif}}
- {{if 'cuLinkAddFile_v2' in found_functions}}
- global __cuLinkAddFile_v2
- __cuLinkAddFile_v2 = windll.GetProcAddress(handle, 'cuLinkAddFile_v2')
- {{endif}}
- {{if 'cuLinkComplete' in found_functions}}
- global __cuLinkComplete
- __cuLinkComplete = windll.GetProcAddress(handle, 'cuLinkComplete')
- {{endif}}
- {{if 'cuLinkDestroy' in found_functions}}
- global __cuLinkDestroy
- __cuLinkDestroy = windll.GetProcAddress(handle, 'cuLinkDestroy')
- {{endif}}
- {{if 'cuModuleGetTexRef' in found_functions}}
- global __cuModuleGetTexRef
- __cuModuleGetTexRef = windll.GetProcAddress(handle, 'cuModuleGetTexRef')
- {{endif}}
- {{if 'cuModuleGetSurfRef' in found_functions}}
- global __cuModuleGetSurfRef
- __cuModuleGetSurfRef = windll.GetProcAddress(handle, 'cuModuleGetSurfRef')
- {{endif}}
- {{if 'cuLibraryLoadData' in found_functions}}
- global __cuLibraryLoadData
- __cuLibraryLoadData = windll.GetProcAddress(handle, 'cuLibraryLoadData')
- {{endif}}
- {{if 'cuLibraryLoadFromFile' in found_functions}}
- global __cuLibraryLoadFromFile
- __cuLibraryLoadFromFile = windll.GetProcAddress(handle, 'cuLibraryLoadFromFile')
- {{endif}}
- {{if 'cuLibraryUnload' in found_functions}}
- global __cuLibraryUnload
- __cuLibraryUnload = windll.GetProcAddress(handle, 'cuLibraryUnload')
- {{endif}}
- {{if 'cuLibraryGetKernel' in found_functions}}
- global __cuLibraryGetKernel
- __cuLibraryGetKernel = windll.GetProcAddress(handle, 'cuLibraryGetKernel')
- {{endif}}
- {{if 'cuLibraryGetKernelCount' in found_functions}}
- global __cuLibraryGetKernelCount
- __cuLibraryGetKernelCount = windll.GetProcAddress(handle, 'cuLibraryGetKernelCount')
- {{endif}}
- {{if 'cuLibraryEnumerateKernels' in found_functions}}
- global __cuLibraryEnumerateKernels
- __cuLibraryEnumerateKernels = windll.GetProcAddress(handle, 'cuLibraryEnumerateKernels')
- {{endif}}
- {{if 'cuLibraryGetModule' in found_functions}}
- global __cuLibraryGetModule
- __cuLibraryGetModule = windll.GetProcAddress(handle, 'cuLibraryGetModule')
- {{endif}}
- {{if 'cuKernelGetFunction' in found_functions}}
- global __cuKernelGetFunction
- __cuKernelGetFunction = windll.GetProcAddress(handle, 'cuKernelGetFunction')
- {{endif}}
- {{if 'cuKernelGetLibrary' in found_functions}}
- global __cuKernelGetLibrary
- __cuKernelGetLibrary = windll.GetProcAddress(handle, 'cuKernelGetLibrary')
- {{endif}}
- {{if 'cuLibraryGetGlobal' in found_functions}}
- global __cuLibraryGetGlobal
- __cuLibraryGetGlobal = windll.GetProcAddress(handle, 'cuLibraryGetGlobal')
- {{endif}}
- {{if 'cuLibraryGetManaged' in found_functions}}
- global __cuLibraryGetManaged
- __cuLibraryGetManaged = windll.GetProcAddress(handle, 'cuLibraryGetManaged')
- {{endif}}
- {{if 'cuLibraryGetUnifiedFunction' in found_functions}}
- global __cuLibraryGetUnifiedFunction
- __cuLibraryGetUnifiedFunction = windll.GetProcAddress(handle, 'cuLibraryGetUnifiedFunction')
- {{endif}}
- {{if 'cuKernelGetAttribute' in found_functions}}
- global __cuKernelGetAttribute
- __cuKernelGetAttribute = windll.GetProcAddress(handle, 'cuKernelGetAttribute')
- {{endif}}
- {{if 'cuKernelSetAttribute' in found_functions}}
- global __cuKernelSetAttribute
- __cuKernelSetAttribute = windll.GetProcAddress(handle, 'cuKernelSetAttribute')
- {{endif}}
- {{if 'cuKernelSetCacheConfig' in found_functions}}
- global __cuKernelSetCacheConfig
- __cuKernelSetCacheConfig = windll.GetProcAddress(handle, 'cuKernelSetCacheConfig')
- {{endif}}
- {{if 'cuKernelGetName' in found_functions}}
- global __cuKernelGetName
- __cuKernelGetName = windll.GetProcAddress(handle, 'cuKernelGetName')
- {{endif}}
- {{if 'cuKernelGetParamInfo' in found_functions}}
- global __cuKernelGetParamInfo
- __cuKernelGetParamInfo = windll.GetProcAddress(handle, 'cuKernelGetParamInfo')
- {{endif}}
- {{if 'cuMemGetInfo_v2' in found_functions}}
- global __cuMemGetInfo_v2
- __cuMemGetInfo_v2 = windll.GetProcAddress(handle, 'cuMemGetInfo_v2')
- {{endif}}
- {{if 'cuMemAlloc_v2' in found_functions}}
- global __cuMemAlloc_v2
- __cuMemAlloc_v2 = windll.GetProcAddress(handle, 'cuMemAlloc_v2')
- {{endif}}
- {{if 'cuMemAllocPitch_v2' in found_functions}}
- global __cuMemAllocPitch_v2
- __cuMemAllocPitch_v2 = windll.GetProcAddress(handle, 'cuMemAllocPitch_v2')
- {{endif}}
- {{if 'cuMemFree_v2' in found_functions}}
- global __cuMemFree_v2
- __cuMemFree_v2 = windll.GetProcAddress(handle, 'cuMemFree_v2')
- {{endif}}
- {{if 'cuMemGetAddressRange_v2' in found_functions}}
- global __cuMemGetAddressRange_v2
- __cuMemGetAddressRange_v2 = windll.GetProcAddress(handle, 'cuMemGetAddressRange_v2')
- {{endif}}
- {{if 'cuMemAllocHost_v2' in found_functions}}
- global __cuMemAllocHost_v2
- __cuMemAllocHost_v2 = windll.GetProcAddress(handle, 'cuMemAllocHost_v2')
- {{endif}}
- {{if 'cuMemFreeHost' in found_functions}}
- global __cuMemFreeHost
- __cuMemFreeHost = windll.GetProcAddress(handle, 'cuMemFreeHost')
- {{endif}}
- {{if 'cuMemHostAlloc' in found_functions}}
- global __cuMemHostAlloc
- __cuMemHostAlloc = windll.GetProcAddress(handle, 'cuMemHostAlloc')
- {{endif}}
- {{if 'cuMemHostGetDevicePointer_v2' in found_functions}}
- global __cuMemHostGetDevicePointer_v2
- __cuMemHostGetDevicePointer_v2 = windll.GetProcAddress(handle, 'cuMemHostGetDevicePointer_v2')
- {{endif}}
- {{if 'cuMemHostGetFlags' in found_functions}}
- global __cuMemHostGetFlags
- __cuMemHostGetFlags = windll.GetProcAddress(handle, 'cuMemHostGetFlags')
- {{endif}}
- {{if 'cuMemAllocManaged' in found_functions}}
- global __cuMemAllocManaged
- __cuMemAllocManaged = windll.GetProcAddress(handle, 'cuMemAllocManaged')
- {{endif}}
- {{if 'cuDeviceRegisterAsyncNotification' in found_functions}}
- global __cuDeviceRegisterAsyncNotification
- __cuDeviceRegisterAsyncNotification = windll.GetProcAddress(handle, 'cuDeviceRegisterAsyncNotification')
- {{endif}}
- {{if 'cuDeviceUnregisterAsyncNotification' in found_functions}}
- global __cuDeviceUnregisterAsyncNotification
- __cuDeviceUnregisterAsyncNotification = windll.GetProcAddress(handle, 'cuDeviceUnregisterAsyncNotification')
- {{endif}}
- {{if 'cuDeviceGetByPCIBusId' in found_functions}}
- global __cuDeviceGetByPCIBusId
- __cuDeviceGetByPCIBusId = windll.GetProcAddress(handle, 'cuDeviceGetByPCIBusId')
- {{endif}}
- {{if 'cuDeviceGetPCIBusId' in found_functions}}
- global __cuDeviceGetPCIBusId
- __cuDeviceGetPCIBusId = windll.GetProcAddress(handle, 'cuDeviceGetPCIBusId')
- {{endif}}
- {{if 'cuIpcGetEventHandle' in found_functions}}
- global __cuIpcGetEventHandle
- __cuIpcGetEventHandle = windll.GetProcAddress(handle, 'cuIpcGetEventHandle')
- {{endif}}
- {{if 'cuIpcOpenEventHandle' in found_functions}}
- global __cuIpcOpenEventHandle
- __cuIpcOpenEventHandle = windll.GetProcAddress(handle, 'cuIpcOpenEventHandle')
- {{endif}}
- {{if 'cuIpcGetMemHandle' in found_functions}}
- global __cuIpcGetMemHandle
- __cuIpcGetMemHandle = windll.GetProcAddress(handle, 'cuIpcGetMemHandle')
- {{endif}}
- {{if 'cuIpcOpenMemHandle_v2' in found_functions}}
- global __cuIpcOpenMemHandle_v2
- __cuIpcOpenMemHandle_v2 = windll.GetProcAddress(handle, 'cuIpcOpenMemHandle_v2')
- {{endif}}
- {{if 'cuIpcCloseMemHandle' in found_functions}}
- global __cuIpcCloseMemHandle
- __cuIpcCloseMemHandle = windll.GetProcAddress(handle, 'cuIpcCloseMemHandle')
- {{endif}}
- {{if 'cuMemHostRegister_v2' in found_functions}}
- global __cuMemHostRegister_v2
- __cuMemHostRegister_v2 = windll.GetProcAddress(handle, 'cuMemHostRegister_v2')
- {{endif}}
- {{if 'cuMemHostUnregister' in found_functions}}
- global __cuMemHostUnregister
- __cuMemHostUnregister = windll.GetProcAddress(handle, 'cuMemHostUnregister')
- {{endif}}
- {{if 'cuArrayCreate_v2' in found_functions}}
- global __cuArrayCreate_v2
- __cuArrayCreate_v2 = windll.GetProcAddress(handle, 'cuArrayCreate_v2')
- {{endif}}
- {{if 'cuArrayGetDescriptor_v2' in found_functions}}
- global __cuArrayGetDescriptor_v2
- __cuArrayGetDescriptor_v2 = windll.GetProcAddress(handle, 'cuArrayGetDescriptor_v2')
- {{endif}}
- {{if 'cuArrayGetSparseProperties' in found_functions}}
- global __cuArrayGetSparseProperties
- __cuArrayGetSparseProperties = windll.GetProcAddress(handle, 'cuArrayGetSparseProperties')
- {{endif}}
- {{if 'cuMipmappedArrayGetSparseProperties' in found_functions}}
- global __cuMipmappedArrayGetSparseProperties
- __cuMipmappedArrayGetSparseProperties = windll.GetProcAddress(handle, 'cuMipmappedArrayGetSparseProperties')
- {{endif}}
- {{if 'cuArrayGetMemoryRequirements' in found_functions}}
- global __cuArrayGetMemoryRequirements
- __cuArrayGetMemoryRequirements = windll.GetProcAddress(handle, 'cuArrayGetMemoryRequirements')
- {{endif}}
- {{if 'cuMipmappedArrayGetMemoryRequirements' in found_functions}}
- global __cuMipmappedArrayGetMemoryRequirements
- __cuMipmappedArrayGetMemoryRequirements = windll.GetProcAddress(handle, 'cuMipmappedArrayGetMemoryRequirements')
- {{endif}}
- {{if 'cuArrayGetPlane' in found_functions}}
- global __cuArrayGetPlane
- __cuArrayGetPlane = windll.GetProcAddress(handle, 'cuArrayGetPlane')
- {{endif}}
- {{if 'cuArrayDestroy' in found_functions}}
- global __cuArrayDestroy
- __cuArrayDestroy = windll.GetProcAddress(handle, 'cuArrayDestroy')
- {{endif}}
- {{if 'cuArray3DCreate_v2' in found_functions}}
- global __cuArray3DCreate_v2
- __cuArray3DCreate_v2 = windll.GetProcAddress(handle, 'cuArray3DCreate_v2')
- {{endif}}
- {{if 'cuArray3DGetDescriptor_v2' in found_functions}}
- global __cuArray3DGetDescriptor_v2
- __cuArray3DGetDescriptor_v2 = windll.GetProcAddress(handle, 'cuArray3DGetDescriptor_v2')
- {{endif}}
- {{if 'cuMipmappedArrayCreate' in found_functions}}
- global __cuMipmappedArrayCreate
- __cuMipmappedArrayCreate = windll.GetProcAddress(handle, 'cuMipmappedArrayCreate')
- {{endif}}
- {{if 'cuMipmappedArrayGetLevel' in found_functions}}
- global __cuMipmappedArrayGetLevel
- __cuMipmappedArrayGetLevel = windll.GetProcAddress(handle, 'cuMipmappedArrayGetLevel')
- {{endif}}
- {{if 'cuMipmappedArrayDestroy' in found_functions}}
- global __cuMipmappedArrayDestroy
- __cuMipmappedArrayDestroy = windll.GetProcAddress(handle, 'cuMipmappedArrayDestroy')
- {{endif}}
- {{if 'cuMemGetHandleForAddressRange' in found_functions}}
- global __cuMemGetHandleForAddressRange
- __cuMemGetHandleForAddressRange = windll.GetProcAddress(handle, 'cuMemGetHandleForAddressRange')
- {{endif}}
- {{if 'cuMemAddressReserve' in found_functions}}
- global __cuMemAddressReserve
- __cuMemAddressReserve = windll.GetProcAddress(handle, 'cuMemAddressReserve')
- {{endif}}
- {{if 'cuMemAddressFree' in found_functions}}
- global __cuMemAddressFree
- __cuMemAddressFree = windll.GetProcAddress(handle, 'cuMemAddressFree')
- {{endif}}
- {{if 'cuMemCreate' in found_functions}}
- global __cuMemCreate
- __cuMemCreate = windll.GetProcAddress(handle, 'cuMemCreate')
- {{endif}}
- {{if 'cuMemRelease' in found_functions}}
- global __cuMemRelease
- __cuMemRelease = windll.GetProcAddress(handle, 'cuMemRelease')
- {{endif}}
- {{if 'cuMemMap' in found_functions}}
- global __cuMemMap
- __cuMemMap = windll.GetProcAddress(handle, 'cuMemMap')
- {{endif}}
- {{if 'cuMemUnmap' in found_functions}}
- global __cuMemUnmap
- __cuMemUnmap = windll.GetProcAddress(handle, 'cuMemUnmap')
- {{endif}}
- {{if 'cuMemSetAccess' in found_functions}}
- global __cuMemSetAccess
- __cuMemSetAccess = windll.GetProcAddress(handle, 'cuMemSetAccess')
- {{endif}}
- {{if 'cuMemGetAccess' in found_functions}}
- global __cuMemGetAccess
- __cuMemGetAccess = windll.GetProcAddress(handle, 'cuMemGetAccess')
- {{endif}}
- {{if 'cuMemExportToShareableHandle' in found_functions}}
- global __cuMemExportToShareableHandle
- __cuMemExportToShareableHandle = windll.GetProcAddress(handle, 'cuMemExportToShareableHandle')
- {{endif}}
- {{if 'cuMemImportFromShareableHandle' in found_functions}}
- global __cuMemImportFromShareableHandle
- __cuMemImportFromShareableHandle = windll.GetProcAddress(handle, 'cuMemImportFromShareableHandle')
- {{endif}}
- {{if 'cuMemGetAllocationGranularity' in found_functions}}
- global __cuMemGetAllocationGranularity
- __cuMemGetAllocationGranularity = windll.GetProcAddress(handle, 'cuMemGetAllocationGranularity')
- {{endif}}
- {{if 'cuMemGetAllocationPropertiesFromHandle' in found_functions}}
- global __cuMemGetAllocationPropertiesFromHandle
- __cuMemGetAllocationPropertiesFromHandle = windll.GetProcAddress(handle, 'cuMemGetAllocationPropertiesFromHandle')
- {{endif}}
- {{if 'cuMemRetainAllocationHandle' in found_functions}}
- global __cuMemRetainAllocationHandle
- __cuMemRetainAllocationHandle = windll.GetProcAddress(handle, 'cuMemRetainAllocationHandle')
- {{endif}}
- {{if 'cuMemPoolTrimTo' in found_functions}}
- global __cuMemPoolTrimTo
- __cuMemPoolTrimTo = windll.GetProcAddress(handle, 'cuMemPoolTrimTo')
- {{endif}}
- {{if 'cuMemPoolSetAttribute' in found_functions}}
- global __cuMemPoolSetAttribute
- __cuMemPoolSetAttribute = windll.GetProcAddress(handle, 'cuMemPoolSetAttribute')
- {{endif}}
- {{if 'cuMemPoolGetAttribute' in found_functions}}
- global __cuMemPoolGetAttribute
- __cuMemPoolGetAttribute = windll.GetProcAddress(handle, 'cuMemPoolGetAttribute')
- {{endif}}
- {{if 'cuMemPoolSetAccess' in found_functions}}
- global __cuMemPoolSetAccess
- __cuMemPoolSetAccess = windll.GetProcAddress(handle, 'cuMemPoolSetAccess')
- {{endif}}
- {{if 'cuMemPoolGetAccess' in found_functions}}
- global __cuMemPoolGetAccess
- __cuMemPoolGetAccess = windll.GetProcAddress(handle, 'cuMemPoolGetAccess')
- {{endif}}
- {{if 'cuMemPoolCreate' in found_functions}}
- global __cuMemPoolCreate
- __cuMemPoolCreate = windll.GetProcAddress(handle, 'cuMemPoolCreate')
- {{endif}}
- {{if 'cuMemPoolDestroy' in found_functions}}
- global __cuMemPoolDestroy
- __cuMemPoolDestroy = windll.GetProcAddress(handle, 'cuMemPoolDestroy')
- {{endif}}
- {{if 'cuMemGetDefaultMemPool' in found_functions}}
- global __cuMemGetDefaultMemPool
- __cuMemGetDefaultMemPool = windll.GetProcAddress(handle, 'cuMemGetDefaultMemPool')
- {{endif}}
- {{if 'cuMemGetMemPool' in found_functions}}
- global __cuMemGetMemPool
- __cuMemGetMemPool = windll.GetProcAddress(handle, 'cuMemGetMemPool')
- {{endif}}
- {{if 'cuMemSetMemPool' in found_functions}}
- global __cuMemSetMemPool
- __cuMemSetMemPool = windll.GetProcAddress(handle, 'cuMemSetMemPool')
- {{endif}}
- {{if 'cuMemPoolExportToShareableHandle' in found_functions}}
- global __cuMemPoolExportToShareableHandle
- __cuMemPoolExportToShareableHandle = windll.GetProcAddress(handle, 'cuMemPoolExportToShareableHandle')
- {{endif}}
- {{if 'cuMemPoolImportFromShareableHandle' in found_functions}}
- global __cuMemPoolImportFromShareableHandle
- __cuMemPoolImportFromShareableHandle = windll.GetProcAddress(handle, 'cuMemPoolImportFromShareableHandle')
- {{endif}}
- {{if 'cuMemPoolExportPointer' in found_functions}}
- global __cuMemPoolExportPointer
- __cuMemPoolExportPointer = windll.GetProcAddress(handle, 'cuMemPoolExportPointer')
- {{endif}}
- {{if 'cuMemPoolImportPointer' in found_functions}}
- global __cuMemPoolImportPointer
- __cuMemPoolImportPointer = windll.GetProcAddress(handle, 'cuMemPoolImportPointer')
- {{endif}}
- {{if 'cuMulticastCreate' in found_functions}}
- global __cuMulticastCreate
- __cuMulticastCreate = windll.GetProcAddress(handle, 'cuMulticastCreate')
- {{endif}}
- {{if 'cuMulticastAddDevice' in found_functions}}
- global __cuMulticastAddDevice
- __cuMulticastAddDevice = windll.GetProcAddress(handle, 'cuMulticastAddDevice')
- {{endif}}
- {{if 'cuMulticastBindMem' in found_functions}}
- global __cuMulticastBindMem
- __cuMulticastBindMem = windll.GetProcAddress(handle, 'cuMulticastBindMem')
- {{endif}}
- {{if 'cuMulticastBindAddr' in found_functions}}
- global __cuMulticastBindAddr
- __cuMulticastBindAddr = windll.GetProcAddress(handle, 'cuMulticastBindAddr')
- {{endif}}
- {{if 'cuMulticastUnbind' in found_functions}}
- global __cuMulticastUnbind
- __cuMulticastUnbind = windll.GetProcAddress(handle, 'cuMulticastUnbind')
- {{endif}}
- {{if 'cuMulticastGetGranularity' in found_functions}}
- global __cuMulticastGetGranularity
- __cuMulticastGetGranularity = windll.GetProcAddress(handle, 'cuMulticastGetGranularity')
- {{endif}}
- {{if 'cuPointerGetAttribute' in found_functions}}
- global __cuPointerGetAttribute
- __cuPointerGetAttribute = windll.GetProcAddress(handle, 'cuPointerGetAttribute')
- {{endif}}
- {{if 'cuMemAdvise_v2' in found_functions}}
- global __cuMemAdvise_v2
- __cuMemAdvise_v2 = windll.GetProcAddress(handle, 'cuMemAdvise_v2')
- {{endif}}
- {{if 'cuMemRangeGetAttribute' in found_functions}}
- global __cuMemRangeGetAttribute
- __cuMemRangeGetAttribute = windll.GetProcAddress(handle, 'cuMemRangeGetAttribute')
- {{endif}}
- {{if 'cuMemRangeGetAttributes' in found_functions}}
- global __cuMemRangeGetAttributes
- __cuMemRangeGetAttributes = windll.GetProcAddress(handle, 'cuMemRangeGetAttributes')
- {{endif}}
- {{if 'cuPointerSetAttribute' in found_functions}}
- global __cuPointerSetAttribute
- __cuPointerSetAttribute = windll.GetProcAddress(handle, 'cuPointerSetAttribute')
- {{endif}}
- {{if 'cuPointerGetAttributes' in found_functions}}
- global __cuPointerGetAttributes
- __cuPointerGetAttributes = windll.GetProcAddress(handle, 'cuPointerGetAttributes')
- {{endif}}
- {{if 'cuStreamCreate' in found_functions}}
- global __cuStreamCreate
- __cuStreamCreate = windll.GetProcAddress(handle, 'cuStreamCreate')
- {{endif}}
- {{if 'cuStreamCreateWithPriority' in found_functions}}
- global __cuStreamCreateWithPriority
- __cuStreamCreateWithPriority = windll.GetProcAddress(handle, 'cuStreamCreateWithPriority')
- {{endif}}
- {{if 'cuThreadExchangeStreamCaptureMode' in found_functions}}
- global __cuThreadExchangeStreamCaptureMode
- __cuThreadExchangeStreamCaptureMode = windll.GetProcAddress(handle, 'cuThreadExchangeStreamCaptureMode')
- {{endif}}
- {{if 'cuStreamDestroy_v2' in found_functions}}
- global __cuStreamDestroy_v2
- __cuStreamDestroy_v2 = windll.GetProcAddress(handle, 'cuStreamDestroy_v2')
- {{endif}}
- {{if 'cuEventCreate' in found_functions}}
- global __cuEventCreate
- __cuEventCreate = windll.GetProcAddress(handle, 'cuEventCreate')
- {{endif}}
- {{if 'cuEventQuery' in found_functions}}
- global __cuEventQuery
- __cuEventQuery = windll.GetProcAddress(handle, 'cuEventQuery')
- {{endif}}
- {{if 'cuEventSynchronize' in found_functions}}
- global __cuEventSynchronize
- __cuEventSynchronize = windll.GetProcAddress(handle, 'cuEventSynchronize')
- {{endif}}
- {{if 'cuEventDestroy_v2' in found_functions}}
- global __cuEventDestroy_v2
- __cuEventDestroy_v2 = windll.GetProcAddress(handle, 'cuEventDestroy_v2')
- {{endif}}
- {{if 'cuEventElapsedTime_v2' in found_functions}}
- global __cuEventElapsedTime_v2
- __cuEventElapsedTime_v2 = windll.GetProcAddress(handle, 'cuEventElapsedTime_v2')
- {{endif}}
- {{if 'cuImportExternalMemory' in found_functions}}
- global __cuImportExternalMemory
- __cuImportExternalMemory = windll.GetProcAddress(handle, 'cuImportExternalMemory')
- {{endif}}
- {{if 'cuExternalMemoryGetMappedBuffer' in found_functions}}
- global __cuExternalMemoryGetMappedBuffer
- __cuExternalMemoryGetMappedBuffer = windll.GetProcAddress(handle, 'cuExternalMemoryGetMappedBuffer')
- {{endif}}
- {{if 'cuExternalMemoryGetMappedMipmappedArray' in found_functions}}
- global __cuExternalMemoryGetMappedMipmappedArray
- __cuExternalMemoryGetMappedMipmappedArray = windll.GetProcAddress(handle, 'cuExternalMemoryGetMappedMipmappedArray')
- {{endif}}
- {{if 'cuDestroyExternalMemory' in found_functions}}
- global __cuDestroyExternalMemory
- __cuDestroyExternalMemory = windll.GetProcAddress(handle, 'cuDestroyExternalMemory')
- {{endif}}
- {{if 'cuImportExternalSemaphore' in found_functions}}
- global __cuImportExternalSemaphore
- __cuImportExternalSemaphore = windll.GetProcAddress(handle, 'cuImportExternalSemaphore')
- {{endif}}
- {{if 'cuDestroyExternalSemaphore' in found_functions}}
- global __cuDestroyExternalSemaphore
- __cuDestroyExternalSemaphore = windll.GetProcAddress(handle, 'cuDestroyExternalSemaphore')
- {{endif}}
- {{if 'cuFuncGetAttribute' in found_functions}}
- global __cuFuncGetAttribute
- __cuFuncGetAttribute = windll.GetProcAddress(handle, 'cuFuncGetAttribute')
- {{endif}}
- {{if 'cuFuncSetAttribute' in found_functions}}
- global __cuFuncSetAttribute
- __cuFuncSetAttribute = windll.GetProcAddress(handle, 'cuFuncSetAttribute')
- {{endif}}
- {{if 'cuFuncSetCacheConfig' in found_functions}}
- global __cuFuncSetCacheConfig
- __cuFuncSetCacheConfig = windll.GetProcAddress(handle, 'cuFuncSetCacheConfig')
- {{endif}}
- {{if 'cuFuncGetModule' in found_functions}}
- global __cuFuncGetModule
- __cuFuncGetModule = windll.GetProcAddress(handle, 'cuFuncGetModule')
- {{endif}}
- {{if 'cuFuncGetName' in found_functions}}
- global __cuFuncGetName
- __cuFuncGetName = windll.GetProcAddress(handle, 'cuFuncGetName')
- {{endif}}
- {{if 'cuFuncGetParamInfo' in found_functions}}
- global __cuFuncGetParamInfo
- __cuFuncGetParamInfo = windll.GetProcAddress(handle, 'cuFuncGetParamInfo')
- {{endif}}
- {{if 'cuFuncIsLoaded' in found_functions}}
- global __cuFuncIsLoaded
- __cuFuncIsLoaded = windll.GetProcAddress(handle, 'cuFuncIsLoaded')
- {{endif}}
- {{if 'cuFuncLoad' in found_functions}}
- global __cuFuncLoad
- __cuFuncLoad = windll.GetProcAddress(handle, 'cuFuncLoad')
- {{endif}}
- {{if 'cuLaunchCooperativeKernelMultiDevice' in found_functions}}
- global __cuLaunchCooperativeKernelMultiDevice
- __cuLaunchCooperativeKernelMultiDevice = windll.GetProcAddress(handle, 'cuLaunchCooperativeKernelMultiDevice')
- {{endif}}
- {{if 'cuFuncSetBlockShape' in found_functions}}
- global __cuFuncSetBlockShape
- __cuFuncSetBlockShape = windll.GetProcAddress(handle, 'cuFuncSetBlockShape')
- {{endif}}
- {{if 'cuFuncSetSharedSize' in found_functions}}
- global __cuFuncSetSharedSize
- __cuFuncSetSharedSize = windll.GetProcAddress(handle, 'cuFuncSetSharedSize')
- {{endif}}
- {{if 'cuParamSetSize' in found_functions}}
- global __cuParamSetSize
- __cuParamSetSize = windll.GetProcAddress(handle, 'cuParamSetSize')
- {{endif}}
- {{if 'cuParamSeti' in found_functions}}
- global __cuParamSeti
- __cuParamSeti = windll.GetProcAddress(handle, 'cuParamSeti')
- {{endif}}
- {{if 'cuParamSetf' in found_functions}}
- global __cuParamSetf
- __cuParamSetf = windll.GetProcAddress(handle, 'cuParamSetf')
- {{endif}}
- {{if 'cuParamSetv' in found_functions}}
- global __cuParamSetv
- __cuParamSetv = windll.GetProcAddress(handle, 'cuParamSetv')
- {{endif}}
- {{if 'cuLaunch' in found_functions}}
- global __cuLaunch
- __cuLaunch = windll.GetProcAddress(handle, 'cuLaunch')
- {{endif}}
- {{if 'cuLaunchGrid' in found_functions}}
- global __cuLaunchGrid
- __cuLaunchGrid = windll.GetProcAddress(handle, 'cuLaunchGrid')
- {{endif}}
- {{if 'cuLaunchGridAsync' in found_functions}}
- global __cuLaunchGridAsync
- __cuLaunchGridAsync = windll.GetProcAddress(handle, 'cuLaunchGridAsync')
- {{endif}}
- {{if 'cuParamSetTexRef' in found_functions}}
- global __cuParamSetTexRef
- __cuParamSetTexRef = windll.GetProcAddress(handle, 'cuParamSetTexRef')
- {{endif}}
- {{if 'cuFuncSetSharedMemConfig' in found_functions}}
- global __cuFuncSetSharedMemConfig
- __cuFuncSetSharedMemConfig = windll.GetProcAddress(handle, 'cuFuncSetSharedMemConfig')
- {{endif}}
- {{if 'cuGraphCreate' in found_functions}}
- global __cuGraphCreate
- __cuGraphCreate = windll.GetProcAddress(handle, 'cuGraphCreate')
- {{endif}}
- {{if 'cuGraphAddKernelNode_v2' in found_functions}}
- global __cuGraphAddKernelNode_v2
- __cuGraphAddKernelNode_v2 = windll.GetProcAddress(handle, 'cuGraphAddKernelNode_v2')
- {{endif}}
- {{if 'cuGraphKernelNodeGetParams_v2' in found_functions}}
- global __cuGraphKernelNodeGetParams_v2
- __cuGraphKernelNodeGetParams_v2 = windll.GetProcAddress(handle, 'cuGraphKernelNodeGetParams_v2')
- {{endif}}
- {{if 'cuGraphKernelNodeSetParams_v2' in found_functions}}
- global __cuGraphKernelNodeSetParams_v2
- __cuGraphKernelNodeSetParams_v2 = windll.GetProcAddress(handle, 'cuGraphKernelNodeSetParams_v2')
- {{endif}}
- {{if 'cuGraphAddMemcpyNode' in found_functions}}
- global __cuGraphAddMemcpyNode
- __cuGraphAddMemcpyNode = windll.GetProcAddress(handle, 'cuGraphAddMemcpyNode')
- {{endif}}
- {{if 'cuGraphMemcpyNodeGetParams' in found_functions}}
- global __cuGraphMemcpyNodeGetParams
- __cuGraphMemcpyNodeGetParams = windll.GetProcAddress(handle, 'cuGraphMemcpyNodeGetParams')
- {{endif}}
- {{if 'cuGraphMemcpyNodeSetParams' in found_functions}}
- global __cuGraphMemcpyNodeSetParams
- __cuGraphMemcpyNodeSetParams = windll.GetProcAddress(handle, 'cuGraphMemcpyNodeSetParams')
- {{endif}}
- {{if 'cuGraphAddMemsetNode' in found_functions}}
- global __cuGraphAddMemsetNode
- __cuGraphAddMemsetNode = windll.GetProcAddress(handle, 'cuGraphAddMemsetNode')
- {{endif}}
- {{if 'cuGraphMemsetNodeGetParams' in found_functions}}
- global __cuGraphMemsetNodeGetParams
- __cuGraphMemsetNodeGetParams = windll.GetProcAddress(handle, 'cuGraphMemsetNodeGetParams')
- {{endif}}
- {{if 'cuGraphMemsetNodeSetParams' in found_functions}}
- global __cuGraphMemsetNodeSetParams
- __cuGraphMemsetNodeSetParams = windll.GetProcAddress(handle, 'cuGraphMemsetNodeSetParams')
- {{endif}}
- {{if 'cuGraphAddHostNode' in found_functions}}
- global __cuGraphAddHostNode
- __cuGraphAddHostNode = windll.GetProcAddress(handle, 'cuGraphAddHostNode')
- {{endif}}
- {{if 'cuGraphHostNodeGetParams' in found_functions}}
- global __cuGraphHostNodeGetParams
- __cuGraphHostNodeGetParams = windll.GetProcAddress(handle, 'cuGraphHostNodeGetParams')
- {{endif}}
- {{if 'cuGraphHostNodeSetParams' in found_functions}}
- global __cuGraphHostNodeSetParams
- __cuGraphHostNodeSetParams = windll.GetProcAddress(handle, 'cuGraphHostNodeSetParams')
- {{endif}}
- {{if 'cuGraphAddChildGraphNode' in found_functions}}
- global __cuGraphAddChildGraphNode
- __cuGraphAddChildGraphNode = windll.GetProcAddress(handle, 'cuGraphAddChildGraphNode')
- {{endif}}
- {{if 'cuGraphChildGraphNodeGetGraph' in found_functions}}
- global __cuGraphChildGraphNodeGetGraph
- __cuGraphChildGraphNodeGetGraph = windll.GetProcAddress(handle, 'cuGraphChildGraphNodeGetGraph')
- {{endif}}
- {{if 'cuGraphAddEmptyNode' in found_functions}}
- global __cuGraphAddEmptyNode
- __cuGraphAddEmptyNode = windll.GetProcAddress(handle, 'cuGraphAddEmptyNode')
- {{endif}}
- {{if 'cuGraphAddEventRecordNode' in found_functions}}
- global __cuGraphAddEventRecordNode
- __cuGraphAddEventRecordNode = windll.GetProcAddress(handle, 'cuGraphAddEventRecordNode')
- {{endif}}
- {{if 'cuGraphEventRecordNodeGetEvent' in found_functions}}
- global __cuGraphEventRecordNodeGetEvent
- __cuGraphEventRecordNodeGetEvent = windll.GetProcAddress(handle, 'cuGraphEventRecordNodeGetEvent')
- {{endif}}
- {{if 'cuGraphEventRecordNodeSetEvent' in found_functions}}
- global __cuGraphEventRecordNodeSetEvent
- __cuGraphEventRecordNodeSetEvent = windll.GetProcAddress(handle, 'cuGraphEventRecordNodeSetEvent')
- {{endif}}
- {{if 'cuGraphAddEventWaitNode' in found_functions}}
- global __cuGraphAddEventWaitNode
- __cuGraphAddEventWaitNode = windll.GetProcAddress(handle, 'cuGraphAddEventWaitNode')
- {{endif}}
- {{if 'cuGraphEventWaitNodeGetEvent' in found_functions}}
- global __cuGraphEventWaitNodeGetEvent
- __cuGraphEventWaitNodeGetEvent = windll.GetProcAddress(handle, 'cuGraphEventWaitNodeGetEvent')
- {{endif}}
- {{if 'cuGraphEventWaitNodeSetEvent' in found_functions}}
- global __cuGraphEventWaitNodeSetEvent
- __cuGraphEventWaitNodeSetEvent = windll.GetProcAddress(handle, 'cuGraphEventWaitNodeSetEvent')
- {{endif}}
- {{if 'cuGraphAddExternalSemaphoresSignalNode' in found_functions}}
- global __cuGraphAddExternalSemaphoresSignalNode
- __cuGraphAddExternalSemaphoresSignalNode = windll.GetProcAddress(handle, 'cuGraphAddExternalSemaphoresSignalNode')
- {{endif}}
- {{if 'cuGraphExternalSemaphoresSignalNodeGetParams' in found_functions}}
- global __cuGraphExternalSemaphoresSignalNodeGetParams
- __cuGraphExternalSemaphoresSignalNodeGetParams = windll.GetProcAddress(handle, 'cuGraphExternalSemaphoresSignalNodeGetParams')
- {{endif}}
- {{if 'cuGraphExternalSemaphoresSignalNodeSetParams' in found_functions}}
- global __cuGraphExternalSemaphoresSignalNodeSetParams
- __cuGraphExternalSemaphoresSignalNodeSetParams = windll.GetProcAddress(handle, 'cuGraphExternalSemaphoresSignalNodeSetParams')
- {{endif}}
- {{if 'cuGraphAddExternalSemaphoresWaitNode' in found_functions}}
- global __cuGraphAddExternalSemaphoresWaitNode
- __cuGraphAddExternalSemaphoresWaitNode = windll.GetProcAddress(handle, 'cuGraphAddExternalSemaphoresWaitNode')
- {{endif}}
- {{if 'cuGraphExternalSemaphoresWaitNodeGetParams' in found_functions}}
- global __cuGraphExternalSemaphoresWaitNodeGetParams
- __cuGraphExternalSemaphoresWaitNodeGetParams = windll.GetProcAddress(handle, 'cuGraphExternalSemaphoresWaitNodeGetParams')
- {{endif}}
- {{if 'cuGraphExternalSemaphoresWaitNodeSetParams' in found_functions}}
- global __cuGraphExternalSemaphoresWaitNodeSetParams
- __cuGraphExternalSemaphoresWaitNodeSetParams = windll.GetProcAddress(handle, 'cuGraphExternalSemaphoresWaitNodeSetParams')
- {{endif}}
- {{if 'cuGraphAddBatchMemOpNode' in found_functions}}
- global __cuGraphAddBatchMemOpNode
- __cuGraphAddBatchMemOpNode = windll.GetProcAddress(handle, 'cuGraphAddBatchMemOpNode')
- {{endif}}
- {{if 'cuGraphBatchMemOpNodeGetParams' in found_functions}}
- global __cuGraphBatchMemOpNodeGetParams
- __cuGraphBatchMemOpNodeGetParams = windll.GetProcAddress(handle, 'cuGraphBatchMemOpNodeGetParams')
- {{endif}}
- {{if 'cuGraphBatchMemOpNodeSetParams' in found_functions}}
- global __cuGraphBatchMemOpNodeSetParams
- __cuGraphBatchMemOpNodeSetParams = windll.GetProcAddress(handle, 'cuGraphBatchMemOpNodeSetParams')
- {{endif}}
- {{if 'cuGraphExecBatchMemOpNodeSetParams' in found_functions}}
- global __cuGraphExecBatchMemOpNodeSetParams
- __cuGraphExecBatchMemOpNodeSetParams = windll.GetProcAddress(handle, 'cuGraphExecBatchMemOpNodeSetParams')
- {{endif}}
- {{if 'cuGraphAddMemAllocNode' in found_functions}}
- global __cuGraphAddMemAllocNode
- __cuGraphAddMemAllocNode = windll.GetProcAddress(handle, 'cuGraphAddMemAllocNode')
- {{endif}}
- {{if 'cuGraphMemAllocNodeGetParams' in found_functions}}
- global __cuGraphMemAllocNodeGetParams
- __cuGraphMemAllocNodeGetParams = windll.GetProcAddress(handle, 'cuGraphMemAllocNodeGetParams')
- {{endif}}
- {{if 'cuGraphAddMemFreeNode' in found_functions}}
- global __cuGraphAddMemFreeNode
- __cuGraphAddMemFreeNode = windll.GetProcAddress(handle, 'cuGraphAddMemFreeNode')
- {{endif}}
- {{if 'cuGraphMemFreeNodeGetParams' in found_functions}}
- global __cuGraphMemFreeNodeGetParams
- __cuGraphMemFreeNodeGetParams = windll.GetProcAddress(handle, 'cuGraphMemFreeNodeGetParams')
- {{endif}}
- {{if 'cuDeviceGraphMemTrim' in found_functions}}
- global __cuDeviceGraphMemTrim
- __cuDeviceGraphMemTrim = windll.GetProcAddress(handle, 'cuDeviceGraphMemTrim')
- {{endif}}
- {{if 'cuDeviceGetGraphMemAttribute' in found_functions}}
- global __cuDeviceGetGraphMemAttribute
- __cuDeviceGetGraphMemAttribute = windll.GetProcAddress(handle, 'cuDeviceGetGraphMemAttribute')
- {{endif}}
- {{if 'cuDeviceSetGraphMemAttribute' in found_functions}}
- global __cuDeviceSetGraphMemAttribute
- __cuDeviceSetGraphMemAttribute = windll.GetProcAddress(handle, 'cuDeviceSetGraphMemAttribute')
- {{endif}}
- {{if 'cuGraphClone' in found_functions}}
- global __cuGraphClone
- __cuGraphClone = windll.GetProcAddress(handle, 'cuGraphClone')
- {{endif}}
- {{if 'cuGraphNodeFindInClone' in found_functions}}
- global __cuGraphNodeFindInClone
- __cuGraphNodeFindInClone = windll.GetProcAddress(handle, 'cuGraphNodeFindInClone')
- {{endif}}
- {{if 'cuGraphNodeGetType' in found_functions}}
- global __cuGraphNodeGetType
- __cuGraphNodeGetType = windll.GetProcAddress(handle, 'cuGraphNodeGetType')
- {{endif}}
- {{if 'cuGraphGetNodes' in found_functions}}
- global __cuGraphGetNodes
- __cuGraphGetNodes = windll.GetProcAddress(handle, 'cuGraphGetNodes')
- {{endif}}
- {{if 'cuGraphGetRootNodes' in found_functions}}
- global __cuGraphGetRootNodes
- __cuGraphGetRootNodes = windll.GetProcAddress(handle, 'cuGraphGetRootNodes')
- {{endif}}
- {{if 'cuGraphGetEdges_v2' in found_functions}}
- global __cuGraphGetEdges_v2
- __cuGraphGetEdges_v2 = windll.GetProcAddress(handle, 'cuGraphGetEdges_v2')
- {{endif}}
- {{if 'cuGraphNodeGetDependencies_v2' in found_functions}}
- global __cuGraphNodeGetDependencies_v2
- __cuGraphNodeGetDependencies_v2 = windll.GetProcAddress(handle, 'cuGraphNodeGetDependencies_v2')
- {{endif}}
- {{if 'cuGraphNodeGetDependentNodes_v2' in found_functions}}
- global __cuGraphNodeGetDependentNodes_v2
- __cuGraphNodeGetDependentNodes_v2 = windll.GetProcAddress(handle, 'cuGraphNodeGetDependentNodes_v2')
- {{endif}}
- {{if 'cuGraphAddDependencies_v2' in found_functions}}
- global __cuGraphAddDependencies_v2
- __cuGraphAddDependencies_v2 = windll.GetProcAddress(handle, 'cuGraphAddDependencies_v2')
- {{endif}}
- {{if 'cuGraphRemoveDependencies_v2' in found_functions}}
- global __cuGraphRemoveDependencies_v2
- __cuGraphRemoveDependencies_v2 = windll.GetProcAddress(handle, 'cuGraphRemoveDependencies_v2')
- {{endif}}
- {{if 'cuGraphDestroyNode' in found_functions}}
- global __cuGraphDestroyNode
- __cuGraphDestroyNode = windll.GetProcAddress(handle, 'cuGraphDestroyNode')
- {{endif}}
- {{if 'cuGraphInstantiateWithFlags' in found_functions}}
- global __cuGraphInstantiateWithFlags
- __cuGraphInstantiateWithFlags = windll.GetProcAddress(handle, 'cuGraphInstantiateWithFlags')
- {{endif}}
- {{if 'cuGraphExecGetFlags' in found_functions}}
- global __cuGraphExecGetFlags
- __cuGraphExecGetFlags = windll.GetProcAddress(handle, 'cuGraphExecGetFlags')
- {{endif}}
- {{if 'cuGraphExecKernelNodeSetParams_v2' in found_functions}}
- global __cuGraphExecKernelNodeSetParams_v2
- __cuGraphExecKernelNodeSetParams_v2 = windll.GetProcAddress(handle, 'cuGraphExecKernelNodeSetParams_v2')
- {{endif}}
- {{if 'cuGraphExecMemcpyNodeSetParams' in found_functions}}
- global __cuGraphExecMemcpyNodeSetParams
- __cuGraphExecMemcpyNodeSetParams = windll.GetProcAddress(handle, 'cuGraphExecMemcpyNodeSetParams')
- {{endif}}
- {{if 'cuGraphExecMemsetNodeSetParams' in found_functions}}
- global __cuGraphExecMemsetNodeSetParams
- __cuGraphExecMemsetNodeSetParams = windll.GetProcAddress(handle, 'cuGraphExecMemsetNodeSetParams')
- {{endif}}
- {{if 'cuGraphExecHostNodeSetParams' in found_functions}}
- global __cuGraphExecHostNodeSetParams
- __cuGraphExecHostNodeSetParams = windll.GetProcAddress(handle, 'cuGraphExecHostNodeSetParams')
- {{endif}}
- {{if 'cuGraphExecChildGraphNodeSetParams' in found_functions}}
- global __cuGraphExecChildGraphNodeSetParams
- __cuGraphExecChildGraphNodeSetParams = windll.GetProcAddress(handle, 'cuGraphExecChildGraphNodeSetParams')
- {{endif}}
- {{if 'cuGraphExecEventRecordNodeSetEvent' in found_functions}}
- global __cuGraphExecEventRecordNodeSetEvent
- __cuGraphExecEventRecordNodeSetEvent = windll.GetProcAddress(handle, 'cuGraphExecEventRecordNodeSetEvent')
- {{endif}}
- {{if 'cuGraphExecEventWaitNodeSetEvent' in found_functions}}
- global __cuGraphExecEventWaitNodeSetEvent
- __cuGraphExecEventWaitNodeSetEvent = windll.GetProcAddress(handle, 'cuGraphExecEventWaitNodeSetEvent')
- {{endif}}
- {{if 'cuGraphExecExternalSemaphoresSignalNodeSetParams' in found_functions}}
- global __cuGraphExecExternalSemaphoresSignalNodeSetParams
- __cuGraphExecExternalSemaphoresSignalNodeSetParams = windll.GetProcAddress(handle, 'cuGraphExecExternalSemaphoresSignalNodeSetParams')
- {{endif}}
- {{if 'cuGraphExecExternalSemaphoresWaitNodeSetParams' in found_functions}}
- global __cuGraphExecExternalSemaphoresWaitNodeSetParams
- __cuGraphExecExternalSemaphoresWaitNodeSetParams = windll.GetProcAddress(handle, 'cuGraphExecExternalSemaphoresWaitNodeSetParams')
- {{endif}}
- {{if 'cuGraphNodeSetEnabled' in found_functions}}
- global __cuGraphNodeSetEnabled
- __cuGraphNodeSetEnabled = windll.GetProcAddress(handle, 'cuGraphNodeSetEnabled')
- {{endif}}
- {{if 'cuGraphNodeGetEnabled' in found_functions}}
- global __cuGraphNodeGetEnabled
- __cuGraphNodeGetEnabled = windll.GetProcAddress(handle, 'cuGraphNodeGetEnabled')
- {{endif}}
- {{if 'cuGraphExecDestroy' in found_functions}}
- global __cuGraphExecDestroy
- __cuGraphExecDestroy = windll.GetProcAddress(handle, 'cuGraphExecDestroy')
- {{endif}}
- {{if 'cuGraphDestroy' in found_functions}}
- global __cuGraphDestroy
- __cuGraphDestroy = windll.GetProcAddress(handle, 'cuGraphDestroy')
- {{endif}}
- {{if 'cuGraphExecUpdate_v2' in found_functions}}
- global __cuGraphExecUpdate_v2
- __cuGraphExecUpdate_v2 = windll.GetProcAddress(handle, 'cuGraphExecUpdate_v2')
- {{endif}}
- {{if 'cuGraphKernelNodeCopyAttributes' in found_functions}}
- global __cuGraphKernelNodeCopyAttributes
- __cuGraphKernelNodeCopyAttributes = windll.GetProcAddress(handle, 'cuGraphKernelNodeCopyAttributes')
- {{endif}}
- {{if 'cuGraphKernelNodeGetAttribute' in found_functions}}
- global __cuGraphKernelNodeGetAttribute
- __cuGraphKernelNodeGetAttribute = windll.GetProcAddress(handle, 'cuGraphKernelNodeGetAttribute')
- {{endif}}
- {{if 'cuGraphKernelNodeSetAttribute' in found_functions}}
- global __cuGraphKernelNodeSetAttribute
- __cuGraphKernelNodeSetAttribute = windll.GetProcAddress(handle, 'cuGraphKernelNodeSetAttribute')
- {{endif}}
- {{if 'cuGraphDebugDotPrint' in found_functions}}
- global __cuGraphDebugDotPrint
- __cuGraphDebugDotPrint = windll.GetProcAddress(handle, 'cuGraphDebugDotPrint')
- {{endif}}
- {{if 'cuUserObjectCreate' in found_functions}}
- global __cuUserObjectCreate
- __cuUserObjectCreate = windll.GetProcAddress(handle, 'cuUserObjectCreate')
- {{endif}}
- {{if 'cuUserObjectRetain' in found_functions}}
- global __cuUserObjectRetain
- __cuUserObjectRetain = windll.GetProcAddress(handle, 'cuUserObjectRetain')
- {{endif}}
- {{if 'cuUserObjectRelease' in found_functions}}
- global __cuUserObjectRelease
- __cuUserObjectRelease = windll.GetProcAddress(handle, 'cuUserObjectRelease')
- {{endif}}
- {{if 'cuGraphRetainUserObject' in found_functions}}
- global __cuGraphRetainUserObject
- __cuGraphRetainUserObject = windll.GetProcAddress(handle, 'cuGraphRetainUserObject')
- {{endif}}
- {{if 'cuGraphReleaseUserObject' in found_functions}}
- global __cuGraphReleaseUserObject
- __cuGraphReleaseUserObject = windll.GetProcAddress(handle, 'cuGraphReleaseUserObject')
- {{endif}}
- {{if 'cuGraphAddNode_v2' in found_functions}}
- global __cuGraphAddNode_v2
- __cuGraphAddNode_v2 = windll.GetProcAddress(handle, 'cuGraphAddNode_v2')
- {{endif}}
- {{if 'cuGraphNodeSetParams' in found_functions}}
- global __cuGraphNodeSetParams
- __cuGraphNodeSetParams = windll.GetProcAddress(handle, 'cuGraphNodeSetParams')
- {{endif}}
- {{if 'cuGraphExecNodeSetParams' in found_functions}}
- global __cuGraphExecNodeSetParams
- __cuGraphExecNodeSetParams = windll.GetProcAddress(handle, 'cuGraphExecNodeSetParams')
- {{endif}}
- {{if 'cuGraphConditionalHandleCreate' in found_functions}}
- global __cuGraphConditionalHandleCreate
- __cuGraphConditionalHandleCreate = windll.GetProcAddress(handle, 'cuGraphConditionalHandleCreate')
- {{endif}}
- {{if 'cuOccupancyMaxActiveBlocksPerMultiprocessor' in found_functions}}
- global __cuOccupancyMaxActiveBlocksPerMultiprocessor
- __cuOccupancyMaxActiveBlocksPerMultiprocessor = windll.GetProcAddress(handle, 'cuOccupancyMaxActiveBlocksPerMultiprocessor')
- {{endif}}
- {{if 'cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags' in found_functions}}
- global __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags
- __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags = windll.GetProcAddress(handle, 'cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags')
- {{endif}}
- {{if 'cuOccupancyMaxPotentialBlockSize' in found_functions}}
- global __cuOccupancyMaxPotentialBlockSize
- __cuOccupancyMaxPotentialBlockSize = windll.GetProcAddress(handle, 'cuOccupancyMaxPotentialBlockSize')
- {{endif}}
- {{if 'cuOccupancyMaxPotentialBlockSizeWithFlags' in found_functions}}
- global __cuOccupancyMaxPotentialBlockSizeWithFlags
- __cuOccupancyMaxPotentialBlockSizeWithFlags = windll.GetProcAddress(handle, 'cuOccupancyMaxPotentialBlockSizeWithFlags')
- {{endif}}
- {{if 'cuOccupancyAvailableDynamicSMemPerBlock' in found_functions}}
- global __cuOccupancyAvailableDynamicSMemPerBlock
- __cuOccupancyAvailableDynamicSMemPerBlock = windll.GetProcAddress(handle, 'cuOccupancyAvailableDynamicSMemPerBlock')
- {{endif}}
- {{if 'cuOccupancyMaxPotentialClusterSize' in found_functions}}
- global __cuOccupancyMaxPotentialClusterSize
- __cuOccupancyMaxPotentialClusterSize = windll.GetProcAddress(handle, 'cuOccupancyMaxPotentialClusterSize')
- {{endif}}
- {{if 'cuOccupancyMaxActiveClusters' in found_functions}}
- global __cuOccupancyMaxActiveClusters
- __cuOccupancyMaxActiveClusters = windll.GetProcAddress(handle, 'cuOccupancyMaxActiveClusters')
- {{endif}}
- {{if 'cuTexRefSetArray' in found_functions}}
- global __cuTexRefSetArray
- __cuTexRefSetArray = windll.GetProcAddress(handle, 'cuTexRefSetArray')
- {{endif}}
- {{if 'cuTexRefSetMipmappedArray' in found_functions}}
- global __cuTexRefSetMipmappedArray
- __cuTexRefSetMipmappedArray = windll.GetProcAddress(handle, 'cuTexRefSetMipmappedArray')
- {{endif}}
- {{if 'cuTexRefSetAddress_v2' in found_functions}}
- global __cuTexRefSetAddress_v2
- __cuTexRefSetAddress_v2 = windll.GetProcAddress(handle, 'cuTexRefSetAddress_v2')
- {{endif}}
- {{if 'cuTexRefSetAddress2D_v3' in found_functions}}
- global __cuTexRefSetAddress2D_v3
- __cuTexRefSetAddress2D_v3 = windll.GetProcAddress(handle, 'cuTexRefSetAddress2D_v3')
- {{endif}}
- {{if 'cuTexRefSetFormat' in found_functions}}
- global __cuTexRefSetFormat
- __cuTexRefSetFormat = windll.GetProcAddress(handle, 'cuTexRefSetFormat')
- {{endif}}
- {{if 'cuTexRefSetAddressMode' in found_functions}}
- global __cuTexRefSetAddressMode
- __cuTexRefSetAddressMode = windll.GetProcAddress(handle, 'cuTexRefSetAddressMode')
- {{endif}}
- {{if 'cuTexRefSetFilterMode' in found_functions}}
- global __cuTexRefSetFilterMode
- __cuTexRefSetFilterMode = windll.GetProcAddress(handle, 'cuTexRefSetFilterMode')
- {{endif}}
- {{if 'cuTexRefSetMipmapFilterMode' in found_functions}}
- global __cuTexRefSetMipmapFilterMode
- __cuTexRefSetMipmapFilterMode = windll.GetProcAddress(handle, 'cuTexRefSetMipmapFilterMode')
- {{endif}}
- {{if 'cuTexRefSetMipmapLevelBias' in found_functions}}
- global __cuTexRefSetMipmapLevelBias
- __cuTexRefSetMipmapLevelBias = windll.GetProcAddress(handle, 'cuTexRefSetMipmapLevelBias')
- {{endif}}
- {{if 'cuTexRefSetMipmapLevelClamp' in found_functions}}
- global __cuTexRefSetMipmapLevelClamp
- __cuTexRefSetMipmapLevelClamp = windll.GetProcAddress(handle, 'cuTexRefSetMipmapLevelClamp')
- {{endif}}
- {{if 'cuTexRefSetMaxAnisotropy' in found_functions}}
- global __cuTexRefSetMaxAnisotropy
- __cuTexRefSetMaxAnisotropy = windll.GetProcAddress(handle, 'cuTexRefSetMaxAnisotropy')
- {{endif}}
- {{if 'cuTexRefSetBorderColor' in found_functions}}
- global __cuTexRefSetBorderColor
- __cuTexRefSetBorderColor = windll.GetProcAddress(handle, 'cuTexRefSetBorderColor')
- {{endif}}
- {{if 'cuTexRefSetFlags' in found_functions}}
- global __cuTexRefSetFlags
- __cuTexRefSetFlags = windll.GetProcAddress(handle, 'cuTexRefSetFlags')
- {{endif}}
- {{if 'cuTexRefGetAddress_v2' in found_functions}}
- global __cuTexRefGetAddress_v2
- __cuTexRefGetAddress_v2 = windll.GetProcAddress(handle, 'cuTexRefGetAddress_v2')
- {{endif}}
- {{if 'cuTexRefGetArray' in found_functions}}
- global __cuTexRefGetArray
- __cuTexRefGetArray = windll.GetProcAddress(handle, 'cuTexRefGetArray')
- {{endif}}
- {{if 'cuTexRefGetMipmappedArray' in found_functions}}
- global __cuTexRefGetMipmappedArray
- __cuTexRefGetMipmappedArray = windll.GetProcAddress(handle, 'cuTexRefGetMipmappedArray')
- {{endif}}
- {{if 'cuTexRefGetAddressMode' in found_functions}}
- global __cuTexRefGetAddressMode
- __cuTexRefGetAddressMode = windll.GetProcAddress(handle, 'cuTexRefGetAddressMode')
- {{endif}}
- {{if 'cuTexRefGetFilterMode' in found_functions}}
- global __cuTexRefGetFilterMode
- __cuTexRefGetFilterMode = windll.GetProcAddress(handle, 'cuTexRefGetFilterMode')
- {{endif}}
- {{if 'cuTexRefGetFormat' in found_functions}}
- global __cuTexRefGetFormat
- __cuTexRefGetFormat = windll.GetProcAddress(handle, 'cuTexRefGetFormat')
- {{endif}}
- {{if 'cuTexRefGetMipmapFilterMode' in found_functions}}
- global __cuTexRefGetMipmapFilterMode
- __cuTexRefGetMipmapFilterMode = windll.GetProcAddress(handle, 'cuTexRefGetMipmapFilterMode')
- {{endif}}
- {{if 'cuTexRefGetMipmapLevelBias' in found_functions}}
- global __cuTexRefGetMipmapLevelBias
- __cuTexRefGetMipmapLevelBias = windll.GetProcAddress(handle, 'cuTexRefGetMipmapLevelBias')
- {{endif}}
- {{if 'cuTexRefGetMipmapLevelClamp' in found_functions}}
- global __cuTexRefGetMipmapLevelClamp
- __cuTexRefGetMipmapLevelClamp = windll.GetProcAddress(handle, 'cuTexRefGetMipmapLevelClamp')
- {{endif}}
- {{if 'cuTexRefGetMaxAnisotropy' in found_functions}}
- global __cuTexRefGetMaxAnisotropy
- __cuTexRefGetMaxAnisotropy = windll.GetProcAddress(handle, 'cuTexRefGetMaxAnisotropy')
- {{endif}}
- {{if 'cuTexRefGetBorderColor' in found_functions}}
- global __cuTexRefGetBorderColor
- __cuTexRefGetBorderColor = windll.GetProcAddress(handle, 'cuTexRefGetBorderColor')
- {{endif}}
- {{if 'cuTexRefGetFlags' in found_functions}}
- global __cuTexRefGetFlags
- __cuTexRefGetFlags = windll.GetProcAddress(handle, 'cuTexRefGetFlags')
- {{endif}}
- {{if 'cuTexRefCreate' in found_functions}}
- global __cuTexRefCreate
- __cuTexRefCreate = windll.GetProcAddress(handle, 'cuTexRefCreate')
- {{endif}}
- {{if 'cuTexRefDestroy' in found_functions}}
- global __cuTexRefDestroy
- __cuTexRefDestroy = windll.GetProcAddress(handle, 'cuTexRefDestroy')
- {{endif}}
- {{if 'cuSurfRefSetArray' in found_functions}}
- global __cuSurfRefSetArray
- __cuSurfRefSetArray = windll.GetProcAddress(handle, 'cuSurfRefSetArray')
- {{endif}}
- {{if 'cuSurfRefGetArray' in found_functions}}
- global __cuSurfRefGetArray
- __cuSurfRefGetArray = windll.GetProcAddress(handle, 'cuSurfRefGetArray')
- {{endif}}
- {{if 'cuTexObjectCreate' in found_functions}}
- global __cuTexObjectCreate
- __cuTexObjectCreate = windll.GetProcAddress(handle, 'cuTexObjectCreate')
- {{endif}}
- {{if 'cuTexObjectDestroy' in found_functions}}
- global __cuTexObjectDestroy
- __cuTexObjectDestroy = windll.GetProcAddress(handle, 'cuTexObjectDestroy')
- {{endif}}
- {{if 'cuTexObjectGetResourceDesc' in found_functions}}
- global __cuTexObjectGetResourceDesc
- __cuTexObjectGetResourceDesc = windll.GetProcAddress(handle, 'cuTexObjectGetResourceDesc')
- {{endif}}
- {{if 'cuTexObjectGetTextureDesc' in found_functions}}
- global __cuTexObjectGetTextureDesc
- __cuTexObjectGetTextureDesc = windll.GetProcAddress(handle, 'cuTexObjectGetTextureDesc')
- {{endif}}
- {{if 'cuTexObjectGetResourceViewDesc' in found_functions}}
- global __cuTexObjectGetResourceViewDesc
- __cuTexObjectGetResourceViewDesc = windll.GetProcAddress(handle, 'cuTexObjectGetResourceViewDesc')
- {{endif}}
- {{if 'cuSurfObjectCreate' in found_functions}}
- global __cuSurfObjectCreate
- __cuSurfObjectCreate = windll.GetProcAddress(handle, 'cuSurfObjectCreate')
- {{endif}}
- {{if 'cuSurfObjectDestroy' in found_functions}}
- global __cuSurfObjectDestroy
- __cuSurfObjectDestroy = windll.GetProcAddress(handle, 'cuSurfObjectDestroy')
- {{endif}}
- {{if 'cuSurfObjectGetResourceDesc' in found_functions}}
- global __cuSurfObjectGetResourceDesc
- __cuSurfObjectGetResourceDesc = windll.GetProcAddress(handle, 'cuSurfObjectGetResourceDesc')
- {{endif}}
- {{if 'cuTensorMapEncodeTiled' in found_functions}}
- global __cuTensorMapEncodeTiled
- __cuTensorMapEncodeTiled = windll.GetProcAddress(handle, 'cuTensorMapEncodeTiled')
- {{endif}}
- {{if 'cuTensorMapEncodeIm2col' in found_functions}}
- global __cuTensorMapEncodeIm2col
- __cuTensorMapEncodeIm2col = windll.GetProcAddress(handle, 'cuTensorMapEncodeIm2col')
- {{endif}}
- {{if 'cuTensorMapEncodeIm2colWide' in found_functions}}
- global __cuTensorMapEncodeIm2colWide
- __cuTensorMapEncodeIm2colWide = windll.GetProcAddress(handle, 'cuTensorMapEncodeIm2colWide')
- {{endif}}
- {{if 'cuTensorMapReplaceAddress' in found_functions}}
- global __cuTensorMapReplaceAddress
- __cuTensorMapReplaceAddress = windll.GetProcAddress(handle, 'cuTensorMapReplaceAddress')
- {{endif}}
- {{if 'cuDeviceCanAccessPeer' in found_functions}}
- global __cuDeviceCanAccessPeer
- __cuDeviceCanAccessPeer = windll.GetProcAddress(handle, 'cuDeviceCanAccessPeer')
- {{endif}}
- {{if 'cuCtxEnablePeerAccess' in found_functions}}
- global __cuCtxEnablePeerAccess
- __cuCtxEnablePeerAccess = windll.GetProcAddress(handle, 'cuCtxEnablePeerAccess')
- {{endif}}
- {{if 'cuCtxDisablePeerAccess' in found_functions}}
- global __cuCtxDisablePeerAccess
- __cuCtxDisablePeerAccess = windll.GetProcAddress(handle, 'cuCtxDisablePeerAccess')
- {{endif}}
- {{if 'cuDeviceGetP2PAttribute' in found_functions}}
- global __cuDeviceGetP2PAttribute
- __cuDeviceGetP2PAttribute = windll.GetProcAddress(handle, 'cuDeviceGetP2PAttribute')
- {{endif}}
- {{if 'cuDeviceGetP2PAtomicCapabilities' in found_functions}}
- global __cuDeviceGetP2PAtomicCapabilities
- __cuDeviceGetP2PAtomicCapabilities = windll.GetProcAddress(handle, 'cuDeviceGetP2PAtomicCapabilities')
- {{endif}}
- {{if 'cuGraphicsUnregisterResource' in found_functions}}
- global __cuGraphicsUnregisterResource
- __cuGraphicsUnregisterResource = windll.GetProcAddress(handle, 'cuGraphicsUnregisterResource')
- {{endif}}
- {{if 'cuGraphicsSubResourceGetMappedArray' in found_functions}}
- global __cuGraphicsSubResourceGetMappedArray
- __cuGraphicsSubResourceGetMappedArray = windll.GetProcAddress(handle, 'cuGraphicsSubResourceGetMappedArray')
- {{endif}}
- {{if 'cuGraphicsResourceGetMappedMipmappedArray' in found_functions}}
- global __cuGraphicsResourceGetMappedMipmappedArray
- __cuGraphicsResourceGetMappedMipmappedArray = windll.GetProcAddress(handle, 'cuGraphicsResourceGetMappedMipmappedArray')
- {{endif}}
- {{if 'cuGraphicsResourceGetMappedPointer_v2' in found_functions}}
- global __cuGraphicsResourceGetMappedPointer_v2
- __cuGraphicsResourceGetMappedPointer_v2 = windll.GetProcAddress(handle, 'cuGraphicsResourceGetMappedPointer_v2')
- {{endif}}
- {{if 'cuGraphicsResourceSetMapFlags_v2' in found_functions}}
- global __cuGraphicsResourceSetMapFlags_v2
- __cuGraphicsResourceSetMapFlags_v2 = windll.GetProcAddress(handle, 'cuGraphicsResourceSetMapFlags_v2')
- {{endif}}
- {{if 'cuGetProcAddress_v2' in found_functions}}
- global __cuGetProcAddress_v2
- __cuGetProcAddress_v2 = windll.GetProcAddress(handle, 'cuGetProcAddress_v2')
- {{endif}}
- {{if 'cuCoredumpGetAttribute' in found_functions}}
- global __cuCoredumpGetAttribute
- __cuCoredumpGetAttribute = windll.GetProcAddress(handle, 'cuCoredumpGetAttribute')
- {{endif}}
- {{if 'cuCoredumpGetAttributeGlobal' in found_functions}}
- global __cuCoredumpGetAttributeGlobal
- __cuCoredumpGetAttributeGlobal = windll.GetProcAddress(handle, 'cuCoredumpGetAttributeGlobal')
- {{endif}}
- {{if 'cuCoredumpSetAttribute' in found_functions}}
- global __cuCoredumpSetAttribute
- __cuCoredumpSetAttribute = windll.GetProcAddress(handle, 'cuCoredumpSetAttribute')
- {{endif}}
- {{if 'cuCoredumpSetAttributeGlobal' in found_functions}}
- global __cuCoredumpSetAttributeGlobal
- __cuCoredumpSetAttributeGlobal = windll.GetProcAddress(handle, 'cuCoredumpSetAttributeGlobal')
- {{endif}}
- {{if 'cuGetExportTable' in found_functions}}
- global __cuGetExportTable
- __cuGetExportTable = windll.GetProcAddress(handle, 'cuGetExportTable')
- {{endif}}
- {{if 'cuGreenCtxCreate' in found_functions}}
- global __cuGreenCtxCreate
- __cuGreenCtxCreate = windll.GetProcAddress(handle, 'cuGreenCtxCreate')
- {{endif}}
- {{if 'cuGreenCtxDestroy' in found_functions}}
- global __cuGreenCtxDestroy
- __cuGreenCtxDestroy = windll.GetProcAddress(handle, 'cuGreenCtxDestroy')
- {{endif}}
- {{if 'cuCtxFromGreenCtx' in found_functions}}
- global __cuCtxFromGreenCtx
- __cuCtxFromGreenCtx = windll.GetProcAddress(handle, 'cuCtxFromGreenCtx')
- {{endif}}
- {{if 'cuDeviceGetDevResource' in found_functions}}
- global __cuDeviceGetDevResource
- __cuDeviceGetDevResource = windll.GetProcAddress(handle, 'cuDeviceGetDevResource')
- {{endif}}
- {{if 'cuCtxGetDevResource' in found_functions}}
- global __cuCtxGetDevResource
- __cuCtxGetDevResource = windll.GetProcAddress(handle, 'cuCtxGetDevResource')
- {{endif}}
- {{if 'cuGreenCtxGetDevResource' in found_functions}}
- global __cuGreenCtxGetDevResource
- __cuGreenCtxGetDevResource = windll.GetProcAddress(handle, 'cuGreenCtxGetDevResource')
- {{endif}}
- {{if 'cuDevSmResourceSplitByCount' in found_functions}}
- global __cuDevSmResourceSplitByCount
- __cuDevSmResourceSplitByCount = windll.GetProcAddress(handle, 'cuDevSmResourceSplitByCount')
- {{endif}}
- {{if 'cuDevResourceGenerateDesc' in found_functions}}
- global __cuDevResourceGenerateDesc
- __cuDevResourceGenerateDesc = windll.GetProcAddress(handle, 'cuDevResourceGenerateDesc')
- {{endif}}
- {{if 'cuGreenCtxRecordEvent' in found_functions}}
- global __cuGreenCtxRecordEvent
- __cuGreenCtxRecordEvent = windll.GetProcAddress(handle, 'cuGreenCtxRecordEvent')
- {{endif}}
- {{if 'cuGreenCtxWaitEvent' in found_functions}}
- global __cuGreenCtxWaitEvent
- __cuGreenCtxWaitEvent = windll.GetProcAddress(handle, 'cuGreenCtxWaitEvent')
- {{endif}}
- {{if 'cuStreamGetGreenCtx' in found_functions}}
- global __cuStreamGetGreenCtx
- __cuStreamGetGreenCtx = windll.GetProcAddress(handle, 'cuStreamGetGreenCtx')
- {{endif}}
- {{if 'cuGreenCtxStreamCreate' in found_functions}}
- global __cuGreenCtxStreamCreate
- __cuGreenCtxStreamCreate = windll.GetProcAddress(handle, 'cuGreenCtxStreamCreate')
- {{endif}}
- {{if 'cuGreenCtxGetId' in found_functions}}
- global __cuGreenCtxGetId
- __cuGreenCtxGetId = windll.GetProcAddress(handle, 'cuGreenCtxGetId')
- {{endif}}
- {{if 'cuLogsRegisterCallback' in found_functions}}
- global __cuLogsRegisterCallback
- __cuLogsRegisterCallback = windll.GetProcAddress(handle, 'cuLogsRegisterCallback')
- {{endif}}
- {{if 'cuLogsUnregisterCallback' in found_functions}}
- global __cuLogsUnregisterCallback
- __cuLogsUnregisterCallback = windll.GetProcAddress(handle, 'cuLogsUnregisterCallback')
- {{endif}}
- {{if 'cuLogsCurrent' in found_functions}}
- global __cuLogsCurrent
- __cuLogsCurrent = windll.GetProcAddress(handle, 'cuLogsCurrent')
- {{endif}}
- {{if 'cuLogsDumpToFile' in found_functions}}
- global __cuLogsDumpToFile
- __cuLogsDumpToFile = windll.GetProcAddress(handle, 'cuLogsDumpToFile')
- {{endif}}
- {{if 'cuLogsDumpToMemory' in found_functions}}
- global __cuLogsDumpToMemory
- __cuLogsDumpToMemory = windll.GetProcAddress(handle, 'cuLogsDumpToMemory')
- {{endif}}
- {{if 'cuCheckpointProcessGetRestoreThreadId' in found_functions}}
- global __cuCheckpointProcessGetRestoreThreadId
- __cuCheckpointProcessGetRestoreThreadId = windll.GetProcAddress(handle, 'cuCheckpointProcessGetRestoreThreadId')
- {{endif}}
- {{if 'cuCheckpointProcessGetState' in found_functions}}
- global __cuCheckpointProcessGetState
- __cuCheckpointProcessGetState = windll.GetProcAddress(handle, 'cuCheckpointProcessGetState')
- {{endif}}
- {{if 'cuCheckpointProcessLock' in found_functions}}
- global __cuCheckpointProcessLock
- __cuCheckpointProcessLock = windll.GetProcAddress(handle, 'cuCheckpointProcessLock')
- {{endif}}
- {{if 'cuCheckpointProcessCheckpoint' in found_functions}}
- global __cuCheckpointProcessCheckpoint
- __cuCheckpointProcessCheckpoint = windll.GetProcAddress(handle, 'cuCheckpointProcessCheckpoint')
- {{endif}}
- {{if 'cuCheckpointProcessRestore' in found_functions}}
- global __cuCheckpointProcessRestore
- __cuCheckpointProcessRestore = windll.GetProcAddress(handle, 'cuCheckpointProcessRestore')
- {{endif}}
- {{if 'cuCheckpointProcessUnlock' in found_functions}}
- global __cuCheckpointProcessUnlock
- __cuCheckpointProcessUnlock = windll.GetProcAddress(handle, 'cuCheckpointProcessUnlock')
- {{endif}}
- {{if 'cuProfilerStart' in found_functions}}
- global __cuProfilerStart
- __cuProfilerStart = windll.GetProcAddress(handle, 'cuProfilerStart')
- {{endif}}
- {{if 'cuProfilerStop' in found_functions}}
- global __cuProfilerStop
- __cuProfilerStop = windll.GetProcAddress(handle, 'cuProfilerStop')
- {{endif}}
- {{if True}}
- global __cuGraphicsEGLRegisterImage
- __cuGraphicsEGLRegisterImage = windll.GetProcAddress(handle, 'cuGraphicsEGLRegisterImage')
- {{endif}}
- {{if True}}
- global __cuEGLStreamConsumerConnect
- __cuEGLStreamConsumerConnect = windll.GetProcAddress(handle, 'cuEGLStreamConsumerConnect')
- {{endif}}
- {{if True}}
- global __cuEGLStreamConsumerConnectWithFlags
- __cuEGLStreamConsumerConnectWithFlags = windll.GetProcAddress(handle, 'cuEGLStreamConsumerConnectWithFlags')
- {{endif}}
- {{if True}}
- global __cuEGLStreamConsumerDisconnect
- __cuEGLStreamConsumerDisconnect = windll.GetProcAddress(handle, 'cuEGLStreamConsumerDisconnect')
- {{endif}}
- {{if True}}
- global __cuEGLStreamConsumerAcquireFrame
- __cuEGLStreamConsumerAcquireFrame = windll.GetProcAddress(handle, 'cuEGLStreamConsumerAcquireFrame')
- {{endif}}
- {{if True}}
- global __cuEGLStreamConsumerReleaseFrame
- __cuEGLStreamConsumerReleaseFrame = windll.GetProcAddress(handle, 'cuEGLStreamConsumerReleaseFrame')
- {{endif}}
- {{if True}}
- global __cuEGLStreamProducerConnect
- __cuEGLStreamProducerConnect = windll.GetProcAddress(handle, 'cuEGLStreamProducerConnect')
- {{endif}}
- {{if True}}
- global __cuEGLStreamProducerDisconnect
- __cuEGLStreamProducerDisconnect = windll.GetProcAddress(handle, 'cuEGLStreamProducerDisconnect')
- {{endif}}
- {{if True}}
- global __cuEGLStreamProducerPresentFrame
- __cuEGLStreamProducerPresentFrame = windll.GetProcAddress(handle, 'cuEGLStreamProducerPresentFrame')
- {{endif}}
- {{if True}}
- global __cuEGLStreamProducerReturnFrame
- __cuEGLStreamProducerReturnFrame = windll.GetProcAddress(handle, 'cuEGLStreamProducerReturnFrame')
- {{endif}}
- {{if True}}
- global __cuGraphicsResourceGetMappedEglFrame
- __cuGraphicsResourceGetMappedEglFrame = windll.GetProcAddress(handle, 'cuGraphicsResourceGetMappedEglFrame')
- {{endif}}
- {{if True}}
- global __cuEventCreateFromEGLSync
- __cuEventCreateFromEGLSync = windll.GetProcAddress(handle, 'cuEventCreateFromEGLSync')
- {{endif}}
- {{if True}}
- global __cuGraphicsGLRegisterBuffer
- __cuGraphicsGLRegisterBuffer = windll.GetProcAddress(handle, 'cuGraphicsGLRegisterBuffer')
- {{endif}}
- {{if True}}
- global __cuGraphicsGLRegisterImage
- __cuGraphicsGLRegisterImage = windll.GetProcAddress(handle, 'cuGraphicsGLRegisterImage')
- {{endif}}
- {{if True}}
- global __cuGLGetDevices_v2
- __cuGLGetDevices_v2 = windll.GetProcAddress(handle, 'cuGLGetDevices_v2')
- {{endif}}
- {{if True}}
- global __cuVDPAUGetDevice
- __cuVDPAUGetDevice = windll.GetProcAddress(handle, 'cuVDPAUGetDevice')
- {{endif}}
- {{if True}}
- global __cuVDPAUCtxCreate_v2
- __cuVDPAUCtxCreate_v2 = windll.GetProcAddress(handle, 'cuVDPAUCtxCreate_v2')
- {{endif}}
- {{if True}}
- global __cuGraphicsVDPAURegisterVideoSurface
- __cuGraphicsVDPAURegisterVideoSurface = windll.GetProcAddress(handle, 'cuGraphicsVDPAURegisterVideoSurface')
- {{endif}}
- {{if True}}
- global __cuGraphicsVDPAURegisterOutputSurface
- __cuGraphicsVDPAURegisterOutputSurface = windll.GetProcAddress(handle, 'cuGraphicsVDPAURegisterOutputSurface')
- {{endif}}
- {{else}}
- # Load using dlsym
- if usePTDS:
- # Get all PTDS version of functions
- pass
- {{if 'cuMemcpy' in found_functions}}
- global __cuMemcpy
- __cuMemcpy = dlfcn.dlsym(handle, 'cuMemcpy_ptds')
- {{endif}}
- {{if 'cuMemcpyPeer' in found_functions}}
- global __cuMemcpyPeer
- __cuMemcpyPeer = dlfcn.dlsym(handle, 'cuMemcpyPeer_ptds')
- {{endif}}
- {{if 'cuMemcpyHtoD_v2' in found_functions}}
- global __cuMemcpyHtoD_v2
- __cuMemcpyHtoD_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoD_v2_ptds')
- {{endif}}
- {{if 'cuMemcpyDtoH_v2' in found_functions}}
- global __cuMemcpyDtoH_v2
- __cuMemcpyDtoH_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoH_v2_ptds')
- {{endif}}
- {{if 'cuMemcpyDtoD_v2' in found_functions}}
- global __cuMemcpyDtoD_v2
- __cuMemcpyDtoD_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoD_v2_ptds')
- {{endif}}
- {{if 'cuMemcpyDtoA_v2' in found_functions}}
- global __cuMemcpyDtoA_v2
- __cuMemcpyDtoA_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoA_v2_ptds')
- {{endif}}
- {{if 'cuMemcpyAtoD_v2' in found_functions}}
- global __cuMemcpyAtoD_v2
- __cuMemcpyAtoD_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoD_v2_ptds')
- {{endif}}
- {{if 'cuMemcpyHtoA_v2' in found_functions}}
- global __cuMemcpyHtoA_v2
- __cuMemcpyHtoA_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoA_v2_ptds')
- {{endif}}
- {{if 'cuMemcpyAtoH_v2' in found_functions}}
- global __cuMemcpyAtoH_v2
- __cuMemcpyAtoH_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoH_v2_ptds')
- {{endif}}
- {{if 'cuMemcpyAtoA_v2' in found_functions}}
- global __cuMemcpyAtoA_v2
- __cuMemcpyAtoA_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoA_v2_ptds')
- {{endif}}
- {{if 'cuMemcpy2D_v2' in found_functions}}
- global __cuMemcpy2D_v2
- __cuMemcpy2D_v2 = dlfcn.dlsym(handle, 'cuMemcpy2D_v2_ptds')
- {{endif}}
- {{if 'cuMemcpy2DUnaligned_v2' in found_functions}}
- global __cuMemcpy2DUnaligned_v2
- __cuMemcpy2DUnaligned_v2 = dlfcn.dlsym(handle, 'cuMemcpy2DUnaligned_v2_ptds')
- {{endif}}
- {{if 'cuMemcpy3D_v2' in found_functions}}
- global __cuMemcpy3D_v2
- __cuMemcpy3D_v2 = dlfcn.dlsym(handle, 'cuMemcpy3D_v2_ptds')
- {{endif}}
- {{if 'cuMemcpy3DPeer' in found_functions}}
- global __cuMemcpy3DPeer
- __cuMemcpy3DPeer = dlfcn.dlsym(handle, 'cuMemcpy3DPeer_ptds')
- {{endif}}
- {{if 'cuMemcpyAsync' in found_functions}}
- global __cuMemcpyAsync
- __cuMemcpyAsync = dlfcn.dlsym(handle, 'cuMemcpyAsync_ptsz')
- {{endif}}
- {{if 'cuMemcpyPeerAsync' in found_functions}}
- global __cuMemcpyPeerAsync
- __cuMemcpyPeerAsync = dlfcn.dlsym(handle, 'cuMemcpyPeerAsync_ptsz')
- {{endif}}
- {{if 'cuMemcpyHtoDAsync_v2' in found_functions}}
- global __cuMemcpyHtoDAsync_v2
- __cuMemcpyHtoDAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoDAsync_v2_ptsz')
- {{endif}}
- {{if 'cuMemcpyDtoHAsync_v2' in found_functions}}
- global __cuMemcpyDtoHAsync_v2
- __cuMemcpyDtoHAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoHAsync_v2_ptsz')
- {{endif}}
- {{if 'cuMemcpyDtoDAsync_v2' in found_functions}}
- global __cuMemcpyDtoDAsync_v2
- __cuMemcpyDtoDAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoDAsync_v2_ptsz')
- {{endif}}
- {{if 'cuMemcpyHtoAAsync_v2' in found_functions}}
- global __cuMemcpyHtoAAsync_v2
- __cuMemcpyHtoAAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoAAsync_v2_ptsz')
- {{endif}}
- {{if 'cuMemcpyAtoHAsync_v2' in found_functions}}
- global __cuMemcpyAtoHAsync_v2
- __cuMemcpyAtoHAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoHAsync_v2_ptsz')
- {{endif}}
- {{if 'cuMemcpy2DAsync_v2' in found_functions}}
- global __cuMemcpy2DAsync_v2
- __cuMemcpy2DAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpy2DAsync_v2_ptsz')
- {{endif}}
- {{if 'cuMemcpy3DAsync_v2' in found_functions}}
- global __cuMemcpy3DAsync_v2
- __cuMemcpy3DAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpy3DAsync_v2_ptsz')
- {{endif}}
- {{if 'cuMemcpy3DPeerAsync' in found_functions}}
- global __cuMemcpy3DPeerAsync
- __cuMemcpy3DPeerAsync = dlfcn.dlsym(handle, 'cuMemcpy3DPeerAsync_ptsz')
- {{endif}}
- {{if 'cuMemcpyBatchAsync_v2' in found_functions}}
- global __cuMemcpyBatchAsync_v2
- __cuMemcpyBatchAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyBatchAsync_v2_ptsz')
- {{endif}}
- {{if 'cuMemcpy3DBatchAsync_v2' in found_functions}}
- global __cuMemcpy3DBatchAsync_v2
- __cuMemcpy3DBatchAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpy3DBatchAsync_v2_ptsz')
- {{endif}}
- {{if 'cuMemsetD8_v2' in found_functions}}
- global __cuMemsetD8_v2
- __cuMemsetD8_v2 = dlfcn.dlsym(handle, 'cuMemsetD8_v2_ptds')
- {{endif}}
- {{if 'cuMemsetD16_v2' in found_functions}}
- global __cuMemsetD16_v2
- __cuMemsetD16_v2 = dlfcn.dlsym(handle, 'cuMemsetD16_v2_ptds')
- {{endif}}
- {{if 'cuMemsetD32_v2' in found_functions}}
- global __cuMemsetD32_v2
- __cuMemsetD32_v2 = dlfcn.dlsym(handle, 'cuMemsetD32_v2_ptds')
- {{endif}}
- {{if 'cuMemsetD2D8_v2' in found_functions}}
- global __cuMemsetD2D8_v2
- __cuMemsetD2D8_v2 = dlfcn.dlsym(handle, 'cuMemsetD2D8_v2_ptds')
- {{endif}}
- {{if 'cuMemsetD2D16_v2' in found_functions}}
- global __cuMemsetD2D16_v2
- __cuMemsetD2D16_v2 = dlfcn.dlsym(handle, 'cuMemsetD2D16_v2_ptds')
- {{endif}}
- {{if 'cuMemsetD2D32_v2' in found_functions}}
- global __cuMemsetD2D32_v2
- __cuMemsetD2D32_v2 = dlfcn.dlsym(handle, 'cuMemsetD2D32_v2_ptds')
- {{endif}}
- {{if 'cuMemsetD8Async' in found_functions}}
- global __cuMemsetD8Async
- __cuMemsetD8Async = dlfcn.dlsym(handle, 'cuMemsetD8Async_ptsz')
- {{endif}}
- {{if 'cuMemsetD16Async' in found_functions}}
- global __cuMemsetD16Async
- __cuMemsetD16Async = dlfcn.dlsym(handle, 'cuMemsetD16Async_ptsz')
- {{endif}}
- {{if 'cuMemsetD32Async' in found_functions}}
- global __cuMemsetD32Async
- __cuMemsetD32Async = dlfcn.dlsym(handle, 'cuMemsetD32Async_ptsz')
- {{endif}}
- {{if 'cuMemsetD2D8Async' in found_functions}}
- global __cuMemsetD2D8Async
- __cuMemsetD2D8Async = dlfcn.dlsym(handle, 'cuMemsetD2D8Async_ptsz')
- {{endif}}
- {{if 'cuMemsetD2D16Async' in found_functions}}
- global __cuMemsetD2D16Async
- __cuMemsetD2D16Async = dlfcn.dlsym(handle, 'cuMemsetD2D16Async_ptsz')
- {{endif}}
- {{if 'cuMemsetD2D32Async' in found_functions}}
- global __cuMemsetD2D32Async
- __cuMemsetD2D32Async = dlfcn.dlsym(handle, 'cuMemsetD2D32Async_ptsz')
- {{endif}}
- {{if 'cuMemBatchDecompressAsync' in found_functions}}
- global __cuMemBatchDecompressAsync
- __cuMemBatchDecompressAsync = dlfcn.dlsym(handle, 'cuMemBatchDecompressAsync_ptsz')
- {{endif}}
- {{if 'cuMemMapArrayAsync' in found_functions}}
- global __cuMemMapArrayAsync
- __cuMemMapArrayAsync = dlfcn.dlsym(handle, 'cuMemMapArrayAsync_ptsz')
- {{endif}}
- {{if 'cuMemFreeAsync' in found_functions}}
- global __cuMemFreeAsync
- __cuMemFreeAsync = dlfcn.dlsym(handle, 'cuMemFreeAsync_ptsz')
- {{endif}}
- {{if 'cuMemAllocAsync' in found_functions}}
- global __cuMemAllocAsync
- __cuMemAllocAsync = dlfcn.dlsym(handle, 'cuMemAllocAsync_ptsz')
- {{endif}}
- {{if 'cuMemAllocFromPoolAsync' in found_functions}}
- global __cuMemAllocFromPoolAsync
- __cuMemAllocFromPoolAsync = dlfcn.dlsym(handle, 'cuMemAllocFromPoolAsync_ptsz')
- {{endif}}
- {{if 'cuMemPrefetchAsync_v2' in found_functions}}
- global __cuMemPrefetchAsync_v2
- __cuMemPrefetchAsync_v2 = dlfcn.dlsym(handle, 'cuMemPrefetchAsync_v2_ptsz')
- {{endif}}
- {{if 'cuMemPrefetchBatchAsync' in found_functions}}
- global __cuMemPrefetchBatchAsync
- __cuMemPrefetchBatchAsync = dlfcn.dlsym(handle, 'cuMemPrefetchBatchAsync_ptsz')
- {{endif}}
- {{if 'cuMemDiscardBatchAsync' in found_functions}}
- global __cuMemDiscardBatchAsync
- __cuMemDiscardBatchAsync = dlfcn.dlsym(handle, 'cuMemDiscardBatchAsync_ptsz')
- {{endif}}
- {{if 'cuMemDiscardAndPrefetchBatchAsync' in found_functions}}
- global __cuMemDiscardAndPrefetchBatchAsync
- __cuMemDiscardAndPrefetchBatchAsync = dlfcn.dlsym(handle, 'cuMemDiscardAndPrefetchBatchAsync_ptsz')
- {{endif}}
- {{if 'cuStreamGetPriority' in found_functions}}
- global __cuStreamGetPriority
- __cuStreamGetPriority = dlfcn.dlsym(handle, 'cuStreamGetPriority_ptsz')
- {{endif}}
- {{if 'cuStreamGetDevice' in found_functions}}
- global __cuStreamGetDevice
- __cuStreamGetDevice = dlfcn.dlsym(handle, 'cuStreamGetDevice_ptsz')
- {{endif}}
- {{if 'cuStreamGetFlags' in found_functions}}
- global __cuStreamGetFlags
- __cuStreamGetFlags = dlfcn.dlsym(handle, 'cuStreamGetFlags_ptsz')
- {{endif}}
- {{if 'cuStreamGetId' in found_functions}}
- global __cuStreamGetId
- __cuStreamGetId = dlfcn.dlsym(handle, 'cuStreamGetId_ptsz')
- {{endif}}
- {{if 'cuStreamGetCtx' in found_functions}}
- global __cuStreamGetCtx
- __cuStreamGetCtx = dlfcn.dlsym(handle, 'cuStreamGetCtx_ptsz')
- {{endif}}
- {{if 'cuStreamGetCtx_v2' in found_functions}}
- global __cuStreamGetCtx_v2
- __cuStreamGetCtx_v2 = dlfcn.dlsym(handle, 'cuStreamGetCtx_v2_ptsz')
- {{endif}}
- {{if 'cuStreamWaitEvent' in found_functions}}
- global __cuStreamWaitEvent
- __cuStreamWaitEvent = dlfcn.dlsym(handle, 'cuStreamWaitEvent_ptsz')
- {{endif}}
- {{if 'cuStreamAddCallback' in found_functions}}
- global __cuStreamAddCallback
- __cuStreamAddCallback = dlfcn.dlsym(handle, 'cuStreamAddCallback_ptsz')
- {{endif}}
- {{if 'cuStreamBeginCapture_v2' in found_functions}}
- global __cuStreamBeginCapture_v2
- __cuStreamBeginCapture_v2 = dlfcn.dlsym(handle, 'cuStreamBeginCapture_v2_ptsz')
- {{endif}}
- {{if 'cuStreamBeginCaptureToGraph' in found_functions}}
- global __cuStreamBeginCaptureToGraph
- __cuStreamBeginCaptureToGraph = dlfcn.dlsym(handle, 'cuStreamBeginCaptureToGraph_ptsz')
- {{endif}}
- {{if 'cuStreamEndCapture' in found_functions}}
- global __cuStreamEndCapture
- __cuStreamEndCapture = dlfcn.dlsym(handle, 'cuStreamEndCapture_ptsz')
- {{endif}}
- {{if 'cuStreamIsCapturing' in found_functions}}
- global __cuStreamIsCapturing
- __cuStreamIsCapturing = dlfcn.dlsym(handle, 'cuStreamIsCapturing_ptsz')
- {{endif}}
- {{if 'cuStreamGetCaptureInfo_v3' in found_functions}}
- global __cuStreamGetCaptureInfo_v3
- __cuStreamGetCaptureInfo_v3 = dlfcn.dlsym(handle, 'cuStreamGetCaptureInfo_v3_ptsz')
- {{endif}}
- {{if 'cuStreamUpdateCaptureDependencies_v2' in found_functions}}
- global __cuStreamUpdateCaptureDependencies_v2
- __cuStreamUpdateCaptureDependencies_v2 = dlfcn.dlsym(handle, 'cuStreamUpdateCaptureDependencies_v2_ptsz')
- {{endif}}
- {{if 'cuStreamAttachMemAsync' in found_functions}}
- global __cuStreamAttachMemAsync
- __cuStreamAttachMemAsync = dlfcn.dlsym(handle, 'cuStreamAttachMemAsync_ptsz')
- {{endif}}
- {{if 'cuStreamQuery' in found_functions}}
- global __cuStreamQuery
- __cuStreamQuery = dlfcn.dlsym(handle, 'cuStreamQuery_ptsz')
- {{endif}}
- {{if 'cuStreamSynchronize' in found_functions}}
- global __cuStreamSynchronize
- __cuStreamSynchronize = dlfcn.dlsym(handle, 'cuStreamSynchronize_ptsz')
- {{endif}}
- {{if 'cuStreamCopyAttributes' in found_functions}}
- global __cuStreamCopyAttributes
- __cuStreamCopyAttributes = dlfcn.dlsym(handle, 'cuStreamCopyAttributes_ptsz')
- {{endif}}
- {{if 'cuStreamGetAttribute' in found_functions}}
- global __cuStreamGetAttribute
- __cuStreamGetAttribute = dlfcn.dlsym(handle, 'cuStreamGetAttribute_ptsz')
- {{endif}}
- {{if 'cuStreamSetAttribute' in found_functions}}
- global __cuStreamSetAttribute
- __cuStreamSetAttribute = dlfcn.dlsym(handle, 'cuStreamSetAttribute_ptsz')
- {{endif}}
- {{if 'cuEventRecord' in found_functions}}
- global __cuEventRecord
- __cuEventRecord = dlfcn.dlsym(handle, 'cuEventRecord_ptsz')
- {{endif}}
- {{if 'cuEventRecordWithFlags' in found_functions}}
- global __cuEventRecordWithFlags
- __cuEventRecordWithFlags = dlfcn.dlsym(handle, 'cuEventRecordWithFlags_ptsz')
- {{endif}}
- {{if 'cuSignalExternalSemaphoresAsync' in found_functions}}
- global __cuSignalExternalSemaphoresAsync
- __cuSignalExternalSemaphoresAsync = dlfcn.dlsym(handle, 'cuSignalExternalSemaphoresAsync_ptsz')
- {{endif}}
- {{if 'cuWaitExternalSemaphoresAsync' in found_functions}}
- global __cuWaitExternalSemaphoresAsync
- __cuWaitExternalSemaphoresAsync = dlfcn.dlsym(handle, 'cuWaitExternalSemaphoresAsync_ptsz')
- {{endif}}
- {{if 'cuStreamWaitValue32_v2' in found_functions}}
- global __cuStreamWaitValue32_v2
- __cuStreamWaitValue32_v2 = dlfcn.dlsym(handle, 'cuStreamWaitValue32_v2_ptsz')
- {{endif}}
- {{if 'cuStreamWaitValue64_v2' in found_functions}}
- global __cuStreamWaitValue64_v2
- __cuStreamWaitValue64_v2 = dlfcn.dlsym(handle, 'cuStreamWaitValue64_v2_ptsz')
- {{endif}}
- {{if 'cuStreamWriteValue32_v2' in found_functions}}
- global __cuStreamWriteValue32_v2
- __cuStreamWriteValue32_v2 = dlfcn.dlsym(handle, 'cuStreamWriteValue32_v2_ptsz')
- {{endif}}
- {{if 'cuStreamWriteValue64_v2' in found_functions}}
- global __cuStreamWriteValue64_v2
- __cuStreamWriteValue64_v2 = dlfcn.dlsym(handle, 'cuStreamWriteValue64_v2_ptsz')
- {{endif}}
- {{if 'cuStreamBatchMemOp_v2' in found_functions}}
- global __cuStreamBatchMemOp_v2
- __cuStreamBatchMemOp_v2 = dlfcn.dlsym(handle, 'cuStreamBatchMemOp_v2_ptsz')
- {{endif}}
- {{if 'cuLaunchKernel' in found_functions}}
- global __cuLaunchKernel
- __cuLaunchKernel = dlfcn.dlsym(handle, 'cuLaunchKernel_ptsz')
- {{endif}}
- {{if 'cuLaunchKernelEx' in found_functions}}
- global __cuLaunchKernelEx
- __cuLaunchKernelEx = dlfcn.dlsym(handle, 'cuLaunchKernelEx_ptsz')
- {{endif}}
- {{if 'cuLaunchCooperativeKernel' in found_functions}}
- global __cuLaunchCooperativeKernel
- __cuLaunchCooperativeKernel = dlfcn.dlsym(handle, 'cuLaunchCooperativeKernel_ptsz')
- {{endif}}
- {{if 'cuLaunchHostFunc' in found_functions}}
- global __cuLaunchHostFunc
- __cuLaunchHostFunc = dlfcn.dlsym(handle, 'cuLaunchHostFunc_ptsz')
- {{endif}}
- {{if 'cuGraphInstantiateWithParams' in found_functions}}
- global __cuGraphInstantiateWithParams
- __cuGraphInstantiateWithParams = dlfcn.dlsym(handle, 'cuGraphInstantiateWithParams_ptsz')
- {{endif}}
- {{if 'cuGraphUpload' in found_functions}}
- global __cuGraphUpload
- __cuGraphUpload = dlfcn.dlsym(handle, 'cuGraphUpload_ptsz')
- {{endif}}
- {{if 'cuGraphLaunch' in found_functions}}
- global __cuGraphLaunch
- __cuGraphLaunch = dlfcn.dlsym(handle, 'cuGraphLaunch_ptsz')
- {{endif}}
- {{if 'cuGraphicsMapResources' in found_functions}}
- global __cuGraphicsMapResources
- __cuGraphicsMapResources = dlfcn.dlsym(handle, 'cuGraphicsMapResources_ptsz')
- {{endif}}
- {{if 'cuGraphicsUnmapResources' in found_functions}}
- global __cuGraphicsUnmapResources
- __cuGraphicsUnmapResources = dlfcn.dlsym(handle, 'cuGraphicsUnmapResources_ptsz')
- {{endif}}
- else:
- # Else get the regular version
- pass
- {{if 'cuMemcpy' in found_functions}}
- global __cuMemcpy
- __cuMemcpy = dlfcn.dlsym(handle, 'cuMemcpy')
- {{endif}}
- {{if 'cuMemcpyPeer' in found_functions}}
- global __cuMemcpyPeer
- __cuMemcpyPeer = dlfcn.dlsym(handle, 'cuMemcpyPeer')
- {{endif}}
- {{if 'cuMemcpyHtoD_v2' in found_functions}}
- global __cuMemcpyHtoD_v2
- __cuMemcpyHtoD_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoD_v2')
- {{endif}}
- {{if 'cuMemcpyDtoH_v2' in found_functions}}
- global __cuMemcpyDtoH_v2
- __cuMemcpyDtoH_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoH_v2')
- {{endif}}
- {{if 'cuMemcpyDtoD_v2' in found_functions}}
- global __cuMemcpyDtoD_v2
- __cuMemcpyDtoD_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoD_v2')
- {{endif}}
- {{if 'cuMemcpyDtoA_v2' in found_functions}}
- global __cuMemcpyDtoA_v2
- __cuMemcpyDtoA_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoA_v2')
- {{endif}}
- {{if 'cuMemcpyAtoD_v2' in found_functions}}
- global __cuMemcpyAtoD_v2
- __cuMemcpyAtoD_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoD_v2')
- {{endif}}
- {{if 'cuMemcpyHtoA_v2' in found_functions}}
- global __cuMemcpyHtoA_v2
- __cuMemcpyHtoA_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoA_v2')
- {{endif}}
- {{if 'cuMemcpyAtoH_v2' in found_functions}}
- global __cuMemcpyAtoH_v2
- __cuMemcpyAtoH_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoH_v2')
- {{endif}}
- {{if 'cuMemcpyAtoA_v2' in found_functions}}
- global __cuMemcpyAtoA_v2
- __cuMemcpyAtoA_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoA_v2')
- {{endif}}
- {{if 'cuMemcpy2D_v2' in found_functions}}
- global __cuMemcpy2D_v2
- __cuMemcpy2D_v2 = dlfcn.dlsym(handle, 'cuMemcpy2D_v2')
- {{endif}}
- {{if 'cuMemcpy2DUnaligned_v2' in found_functions}}
- global __cuMemcpy2DUnaligned_v2
- __cuMemcpy2DUnaligned_v2 = dlfcn.dlsym(handle, 'cuMemcpy2DUnaligned_v2')
- {{endif}}
- {{if 'cuMemcpy3D_v2' in found_functions}}
- global __cuMemcpy3D_v2
- __cuMemcpy3D_v2 = dlfcn.dlsym(handle, 'cuMemcpy3D_v2')
- {{endif}}
- {{if 'cuMemcpy3DPeer' in found_functions}}
- global __cuMemcpy3DPeer
- __cuMemcpy3DPeer = dlfcn.dlsym(handle, 'cuMemcpy3DPeer')
- {{endif}}
- {{if 'cuMemcpyAsync' in found_functions}}
- global __cuMemcpyAsync
- __cuMemcpyAsync = dlfcn.dlsym(handle, 'cuMemcpyAsync')
- {{endif}}
- {{if 'cuMemcpyPeerAsync' in found_functions}}
- global __cuMemcpyPeerAsync
- __cuMemcpyPeerAsync = dlfcn.dlsym(handle, 'cuMemcpyPeerAsync')
- {{endif}}
- {{if 'cuMemcpyHtoDAsync_v2' in found_functions}}
- global __cuMemcpyHtoDAsync_v2
- __cuMemcpyHtoDAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoDAsync_v2')
- {{endif}}
- {{if 'cuMemcpyDtoHAsync_v2' in found_functions}}
- global __cuMemcpyDtoHAsync_v2
- __cuMemcpyDtoHAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoHAsync_v2')
- {{endif}}
- {{if 'cuMemcpyDtoDAsync_v2' in found_functions}}
- global __cuMemcpyDtoDAsync_v2
- __cuMemcpyDtoDAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoDAsync_v2')
- {{endif}}
- {{if 'cuMemcpyHtoAAsync_v2' in found_functions}}
- global __cuMemcpyHtoAAsync_v2
- __cuMemcpyHtoAAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoAAsync_v2')
- {{endif}}
- {{if 'cuMemcpyAtoHAsync_v2' in found_functions}}
- global __cuMemcpyAtoHAsync_v2
- __cuMemcpyAtoHAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoHAsync_v2')
- {{endif}}
- {{if 'cuMemcpy2DAsync_v2' in found_functions}}
- global __cuMemcpy2DAsync_v2
- __cuMemcpy2DAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpy2DAsync_v2')
- {{endif}}
- {{if 'cuMemcpy3DAsync_v2' in found_functions}}
- global __cuMemcpy3DAsync_v2
- __cuMemcpy3DAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpy3DAsync_v2')
- {{endif}}
- {{if 'cuMemcpy3DPeerAsync' in found_functions}}
- global __cuMemcpy3DPeerAsync
- __cuMemcpy3DPeerAsync = dlfcn.dlsym(handle, 'cuMemcpy3DPeerAsync')
- {{endif}}
- {{if 'cuMemcpyBatchAsync_v2' in found_functions}}
- global __cuMemcpyBatchAsync_v2
- __cuMemcpyBatchAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyBatchAsync_v2')
- {{endif}}
- {{if 'cuMemcpy3DBatchAsync_v2' in found_functions}}
- global __cuMemcpy3DBatchAsync_v2
- __cuMemcpy3DBatchAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpy3DBatchAsync_v2')
- {{endif}}
- {{if 'cuMemsetD8_v2' in found_functions}}
- global __cuMemsetD8_v2
- __cuMemsetD8_v2 = dlfcn.dlsym(handle, 'cuMemsetD8_v2')
- {{endif}}
- {{if 'cuMemsetD16_v2' in found_functions}}
- global __cuMemsetD16_v2
- __cuMemsetD16_v2 = dlfcn.dlsym(handle, 'cuMemsetD16_v2')
- {{endif}}
- {{if 'cuMemsetD32_v2' in found_functions}}
- global __cuMemsetD32_v2
- __cuMemsetD32_v2 = dlfcn.dlsym(handle, 'cuMemsetD32_v2')
- {{endif}}
- {{if 'cuMemsetD2D8_v2' in found_functions}}
- global __cuMemsetD2D8_v2
- __cuMemsetD2D8_v2 = dlfcn.dlsym(handle, 'cuMemsetD2D8_v2')
- {{endif}}
- {{if 'cuMemsetD2D16_v2' in found_functions}}
- global __cuMemsetD2D16_v2
- __cuMemsetD2D16_v2 = dlfcn.dlsym(handle, 'cuMemsetD2D16_v2')
- {{endif}}
- {{if 'cuMemsetD2D32_v2' in found_functions}}
- global __cuMemsetD2D32_v2
- __cuMemsetD2D32_v2 = dlfcn.dlsym(handle, 'cuMemsetD2D32_v2')
- {{endif}}
- {{if 'cuMemsetD8Async' in found_functions}}
- global __cuMemsetD8Async
- __cuMemsetD8Async = dlfcn.dlsym(handle, 'cuMemsetD8Async')
- {{endif}}
- {{if 'cuMemsetD16Async' in found_functions}}
- global __cuMemsetD16Async
- __cuMemsetD16Async = dlfcn.dlsym(handle, 'cuMemsetD16Async')
- {{endif}}
- {{if 'cuMemsetD32Async' in found_functions}}
- global __cuMemsetD32Async
- __cuMemsetD32Async = dlfcn.dlsym(handle, 'cuMemsetD32Async')
- {{endif}}
- {{if 'cuMemsetD2D8Async' in found_functions}}
- global __cuMemsetD2D8Async
- __cuMemsetD2D8Async = dlfcn.dlsym(handle, 'cuMemsetD2D8Async')
- {{endif}}
- {{if 'cuMemsetD2D16Async' in found_functions}}
- global __cuMemsetD2D16Async
- __cuMemsetD2D16Async = dlfcn.dlsym(handle, 'cuMemsetD2D16Async')
- {{endif}}
- {{if 'cuMemsetD2D32Async' in found_functions}}
- global __cuMemsetD2D32Async
- __cuMemsetD2D32Async = dlfcn.dlsym(handle, 'cuMemsetD2D32Async')
- {{endif}}
- {{if 'cuMemBatchDecompressAsync' in found_functions}}
- global __cuMemBatchDecompressAsync
- __cuMemBatchDecompressAsync = dlfcn.dlsym(handle, 'cuMemBatchDecompressAsync')
- {{endif}}
- {{if 'cuMemMapArrayAsync' in found_functions}}
- global __cuMemMapArrayAsync
- __cuMemMapArrayAsync = dlfcn.dlsym(handle, 'cuMemMapArrayAsync')
- {{endif}}
- {{if 'cuMemFreeAsync' in found_functions}}
- global __cuMemFreeAsync
- __cuMemFreeAsync = dlfcn.dlsym(handle, 'cuMemFreeAsync')
- {{endif}}
- {{if 'cuMemAllocAsync' in found_functions}}
- global __cuMemAllocAsync
- __cuMemAllocAsync = dlfcn.dlsym(handle, 'cuMemAllocAsync')
- {{endif}}
- {{if 'cuMemAllocFromPoolAsync' in found_functions}}
- global __cuMemAllocFromPoolAsync
- __cuMemAllocFromPoolAsync = dlfcn.dlsym(handle, 'cuMemAllocFromPoolAsync')
- {{endif}}
- {{if 'cuMemPrefetchAsync_v2' in found_functions}}
- global __cuMemPrefetchAsync_v2
- __cuMemPrefetchAsync_v2 = dlfcn.dlsym(handle, 'cuMemPrefetchAsync_v2')
- {{endif}}
- {{if 'cuMemPrefetchBatchAsync' in found_functions}}
- global __cuMemPrefetchBatchAsync
- __cuMemPrefetchBatchAsync = dlfcn.dlsym(handle, 'cuMemPrefetchBatchAsync')
- {{endif}}
- {{if 'cuMemDiscardBatchAsync' in found_functions}}
- global __cuMemDiscardBatchAsync
- __cuMemDiscardBatchAsync = dlfcn.dlsym(handle, 'cuMemDiscardBatchAsync')
- {{endif}}
- {{if 'cuMemDiscardAndPrefetchBatchAsync' in found_functions}}
- global __cuMemDiscardAndPrefetchBatchAsync
- __cuMemDiscardAndPrefetchBatchAsync = dlfcn.dlsym(handle, 'cuMemDiscardAndPrefetchBatchAsync')
- {{endif}}
- {{if 'cuStreamGetPriority' in found_functions}}
- global __cuStreamGetPriority
- __cuStreamGetPriority = dlfcn.dlsym(handle, 'cuStreamGetPriority')
- {{endif}}
- {{if 'cuStreamGetDevice' in found_functions}}
- global __cuStreamGetDevice
- __cuStreamGetDevice = dlfcn.dlsym(handle, 'cuStreamGetDevice')
- {{endif}}
- {{if 'cuStreamGetFlags' in found_functions}}
- global __cuStreamGetFlags
- __cuStreamGetFlags = dlfcn.dlsym(handle, 'cuStreamGetFlags')
- {{endif}}
- {{if 'cuStreamGetId' in found_functions}}
- global __cuStreamGetId
- __cuStreamGetId = dlfcn.dlsym(handle, 'cuStreamGetId')
- {{endif}}
- {{if 'cuStreamGetCtx' in found_functions}}
- global __cuStreamGetCtx
- __cuStreamGetCtx = dlfcn.dlsym(handle, 'cuStreamGetCtx')
- {{endif}}
- {{if 'cuStreamGetCtx_v2' in found_functions}}
- global __cuStreamGetCtx_v2
- __cuStreamGetCtx_v2 = dlfcn.dlsym(handle, 'cuStreamGetCtx_v2')
- {{endif}}
- {{if 'cuStreamWaitEvent' in found_functions}}
- global __cuStreamWaitEvent
- __cuStreamWaitEvent = dlfcn.dlsym(handle, 'cuStreamWaitEvent')
- {{endif}}
- {{if 'cuStreamAddCallback' in found_functions}}
- global __cuStreamAddCallback
- __cuStreamAddCallback = dlfcn.dlsym(handle, 'cuStreamAddCallback')
- {{endif}}
- {{if 'cuStreamBeginCapture_v2' in found_functions}}
- global __cuStreamBeginCapture_v2
- __cuStreamBeginCapture_v2 = dlfcn.dlsym(handle, 'cuStreamBeginCapture_v2')
- {{endif}}
- {{if 'cuStreamBeginCaptureToGraph' in found_functions}}
- global __cuStreamBeginCaptureToGraph
- __cuStreamBeginCaptureToGraph = dlfcn.dlsym(handle, 'cuStreamBeginCaptureToGraph')
- {{endif}}
- {{if 'cuStreamEndCapture' in found_functions}}
- global __cuStreamEndCapture
- __cuStreamEndCapture = dlfcn.dlsym(handle, 'cuStreamEndCapture')
- {{endif}}
- {{if 'cuStreamIsCapturing' in found_functions}}
- global __cuStreamIsCapturing
- __cuStreamIsCapturing = dlfcn.dlsym(handle, 'cuStreamIsCapturing')
- {{endif}}
- {{if 'cuStreamGetCaptureInfo_v3' in found_functions}}
- global __cuStreamGetCaptureInfo_v3
- __cuStreamGetCaptureInfo_v3 = dlfcn.dlsym(handle, 'cuStreamGetCaptureInfo_v3')
- {{endif}}
- {{if 'cuStreamUpdateCaptureDependencies_v2' in found_functions}}
- global __cuStreamUpdateCaptureDependencies_v2
- __cuStreamUpdateCaptureDependencies_v2 = dlfcn.dlsym(handle, 'cuStreamUpdateCaptureDependencies_v2')
- {{endif}}
- {{if 'cuStreamAttachMemAsync' in found_functions}}
- global __cuStreamAttachMemAsync
- __cuStreamAttachMemAsync = dlfcn.dlsym(handle, 'cuStreamAttachMemAsync')
- {{endif}}
- {{if 'cuStreamQuery' in found_functions}}
- global __cuStreamQuery
- __cuStreamQuery = dlfcn.dlsym(handle, 'cuStreamQuery')
- {{endif}}
- {{if 'cuStreamSynchronize' in found_functions}}
- global __cuStreamSynchronize
- __cuStreamSynchronize = dlfcn.dlsym(handle, 'cuStreamSynchronize')
- {{endif}}
- {{if 'cuStreamCopyAttributes' in found_functions}}
- global __cuStreamCopyAttributes
- __cuStreamCopyAttributes = dlfcn.dlsym(handle, 'cuStreamCopyAttributes')
- {{endif}}
- {{if 'cuStreamGetAttribute' in found_functions}}
- global __cuStreamGetAttribute
- __cuStreamGetAttribute = dlfcn.dlsym(handle, 'cuStreamGetAttribute')
- {{endif}}
- {{if 'cuStreamSetAttribute' in found_functions}}
- global __cuStreamSetAttribute
- __cuStreamSetAttribute = dlfcn.dlsym(handle, 'cuStreamSetAttribute')
- {{endif}}
- {{if 'cuEventRecord' in found_functions}}
- global __cuEventRecord
- __cuEventRecord = dlfcn.dlsym(handle, 'cuEventRecord')
- {{endif}}
- {{if 'cuEventRecordWithFlags' in found_functions}}
- global __cuEventRecordWithFlags
- __cuEventRecordWithFlags = dlfcn.dlsym(handle, 'cuEventRecordWithFlags')
- {{endif}}
- {{if 'cuSignalExternalSemaphoresAsync' in found_functions}}
- global __cuSignalExternalSemaphoresAsync
- __cuSignalExternalSemaphoresAsync = dlfcn.dlsym(handle, 'cuSignalExternalSemaphoresAsync')
- {{endif}}
- {{if 'cuWaitExternalSemaphoresAsync' in found_functions}}
- global __cuWaitExternalSemaphoresAsync
- __cuWaitExternalSemaphoresAsync = dlfcn.dlsym(handle, 'cuWaitExternalSemaphoresAsync')
- {{endif}}
- {{if 'cuStreamWaitValue32_v2' in found_functions}}
- global __cuStreamWaitValue32_v2
- __cuStreamWaitValue32_v2 = dlfcn.dlsym(handle, 'cuStreamWaitValue32_v2')
- {{endif}}
- {{if 'cuStreamWaitValue64_v2' in found_functions}}
- global __cuStreamWaitValue64_v2
- __cuStreamWaitValue64_v2 = dlfcn.dlsym(handle, 'cuStreamWaitValue64_v2')
- {{endif}}
- {{if 'cuStreamWriteValue32_v2' in found_functions}}
- global __cuStreamWriteValue32_v2
- __cuStreamWriteValue32_v2 = dlfcn.dlsym(handle, 'cuStreamWriteValue32_v2')
- {{endif}}
- {{if 'cuStreamWriteValue64_v2' in found_functions}}
- global __cuStreamWriteValue64_v2
- __cuStreamWriteValue64_v2 = dlfcn.dlsym(handle, 'cuStreamWriteValue64_v2')
- {{endif}}
- {{if 'cuStreamBatchMemOp_v2' in found_functions}}
- global __cuStreamBatchMemOp_v2
- __cuStreamBatchMemOp_v2 = dlfcn.dlsym(handle, 'cuStreamBatchMemOp_v2')
- {{endif}}
- {{if 'cuLaunchKernel' in found_functions}}
- global __cuLaunchKernel
- __cuLaunchKernel = dlfcn.dlsym(handle, 'cuLaunchKernel')
- {{endif}}
- {{if 'cuLaunchKernelEx' in found_functions}}
- global __cuLaunchKernelEx
- __cuLaunchKernelEx = dlfcn.dlsym(handle, 'cuLaunchKernelEx')
- {{endif}}
- {{if 'cuLaunchCooperativeKernel' in found_functions}}
- global __cuLaunchCooperativeKernel
- __cuLaunchCooperativeKernel = dlfcn.dlsym(handle, 'cuLaunchCooperativeKernel')
- {{endif}}
- {{if 'cuLaunchHostFunc' in found_functions}}
- global __cuLaunchHostFunc
- __cuLaunchHostFunc = dlfcn.dlsym(handle, 'cuLaunchHostFunc')
- {{endif}}
- {{if 'cuGraphInstantiateWithParams' in found_functions}}
- global __cuGraphInstantiateWithParams
- __cuGraphInstantiateWithParams = dlfcn.dlsym(handle, 'cuGraphInstantiateWithParams')
- {{endif}}
- {{if 'cuGraphUpload' in found_functions}}
- global __cuGraphUpload
- __cuGraphUpload = dlfcn.dlsym(handle, 'cuGraphUpload')
- {{endif}}
- {{if 'cuGraphLaunch' in found_functions}}
- global __cuGraphLaunch
- __cuGraphLaunch = dlfcn.dlsym(handle, 'cuGraphLaunch')
- {{endif}}
- {{if 'cuGraphicsMapResources' in found_functions}}
- global __cuGraphicsMapResources
- __cuGraphicsMapResources = dlfcn.dlsym(handle, 'cuGraphicsMapResources')
- {{endif}}
- {{if 'cuGraphicsUnmapResources' in found_functions}}
- global __cuGraphicsUnmapResources
- __cuGraphicsUnmapResources = dlfcn.dlsym(handle, 'cuGraphicsUnmapResources')
- {{endif}}
- # Get remaining functions
- {{if 'cuGetErrorString' in found_functions}}
- global __cuGetErrorString
- __cuGetErrorString = dlfcn.dlsym(handle, 'cuGetErrorString')
- {{endif}}
- {{if 'cuGetErrorName' in found_functions}}
- global __cuGetErrorName
- __cuGetErrorName = dlfcn.dlsym(handle, 'cuGetErrorName')
- {{endif}}
- {{if 'cuInit' in found_functions}}
- global __cuInit
- __cuInit = dlfcn.dlsym(handle, 'cuInit')
- {{endif}}
- {{if 'cuDriverGetVersion' in found_functions}}
- global __cuDriverGetVersion
- __cuDriverGetVersion = dlfcn.dlsym(handle, 'cuDriverGetVersion')
- {{endif}}
- {{if 'cuDeviceGet' in found_functions}}
- global __cuDeviceGet
- __cuDeviceGet = dlfcn.dlsym(handle, 'cuDeviceGet')
- {{endif}}
- {{if 'cuDeviceGetCount' in found_functions}}
- global __cuDeviceGetCount
- __cuDeviceGetCount = dlfcn.dlsym(handle, 'cuDeviceGetCount')
- {{endif}}
- {{if 'cuDeviceGetName' in found_functions}}
- global __cuDeviceGetName
- __cuDeviceGetName = dlfcn.dlsym(handle, 'cuDeviceGetName')
- {{endif}}
- {{if 'cuDeviceGetUuid_v2' in found_functions}}
- global __cuDeviceGetUuid_v2
- __cuDeviceGetUuid_v2 = dlfcn.dlsym(handle, 'cuDeviceGetUuid_v2')
- {{endif}}
- {{if 'cuDeviceGetLuid' in found_functions}}
- global __cuDeviceGetLuid
- __cuDeviceGetLuid = dlfcn.dlsym(handle, 'cuDeviceGetLuid')
- {{endif}}
- {{if 'cuDeviceTotalMem_v2' in found_functions}}
- global __cuDeviceTotalMem_v2
- __cuDeviceTotalMem_v2 = dlfcn.dlsym(handle, 'cuDeviceTotalMem_v2')
- {{endif}}
- {{if 'cuDeviceGetTexture1DLinearMaxWidth' in found_functions}}
- global __cuDeviceGetTexture1DLinearMaxWidth
- __cuDeviceGetTexture1DLinearMaxWidth = dlfcn.dlsym(handle, 'cuDeviceGetTexture1DLinearMaxWidth')
- {{endif}}
- {{if 'cuDeviceGetAttribute' in found_functions}}
- global __cuDeviceGetAttribute
- __cuDeviceGetAttribute = dlfcn.dlsym(handle, 'cuDeviceGetAttribute')
- {{endif}}
- {{if 'cuDeviceGetHostAtomicCapabilities' in found_functions}}
- global __cuDeviceGetHostAtomicCapabilities
- __cuDeviceGetHostAtomicCapabilities = dlfcn.dlsym(handle, 'cuDeviceGetHostAtomicCapabilities')
- {{endif}}
- {{if 'cuDeviceGetNvSciSyncAttributes' in found_functions}}
- global __cuDeviceGetNvSciSyncAttributes
- __cuDeviceGetNvSciSyncAttributes = dlfcn.dlsym(handle, 'cuDeviceGetNvSciSyncAttributes')
- {{endif}}
- {{if 'cuDeviceSetMemPool' in found_functions}}
- global __cuDeviceSetMemPool
- __cuDeviceSetMemPool = dlfcn.dlsym(handle, 'cuDeviceSetMemPool')
- {{endif}}
- {{if 'cuDeviceGetMemPool' in found_functions}}
- global __cuDeviceGetMemPool
- __cuDeviceGetMemPool = dlfcn.dlsym(handle, 'cuDeviceGetMemPool')
- {{endif}}
- {{if 'cuDeviceGetDefaultMemPool' in found_functions}}
- global __cuDeviceGetDefaultMemPool
- __cuDeviceGetDefaultMemPool = dlfcn.dlsym(handle, 'cuDeviceGetDefaultMemPool')
- {{endif}}
- {{if 'cuDeviceGetExecAffinitySupport' in found_functions}}
- global __cuDeviceGetExecAffinitySupport
- __cuDeviceGetExecAffinitySupport = dlfcn.dlsym(handle, 'cuDeviceGetExecAffinitySupport')
- {{endif}}
- {{if 'cuFlushGPUDirectRDMAWrites' in found_functions}}
- global __cuFlushGPUDirectRDMAWrites
- __cuFlushGPUDirectRDMAWrites = dlfcn.dlsym(handle, 'cuFlushGPUDirectRDMAWrites')
- {{endif}}
- {{if 'cuDeviceGetProperties' in found_functions}}
- global __cuDeviceGetProperties
- __cuDeviceGetProperties = dlfcn.dlsym(handle, 'cuDeviceGetProperties')
- {{endif}}
- {{if 'cuDeviceComputeCapability' in found_functions}}
- global __cuDeviceComputeCapability
- __cuDeviceComputeCapability = dlfcn.dlsym(handle, 'cuDeviceComputeCapability')
- {{endif}}
- {{if 'cuDevicePrimaryCtxRetain' in found_functions}}
- global __cuDevicePrimaryCtxRetain
- __cuDevicePrimaryCtxRetain = dlfcn.dlsym(handle, 'cuDevicePrimaryCtxRetain')
- {{endif}}
- {{if 'cuDevicePrimaryCtxRelease_v2' in found_functions}}
- global __cuDevicePrimaryCtxRelease_v2
- __cuDevicePrimaryCtxRelease_v2 = dlfcn.dlsym(handle, 'cuDevicePrimaryCtxRelease_v2')
- {{endif}}
- {{if 'cuDevicePrimaryCtxSetFlags_v2' in found_functions}}
- global __cuDevicePrimaryCtxSetFlags_v2
- __cuDevicePrimaryCtxSetFlags_v2 = dlfcn.dlsym(handle, 'cuDevicePrimaryCtxSetFlags_v2')
- {{endif}}
- {{if 'cuDevicePrimaryCtxGetState' in found_functions}}
- global __cuDevicePrimaryCtxGetState
- __cuDevicePrimaryCtxGetState = dlfcn.dlsym(handle, 'cuDevicePrimaryCtxGetState')
- {{endif}}
- {{if 'cuDevicePrimaryCtxReset_v2' in found_functions}}
- global __cuDevicePrimaryCtxReset_v2
- __cuDevicePrimaryCtxReset_v2 = dlfcn.dlsym(handle, 'cuDevicePrimaryCtxReset_v2')
- {{endif}}
- {{if 'cuCtxCreate_v4' in found_functions}}
- global __cuCtxCreate_v4
- __cuCtxCreate_v4 = dlfcn.dlsym(handle, 'cuCtxCreate_v4')
- {{endif}}
- {{if 'cuCtxDestroy_v2' in found_functions}}
- global __cuCtxDestroy_v2
- __cuCtxDestroy_v2 = dlfcn.dlsym(handle, 'cuCtxDestroy_v2')
- {{endif}}
- {{if 'cuCtxPushCurrent_v2' in found_functions}}
- global __cuCtxPushCurrent_v2
- __cuCtxPushCurrent_v2 = dlfcn.dlsym(handle, 'cuCtxPushCurrent_v2')
- {{endif}}
- {{if 'cuCtxPopCurrent_v2' in found_functions}}
- global __cuCtxPopCurrent_v2
- __cuCtxPopCurrent_v2 = dlfcn.dlsym(handle, 'cuCtxPopCurrent_v2')
- {{endif}}
- {{if 'cuCtxSetCurrent' in found_functions}}
- global __cuCtxSetCurrent
- __cuCtxSetCurrent = dlfcn.dlsym(handle, 'cuCtxSetCurrent')
- {{endif}}
- {{if 'cuCtxGetCurrent' in found_functions}}
- global __cuCtxGetCurrent
- __cuCtxGetCurrent = dlfcn.dlsym(handle, 'cuCtxGetCurrent')
- {{endif}}
- {{if 'cuCtxGetDevice' in found_functions}}
- global __cuCtxGetDevice
- __cuCtxGetDevice = dlfcn.dlsym(handle, 'cuCtxGetDevice')
- {{endif}}
- {{if 'cuCtxGetDevice_v2' in found_functions}}
- global __cuCtxGetDevice_v2
- __cuCtxGetDevice_v2 = dlfcn.dlsym(handle, 'cuCtxGetDevice_v2')
- {{endif}}
- {{if 'cuCtxGetFlags' in found_functions}}
- global __cuCtxGetFlags
- __cuCtxGetFlags = dlfcn.dlsym(handle, 'cuCtxGetFlags')
- {{endif}}
- {{if 'cuCtxSetFlags' in found_functions}}
- global __cuCtxSetFlags
- __cuCtxSetFlags = dlfcn.dlsym(handle, 'cuCtxSetFlags')
- {{endif}}
- {{if 'cuCtxGetId' in found_functions}}
- global __cuCtxGetId
- __cuCtxGetId = dlfcn.dlsym(handle, 'cuCtxGetId')
- {{endif}}
- {{if 'cuCtxSynchronize' in found_functions}}
- global __cuCtxSynchronize
- __cuCtxSynchronize = dlfcn.dlsym(handle, 'cuCtxSynchronize')
- {{endif}}
- {{if 'cuCtxSynchronize_v2' in found_functions}}
- global __cuCtxSynchronize_v2
- __cuCtxSynchronize_v2 = dlfcn.dlsym(handle, 'cuCtxSynchronize_v2')
- {{endif}}
- {{if 'cuCtxSetLimit' in found_functions}}
- global __cuCtxSetLimit
- __cuCtxSetLimit = dlfcn.dlsym(handle, 'cuCtxSetLimit')
- {{endif}}
- {{if 'cuCtxGetLimit' in found_functions}}
- global __cuCtxGetLimit
- __cuCtxGetLimit = dlfcn.dlsym(handle, 'cuCtxGetLimit')
- {{endif}}
- {{if 'cuCtxGetCacheConfig' in found_functions}}
- global __cuCtxGetCacheConfig
- __cuCtxGetCacheConfig = dlfcn.dlsym(handle, 'cuCtxGetCacheConfig')
- {{endif}}
- {{if 'cuCtxSetCacheConfig' in found_functions}}
- global __cuCtxSetCacheConfig
- __cuCtxSetCacheConfig = dlfcn.dlsym(handle, 'cuCtxSetCacheConfig')
- {{endif}}
- {{if 'cuCtxGetApiVersion' in found_functions}}
- global __cuCtxGetApiVersion
- __cuCtxGetApiVersion = dlfcn.dlsym(handle, 'cuCtxGetApiVersion')
- {{endif}}
- {{if 'cuCtxGetStreamPriorityRange' in found_functions}}
- global __cuCtxGetStreamPriorityRange
- __cuCtxGetStreamPriorityRange = dlfcn.dlsym(handle, 'cuCtxGetStreamPriorityRange')
- {{endif}}
- {{if 'cuCtxResetPersistingL2Cache' in found_functions}}
- global __cuCtxResetPersistingL2Cache
- __cuCtxResetPersistingL2Cache = dlfcn.dlsym(handle, 'cuCtxResetPersistingL2Cache')
- {{endif}}
- {{if 'cuCtxGetExecAffinity' in found_functions}}
- global __cuCtxGetExecAffinity
- __cuCtxGetExecAffinity = dlfcn.dlsym(handle, 'cuCtxGetExecAffinity')
- {{endif}}
- {{if 'cuCtxRecordEvent' in found_functions}}
- global __cuCtxRecordEvent
- __cuCtxRecordEvent = dlfcn.dlsym(handle, 'cuCtxRecordEvent')
- {{endif}}
- {{if 'cuCtxWaitEvent' in found_functions}}
- global __cuCtxWaitEvent
- __cuCtxWaitEvent = dlfcn.dlsym(handle, 'cuCtxWaitEvent')
- {{endif}}
- {{if 'cuCtxAttach' in found_functions}}
- global __cuCtxAttach
- __cuCtxAttach = dlfcn.dlsym(handle, 'cuCtxAttach')
- {{endif}}
- {{if 'cuCtxDetach' in found_functions}}
- global __cuCtxDetach
- __cuCtxDetach = dlfcn.dlsym(handle, 'cuCtxDetach')
- {{endif}}
- {{if 'cuCtxGetSharedMemConfig' in found_functions}}
- global __cuCtxGetSharedMemConfig
- __cuCtxGetSharedMemConfig = dlfcn.dlsym(handle, 'cuCtxGetSharedMemConfig')
- {{endif}}
- {{if 'cuCtxSetSharedMemConfig' in found_functions}}
- global __cuCtxSetSharedMemConfig
- __cuCtxSetSharedMemConfig = dlfcn.dlsym(handle, 'cuCtxSetSharedMemConfig')
- {{endif}}
- {{if 'cuModuleLoad' in found_functions}}
- global __cuModuleLoad
- __cuModuleLoad = dlfcn.dlsym(handle, 'cuModuleLoad')
- {{endif}}
- {{if 'cuModuleLoadData' in found_functions}}
- global __cuModuleLoadData
- __cuModuleLoadData = dlfcn.dlsym(handle, 'cuModuleLoadData')
- {{endif}}
- {{if 'cuModuleLoadDataEx' in found_functions}}
- global __cuModuleLoadDataEx
- __cuModuleLoadDataEx = dlfcn.dlsym(handle, 'cuModuleLoadDataEx')
- {{endif}}
- {{if 'cuModuleLoadFatBinary' in found_functions}}
- global __cuModuleLoadFatBinary
- __cuModuleLoadFatBinary = dlfcn.dlsym(handle, 'cuModuleLoadFatBinary')
- {{endif}}
- {{if 'cuModuleUnload' in found_functions}}
- global __cuModuleUnload
- __cuModuleUnload = dlfcn.dlsym(handle, 'cuModuleUnload')
- {{endif}}
- {{if 'cuModuleGetLoadingMode' in found_functions}}
- global __cuModuleGetLoadingMode
- __cuModuleGetLoadingMode = dlfcn.dlsym(handle, 'cuModuleGetLoadingMode')
- {{endif}}
- {{if 'cuModuleGetFunction' in found_functions}}
- global __cuModuleGetFunction
- __cuModuleGetFunction = dlfcn.dlsym(handle, 'cuModuleGetFunction')
- {{endif}}
- {{if 'cuModuleGetFunctionCount' in found_functions}}
- global __cuModuleGetFunctionCount
- __cuModuleGetFunctionCount = dlfcn.dlsym(handle, 'cuModuleGetFunctionCount')
- {{endif}}
- {{if 'cuModuleEnumerateFunctions' in found_functions}}
- global __cuModuleEnumerateFunctions
- __cuModuleEnumerateFunctions = dlfcn.dlsym(handle, 'cuModuleEnumerateFunctions')
- {{endif}}
- {{if 'cuModuleGetGlobal_v2' in found_functions}}
- global __cuModuleGetGlobal_v2
- __cuModuleGetGlobal_v2 = dlfcn.dlsym(handle, 'cuModuleGetGlobal_v2')
- {{endif}}
- {{if 'cuLinkCreate_v2' in found_functions}}
- global __cuLinkCreate_v2
- __cuLinkCreate_v2 = dlfcn.dlsym(handle, 'cuLinkCreate_v2')
- {{endif}}
- {{if 'cuLinkAddData_v2' in found_functions}}
- global __cuLinkAddData_v2
- __cuLinkAddData_v2 = dlfcn.dlsym(handle, 'cuLinkAddData_v2')
- {{endif}}
- {{if 'cuLinkAddFile_v2' in found_functions}}
- global __cuLinkAddFile_v2
- __cuLinkAddFile_v2 = dlfcn.dlsym(handle, 'cuLinkAddFile_v2')
- {{endif}}
- {{if 'cuLinkComplete' in found_functions}}
- global __cuLinkComplete
- __cuLinkComplete = dlfcn.dlsym(handle, 'cuLinkComplete')
- {{endif}}
- {{if 'cuLinkDestroy' in found_functions}}
- global __cuLinkDestroy
- __cuLinkDestroy = dlfcn.dlsym(handle, 'cuLinkDestroy')
- {{endif}}
- {{if 'cuModuleGetTexRef' in found_functions}}
- global __cuModuleGetTexRef
- __cuModuleGetTexRef = dlfcn.dlsym(handle, 'cuModuleGetTexRef')
- {{endif}}
- {{if 'cuModuleGetSurfRef' in found_functions}}
- global __cuModuleGetSurfRef
- __cuModuleGetSurfRef = dlfcn.dlsym(handle, 'cuModuleGetSurfRef')
- {{endif}}
- {{if 'cuLibraryLoadData' in found_functions}}
- global __cuLibraryLoadData
- __cuLibraryLoadData = dlfcn.dlsym(handle, 'cuLibraryLoadData')
- {{endif}}
- {{if 'cuLibraryLoadFromFile' in found_functions}}
- global __cuLibraryLoadFromFile
- __cuLibraryLoadFromFile = dlfcn.dlsym(handle, 'cuLibraryLoadFromFile')
- {{endif}}
- {{if 'cuLibraryUnload' in found_functions}}
- global __cuLibraryUnload
- __cuLibraryUnload = dlfcn.dlsym(handle, 'cuLibraryUnload')
- {{endif}}
- {{if 'cuLibraryGetKernel' in found_functions}}
- global __cuLibraryGetKernel
- __cuLibraryGetKernel = dlfcn.dlsym(handle, 'cuLibraryGetKernel')
- {{endif}}
- {{if 'cuLibraryGetKernelCount' in found_functions}}
- global __cuLibraryGetKernelCount
- __cuLibraryGetKernelCount = dlfcn.dlsym(handle, 'cuLibraryGetKernelCount')
- {{endif}}
- {{if 'cuLibraryEnumerateKernels' in found_functions}}
- global __cuLibraryEnumerateKernels
- __cuLibraryEnumerateKernels = dlfcn.dlsym(handle, 'cuLibraryEnumerateKernels')
- {{endif}}
- {{if 'cuLibraryGetModule' in found_functions}}
- global __cuLibraryGetModule
- __cuLibraryGetModule = dlfcn.dlsym(handle, 'cuLibraryGetModule')
- {{endif}}
- {{if 'cuKernelGetFunction' in found_functions}}
- global __cuKernelGetFunction
- __cuKernelGetFunction = dlfcn.dlsym(handle, 'cuKernelGetFunction')
- {{endif}}
- {{if 'cuKernelGetLibrary' in found_functions}}
- global __cuKernelGetLibrary
- __cuKernelGetLibrary = dlfcn.dlsym(handle, 'cuKernelGetLibrary')
- {{endif}}
- {{if 'cuLibraryGetGlobal' in found_functions}}
- global __cuLibraryGetGlobal
- __cuLibraryGetGlobal = dlfcn.dlsym(handle, 'cuLibraryGetGlobal')
- {{endif}}
- {{if 'cuLibraryGetManaged' in found_functions}}
- global __cuLibraryGetManaged
- __cuLibraryGetManaged = dlfcn.dlsym(handle, 'cuLibraryGetManaged')
- {{endif}}
- {{if 'cuLibraryGetUnifiedFunction' in found_functions}}
- global __cuLibraryGetUnifiedFunction
- __cuLibraryGetUnifiedFunction = dlfcn.dlsym(handle, 'cuLibraryGetUnifiedFunction')
- {{endif}}
- {{if 'cuKernelGetAttribute' in found_functions}}
- global __cuKernelGetAttribute
- __cuKernelGetAttribute = dlfcn.dlsym(handle, 'cuKernelGetAttribute')
- {{endif}}
- {{if 'cuKernelSetAttribute' in found_functions}}
- global __cuKernelSetAttribute
- __cuKernelSetAttribute = dlfcn.dlsym(handle, 'cuKernelSetAttribute')
- {{endif}}
- {{if 'cuKernelSetCacheConfig' in found_functions}}
- global __cuKernelSetCacheConfig
- __cuKernelSetCacheConfig = dlfcn.dlsym(handle, 'cuKernelSetCacheConfig')
- {{endif}}
- {{if 'cuKernelGetName' in found_functions}}
- global __cuKernelGetName
- __cuKernelGetName = dlfcn.dlsym(handle, 'cuKernelGetName')
- {{endif}}
- {{if 'cuKernelGetParamInfo' in found_functions}}
- global __cuKernelGetParamInfo
- __cuKernelGetParamInfo = dlfcn.dlsym(handle, 'cuKernelGetParamInfo')
- {{endif}}
- {{if 'cuMemGetInfo_v2' in found_functions}}
- global __cuMemGetInfo_v2
- __cuMemGetInfo_v2 = dlfcn.dlsym(handle, 'cuMemGetInfo_v2')
- {{endif}}
- {{if 'cuMemAlloc_v2' in found_functions}}
- global __cuMemAlloc_v2
- __cuMemAlloc_v2 = dlfcn.dlsym(handle, 'cuMemAlloc_v2')
- {{endif}}
- {{if 'cuMemAllocPitch_v2' in found_functions}}
- global __cuMemAllocPitch_v2
- __cuMemAllocPitch_v2 = dlfcn.dlsym(handle, 'cuMemAllocPitch_v2')
- {{endif}}
- {{if 'cuMemFree_v2' in found_functions}}
- global __cuMemFree_v2
- __cuMemFree_v2 = dlfcn.dlsym(handle, 'cuMemFree_v2')
- {{endif}}
- {{if 'cuMemGetAddressRange_v2' in found_functions}}
- global __cuMemGetAddressRange_v2
- __cuMemGetAddressRange_v2 = dlfcn.dlsym(handle, 'cuMemGetAddressRange_v2')
- {{endif}}
- {{if 'cuMemAllocHost_v2' in found_functions}}
- global __cuMemAllocHost_v2
- __cuMemAllocHost_v2 = dlfcn.dlsym(handle, 'cuMemAllocHost_v2')
- {{endif}}
- {{if 'cuMemFreeHost' in found_functions}}
- global __cuMemFreeHost
- __cuMemFreeHost = dlfcn.dlsym(handle, 'cuMemFreeHost')
- {{endif}}
- {{if 'cuMemHostAlloc' in found_functions}}
- global __cuMemHostAlloc
- __cuMemHostAlloc = dlfcn.dlsym(handle, 'cuMemHostAlloc')
- {{endif}}
- {{if 'cuMemHostGetDevicePointer_v2' in found_functions}}
- global __cuMemHostGetDevicePointer_v2
- __cuMemHostGetDevicePointer_v2 = dlfcn.dlsym(handle, 'cuMemHostGetDevicePointer_v2')
- {{endif}}
- {{if 'cuMemHostGetFlags' in found_functions}}
- global __cuMemHostGetFlags
- __cuMemHostGetFlags = dlfcn.dlsym(handle, 'cuMemHostGetFlags')
- {{endif}}
- {{if 'cuMemAllocManaged' in found_functions}}
- global __cuMemAllocManaged
- __cuMemAllocManaged = dlfcn.dlsym(handle, 'cuMemAllocManaged')
- {{endif}}
- {{if 'cuDeviceRegisterAsyncNotification' in found_functions}}
- global __cuDeviceRegisterAsyncNotification
- __cuDeviceRegisterAsyncNotification = dlfcn.dlsym(handle, 'cuDeviceRegisterAsyncNotification')
- {{endif}}
- {{if 'cuDeviceUnregisterAsyncNotification' in found_functions}}
- global __cuDeviceUnregisterAsyncNotification
- __cuDeviceUnregisterAsyncNotification = dlfcn.dlsym(handle, 'cuDeviceUnregisterAsyncNotification')
- {{endif}}
- {{if 'cuDeviceGetByPCIBusId' in found_functions}}
- global __cuDeviceGetByPCIBusId
- __cuDeviceGetByPCIBusId = dlfcn.dlsym(handle, 'cuDeviceGetByPCIBusId')
- {{endif}}
- {{if 'cuDeviceGetPCIBusId' in found_functions}}
- global __cuDeviceGetPCIBusId
- __cuDeviceGetPCIBusId = dlfcn.dlsym(handle, 'cuDeviceGetPCIBusId')
- {{endif}}
- {{if 'cuIpcGetEventHandle' in found_functions}}
- global __cuIpcGetEventHandle
- __cuIpcGetEventHandle = dlfcn.dlsym(handle, 'cuIpcGetEventHandle')
- {{endif}}
- {{if 'cuIpcOpenEventHandle' in found_functions}}
- global __cuIpcOpenEventHandle
- __cuIpcOpenEventHandle = dlfcn.dlsym(handle, 'cuIpcOpenEventHandle')
- {{endif}}
- {{if 'cuIpcGetMemHandle' in found_functions}}
- global __cuIpcGetMemHandle
- __cuIpcGetMemHandle = dlfcn.dlsym(handle, 'cuIpcGetMemHandle')
- {{endif}}
- {{if 'cuIpcOpenMemHandle_v2' in found_functions}}
- global __cuIpcOpenMemHandle_v2
- __cuIpcOpenMemHandle_v2 = dlfcn.dlsym(handle, 'cuIpcOpenMemHandle_v2')
- {{endif}}
- {{if 'cuIpcCloseMemHandle' in found_functions}}
- global __cuIpcCloseMemHandle
- __cuIpcCloseMemHandle = dlfcn.dlsym(handle, 'cuIpcCloseMemHandle')
- {{endif}}
- {{if 'cuMemHostRegister_v2' in found_functions}}
- global __cuMemHostRegister_v2
- __cuMemHostRegister_v2 = dlfcn.dlsym(handle, 'cuMemHostRegister_v2')
- {{endif}}
- {{if 'cuMemHostUnregister' in found_functions}}
- global __cuMemHostUnregister
- __cuMemHostUnregister = dlfcn.dlsym(handle, 'cuMemHostUnregister')
- {{endif}}
- {{if 'cuArrayCreate_v2' in found_functions}}
- global __cuArrayCreate_v2
- __cuArrayCreate_v2 = dlfcn.dlsym(handle, 'cuArrayCreate_v2')
- {{endif}}
- {{if 'cuArrayGetDescriptor_v2' in found_functions}}
- global __cuArrayGetDescriptor_v2
- __cuArrayGetDescriptor_v2 = dlfcn.dlsym(handle, 'cuArrayGetDescriptor_v2')
- {{endif}}
- {{if 'cuArrayGetSparseProperties' in found_functions}}
- global __cuArrayGetSparseProperties
- __cuArrayGetSparseProperties = dlfcn.dlsym(handle, 'cuArrayGetSparseProperties')
- {{endif}}
- {{if 'cuMipmappedArrayGetSparseProperties' in found_functions}}
- global __cuMipmappedArrayGetSparseProperties
- __cuMipmappedArrayGetSparseProperties = dlfcn.dlsym(handle, 'cuMipmappedArrayGetSparseProperties')
- {{endif}}
- {{if 'cuArrayGetMemoryRequirements' in found_functions}}
- global __cuArrayGetMemoryRequirements
- __cuArrayGetMemoryRequirements = dlfcn.dlsym(handle, 'cuArrayGetMemoryRequirements')
- {{endif}}
- {{if 'cuMipmappedArrayGetMemoryRequirements' in found_functions}}
- global __cuMipmappedArrayGetMemoryRequirements
- __cuMipmappedArrayGetMemoryRequirements = dlfcn.dlsym(handle, 'cuMipmappedArrayGetMemoryRequirements')
- {{endif}}
- {{if 'cuArrayGetPlane' in found_functions}}
- global __cuArrayGetPlane
- __cuArrayGetPlane = dlfcn.dlsym(handle, 'cuArrayGetPlane')
- {{endif}}
- {{if 'cuArrayDestroy' in found_functions}}
- global __cuArrayDestroy
- __cuArrayDestroy = dlfcn.dlsym(handle, 'cuArrayDestroy')
- {{endif}}
- {{if 'cuArray3DCreate_v2' in found_functions}}
- global __cuArray3DCreate_v2
- __cuArray3DCreate_v2 = dlfcn.dlsym(handle, 'cuArray3DCreate_v2')
- {{endif}}
- {{if 'cuArray3DGetDescriptor_v2' in found_functions}}
- global __cuArray3DGetDescriptor_v2
- __cuArray3DGetDescriptor_v2 = dlfcn.dlsym(handle, 'cuArray3DGetDescriptor_v2')
- {{endif}}
- {{if 'cuMipmappedArrayCreate' in found_functions}}
- global __cuMipmappedArrayCreate
- __cuMipmappedArrayCreate = dlfcn.dlsym(handle, 'cuMipmappedArrayCreate')
- {{endif}}
- {{if 'cuMipmappedArrayGetLevel' in found_functions}}
- global __cuMipmappedArrayGetLevel
- __cuMipmappedArrayGetLevel = dlfcn.dlsym(handle, 'cuMipmappedArrayGetLevel')
- {{endif}}
- {{if 'cuMipmappedArrayDestroy' in found_functions}}
- global __cuMipmappedArrayDestroy
- __cuMipmappedArrayDestroy = dlfcn.dlsym(handle, 'cuMipmappedArrayDestroy')
- {{endif}}
- {{if 'cuMemGetHandleForAddressRange' in found_functions}}
- global __cuMemGetHandleForAddressRange
- __cuMemGetHandleForAddressRange = dlfcn.dlsym(handle, 'cuMemGetHandleForAddressRange')
- {{endif}}
- {{if 'cuMemAddressReserve' in found_functions}}
- global __cuMemAddressReserve
- __cuMemAddressReserve = dlfcn.dlsym(handle, 'cuMemAddressReserve')
- {{endif}}
- {{if 'cuMemAddressFree' in found_functions}}
- global __cuMemAddressFree
- __cuMemAddressFree = dlfcn.dlsym(handle, 'cuMemAddressFree')
- {{endif}}
- {{if 'cuMemCreate' in found_functions}}
- global __cuMemCreate
- __cuMemCreate = dlfcn.dlsym(handle, 'cuMemCreate')
- {{endif}}
- {{if 'cuMemRelease' in found_functions}}
- global __cuMemRelease
- __cuMemRelease = dlfcn.dlsym(handle, 'cuMemRelease')
- {{endif}}
- {{if 'cuMemMap' in found_functions}}
- global __cuMemMap
- __cuMemMap = dlfcn.dlsym(handle, 'cuMemMap')
- {{endif}}
- {{if 'cuMemUnmap' in found_functions}}
- global __cuMemUnmap
- __cuMemUnmap = dlfcn.dlsym(handle, 'cuMemUnmap')
- {{endif}}
- {{if 'cuMemSetAccess' in found_functions}}
- global __cuMemSetAccess
- __cuMemSetAccess = dlfcn.dlsym(handle, 'cuMemSetAccess')
- {{endif}}
- {{if 'cuMemGetAccess' in found_functions}}
- global __cuMemGetAccess
- __cuMemGetAccess = dlfcn.dlsym(handle, 'cuMemGetAccess')
- {{endif}}
- {{if 'cuMemExportToShareableHandle' in found_functions}}
- global __cuMemExportToShareableHandle
- __cuMemExportToShareableHandle = dlfcn.dlsym(handle, 'cuMemExportToShareableHandle')
- {{endif}}
- {{if 'cuMemImportFromShareableHandle' in found_functions}}
- global __cuMemImportFromShareableHandle
- __cuMemImportFromShareableHandle = dlfcn.dlsym(handle, 'cuMemImportFromShareableHandle')
- {{endif}}
- {{if 'cuMemGetAllocationGranularity' in found_functions}}
- global __cuMemGetAllocationGranularity
- __cuMemGetAllocationGranularity = dlfcn.dlsym(handle, 'cuMemGetAllocationGranularity')
- {{endif}}
- {{if 'cuMemGetAllocationPropertiesFromHandle' in found_functions}}
- global __cuMemGetAllocationPropertiesFromHandle
- __cuMemGetAllocationPropertiesFromHandle = dlfcn.dlsym(handle, 'cuMemGetAllocationPropertiesFromHandle')
- {{endif}}
- {{if 'cuMemRetainAllocationHandle' in found_functions}}
- global __cuMemRetainAllocationHandle
- __cuMemRetainAllocationHandle = dlfcn.dlsym(handle, 'cuMemRetainAllocationHandle')
- {{endif}}
- {{if 'cuMemPoolTrimTo' in found_functions}}
- global __cuMemPoolTrimTo
- __cuMemPoolTrimTo = dlfcn.dlsym(handle, 'cuMemPoolTrimTo')
- {{endif}}
- {{if 'cuMemPoolSetAttribute' in found_functions}}
- global __cuMemPoolSetAttribute
- __cuMemPoolSetAttribute = dlfcn.dlsym(handle, 'cuMemPoolSetAttribute')
- {{endif}}
- {{if 'cuMemPoolGetAttribute' in found_functions}}
- global __cuMemPoolGetAttribute
- __cuMemPoolGetAttribute = dlfcn.dlsym(handle, 'cuMemPoolGetAttribute')
- {{endif}}
- {{if 'cuMemPoolSetAccess' in found_functions}}
- global __cuMemPoolSetAccess
- __cuMemPoolSetAccess = dlfcn.dlsym(handle, 'cuMemPoolSetAccess')
- {{endif}}
- {{if 'cuMemPoolGetAccess' in found_functions}}
- global __cuMemPoolGetAccess
- __cuMemPoolGetAccess = dlfcn.dlsym(handle, 'cuMemPoolGetAccess')
- {{endif}}
- {{if 'cuMemPoolCreate' in found_functions}}
- global __cuMemPoolCreate
- __cuMemPoolCreate = dlfcn.dlsym(handle, 'cuMemPoolCreate')
- {{endif}}
- {{if 'cuMemPoolDestroy' in found_functions}}
- global __cuMemPoolDestroy
- __cuMemPoolDestroy = dlfcn.dlsym(handle, 'cuMemPoolDestroy')
- {{endif}}
- {{if 'cuMemGetDefaultMemPool' in found_functions}}
- global __cuMemGetDefaultMemPool
- __cuMemGetDefaultMemPool = dlfcn.dlsym(handle, 'cuMemGetDefaultMemPool')
- {{endif}}
- {{if 'cuMemGetMemPool' in found_functions}}
- global __cuMemGetMemPool
- __cuMemGetMemPool = dlfcn.dlsym(handle, 'cuMemGetMemPool')
- {{endif}}
- {{if 'cuMemSetMemPool' in found_functions}}
- global __cuMemSetMemPool
- __cuMemSetMemPool = dlfcn.dlsym(handle, 'cuMemSetMemPool')
- {{endif}}
- {{if 'cuMemPoolExportToShareableHandle' in found_functions}}
- global __cuMemPoolExportToShareableHandle
- __cuMemPoolExportToShareableHandle = dlfcn.dlsym(handle, 'cuMemPoolExportToShareableHandle')
- {{endif}}
- {{if 'cuMemPoolImportFromShareableHandle' in found_functions}}
- global __cuMemPoolImportFromShareableHandle
- __cuMemPoolImportFromShareableHandle = dlfcn.dlsym(handle, 'cuMemPoolImportFromShareableHandle')
- {{endif}}
- {{if 'cuMemPoolExportPointer' in found_functions}}
- global __cuMemPoolExportPointer
- __cuMemPoolExportPointer = dlfcn.dlsym(handle, 'cuMemPoolExportPointer')
- {{endif}}
- {{if 'cuMemPoolImportPointer' in found_functions}}
- global __cuMemPoolImportPointer
- __cuMemPoolImportPointer = dlfcn.dlsym(handle, 'cuMemPoolImportPointer')
- {{endif}}
- {{if 'cuMulticastCreate' in found_functions}}
- global __cuMulticastCreate
- __cuMulticastCreate = dlfcn.dlsym(handle, 'cuMulticastCreate')
- {{endif}}
- {{if 'cuMulticastAddDevice' in found_functions}}
- global __cuMulticastAddDevice
- __cuMulticastAddDevice = dlfcn.dlsym(handle, 'cuMulticastAddDevice')
- {{endif}}
- {{if 'cuMulticastBindMem' in found_functions}}
- global __cuMulticastBindMem
- __cuMulticastBindMem = dlfcn.dlsym(handle, 'cuMulticastBindMem')
- {{endif}}
- {{if 'cuMulticastBindAddr' in found_functions}}
- global __cuMulticastBindAddr
- __cuMulticastBindAddr = dlfcn.dlsym(handle, 'cuMulticastBindAddr')
- {{endif}}
- {{if 'cuMulticastUnbind' in found_functions}}
- global __cuMulticastUnbind
- __cuMulticastUnbind = dlfcn.dlsym(handle, 'cuMulticastUnbind')
- {{endif}}
- {{if 'cuMulticastGetGranularity' in found_functions}}
- global __cuMulticastGetGranularity
- __cuMulticastGetGranularity = dlfcn.dlsym(handle, 'cuMulticastGetGranularity')
- {{endif}}
- {{if 'cuPointerGetAttribute' in found_functions}}
- global __cuPointerGetAttribute
- __cuPointerGetAttribute = dlfcn.dlsym(handle, 'cuPointerGetAttribute')
- {{endif}}
- {{if 'cuMemAdvise_v2' in found_functions}}
- global __cuMemAdvise_v2
- __cuMemAdvise_v2 = dlfcn.dlsym(handle, 'cuMemAdvise_v2')
- {{endif}}
- {{if 'cuMemRangeGetAttribute' in found_functions}}
- global __cuMemRangeGetAttribute
- __cuMemRangeGetAttribute = dlfcn.dlsym(handle, 'cuMemRangeGetAttribute')
- {{endif}}
- {{if 'cuMemRangeGetAttributes' in found_functions}}
- global __cuMemRangeGetAttributes
- __cuMemRangeGetAttributes = dlfcn.dlsym(handle, 'cuMemRangeGetAttributes')
- {{endif}}
- {{if 'cuPointerSetAttribute' in found_functions}}
- global __cuPointerSetAttribute
- __cuPointerSetAttribute = dlfcn.dlsym(handle, 'cuPointerSetAttribute')
- {{endif}}
- {{if 'cuPointerGetAttributes' in found_functions}}
- global __cuPointerGetAttributes
- __cuPointerGetAttributes = dlfcn.dlsym(handle, 'cuPointerGetAttributes')
- {{endif}}
- {{if 'cuStreamCreate' in found_functions}}
- global __cuStreamCreate
- __cuStreamCreate = dlfcn.dlsym(handle, 'cuStreamCreate')
- {{endif}}
- {{if 'cuStreamCreateWithPriority' in found_functions}}
- global __cuStreamCreateWithPriority
- __cuStreamCreateWithPriority = dlfcn.dlsym(handle, 'cuStreamCreateWithPriority')
- {{endif}}
- {{if 'cuThreadExchangeStreamCaptureMode' in found_functions}}
- global __cuThreadExchangeStreamCaptureMode
- __cuThreadExchangeStreamCaptureMode = dlfcn.dlsym(handle, 'cuThreadExchangeStreamCaptureMode')
- {{endif}}
- {{if 'cuStreamDestroy_v2' in found_functions}}
- global __cuStreamDestroy_v2
- __cuStreamDestroy_v2 = dlfcn.dlsym(handle, 'cuStreamDestroy_v2')
- {{endif}}
- {{if 'cuEventCreate' in found_functions}}
- global __cuEventCreate
- __cuEventCreate = dlfcn.dlsym(handle, 'cuEventCreate')
- {{endif}}
- {{if 'cuEventQuery' in found_functions}}
- global __cuEventQuery
- __cuEventQuery = dlfcn.dlsym(handle, 'cuEventQuery')
- {{endif}}
- {{if 'cuEventSynchronize' in found_functions}}
- global __cuEventSynchronize
- __cuEventSynchronize = dlfcn.dlsym(handle, 'cuEventSynchronize')
- {{endif}}
- {{if 'cuEventDestroy_v2' in found_functions}}
- global __cuEventDestroy_v2
- __cuEventDestroy_v2 = dlfcn.dlsym(handle, 'cuEventDestroy_v2')
- {{endif}}
- {{if 'cuEventElapsedTime_v2' in found_functions}}
- global __cuEventElapsedTime_v2
- __cuEventElapsedTime_v2 = dlfcn.dlsym(handle, 'cuEventElapsedTime_v2')
- {{endif}}
- {{if 'cuImportExternalMemory' in found_functions}}
- global __cuImportExternalMemory
- __cuImportExternalMemory = dlfcn.dlsym(handle, 'cuImportExternalMemory')
- {{endif}}
- {{if 'cuExternalMemoryGetMappedBuffer' in found_functions}}
- global __cuExternalMemoryGetMappedBuffer
- __cuExternalMemoryGetMappedBuffer = dlfcn.dlsym(handle, 'cuExternalMemoryGetMappedBuffer')
- {{endif}}
- {{if 'cuExternalMemoryGetMappedMipmappedArray' in found_functions}}
- global __cuExternalMemoryGetMappedMipmappedArray
- __cuExternalMemoryGetMappedMipmappedArray = dlfcn.dlsym(handle, 'cuExternalMemoryGetMappedMipmappedArray')
- {{endif}}
- {{if 'cuDestroyExternalMemory' in found_functions}}
- global __cuDestroyExternalMemory
- __cuDestroyExternalMemory = dlfcn.dlsym(handle, 'cuDestroyExternalMemory')
- {{endif}}
- {{if 'cuImportExternalSemaphore' in found_functions}}
- global __cuImportExternalSemaphore
- __cuImportExternalSemaphore = dlfcn.dlsym(handle, 'cuImportExternalSemaphore')
- {{endif}}
- {{if 'cuDestroyExternalSemaphore' in found_functions}}
- global __cuDestroyExternalSemaphore
- __cuDestroyExternalSemaphore = dlfcn.dlsym(handle, 'cuDestroyExternalSemaphore')
- {{endif}}
- {{if 'cuFuncGetAttribute' in found_functions}}
- global __cuFuncGetAttribute
- __cuFuncGetAttribute = dlfcn.dlsym(handle, 'cuFuncGetAttribute')
- {{endif}}
- {{if 'cuFuncSetAttribute' in found_functions}}
- global __cuFuncSetAttribute
- __cuFuncSetAttribute = dlfcn.dlsym(handle, 'cuFuncSetAttribute')
- {{endif}}
- {{if 'cuFuncSetCacheConfig' in found_functions}}
- global __cuFuncSetCacheConfig
- __cuFuncSetCacheConfig = dlfcn.dlsym(handle, 'cuFuncSetCacheConfig')
- {{endif}}
- {{if 'cuFuncGetModule' in found_functions}}
- global __cuFuncGetModule
- __cuFuncGetModule = dlfcn.dlsym(handle, 'cuFuncGetModule')
- {{endif}}
- {{if 'cuFuncGetName' in found_functions}}
- global __cuFuncGetName
- __cuFuncGetName = dlfcn.dlsym(handle, 'cuFuncGetName')
- {{endif}}
- {{if 'cuFuncGetParamInfo' in found_functions}}
- global __cuFuncGetParamInfo
- __cuFuncGetParamInfo = dlfcn.dlsym(handle, 'cuFuncGetParamInfo')
- {{endif}}
- {{if 'cuFuncIsLoaded' in found_functions}}
- global __cuFuncIsLoaded
- __cuFuncIsLoaded = dlfcn.dlsym(handle, 'cuFuncIsLoaded')
- {{endif}}
- {{if 'cuFuncLoad' in found_functions}}
- global __cuFuncLoad
- __cuFuncLoad = dlfcn.dlsym(handle, 'cuFuncLoad')
- {{endif}}
- {{if 'cuLaunchCooperativeKernelMultiDevice' in found_functions}}
- global __cuLaunchCooperativeKernelMultiDevice
- __cuLaunchCooperativeKernelMultiDevice = dlfcn.dlsym(handle, 'cuLaunchCooperativeKernelMultiDevice')
- {{endif}}
- {{if 'cuFuncSetBlockShape' in found_functions}}
- global __cuFuncSetBlockShape
- __cuFuncSetBlockShape = dlfcn.dlsym(handle, 'cuFuncSetBlockShape')
- {{endif}}
- {{if 'cuFuncSetSharedSize' in found_functions}}
- global __cuFuncSetSharedSize
- __cuFuncSetSharedSize = dlfcn.dlsym(handle, 'cuFuncSetSharedSize')
- {{endif}}
- {{if 'cuParamSetSize' in found_functions}}
- global __cuParamSetSize
- __cuParamSetSize = dlfcn.dlsym(handle, 'cuParamSetSize')
- {{endif}}
- {{if 'cuParamSeti' in found_functions}}
- global __cuParamSeti
- __cuParamSeti = dlfcn.dlsym(handle, 'cuParamSeti')
- {{endif}}
- {{if 'cuParamSetf' in found_functions}}
- global __cuParamSetf
- __cuParamSetf = dlfcn.dlsym(handle, 'cuParamSetf')
- {{endif}}
- {{if 'cuParamSetv' in found_functions}}
- global __cuParamSetv
- __cuParamSetv = dlfcn.dlsym(handle, 'cuParamSetv')
- {{endif}}
- {{if 'cuLaunch' in found_functions}}
- global __cuLaunch
- __cuLaunch = dlfcn.dlsym(handle, 'cuLaunch')
- {{endif}}
- {{if 'cuLaunchGrid' in found_functions}}
- global __cuLaunchGrid
- __cuLaunchGrid = dlfcn.dlsym(handle, 'cuLaunchGrid')
- {{endif}}
- {{if 'cuLaunchGridAsync' in found_functions}}
- global __cuLaunchGridAsync
- __cuLaunchGridAsync = dlfcn.dlsym(handle, 'cuLaunchGridAsync')
- {{endif}}
- {{if 'cuParamSetTexRef' in found_functions}}
- global __cuParamSetTexRef
- __cuParamSetTexRef = dlfcn.dlsym(handle, 'cuParamSetTexRef')
- {{endif}}
- {{if 'cuFuncSetSharedMemConfig' in found_functions}}
- global __cuFuncSetSharedMemConfig
- __cuFuncSetSharedMemConfig = dlfcn.dlsym(handle, 'cuFuncSetSharedMemConfig')
- {{endif}}
- {{if 'cuGraphCreate' in found_functions}}
- global __cuGraphCreate
- __cuGraphCreate = dlfcn.dlsym(handle, 'cuGraphCreate')
- {{endif}}
- {{if 'cuGraphAddKernelNode_v2' in found_functions}}
- global __cuGraphAddKernelNode_v2
- __cuGraphAddKernelNode_v2 = dlfcn.dlsym(handle, 'cuGraphAddKernelNode_v2')
- {{endif}}
- {{if 'cuGraphKernelNodeGetParams_v2' in found_functions}}
- global __cuGraphKernelNodeGetParams_v2
- __cuGraphKernelNodeGetParams_v2 = dlfcn.dlsym(handle, 'cuGraphKernelNodeGetParams_v2')
- {{endif}}
- {{if 'cuGraphKernelNodeSetParams_v2' in found_functions}}
- global __cuGraphKernelNodeSetParams_v2
- __cuGraphKernelNodeSetParams_v2 = dlfcn.dlsym(handle, 'cuGraphKernelNodeSetParams_v2')
- {{endif}}
- {{if 'cuGraphAddMemcpyNode' in found_functions}}
- global __cuGraphAddMemcpyNode
- __cuGraphAddMemcpyNode = dlfcn.dlsym(handle, 'cuGraphAddMemcpyNode')
- {{endif}}
- {{if 'cuGraphMemcpyNodeGetParams' in found_functions}}
- global __cuGraphMemcpyNodeGetParams
- __cuGraphMemcpyNodeGetParams = dlfcn.dlsym(handle, 'cuGraphMemcpyNodeGetParams')
- {{endif}}
- {{if 'cuGraphMemcpyNodeSetParams' in found_functions}}
- global __cuGraphMemcpyNodeSetParams
- __cuGraphMemcpyNodeSetParams = dlfcn.dlsym(handle, 'cuGraphMemcpyNodeSetParams')
- {{endif}}
- {{if 'cuGraphAddMemsetNode' in found_functions}}
- global __cuGraphAddMemsetNode
- __cuGraphAddMemsetNode = dlfcn.dlsym(handle, 'cuGraphAddMemsetNode')
- {{endif}}
- {{if 'cuGraphMemsetNodeGetParams' in found_functions}}
- global __cuGraphMemsetNodeGetParams
- __cuGraphMemsetNodeGetParams = dlfcn.dlsym(handle, 'cuGraphMemsetNodeGetParams')
- {{endif}}
- {{if 'cuGraphMemsetNodeSetParams' in found_functions}}
- global __cuGraphMemsetNodeSetParams
- __cuGraphMemsetNodeSetParams = dlfcn.dlsym(handle, 'cuGraphMemsetNodeSetParams')
- {{endif}}
- {{if 'cuGraphAddHostNode' in found_functions}}
- global __cuGraphAddHostNode
- __cuGraphAddHostNode = dlfcn.dlsym(handle, 'cuGraphAddHostNode')
- {{endif}}
- {{if 'cuGraphHostNodeGetParams' in found_functions}}
- global __cuGraphHostNodeGetParams
- __cuGraphHostNodeGetParams = dlfcn.dlsym(handle, 'cuGraphHostNodeGetParams')
- {{endif}}
- {{if 'cuGraphHostNodeSetParams' in found_functions}}
- global __cuGraphHostNodeSetParams
- __cuGraphHostNodeSetParams = dlfcn.dlsym(handle, 'cuGraphHostNodeSetParams')
- {{endif}}
- {{if 'cuGraphAddChildGraphNode' in found_functions}}
- global __cuGraphAddChildGraphNode
- __cuGraphAddChildGraphNode = dlfcn.dlsym(handle, 'cuGraphAddChildGraphNode')
- {{endif}}
- {{if 'cuGraphChildGraphNodeGetGraph' in found_functions}}
- global __cuGraphChildGraphNodeGetGraph
- __cuGraphChildGraphNodeGetGraph = dlfcn.dlsym(handle, 'cuGraphChildGraphNodeGetGraph')
- {{endif}}
- {{if 'cuGraphAddEmptyNode' in found_functions}}
- global __cuGraphAddEmptyNode
- __cuGraphAddEmptyNode = dlfcn.dlsym(handle, 'cuGraphAddEmptyNode')
- {{endif}}
- {{if 'cuGraphAddEventRecordNode' in found_functions}}
- global __cuGraphAddEventRecordNode
- __cuGraphAddEventRecordNode = dlfcn.dlsym(handle, 'cuGraphAddEventRecordNode')
- {{endif}}
- {{if 'cuGraphEventRecordNodeGetEvent' in found_functions}}
- global __cuGraphEventRecordNodeGetEvent
- __cuGraphEventRecordNodeGetEvent = dlfcn.dlsym(handle, 'cuGraphEventRecordNodeGetEvent')
- {{endif}}
- {{if 'cuGraphEventRecordNodeSetEvent' in found_functions}}
- global __cuGraphEventRecordNodeSetEvent
- __cuGraphEventRecordNodeSetEvent = dlfcn.dlsym(handle, 'cuGraphEventRecordNodeSetEvent')
- {{endif}}
- {{if 'cuGraphAddEventWaitNode' in found_functions}}
- global __cuGraphAddEventWaitNode
- __cuGraphAddEventWaitNode = dlfcn.dlsym(handle, 'cuGraphAddEventWaitNode')
- {{endif}}
- {{if 'cuGraphEventWaitNodeGetEvent' in found_functions}}
- global __cuGraphEventWaitNodeGetEvent
- __cuGraphEventWaitNodeGetEvent = dlfcn.dlsym(handle, 'cuGraphEventWaitNodeGetEvent')
- {{endif}}
- {{if 'cuGraphEventWaitNodeSetEvent' in found_functions}}
- global __cuGraphEventWaitNodeSetEvent
- __cuGraphEventWaitNodeSetEvent = dlfcn.dlsym(handle, 'cuGraphEventWaitNodeSetEvent')
- {{endif}}
- {{if 'cuGraphAddExternalSemaphoresSignalNode' in found_functions}}
- global __cuGraphAddExternalSemaphoresSignalNode
- __cuGraphAddExternalSemaphoresSignalNode = dlfcn.dlsym(handle, 'cuGraphAddExternalSemaphoresSignalNode')
- {{endif}}
- {{if 'cuGraphExternalSemaphoresSignalNodeGetParams' in found_functions}}
- global __cuGraphExternalSemaphoresSignalNodeGetParams
- __cuGraphExternalSemaphoresSignalNodeGetParams = dlfcn.dlsym(handle, 'cuGraphExternalSemaphoresSignalNodeGetParams')
- {{endif}}
- {{if 'cuGraphExternalSemaphoresSignalNodeSetParams' in found_functions}}
- global __cuGraphExternalSemaphoresSignalNodeSetParams
- __cuGraphExternalSemaphoresSignalNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExternalSemaphoresSignalNodeSetParams')
- {{endif}}
- {{if 'cuGraphAddExternalSemaphoresWaitNode' in found_functions}}
- global __cuGraphAddExternalSemaphoresWaitNode
- __cuGraphAddExternalSemaphoresWaitNode = dlfcn.dlsym(handle, 'cuGraphAddExternalSemaphoresWaitNode')
- {{endif}}
- {{if 'cuGraphExternalSemaphoresWaitNodeGetParams' in found_functions}}
- global __cuGraphExternalSemaphoresWaitNodeGetParams
- __cuGraphExternalSemaphoresWaitNodeGetParams = dlfcn.dlsym(handle, 'cuGraphExternalSemaphoresWaitNodeGetParams')
- {{endif}}
- {{if 'cuGraphExternalSemaphoresWaitNodeSetParams' in found_functions}}
- global __cuGraphExternalSemaphoresWaitNodeSetParams
- __cuGraphExternalSemaphoresWaitNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExternalSemaphoresWaitNodeSetParams')
- {{endif}}
- {{if 'cuGraphAddBatchMemOpNode' in found_functions}}
- global __cuGraphAddBatchMemOpNode
- __cuGraphAddBatchMemOpNode = dlfcn.dlsym(handle, 'cuGraphAddBatchMemOpNode')
- {{endif}}
- {{if 'cuGraphBatchMemOpNodeGetParams' in found_functions}}
- global __cuGraphBatchMemOpNodeGetParams
- __cuGraphBatchMemOpNodeGetParams = dlfcn.dlsym(handle, 'cuGraphBatchMemOpNodeGetParams')
- {{endif}}
- {{if 'cuGraphBatchMemOpNodeSetParams' in found_functions}}
- global __cuGraphBatchMemOpNodeSetParams
- __cuGraphBatchMemOpNodeSetParams = dlfcn.dlsym(handle, 'cuGraphBatchMemOpNodeSetParams')
- {{endif}}
- {{if 'cuGraphExecBatchMemOpNodeSetParams' in found_functions}}
- global __cuGraphExecBatchMemOpNodeSetParams
- __cuGraphExecBatchMemOpNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecBatchMemOpNodeSetParams')
- {{endif}}
- {{if 'cuGraphAddMemAllocNode' in found_functions}}
- global __cuGraphAddMemAllocNode
- __cuGraphAddMemAllocNode = dlfcn.dlsym(handle, 'cuGraphAddMemAllocNode')
- {{endif}}
- {{if 'cuGraphMemAllocNodeGetParams' in found_functions}}
- global __cuGraphMemAllocNodeGetParams
- __cuGraphMemAllocNodeGetParams = dlfcn.dlsym(handle, 'cuGraphMemAllocNodeGetParams')
- {{endif}}
- {{if 'cuGraphAddMemFreeNode' in found_functions}}
- global __cuGraphAddMemFreeNode
- __cuGraphAddMemFreeNode = dlfcn.dlsym(handle, 'cuGraphAddMemFreeNode')
- {{endif}}
- {{if 'cuGraphMemFreeNodeGetParams' in found_functions}}
- global __cuGraphMemFreeNodeGetParams
- __cuGraphMemFreeNodeGetParams = dlfcn.dlsym(handle, 'cuGraphMemFreeNodeGetParams')
- {{endif}}
- {{if 'cuDeviceGraphMemTrim' in found_functions}}
- global __cuDeviceGraphMemTrim
- __cuDeviceGraphMemTrim = dlfcn.dlsym(handle, 'cuDeviceGraphMemTrim')
- {{endif}}
- {{if 'cuDeviceGetGraphMemAttribute' in found_functions}}
- global __cuDeviceGetGraphMemAttribute
- __cuDeviceGetGraphMemAttribute = dlfcn.dlsym(handle, 'cuDeviceGetGraphMemAttribute')
- {{endif}}
- {{if 'cuDeviceSetGraphMemAttribute' in found_functions}}
- global __cuDeviceSetGraphMemAttribute
- __cuDeviceSetGraphMemAttribute = dlfcn.dlsym(handle, 'cuDeviceSetGraphMemAttribute')
- {{endif}}
- {{if 'cuGraphClone' in found_functions}}
- global __cuGraphClone
- __cuGraphClone = dlfcn.dlsym(handle, 'cuGraphClone')
- {{endif}}
- {{if 'cuGraphNodeFindInClone' in found_functions}}
- global __cuGraphNodeFindInClone
- __cuGraphNodeFindInClone = dlfcn.dlsym(handle, 'cuGraphNodeFindInClone')
- {{endif}}
- {{if 'cuGraphNodeGetType' in found_functions}}
- global __cuGraphNodeGetType
- __cuGraphNodeGetType = dlfcn.dlsym(handle, 'cuGraphNodeGetType')
- {{endif}}
- {{if 'cuGraphGetNodes' in found_functions}}
- global __cuGraphGetNodes
- __cuGraphGetNodes = dlfcn.dlsym(handle, 'cuGraphGetNodes')
- {{endif}}
- {{if 'cuGraphGetRootNodes' in found_functions}}
- global __cuGraphGetRootNodes
- __cuGraphGetRootNodes = dlfcn.dlsym(handle, 'cuGraphGetRootNodes')
- {{endif}}
- {{if 'cuGraphGetEdges_v2' in found_functions}}
- global __cuGraphGetEdges_v2
- __cuGraphGetEdges_v2 = dlfcn.dlsym(handle, 'cuGraphGetEdges_v2')
- {{endif}}
- {{if 'cuGraphNodeGetDependencies_v2' in found_functions}}
- global __cuGraphNodeGetDependencies_v2
- __cuGraphNodeGetDependencies_v2 = dlfcn.dlsym(handle, 'cuGraphNodeGetDependencies_v2')
- {{endif}}
- {{if 'cuGraphNodeGetDependentNodes_v2' in found_functions}}
- global __cuGraphNodeGetDependentNodes_v2
- __cuGraphNodeGetDependentNodes_v2 = dlfcn.dlsym(handle, 'cuGraphNodeGetDependentNodes_v2')
- {{endif}}
- {{if 'cuGraphAddDependencies_v2' in found_functions}}
- global __cuGraphAddDependencies_v2
- __cuGraphAddDependencies_v2 = dlfcn.dlsym(handle, 'cuGraphAddDependencies_v2')
- {{endif}}
- {{if 'cuGraphRemoveDependencies_v2' in found_functions}}
- global __cuGraphRemoveDependencies_v2
- __cuGraphRemoveDependencies_v2 = dlfcn.dlsym(handle, 'cuGraphRemoveDependencies_v2')
- {{endif}}
- {{if 'cuGraphDestroyNode' in found_functions}}
- global __cuGraphDestroyNode
- __cuGraphDestroyNode = dlfcn.dlsym(handle, 'cuGraphDestroyNode')
- {{endif}}
- {{if 'cuGraphInstantiateWithFlags' in found_functions}}
- global __cuGraphInstantiateWithFlags
- __cuGraphInstantiateWithFlags = dlfcn.dlsym(handle, 'cuGraphInstantiateWithFlags')
- {{endif}}
- {{if 'cuGraphExecGetFlags' in found_functions}}
- global __cuGraphExecGetFlags
- __cuGraphExecGetFlags = dlfcn.dlsym(handle, 'cuGraphExecGetFlags')
- {{endif}}
- {{if 'cuGraphExecKernelNodeSetParams_v2' in found_functions}}
- global __cuGraphExecKernelNodeSetParams_v2
- __cuGraphExecKernelNodeSetParams_v2 = dlfcn.dlsym(handle, 'cuGraphExecKernelNodeSetParams_v2')
- {{endif}}
- {{if 'cuGraphExecMemcpyNodeSetParams' in found_functions}}
- global __cuGraphExecMemcpyNodeSetParams
- __cuGraphExecMemcpyNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecMemcpyNodeSetParams')
- {{endif}}
- {{if 'cuGraphExecMemsetNodeSetParams' in found_functions}}
- global __cuGraphExecMemsetNodeSetParams
- __cuGraphExecMemsetNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecMemsetNodeSetParams')
- {{endif}}
- {{if 'cuGraphExecHostNodeSetParams' in found_functions}}
- global __cuGraphExecHostNodeSetParams
- __cuGraphExecHostNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecHostNodeSetParams')
- {{endif}}
- {{if 'cuGraphExecChildGraphNodeSetParams' in found_functions}}
- global __cuGraphExecChildGraphNodeSetParams
- __cuGraphExecChildGraphNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecChildGraphNodeSetParams')
- {{endif}}
- {{if 'cuGraphExecEventRecordNodeSetEvent' in found_functions}}
- global __cuGraphExecEventRecordNodeSetEvent
- __cuGraphExecEventRecordNodeSetEvent = dlfcn.dlsym(handle, 'cuGraphExecEventRecordNodeSetEvent')
- {{endif}}
- {{if 'cuGraphExecEventWaitNodeSetEvent' in found_functions}}
- global __cuGraphExecEventWaitNodeSetEvent
- __cuGraphExecEventWaitNodeSetEvent = dlfcn.dlsym(handle, 'cuGraphExecEventWaitNodeSetEvent')
- {{endif}}
- {{if 'cuGraphExecExternalSemaphoresSignalNodeSetParams' in found_functions}}
- global __cuGraphExecExternalSemaphoresSignalNodeSetParams
- __cuGraphExecExternalSemaphoresSignalNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecExternalSemaphoresSignalNodeSetParams')
- {{endif}}
- {{if 'cuGraphExecExternalSemaphoresWaitNodeSetParams' in found_functions}}
- global __cuGraphExecExternalSemaphoresWaitNodeSetParams
- __cuGraphExecExternalSemaphoresWaitNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecExternalSemaphoresWaitNodeSetParams')
- {{endif}}
- {{if 'cuGraphNodeSetEnabled' in found_functions}}
- global __cuGraphNodeSetEnabled
- __cuGraphNodeSetEnabled = dlfcn.dlsym(handle, 'cuGraphNodeSetEnabled')
- {{endif}}
- {{if 'cuGraphNodeGetEnabled' in found_functions}}
- global __cuGraphNodeGetEnabled
- __cuGraphNodeGetEnabled = dlfcn.dlsym(handle, 'cuGraphNodeGetEnabled')
- {{endif}}
- {{if 'cuGraphExecDestroy' in found_functions}}
- global __cuGraphExecDestroy
- __cuGraphExecDestroy = dlfcn.dlsym(handle, 'cuGraphExecDestroy')
- {{endif}}
- {{if 'cuGraphDestroy' in found_functions}}
- global __cuGraphDestroy
- __cuGraphDestroy = dlfcn.dlsym(handle, 'cuGraphDestroy')
- {{endif}}
- {{if 'cuGraphExecUpdate_v2' in found_functions}}
- global __cuGraphExecUpdate_v2
- __cuGraphExecUpdate_v2 = dlfcn.dlsym(handle, 'cuGraphExecUpdate_v2')
- {{endif}}
- {{if 'cuGraphKernelNodeCopyAttributes' in found_functions}}
- global __cuGraphKernelNodeCopyAttributes
- __cuGraphKernelNodeCopyAttributes = dlfcn.dlsym(handle, 'cuGraphKernelNodeCopyAttributes')
- {{endif}}
- {{if 'cuGraphKernelNodeGetAttribute' in found_functions}}
- global __cuGraphKernelNodeGetAttribute
- __cuGraphKernelNodeGetAttribute = dlfcn.dlsym(handle, 'cuGraphKernelNodeGetAttribute')
- {{endif}}
- {{if 'cuGraphKernelNodeSetAttribute' in found_functions}}
- global __cuGraphKernelNodeSetAttribute
- __cuGraphKernelNodeSetAttribute = dlfcn.dlsym(handle, 'cuGraphKernelNodeSetAttribute')
- {{endif}}
- {{if 'cuGraphDebugDotPrint' in found_functions}}
- global __cuGraphDebugDotPrint
- __cuGraphDebugDotPrint = dlfcn.dlsym(handle, 'cuGraphDebugDotPrint')
- {{endif}}
- {{if 'cuUserObjectCreate' in found_functions}}
- global __cuUserObjectCreate
- __cuUserObjectCreate = dlfcn.dlsym(handle, 'cuUserObjectCreate')
- {{endif}}
- {{if 'cuUserObjectRetain' in found_functions}}
- global __cuUserObjectRetain
- __cuUserObjectRetain = dlfcn.dlsym(handle, 'cuUserObjectRetain')
- {{endif}}
- {{if 'cuUserObjectRelease' in found_functions}}
- global __cuUserObjectRelease
- __cuUserObjectRelease = dlfcn.dlsym(handle, 'cuUserObjectRelease')
- {{endif}}
- {{if 'cuGraphRetainUserObject' in found_functions}}
- global __cuGraphRetainUserObject
- __cuGraphRetainUserObject = dlfcn.dlsym(handle, 'cuGraphRetainUserObject')
- {{endif}}
- {{if 'cuGraphReleaseUserObject' in found_functions}}
- global __cuGraphReleaseUserObject
- __cuGraphReleaseUserObject = dlfcn.dlsym(handle, 'cuGraphReleaseUserObject')
- {{endif}}
- {{if 'cuGraphAddNode_v2' in found_functions}}
- global __cuGraphAddNode_v2
- __cuGraphAddNode_v2 = dlfcn.dlsym(handle, 'cuGraphAddNode_v2')
- {{endif}}
- {{if 'cuGraphNodeSetParams' in found_functions}}
- global __cuGraphNodeSetParams
- __cuGraphNodeSetParams = dlfcn.dlsym(handle, 'cuGraphNodeSetParams')
- {{endif}}
- {{if 'cuGraphExecNodeSetParams' in found_functions}}
- global __cuGraphExecNodeSetParams
- __cuGraphExecNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecNodeSetParams')
- {{endif}}
- {{if 'cuGraphConditionalHandleCreate' in found_functions}}
- global __cuGraphConditionalHandleCreate
- __cuGraphConditionalHandleCreate = dlfcn.dlsym(handle, 'cuGraphConditionalHandleCreate')
- {{endif}}
- {{if 'cuOccupancyMaxActiveBlocksPerMultiprocessor' in found_functions}}
- global __cuOccupancyMaxActiveBlocksPerMultiprocessor
- __cuOccupancyMaxActiveBlocksPerMultiprocessor = dlfcn.dlsym(handle, 'cuOccupancyMaxActiveBlocksPerMultiprocessor')
- {{endif}}
- {{if 'cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags' in found_functions}}
- global __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags
- __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags = dlfcn.dlsym(handle, 'cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags')
- {{endif}}
- {{if 'cuOccupancyMaxPotentialBlockSize' in found_functions}}
- global __cuOccupancyMaxPotentialBlockSize
- __cuOccupancyMaxPotentialBlockSize = dlfcn.dlsym(handle, 'cuOccupancyMaxPotentialBlockSize')
- {{endif}}
- {{if 'cuOccupancyMaxPotentialBlockSizeWithFlags' in found_functions}}
- global __cuOccupancyMaxPotentialBlockSizeWithFlags
- __cuOccupancyMaxPotentialBlockSizeWithFlags = dlfcn.dlsym(handle, 'cuOccupancyMaxPotentialBlockSizeWithFlags')
- {{endif}}
- {{if 'cuOccupancyAvailableDynamicSMemPerBlock' in found_functions}}
- global __cuOccupancyAvailableDynamicSMemPerBlock
- __cuOccupancyAvailableDynamicSMemPerBlock = dlfcn.dlsym(handle, 'cuOccupancyAvailableDynamicSMemPerBlock')
- {{endif}}
- {{if 'cuOccupancyMaxPotentialClusterSize' in found_functions}}
- global __cuOccupancyMaxPotentialClusterSize
- __cuOccupancyMaxPotentialClusterSize = dlfcn.dlsym(handle, 'cuOccupancyMaxPotentialClusterSize')
- {{endif}}
- {{if 'cuOccupancyMaxActiveClusters' in found_functions}}
- global __cuOccupancyMaxActiveClusters
- __cuOccupancyMaxActiveClusters = dlfcn.dlsym(handle, 'cuOccupancyMaxActiveClusters')
- {{endif}}
- {{if 'cuTexRefSetArray' in found_functions}}
- global __cuTexRefSetArray
- __cuTexRefSetArray = dlfcn.dlsym(handle, 'cuTexRefSetArray')
- {{endif}}
- {{if 'cuTexRefSetMipmappedArray' in found_functions}}
- global __cuTexRefSetMipmappedArray
- __cuTexRefSetMipmappedArray = dlfcn.dlsym(handle, 'cuTexRefSetMipmappedArray')
- {{endif}}
- {{if 'cuTexRefSetAddress_v2' in found_functions}}
- global __cuTexRefSetAddress_v2
- __cuTexRefSetAddress_v2 = dlfcn.dlsym(handle, 'cuTexRefSetAddress_v2')
- {{endif}}
- {{if 'cuTexRefSetAddress2D_v3' in found_functions}}
- global __cuTexRefSetAddress2D_v3
- __cuTexRefSetAddress2D_v3 = dlfcn.dlsym(handle, 'cuTexRefSetAddress2D_v3')
- {{endif}}
- {{if 'cuTexRefSetFormat' in found_functions}}
- global __cuTexRefSetFormat
- __cuTexRefSetFormat = dlfcn.dlsym(handle, 'cuTexRefSetFormat')
- {{endif}}
- {{if 'cuTexRefSetAddressMode' in found_functions}}
- global __cuTexRefSetAddressMode
- __cuTexRefSetAddressMode = dlfcn.dlsym(handle, 'cuTexRefSetAddressMode')
- {{endif}}
- {{if 'cuTexRefSetFilterMode' in found_functions}}
- global __cuTexRefSetFilterMode
- __cuTexRefSetFilterMode = dlfcn.dlsym(handle, 'cuTexRefSetFilterMode')
- {{endif}}
- {{if 'cuTexRefSetMipmapFilterMode' in found_functions}}
- global __cuTexRefSetMipmapFilterMode
- __cuTexRefSetMipmapFilterMode = dlfcn.dlsym(handle, 'cuTexRefSetMipmapFilterMode')
- {{endif}}
- {{if 'cuTexRefSetMipmapLevelBias' in found_functions}}
- global __cuTexRefSetMipmapLevelBias
- __cuTexRefSetMipmapLevelBias = dlfcn.dlsym(handle, 'cuTexRefSetMipmapLevelBias')
- {{endif}}
- {{if 'cuTexRefSetMipmapLevelClamp' in found_functions}}
- global __cuTexRefSetMipmapLevelClamp
- __cuTexRefSetMipmapLevelClamp = dlfcn.dlsym(handle, 'cuTexRefSetMipmapLevelClamp')
- {{endif}}
- {{if 'cuTexRefSetMaxAnisotropy' in found_functions}}
- global __cuTexRefSetMaxAnisotropy
- __cuTexRefSetMaxAnisotropy = dlfcn.dlsym(handle, 'cuTexRefSetMaxAnisotropy')
- {{endif}}
- {{if 'cuTexRefSetBorderColor' in found_functions}}
- global __cuTexRefSetBorderColor
- __cuTexRefSetBorderColor = dlfcn.dlsym(handle, 'cuTexRefSetBorderColor')
- {{endif}}
- {{if 'cuTexRefSetFlags' in found_functions}}
- global __cuTexRefSetFlags
- __cuTexRefSetFlags = dlfcn.dlsym(handle, 'cuTexRefSetFlags')
- {{endif}}
- {{if 'cuTexRefGetAddress_v2' in found_functions}}
- global __cuTexRefGetAddress_v2
- __cuTexRefGetAddress_v2 = dlfcn.dlsym(handle, 'cuTexRefGetAddress_v2')
- {{endif}}
- {{if 'cuTexRefGetArray' in found_functions}}
- global __cuTexRefGetArray
- __cuTexRefGetArray = dlfcn.dlsym(handle, 'cuTexRefGetArray')
- {{endif}}
- {{if 'cuTexRefGetMipmappedArray' in found_functions}}
- global __cuTexRefGetMipmappedArray
- __cuTexRefGetMipmappedArray = dlfcn.dlsym(handle, 'cuTexRefGetMipmappedArray')
- {{endif}}
- {{if 'cuTexRefGetAddressMode' in found_functions}}
- global __cuTexRefGetAddressMode
- __cuTexRefGetAddressMode = dlfcn.dlsym(handle, 'cuTexRefGetAddressMode')
- {{endif}}
- {{if 'cuTexRefGetFilterMode' in found_functions}}
- global __cuTexRefGetFilterMode
- __cuTexRefGetFilterMode = dlfcn.dlsym(handle, 'cuTexRefGetFilterMode')
- {{endif}}
- {{if 'cuTexRefGetFormat' in found_functions}}
- global __cuTexRefGetFormat
- __cuTexRefGetFormat = dlfcn.dlsym(handle, 'cuTexRefGetFormat')
- {{endif}}
- {{if 'cuTexRefGetMipmapFilterMode' in found_functions}}
- global __cuTexRefGetMipmapFilterMode
- __cuTexRefGetMipmapFilterMode = dlfcn.dlsym(handle, 'cuTexRefGetMipmapFilterMode')
- {{endif}}
- {{if 'cuTexRefGetMipmapLevelBias' in found_functions}}
- global __cuTexRefGetMipmapLevelBias
- __cuTexRefGetMipmapLevelBias = dlfcn.dlsym(handle, 'cuTexRefGetMipmapLevelBias')
- {{endif}}
- {{if 'cuTexRefGetMipmapLevelClamp' in found_functions}}
- global __cuTexRefGetMipmapLevelClamp
- __cuTexRefGetMipmapLevelClamp = dlfcn.dlsym(handle, 'cuTexRefGetMipmapLevelClamp')
- {{endif}}
- {{if 'cuTexRefGetMaxAnisotropy' in found_functions}}
- global __cuTexRefGetMaxAnisotropy
- __cuTexRefGetMaxAnisotropy = dlfcn.dlsym(handle, 'cuTexRefGetMaxAnisotropy')
- {{endif}}
- {{if 'cuTexRefGetBorderColor' in found_functions}}
- global __cuTexRefGetBorderColor
- __cuTexRefGetBorderColor = dlfcn.dlsym(handle, 'cuTexRefGetBorderColor')
- {{endif}}
- {{if 'cuTexRefGetFlags' in found_functions}}
- global __cuTexRefGetFlags
- __cuTexRefGetFlags = dlfcn.dlsym(handle, 'cuTexRefGetFlags')
- {{endif}}
- {{if 'cuTexRefCreate' in found_functions}}
- global __cuTexRefCreate
- __cuTexRefCreate = dlfcn.dlsym(handle, 'cuTexRefCreate')
- {{endif}}
- {{if 'cuTexRefDestroy' in found_functions}}
- global __cuTexRefDestroy
- __cuTexRefDestroy = dlfcn.dlsym(handle, 'cuTexRefDestroy')
- {{endif}}
- {{if 'cuSurfRefSetArray' in found_functions}}
- global __cuSurfRefSetArray
- __cuSurfRefSetArray = dlfcn.dlsym(handle, 'cuSurfRefSetArray')
- {{endif}}
- {{if 'cuSurfRefGetArray' in found_functions}}
- global __cuSurfRefGetArray
- __cuSurfRefGetArray = dlfcn.dlsym(handle, 'cuSurfRefGetArray')
- {{endif}}
- {{if 'cuTexObjectCreate' in found_functions}}
- global __cuTexObjectCreate
- __cuTexObjectCreate = dlfcn.dlsym(handle, 'cuTexObjectCreate')
- {{endif}}
- {{if 'cuTexObjectDestroy' in found_functions}}
- global __cuTexObjectDestroy
- __cuTexObjectDestroy = dlfcn.dlsym(handle, 'cuTexObjectDestroy')
- {{endif}}
- {{if 'cuTexObjectGetResourceDesc' in found_functions}}
- global __cuTexObjectGetResourceDesc
- __cuTexObjectGetResourceDesc = dlfcn.dlsym(handle, 'cuTexObjectGetResourceDesc')
- {{endif}}
- {{if 'cuTexObjectGetTextureDesc' in found_functions}}
- global __cuTexObjectGetTextureDesc
- __cuTexObjectGetTextureDesc = dlfcn.dlsym(handle, 'cuTexObjectGetTextureDesc')
- {{endif}}
- {{if 'cuTexObjectGetResourceViewDesc' in found_functions}}
- global __cuTexObjectGetResourceViewDesc
- __cuTexObjectGetResourceViewDesc = dlfcn.dlsym(handle, 'cuTexObjectGetResourceViewDesc')
- {{endif}}
- {{if 'cuSurfObjectCreate' in found_functions}}
- global __cuSurfObjectCreate
- __cuSurfObjectCreate = dlfcn.dlsym(handle, 'cuSurfObjectCreate')
- {{endif}}
- {{if 'cuSurfObjectDestroy' in found_functions}}
- global __cuSurfObjectDestroy
- __cuSurfObjectDestroy = dlfcn.dlsym(handle, 'cuSurfObjectDestroy')
- {{endif}}
- {{if 'cuSurfObjectGetResourceDesc' in found_functions}}
- global __cuSurfObjectGetResourceDesc
- __cuSurfObjectGetResourceDesc = dlfcn.dlsym(handle, 'cuSurfObjectGetResourceDesc')
- {{endif}}
- {{if 'cuTensorMapEncodeTiled' in found_functions}}
- global __cuTensorMapEncodeTiled
- __cuTensorMapEncodeTiled = dlfcn.dlsym(handle, 'cuTensorMapEncodeTiled')
- {{endif}}
- {{if 'cuTensorMapEncodeIm2col' in found_functions}}
- global __cuTensorMapEncodeIm2col
- __cuTensorMapEncodeIm2col = dlfcn.dlsym(handle, 'cuTensorMapEncodeIm2col')
- {{endif}}
- {{if 'cuTensorMapEncodeIm2colWide' in found_functions}}
- global __cuTensorMapEncodeIm2colWide
- __cuTensorMapEncodeIm2colWide = dlfcn.dlsym(handle, 'cuTensorMapEncodeIm2colWide')
- {{endif}}
- {{if 'cuTensorMapReplaceAddress' in found_functions}}
- global __cuTensorMapReplaceAddress
- __cuTensorMapReplaceAddress = dlfcn.dlsym(handle, 'cuTensorMapReplaceAddress')
- {{endif}}
- {{if 'cuDeviceCanAccessPeer' in found_functions}}
- global __cuDeviceCanAccessPeer
- __cuDeviceCanAccessPeer = dlfcn.dlsym(handle, 'cuDeviceCanAccessPeer')
- {{endif}}
- {{if 'cuCtxEnablePeerAccess' in found_functions}}
- global __cuCtxEnablePeerAccess
- __cuCtxEnablePeerAccess = dlfcn.dlsym(handle, 'cuCtxEnablePeerAccess')
- {{endif}}
- {{if 'cuCtxDisablePeerAccess' in found_functions}}
- global __cuCtxDisablePeerAccess
- __cuCtxDisablePeerAccess = dlfcn.dlsym(handle, 'cuCtxDisablePeerAccess')
- {{endif}}
- {{if 'cuDeviceGetP2PAttribute' in found_functions}}
- global __cuDeviceGetP2PAttribute
- __cuDeviceGetP2PAttribute = dlfcn.dlsym(handle, 'cuDeviceGetP2PAttribute')
- {{endif}}
- {{if 'cuDeviceGetP2PAtomicCapabilities' in found_functions}}
- global __cuDeviceGetP2PAtomicCapabilities
- __cuDeviceGetP2PAtomicCapabilities = dlfcn.dlsym(handle, 'cuDeviceGetP2PAtomicCapabilities')
- {{endif}}
- {{if 'cuGraphicsUnregisterResource' in found_functions}}
- global __cuGraphicsUnregisterResource
- __cuGraphicsUnregisterResource = dlfcn.dlsym(handle, 'cuGraphicsUnregisterResource')
- {{endif}}
- {{if 'cuGraphicsSubResourceGetMappedArray' in found_functions}}
- global __cuGraphicsSubResourceGetMappedArray
- __cuGraphicsSubResourceGetMappedArray = dlfcn.dlsym(handle, 'cuGraphicsSubResourceGetMappedArray')
- {{endif}}
- {{if 'cuGraphicsResourceGetMappedMipmappedArray' in found_functions}}
- global __cuGraphicsResourceGetMappedMipmappedArray
- __cuGraphicsResourceGetMappedMipmappedArray = dlfcn.dlsym(handle, 'cuGraphicsResourceGetMappedMipmappedArray')
- {{endif}}
- {{if 'cuGraphicsResourceGetMappedPointer_v2' in found_functions}}
- global __cuGraphicsResourceGetMappedPointer_v2
- __cuGraphicsResourceGetMappedPointer_v2 = dlfcn.dlsym(handle, 'cuGraphicsResourceGetMappedPointer_v2')
- {{endif}}
- {{if 'cuGraphicsResourceSetMapFlags_v2' in found_functions}}
- global __cuGraphicsResourceSetMapFlags_v2
- __cuGraphicsResourceSetMapFlags_v2 = dlfcn.dlsym(handle, 'cuGraphicsResourceSetMapFlags_v2')
- {{endif}}
- {{if 'cuGetProcAddress_v2' in found_functions}}
- global __cuGetProcAddress_v2
- __cuGetProcAddress_v2 = dlfcn.dlsym(handle, 'cuGetProcAddress_v2')
- {{endif}}
- {{if 'cuCoredumpGetAttribute' in found_functions}}
- global __cuCoredumpGetAttribute
- __cuCoredumpGetAttribute = dlfcn.dlsym(handle, 'cuCoredumpGetAttribute')
- {{endif}}
- {{if 'cuCoredumpGetAttributeGlobal' in found_functions}}
- global __cuCoredumpGetAttributeGlobal
- __cuCoredumpGetAttributeGlobal = dlfcn.dlsym(handle, 'cuCoredumpGetAttributeGlobal')
- {{endif}}
- {{if 'cuCoredumpSetAttribute' in found_functions}}
- global __cuCoredumpSetAttribute
- __cuCoredumpSetAttribute = dlfcn.dlsym(handle, 'cuCoredumpSetAttribute')
- {{endif}}
- {{if 'cuCoredumpSetAttributeGlobal' in found_functions}}
- global __cuCoredumpSetAttributeGlobal
- __cuCoredumpSetAttributeGlobal = dlfcn.dlsym(handle, 'cuCoredumpSetAttributeGlobal')
- {{endif}}
- {{if 'cuGetExportTable' in found_functions}}
- global __cuGetExportTable
- __cuGetExportTable = dlfcn.dlsym(handle, 'cuGetExportTable')
- {{endif}}
- {{if 'cuGreenCtxCreate' in found_functions}}
- global __cuGreenCtxCreate
- __cuGreenCtxCreate = dlfcn.dlsym(handle, 'cuGreenCtxCreate')
- {{endif}}
- {{if 'cuGreenCtxDestroy' in found_functions}}
- global __cuGreenCtxDestroy
- __cuGreenCtxDestroy = dlfcn.dlsym(handle, 'cuGreenCtxDestroy')
- {{endif}}
- {{if 'cuCtxFromGreenCtx' in found_functions}}
- global __cuCtxFromGreenCtx
- __cuCtxFromGreenCtx = dlfcn.dlsym(handle, 'cuCtxFromGreenCtx')
- {{endif}}
- {{if 'cuDeviceGetDevResource' in found_functions}}
- global __cuDeviceGetDevResource
- __cuDeviceGetDevResource = dlfcn.dlsym(handle, 'cuDeviceGetDevResource')
- {{endif}}
- {{if 'cuCtxGetDevResource' in found_functions}}
- global __cuCtxGetDevResource
- __cuCtxGetDevResource = dlfcn.dlsym(handle, 'cuCtxGetDevResource')
- {{endif}}
- {{if 'cuGreenCtxGetDevResource' in found_functions}}
- global __cuGreenCtxGetDevResource
- __cuGreenCtxGetDevResource = dlfcn.dlsym(handle, 'cuGreenCtxGetDevResource')
- {{endif}}
- {{if 'cuDevSmResourceSplitByCount' in found_functions}}
- global __cuDevSmResourceSplitByCount
- __cuDevSmResourceSplitByCount = dlfcn.dlsym(handle, 'cuDevSmResourceSplitByCount')
- {{endif}}
- {{if 'cuDevResourceGenerateDesc' in found_functions}}
- global __cuDevResourceGenerateDesc
- __cuDevResourceGenerateDesc = dlfcn.dlsym(handle, 'cuDevResourceGenerateDesc')
- {{endif}}
- {{if 'cuGreenCtxRecordEvent' in found_functions}}
- global __cuGreenCtxRecordEvent
- __cuGreenCtxRecordEvent = dlfcn.dlsym(handle, 'cuGreenCtxRecordEvent')
- {{endif}}
- {{if 'cuGreenCtxWaitEvent' in found_functions}}
- global __cuGreenCtxWaitEvent
- __cuGreenCtxWaitEvent = dlfcn.dlsym(handle, 'cuGreenCtxWaitEvent')
- {{endif}}
- {{if 'cuStreamGetGreenCtx' in found_functions}}
- global __cuStreamGetGreenCtx
- __cuStreamGetGreenCtx = dlfcn.dlsym(handle, 'cuStreamGetGreenCtx')
- {{endif}}
- {{if 'cuGreenCtxStreamCreate' in found_functions}}
- global __cuGreenCtxStreamCreate
- __cuGreenCtxStreamCreate = dlfcn.dlsym(handle, 'cuGreenCtxStreamCreate')
- {{endif}}
- {{if 'cuGreenCtxGetId' in found_functions}}
- global __cuGreenCtxGetId
- __cuGreenCtxGetId = dlfcn.dlsym(handle, 'cuGreenCtxGetId')
- {{endif}}
- {{if 'cuLogsRegisterCallback' in found_functions}}
- global __cuLogsRegisterCallback
- __cuLogsRegisterCallback = dlfcn.dlsym(handle, 'cuLogsRegisterCallback')
- {{endif}}
- {{if 'cuLogsUnregisterCallback' in found_functions}}
- global __cuLogsUnregisterCallback
- __cuLogsUnregisterCallback = dlfcn.dlsym(handle, 'cuLogsUnregisterCallback')
- {{endif}}
- {{if 'cuLogsCurrent' in found_functions}}
- global __cuLogsCurrent
- __cuLogsCurrent = dlfcn.dlsym(handle, 'cuLogsCurrent')
- {{endif}}
- {{if 'cuLogsDumpToFile' in found_functions}}
- global __cuLogsDumpToFile
- __cuLogsDumpToFile = dlfcn.dlsym(handle, 'cuLogsDumpToFile')
- {{endif}}
- {{if 'cuLogsDumpToMemory' in found_functions}}
- global __cuLogsDumpToMemory
- __cuLogsDumpToMemory = dlfcn.dlsym(handle, 'cuLogsDumpToMemory')
- {{endif}}
- {{if 'cuCheckpointProcessGetRestoreThreadId' in found_functions}}
- global __cuCheckpointProcessGetRestoreThreadId
- __cuCheckpointProcessGetRestoreThreadId = dlfcn.dlsym(handle, 'cuCheckpointProcessGetRestoreThreadId')
- {{endif}}
- {{if 'cuCheckpointProcessGetState' in found_functions}}
- global __cuCheckpointProcessGetState
- __cuCheckpointProcessGetState = dlfcn.dlsym(handle, 'cuCheckpointProcessGetState')
- {{endif}}
- {{if 'cuCheckpointProcessLock' in found_functions}}
- global __cuCheckpointProcessLock
- __cuCheckpointProcessLock = dlfcn.dlsym(handle, 'cuCheckpointProcessLock')
- {{endif}}
- {{if 'cuCheckpointProcessCheckpoint' in found_functions}}
- global __cuCheckpointProcessCheckpoint
- __cuCheckpointProcessCheckpoint = dlfcn.dlsym(handle, 'cuCheckpointProcessCheckpoint')
- {{endif}}
- {{if 'cuCheckpointProcessRestore' in found_functions}}
- global __cuCheckpointProcessRestore
- __cuCheckpointProcessRestore = dlfcn.dlsym(handle, 'cuCheckpointProcessRestore')
- {{endif}}
- {{if 'cuCheckpointProcessUnlock' in found_functions}}
- global __cuCheckpointProcessUnlock
- __cuCheckpointProcessUnlock = dlfcn.dlsym(handle, 'cuCheckpointProcessUnlock')
- {{endif}}
- {{if 'cuProfilerStart' in found_functions}}
- global __cuProfilerStart
- __cuProfilerStart = dlfcn.dlsym(handle, 'cuProfilerStart')
- {{endif}}
- {{if 'cuProfilerStop' in found_functions}}
- global __cuProfilerStop
- __cuProfilerStop = dlfcn.dlsym(handle, 'cuProfilerStop')
- {{endif}}
- {{if True}}
- global __cuGraphicsEGLRegisterImage
- __cuGraphicsEGLRegisterImage = dlfcn.dlsym(handle, 'cuGraphicsEGLRegisterImage')
- {{endif}}
- {{if True}}
- global __cuEGLStreamConsumerConnect
- __cuEGLStreamConsumerConnect = dlfcn.dlsym(handle, 'cuEGLStreamConsumerConnect')
- {{endif}}
- {{if True}}
- global __cuEGLStreamConsumerConnectWithFlags
- __cuEGLStreamConsumerConnectWithFlags = dlfcn.dlsym(handle, 'cuEGLStreamConsumerConnectWithFlags')
- {{endif}}
- {{if True}}
- global __cuEGLStreamConsumerDisconnect
- __cuEGLStreamConsumerDisconnect = dlfcn.dlsym(handle, 'cuEGLStreamConsumerDisconnect')
- {{endif}}
- {{if True}}
- global __cuEGLStreamConsumerAcquireFrame
- __cuEGLStreamConsumerAcquireFrame = dlfcn.dlsym(handle, 'cuEGLStreamConsumerAcquireFrame')
- {{endif}}
- {{if True}}
- global __cuEGLStreamConsumerReleaseFrame
- __cuEGLStreamConsumerReleaseFrame = dlfcn.dlsym(handle, 'cuEGLStreamConsumerReleaseFrame')
- {{endif}}
- {{if True}}
- global __cuEGLStreamProducerConnect
- __cuEGLStreamProducerConnect = dlfcn.dlsym(handle, 'cuEGLStreamProducerConnect')
- {{endif}}
- {{if True}}
- global __cuEGLStreamProducerDisconnect
- __cuEGLStreamProducerDisconnect = dlfcn.dlsym(handle, 'cuEGLStreamProducerDisconnect')
- {{endif}}
- {{if True}}
- global __cuEGLStreamProducerPresentFrame
- __cuEGLStreamProducerPresentFrame = dlfcn.dlsym(handle, 'cuEGLStreamProducerPresentFrame')
- {{endif}}
- {{if True}}
- global __cuEGLStreamProducerReturnFrame
- __cuEGLStreamProducerReturnFrame = dlfcn.dlsym(handle, 'cuEGLStreamProducerReturnFrame')
- {{endif}}
- {{if True}}
- global __cuGraphicsResourceGetMappedEglFrame
- __cuGraphicsResourceGetMappedEglFrame = dlfcn.dlsym(handle, 'cuGraphicsResourceGetMappedEglFrame')
- {{endif}}
- {{if True}}
- global __cuEventCreateFromEGLSync
- __cuEventCreateFromEGLSync = dlfcn.dlsym(handle, 'cuEventCreateFromEGLSync')
- {{endif}}
- {{if True}}
- global __cuGraphicsGLRegisterBuffer
- __cuGraphicsGLRegisterBuffer = dlfcn.dlsym(handle, 'cuGraphicsGLRegisterBuffer')
- {{endif}}
- {{if True}}
- global __cuGraphicsGLRegisterImage
- __cuGraphicsGLRegisterImage = dlfcn.dlsym(handle, 'cuGraphicsGLRegisterImage')
- {{endif}}
- {{if True}}
- global __cuGLGetDevices_v2
- __cuGLGetDevices_v2 = dlfcn.dlsym(handle, 'cuGLGetDevices_v2')
- {{endif}}
- {{if True}}
- global __cuVDPAUGetDevice
- __cuVDPAUGetDevice = dlfcn.dlsym(handle, 'cuVDPAUGetDevice')
- {{endif}}
- {{if True}}
- global __cuVDPAUCtxCreate_v2
- __cuVDPAUCtxCreate_v2 = dlfcn.dlsym(handle, 'cuVDPAUCtxCreate_v2')
- {{endif}}
- {{if True}}
- global __cuGraphicsVDPAURegisterVideoSurface
- __cuGraphicsVDPAURegisterVideoSurface = dlfcn.dlsym(handle, 'cuGraphicsVDPAURegisterVideoSurface')
- {{endif}}
- {{if True}}
- global __cuGraphicsVDPAURegisterOutputSurface
- __cuGraphicsVDPAURegisterOutputSurface = dlfcn.dlsym(handle, 'cuGraphicsVDPAURegisterOutputSurface')
- {{endif}}
- {{endif}}
- __cuPythonInit = True
- return 0
-
-# Create a very small function to check whether we are init'ed, so the C
-# compiler can inline it.
-cdef inline int cuPythonInit() except -1 nogil:
- if __cuPythonInit:
- return 0
- return _cuPythonInit()
-
-{{if 'cuGetErrorString' in found_functions}}
-
-cdef CUresult _cuGetErrorString(CUresult error, const char** pStr) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuGetErrorString
- cuPythonInit()
- if __cuGetErrorString == NULL:
- with gil:
- raise RuntimeError('Function "cuGetErrorString" not found')
- err = ( __cuGetErrorString)(error, pStr)
- return err
-{{endif}}
-
-{{if 'cuGetErrorName' in found_functions}}
-
-cdef CUresult _cuGetErrorName(CUresult error, const char** pStr) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuGetErrorName
- cuPythonInit()
- if __cuGetErrorName == NULL:
- with gil:
- raise RuntimeError('Function "cuGetErrorName" not found')
- err = ( __cuGetErrorName)(error, pStr)
- return err
-{{endif}}
-
-{{if 'cuInit' in found_functions}}
-
-cdef CUresult _cuInit(unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuInit
- cuPythonInit()
- if __cuInit == NULL:
- with gil:
- raise RuntimeError('Function "cuInit" not found')
- err = ( __cuInit)(Flags)
- return err
-{{endif}}
-
-{{if 'cuDriverGetVersion' in found_functions}}
-
-cdef CUresult _cuDriverGetVersion(int* driverVersion) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuDriverGetVersion
- cuPythonInit()
- if __cuDriverGetVersion == NULL:
- with gil:
- raise RuntimeError('Function "cuDriverGetVersion" not found')
- err = ( __cuDriverGetVersion)(driverVersion)
- return err
-{{endif}}
-
-{{if 'cuDeviceGet' in found_functions}}
-
-cdef CUresult _cuDeviceGet(CUdevice* device, int ordinal) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuDeviceGet
- cuPythonInit()
- if __cuDeviceGet == NULL:
- with gil:
- raise RuntimeError('Function "cuDeviceGet" not found')
- err = ( __cuDeviceGet)(device, ordinal)
- return err
-{{endif}}
-
-{{if 'cuDeviceGetCount' in found_functions}}
-
-cdef CUresult _cuDeviceGetCount(int* count) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuDeviceGetCount
- cuPythonInit()
- if __cuDeviceGetCount == NULL:
- with gil:
- raise RuntimeError('Function "cuDeviceGetCount" not found')
- err = ( __cuDeviceGetCount)(count)
- return err
-{{endif}}
-
-{{if 'cuDeviceGetName' in found_functions}}
-
-cdef CUresult _cuDeviceGetName(char* name, int length, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuDeviceGetName
- cuPythonInit()
- if __cuDeviceGetName == NULL:
- with gil:
- raise RuntimeError('Function "cuDeviceGetName" not found')
- err = ( __cuDeviceGetName)(name, length, dev)
- return err
-{{endif}}
-
-{{if 'cuDeviceGetUuid_v2' in found_functions}}
-
-cdef CUresult _cuDeviceGetUuid_v2(CUuuid* uuid, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuDeviceGetUuid_v2
- cuPythonInit()
- if __cuDeviceGetUuid_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuDeviceGetUuid_v2" not found')
- err = ( __cuDeviceGetUuid_v2)(uuid, dev)
- return err
-{{endif}}
-
-{{if 'cuDeviceGetLuid' in found_functions}}
-
-cdef CUresult _cuDeviceGetLuid(char* luid, unsigned int* deviceNodeMask, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuDeviceGetLuid
- cuPythonInit()
- if __cuDeviceGetLuid == NULL:
- with gil:
- raise RuntimeError('Function "cuDeviceGetLuid" not found')
- err = ( __cuDeviceGetLuid)(luid, deviceNodeMask, dev)
- return err
-{{endif}}
-
-{{if 'cuDeviceTotalMem_v2' in found_functions}}
-
-cdef CUresult _cuDeviceTotalMem_v2(size_t* numbytes, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuDeviceTotalMem_v2
- cuPythonInit()
- if __cuDeviceTotalMem_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuDeviceTotalMem_v2" not found')
- err = ( __cuDeviceTotalMem_v2)(numbytes, dev)
- return err
-{{endif}}
-
-{{if 'cuDeviceGetTexture1DLinearMaxWidth' in found_functions}}
-
-cdef CUresult _cuDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, CUarray_format pformat, unsigned numChannels, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuDeviceGetTexture1DLinearMaxWidth
- cuPythonInit()
- if __cuDeviceGetTexture1DLinearMaxWidth == NULL:
- with gil:
- raise RuntimeError('Function "cuDeviceGetTexture1DLinearMaxWidth" not found')
- err = ( __cuDeviceGetTexture1DLinearMaxWidth)(maxWidthInElements, pformat, numChannels, dev)
- return err
-{{endif}}
-
-{{if 'cuDeviceGetAttribute' in found_functions}}
-
-cdef CUresult _cuDeviceGetAttribute(int* pi, CUdevice_attribute attrib, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuDeviceGetAttribute
- cuPythonInit()
- if __cuDeviceGetAttribute == NULL:
- with gil:
- raise RuntimeError('Function "cuDeviceGetAttribute" not found')
- err = ( __cuDeviceGetAttribute)(pi, attrib, dev)
- return err
-{{endif}}
-
-{{if 'cuDeviceGetHostAtomicCapabilities' in found_functions}}
-
-cdef CUresult _cuDeviceGetHostAtomicCapabilities(unsigned int* capabilities, const CUatomicOperation* operations, unsigned int count, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuDeviceGetHostAtomicCapabilities
- cuPythonInit()
- if __cuDeviceGetHostAtomicCapabilities == NULL:
- with gil:
- raise RuntimeError('Function "cuDeviceGetHostAtomicCapabilities" not found')
- err = ( __cuDeviceGetHostAtomicCapabilities)(capabilities, operations, count, dev)
- return err
-{{endif}}
-
-{{if 'cuDeviceGetNvSciSyncAttributes' in found_functions}}
-
-cdef CUresult _cuDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, CUdevice dev, int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuDeviceGetNvSciSyncAttributes
- cuPythonInit()
- if __cuDeviceGetNvSciSyncAttributes == NULL:
- with gil:
- raise RuntimeError('Function "cuDeviceGetNvSciSyncAttributes" not found')
- err = ( __cuDeviceGetNvSciSyncAttributes)(nvSciSyncAttrList, dev, flags)
- return err
-{{endif}}
-
-{{if 'cuDeviceSetMemPool' in found_functions}}
-
-cdef CUresult _cuDeviceSetMemPool(CUdevice dev, CUmemoryPool pool) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuDeviceSetMemPool
- cuPythonInit()
- if __cuDeviceSetMemPool == NULL:
- with gil:
- raise RuntimeError('Function "cuDeviceSetMemPool" not found')
- err = ( __cuDeviceSetMemPool)(dev, pool)
- return err
-{{endif}}
-
-{{if 'cuDeviceGetMemPool' in found_functions}}
-
-cdef CUresult _cuDeviceGetMemPool(CUmemoryPool* pool, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuDeviceGetMemPool
- cuPythonInit()
- if __cuDeviceGetMemPool == NULL:
- with gil:
- raise RuntimeError('Function "cuDeviceGetMemPool" not found')
- err = ( __cuDeviceGetMemPool)(pool, dev)
- return err
-{{endif}}
-
-{{if 'cuDeviceGetDefaultMemPool' in found_functions}}
-
-cdef CUresult _cuDeviceGetDefaultMemPool(CUmemoryPool* pool_out, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuDeviceGetDefaultMemPool
- cuPythonInit()
- if __cuDeviceGetDefaultMemPool == NULL:
- with gil:
- raise RuntimeError('Function "cuDeviceGetDefaultMemPool" not found')
- err = ( __cuDeviceGetDefaultMemPool)(pool_out, dev)
- return err
-{{endif}}
-
-{{if 'cuDeviceGetExecAffinitySupport' in found_functions}}
-
-cdef CUresult _cuDeviceGetExecAffinitySupport(int* pi, CUexecAffinityType typename, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuDeviceGetExecAffinitySupport
- cuPythonInit()
- if __cuDeviceGetExecAffinitySupport == NULL:
- with gil:
- raise RuntimeError('Function "cuDeviceGetExecAffinitySupport" not found')
- err = ( __cuDeviceGetExecAffinitySupport)(pi, typename, dev)
- return err
-{{endif}}
-
-{{if 'cuFlushGPUDirectRDMAWrites' in found_functions}}
-
-cdef CUresult _cuFlushGPUDirectRDMAWrites(CUflushGPUDirectRDMAWritesTarget target, CUflushGPUDirectRDMAWritesScope scope) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuFlushGPUDirectRDMAWrites
- cuPythonInit()
- if __cuFlushGPUDirectRDMAWrites == NULL:
- with gil:
- raise RuntimeError('Function "cuFlushGPUDirectRDMAWrites" not found')
- err = ( __cuFlushGPUDirectRDMAWrites)(target, scope)
- return err
-{{endif}}
-
-{{if 'cuDeviceGetProperties' in found_functions}}
-
-cdef CUresult _cuDeviceGetProperties(CUdevprop* prop, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuDeviceGetProperties
- cuPythonInit()
- if __cuDeviceGetProperties == NULL:
- with gil:
- raise RuntimeError('Function "cuDeviceGetProperties" not found')
- err = ( __cuDeviceGetProperties)(prop, dev)
- return err
-{{endif}}
-
-{{if 'cuDeviceComputeCapability' in found_functions}}
-
-cdef CUresult _cuDeviceComputeCapability(int* major, int* minor, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuDeviceComputeCapability
- cuPythonInit()
- if __cuDeviceComputeCapability == NULL:
- with gil:
- raise RuntimeError('Function "cuDeviceComputeCapability" not found')
- err = ( __cuDeviceComputeCapability)(major, minor, dev)
- return err
-{{endif}}
-
-{{if 'cuDevicePrimaryCtxRetain' in found_functions}}
-
-cdef CUresult _cuDevicePrimaryCtxRetain(CUcontext* pctx, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuDevicePrimaryCtxRetain
- cuPythonInit()
- if __cuDevicePrimaryCtxRetain == NULL:
- with gil:
- raise RuntimeError('Function "cuDevicePrimaryCtxRetain" not found')
- err = ( __cuDevicePrimaryCtxRetain)(pctx, dev)
- return err
-{{endif}}
-
-{{if 'cuDevicePrimaryCtxRelease_v2' in found_functions}}
-
-cdef CUresult _cuDevicePrimaryCtxRelease_v2(CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuDevicePrimaryCtxRelease_v2
- cuPythonInit()
- if __cuDevicePrimaryCtxRelease_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuDevicePrimaryCtxRelease_v2" not found')
- err = ( __cuDevicePrimaryCtxRelease_v2)(dev)
- return err
-{{endif}}
-
-{{if 'cuDevicePrimaryCtxSetFlags_v2' in found_functions}}
-
-cdef CUresult _cuDevicePrimaryCtxSetFlags_v2(CUdevice dev, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuDevicePrimaryCtxSetFlags_v2
- cuPythonInit()
- if __cuDevicePrimaryCtxSetFlags_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuDevicePrimaryCtxSetFlags_v2" not found')
- err = ( __cuDevicePrimaryCtxSetFlags_v2)(dev, flags)
- return err
-{{endif}}
-
-{{if 'cuDevicePrimaryCtxGetState' in found_functions}}
-
-cdef CUresult _cuDevicePrimaryCtxGetState(CUdevice dev, unsigned int* flags, int* active) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuDevicePrimaryCtxGetState
- cuPythonInit()
- if __cuDevicePrimaryCtxGetState == NULL:
- with gil:
- raise RuntimeError('Function "cuDevicePrimaryCtxGetState" not found')
- err = ( __cuDevicePrimaryCtxGetState)(dev, flags, active)
- return err
-{{endif}}
-
-{{if 'cuDevicePrimaryCtxReset_v2' in found_functions}}
-
-cdef CUresult _cuDevicePrimaryCtxReset_v2(CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuDevicePrimaryCtxReset_v2
- cuPythonInit()
- if __cuDevicePrimaryCtxReset_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuDevicePrimaryCtxReset_v2" not found')
- err = ( __cuDevicePrimaryCtxReset_v2)(dev)
- return err
-{{endif}}
-
-{{if 'cuCtxCreate_v4' in found_functions}}
-
-cdef CUresult _cuCtxCreate_v4(CUcontext* pctx, CUctxCreateParams* ctxCreateParams, unsigned int flags, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuCtxCreate_v4
- cuPythonInit()
- if __cuCtxCreate_v4 == NULL:
- with gil:
- raise RuntimeError('Function "cuCtxCreate_v4" not found')
- err = ( __cuCtxCreate_v4)(pctx, ctxCreateParams, flags, dev)
- return err
-{{endif}}
-
-{{if 'cuCtxDestroy_v2' in found_functions}}
-
-cdef CUresult _cuCtxDestroy_v2(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuCtxDestroy_v2
- cuPythonInit()
- if __cuCtxDestroy_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuCtxDestroy_v2" not found')
- err = ( __cuCtxDestroy_v2)(ctx)
- return err
-{{endif}}
-
-{{if 'cuCtxPushCurrent_v2' in found_functions}}
-
-cdef CUresult _cuCtxPushCurrent_v2(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuCtxPushCurrent_v2
- cuPythonInit()
- if __cuCtxPushCurrent_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuCtxPushCurrent_v2" not found')
- err = ( __cuCtxPushCurrent_v2)(ctx)
- return err
-{{endif}}
-
-{{if 'cuCtxPopCurrent_v2' in found_functions}}
-
-cdef CUresult _cuCtxPopCurrent_v2(CUcontext* pctx) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuCtxPopCurrent_v2
- cuPythonInit()
- if __cuCtxPopCurrent_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuCtxPopCurrent_v2" not found')
- err = ( __cuCtxPopCurrent_v2)(pctx)
- return err
-{{endif}}
-
-{{if 'cuCtxSetCurrent' in found_functions}}
-
-cdef CUresult _cuCtxSetCurrent(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuCtxSetCurrent
- cuPythonInit()
- if __cuCtxSetCurrent == NULL:
- with gil:
- raise RuntimeError('Function "cuCtxSetCurrent" not found')
- err = ( __cuCtxSetCurrent)(ctx)
- return err
-{{endif}}
-
-{{if 'cuCtxGetCurrent' in found_functions}}
-
-cdef CUresult _cuCtxGetCurrent(CUcontext* pctx) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuCtxGetCurrent
- cuPythonInit()
- if __cuCtxGetCurrent == NULL:
- with gil:
- raise RuntimeError('Function "cuCtxGetCurrent" not found')
- err = ( __cuCtxGetCurrent)(pctx)
- return err
-{{endif}}
-
-{{if 'cuCtxGetDevice' in found_functions}}
-
-cdef CUresult _cuCtxGetDevice(CUdevice* device) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuCtxGetDevice
- cuPythonInit()
- if __cuCtxGetDevice == NULL:
- with gil:
- raise RuntimeError('Function "cuCtxGetDevice" not found')
- err = ( __cuCtxGetDevice)(device)
- return err
-{{endif}}
-
-{{if 'cuCtxGetDevice_v2' in found_functions}}
-
-cdef CUresult _cuCtxGetDevice_v2(CUdevice* device, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuCtxGetDevice_v2
- cuPythonInit()
- if __cuCtxGetDevice_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuCtxGetDevice_v2" not found')
- err = ( __cuCtxGetDevice_v2)(device, ctx)
- return err
-{{endif}}
-
-{{if 'cuCtxGetFlags' in found_functions}}
-
-cdef CUresult _cuCtxGetFlags(unsigned int* flags) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuCtxGetFlags
- cuPythonInit()
- if __cuCtxGetFlags == NULL:
- with gil:
- raise RuntimeError('Function "cuCtxGetFlags" not found')
- err = ( __cuCtxGetFlags)(flags)
- return err
-{{endif}}
-
-{{if 'cuCtxSetFlags' in found_functions}}
-
-cdef CUresult _cuCtxSetFlags(unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuCtxSetFlags
- cuPythonInit()
- if __cuCtxSetFlags == NULL:
- with gil:
- raise RuntimeError('Function "cuCtxSetFlags" not found')
- err = ( __cuCtxSetFlags)(flags)
- return err
-{{endif}}
-
-{{if 'cuCtxGetId' in found_functions}}
-
-cdef CUresult _cuCtxGetId(CUcontext ctx, unsigned long long* ctxId) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuCtxGetId
- cuPythonInit()
- if __cuCtxGetId == NULL:
- with gil:
- raise RuntimeError('Function "cuCtxGetId" not found')
- err = ( __cuCtxGetId)(ctx, ctxId)
- return err
-{{endif}}
-
-{{if 'cuCtxSynchronize' in found_functions}}
-
-cdef CUresult _cuCtxSynchronize() except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuCtxSynchronize
- cuPythonInit()
- if __cuCtxSynchronize == NULL:
- with gil:
- raise RuntimeError('Function "cuCtxSynchronize" not found')
- err = ( __cuCtxSynchronize)()
- return err
-{{endif}}
-
-{{if 'cuCtxSynchronize_v2' in found_functions}}
-
-cdef CUresult _cuCtxSynchronize_v2(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuCtxSynchronize_v2
- cuPythonInit()
- if __cuCtxSynchronize_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuCtxSynchronize_v2" not found')
- err = ( __cuCtxSynchronize_v2)(ctx)
- return err
-{{endif}}
-
-{{if 'cuCtxSetLimit' in found_functions}}
-
-cdef CUresult _cuCtxSetLimit(CUlimit limit, size_t value) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuCtxSetLimit
- cuPythonInit()
- if __cuCtxSetLimit == NULL:
- with gil:
- raise RuntimeError('Function "cuCtxSetLimit" not found')
- err = ( __cuCtxSetLimit)(limit, value)
- return err
-{{endif}}
-
-{{if 'cuCtxGetLimit' in found_functions}}
-
-cdef CUresult _cuCtxGetLimit(size_t* pvalue, CUlimit limit) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuCtxGetLimit
- cuPythonInit()
- if __cuCtxGetLimit == NULL:
- with gil:
- raise RuntimeError('Function "cuCtxGetLimit" not found')
- err = ( __cuCtxGetLimit)(pvalue, limit)
- return err
-{{endif}}
-
-{{if 'cuCtxGetCacheConfig' in found_functions}}
-
-cdef CUresult _cuCtxGetCacheConfig(CUfunc_cache* pconfig) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuCtxGetCacheConfig
- cuPythonInit()
- if __cuCtxGetCacheConfig == NULL:
- with gil:
- raise RuntimeError('Function "cuCtxGetCacheConfig" not found')
- err = ( __cuCtxGetCacheConfig)(pconfig)
- return err
-{{endif}}
-
-{{if 'cuCtxSetCacheConfig' in found_functions}}
-
-cdef CUresult _cuCtxSetCacheConfig(CUfunc_cache config) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuCtxSetCacheConfig
- cuPythonInit()
- if __cuCtxSetCacheConfig == NULL:
- with gil:
- raise RuntimeError('Function "cuCtxSetCacheConfig" not found')
- err = ( __cuCtxSetCacheConfig)(config)
- return err
-{{endif}}
-
-{{if 'cuCtxGetApiVersion' in found_functions}}
-
-cdef CUresult _cuCtxGetApiVersion(CUcontext ctx, unsigned int* version) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuCtxGetApiVersion
- cuPythonInit()
- if __cuCtxGetApiVersion == NULL:
- with gil:
- raise RuntimeError('Function "cuCtxGetApiVersion" not found')
- err = ( __cuCtxGetApiVersion)(ctx, version)
- return err
-{{endif}}
-
-{{if 'cuCtxGetStreamPriorityRange' in found_functions}}
-
-cdef CUresult _cuCtxGetStreamPriorityRange(int* leastPriority, int* greatestPriority) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuCtxGetStreamPriorityRange
- cuPythonInit()
- if __cuCtxGetStreamPriorityRange == NULL:
- with gil:
- raise RuntimeError('Function "cuCtxGetStreamPriorityRange" not found')
- err = ( __cuCtxGetStreamPriorityRange)(leastPriority, greatestPriority)
- return err
-{{endif}}
-
-{{if 'cuCtxResetPersistingL2Cache' in found_functions}}
-
-cdef CUresult _cuCtxResetPersistingL2Cache() except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuCtxResetPersistingL2Cache
- cuPythonInit()
- if __cuCtxResetPersistingL2Cache == NULL:
- with gil:
- raise RuntimeError('Function "cuCtxResetPersistingL2Cache" not found')
- err = ( __cuCtxResetPersistingL2Cache)()
- return err
-{{endif}}
-
-{{if 'cuCtxGetExecAffinity' in found_functions}}
-
-cdef CUresult _cuCtxGetExecAffinity(CUexecAffinityParam* pExecAffinity, CUexecAffinityType typename) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuCtxGetExecAffinity
- cuPythonInit()
- if __cuCtxGetExecAffinity == NULL:
- with gil:
- raise RuntimeError('Function "cuCtxGetExecAffinity" not found')
- err = ( __cuCtxGetExecAffinity)(pExecAffinity, typename)
- return err
-{{endif}}
-
-{{if 'cuCtxRecordEvent' in found_functions}}
-
-cdef CUresult _cuCtxRecordEvent(CUcontext hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuCtxRecordEvent
- cuPythonInit()
- if __cuCtxRecordEvent == NULL:
- with gil:
- raise RuntimeError('Function "cuCtxRecordEvent" not found')
- err = ( __cuCtxRecordEvent)(hCtx, hEvent)
- return err
-{{endif}}
-
-{{if 'cuCtxWaitEvent' in found_functions}}
-
-cdef CUresult _cuCtxWaitEvent(CUcontext hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuCtxWaitEvent
- cuPythonInit()
- if __cuCtxWaitEvent == NULL:
- with gil:
- raise RuntimeError('Function "cuCtxWaitEvent" not found')
- err = ( __cuCtxWaitEvent)(hCtx, hEvent)
- return err
-{{endif}}
-
-{{if 'cuCtxAttach' in found_functions}}
-
-cdef CUresult _cuCtxAttach(CUcontext* pctx, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuCtxAttach
- cuPythonInit()
- if __cuCtxAttach == NULL:
- with gil:
- raise RuntimeError('Function "cuCtxAttach" not found')
- err = ( __cuCtxAttach)(pctx, flags)
- return err
-{{endif}}
-
-{{if 'cuCtxDetach' in found_functions}}
-
-cdef CUresult _cuCtxDetach(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuCtxDetach
- cuPythonInit()
- if __cuCtxDetach == NULL:
- with gil:
- raise RuntimeError('Function "cuCtxDetach" not found')
- err = ( __cuCtxDetach)(ctx)
- return err
-{{endif}}
-
-{{if 'cuCtxGetSharedMemConfig' in found_functions}}
-
-cdef CUresult _cuCtxGetSharedMemConfig(CUsharedconfig* pConfig) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuCtxGetSharedMemConfig
- cuPythonInit()
- if __cuCtxGetSharedMemConfig == NULL:
- with gil:
- raise RuntimeError('Function "cuCtxGetSharedMemConfig" not found')
- err = ( __cuCtxGetSharedMemConfig)(pConfig)
- return err
-{{endif}}
-
-{{if 'cuCtxSetSharedMemConfig' in found_functions}}
-
-cdef CUresult _cuCtxSetSharedMemConfig(CUsharedconfig config) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuCtxSetSharedMemConfig
- cuPythonInit()
- if __cuCtxSetSharedMemConfig == NULL:
- with gil:
- raise RuntimeError('Function "cuCtxSetSharedMemConfig" not found')
- err = ( __cuCtxSetSharedMemConfig)(config)
- return err
-{{endif}}
-
-{{if 'cuModuleLoad' in found_functions}}
-
-cdef CUresult _cuModuleLoad(CUmodule* module, const char* fname) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuModuleLoad
- cuPythonInit()
- if __cuModuleLoad == NULL:
- with gil:
- raise RuntimeError('Function "cuModuleLoad" not found')
- err = ( __cuModuleLoad)(module, fname)
- return err
-{{endif}}
-
-{{if 'cuModuleLoadData' in found_functions}}
-
-cdef CUresult _cuModuleLoadData(CUmodule* module, const void* image) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuModuleLoadData
- cuPythonInit()
- if __cuModuleLoadData == NULL:
- with gil:
- raise RuntimeError('Function "cuModuleLoadData" not found')
- err = ( __cuModuleLoadData)(module, image)
- return err
-{{endif}}
-
-{{if 'cuModuleLoadDataEx' in found_functions}}
-
-cdef CUresult _cuModuleLoadDataEx(CUmodule* module, const void* image, unsigned int numOptions, CUjit_option* options, void** optionValues) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuModuleLoadDataEx
- cuPythonInit()
- if __cuModuleLoadDataEx == NULL:
- with gil:
- raise RuntimeError('Function "cuModuleLoadDataEx" not found')
- err = ( __cuModuleLoadDataEx)(module, image, numOptions, options, optionValues)
- return err
-{{endif}}
-
-{{if 'cuModuleLoadFatBinary' in found_functions}}
-
-cdef CUresult _cuModuleLoadFatBinary(CUmodule* module, const void* fatCubin) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuModuleLoadFatBinary
- cuPythonInit()
- if __cuModuleLoadFatBinary == NULL:
- with gil:
- raise RuntimeError('Function "cuModuleLoadFatBinary" not found')
- err = ( __cuModuleLoadFatBinary)(module, fatCubin)
- return err
-{{endif}}
-
-{{if 'cuModuleUnload' in found_functions}}
-
-cdef CUresult _cuModuleUnload(CUmodule hmod) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuModuleUnload
- cuPythonInit()
- if __cuModuleUnload == NULL:
- with gil:
- raise RuntimeError('Function "cuModuleUnload" not found')
- err = ( __cuModuleUnload)(hmod)
- return err
-{{endif}}
-
-{{if 'cuModuleGetLoadingMode' in found_functions}}
-
-cdef CUresult _cuModuleGetLoadingMode(CUmoduleLoadingMode* mode) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuModuleGetLoadingMode
- cuPythonInit()
- if __cuModuleGetLoadingMode == NULL:
- with gil:
- raise RuntimeError('Function "cuModuleGetLoadingMode" not found')
- err = ( __cuModuleGetLoadingMode)(mode)
- return err
-{{endif}}
-
-{{if 'cuModuleGetFunction' in found_functions}}
-
-cdef CUresult _cuModuleGetFunction(CUfunction* hfunc, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuModuleGetFunction
- cuPythonInit()
- if __cuModuleGetFunction == NULL:
- with gil:
- raise RuntimeError('Function "cuModuleGetFunction" not found')
- err = ( __cuModuleGetFunction)(hfunc, hmod, name)
- return err
-{{endif}}
-
-{{if 'cuModuleGetFunctionCount' in found_functions}}
-
-cdef CUresult _cuModuleGetFunctionCount(unsigned int* count, CUmodule mod) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuModuleGetFunctionCount
- cuPythonInit()
- if __cuModuleGetFunctionCount == NULL:
- with gil:
- raise RuntimeError('Function "cuModuleGetFunctionCount" not found')
- err = ( __cuModuleGetFunctionCount)(count, mod)
- return err
-{{endif}}
-
-{{if 'cuModuleEnumerateFunctions' in found_functions}}
-
-cdef CUresult _cuModuleEnumerateFunctions(CUfunction* functions, unsigned int numFunctions, CUmodule mod) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuModuleEnumerateFunctions
- cuPythonInit()
- if __cuModuleEnumerateFunctions == NULL:
- with gil:
- raise RuntimeError('Function "cuModuleEnumerateFunctions" not found')
- err = ( __cuModuleEnumerateFunctions)(functions, numFunctions, mod)
- return err
-{{endif}}
-
-{{if 'cuModuleGetGlobal_v2' in found_functions}}
-
-cdef CUresult _cuModuleGetGlobal_v2(CUdeviceptr* dptr, size_t* numbytes, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuModuleGetGlobal_v2
- cuPythonInit()
- if __cuModuleGetGlobal_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuModuleGetGlobal_v2" not found')
- err = ( __cuModuleGetGlobal_v2)(dptr, numbytes, hmod, name)
- return err
-{{endif}}
-
-{{if 'cuLinkCreate_v2' in found_functions}}
-
-cdef CUresult _cuLinkCreate_v2(unsigned int numOptions, CUjit_option* options, void** optionValues, CUlinkState* stateOut) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuLinkCreate_v2
- cuPythonInit()
- if __cuLinkCreate_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuLinkCreate_v2" not found')
- err = ( __cuLinkCreate_v2)(numOptions, options, optionValues, stateOut)
- return err
-{{endif}}
-
-{{if 'cuLinkAddData_v2' in found_functions}}
-
-cdef CUresult _cuLinkAddData_v2(CUlinkState state, CUjitInputType typename, void* data, size_t size, const char* name, unsigned int numOptions, CUjit_option* options, void** optionValues) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuLinkAddData_v2
- cuPythonInit()
- if __cuLinkAddData_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuLinkAddData_v2" not found')
- err = ( __cuLinkAddData_v2)(state, typename, data, size, name, numOptions, options, optionValues)
- return err
-{{endif}}
-
-{{if 'cuLinkAddFile_v2' in found_functions}}
-
-cdef CUresult _cuLinkAddFile_v2(CUlinkState state, CUjitInputType typename, const char* path, unsigned int numOptions, CUjit_option* options, void** optionValues) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuLinkAddFile_v2
- cuPythonInit()
- if __cuLinkAddFile_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuLinkAddFile_v2" not found')
- err = ( __cuLinkAddFile_v2)(state, typename, path, numOptions, options, optionValues)
- return err
-{{endif}}
-
-{{if 'cuLinkComplete' in found_functions}}
-
-cdef CUresult _cuLinkComplete(CUlinkState state, void** cubinOut, size_t* sizeOut) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuLinkComplete
- cuPythonInit()
- if __cuLinkComplete == NULL:
- with gil:
- raise RuntimeError('Function "cuLinkComplete" not found')
- err = ( __cuLinkComplete)(state, cubinOut, sizeOut)
- return err
-{{endif}}
-
-{{if 'cuLinkDestroy' in found_functions}}
-
-cdef CUresult _cuLinkDestroy(CUlinkState state) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuLinkDestroy
- cuPythonInit()
- if __cuLinkDestroy == NULL:
- with gil:
- raise RuntimeError('Function "cuLinkDestroy" not found')
- err = ( __cuLinkDestroy)(state)
- return err
-{{endif}}
-
-{{if 'cuModuleGetTexRef' in found_functions}}
-
-cdef CUresult _cuModuleGetTexRef(CUtexref* pTexRef, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuModuleGetTexRef
- cuPythonInit()
- if __cuModuleGetTexRef == NULL:
- with gil:
- raise RuntimeError('Function "cuModuleGetTexRef" not found')
- err = ( __cuModuleGetTexRef)(pTexRef, hmod, name)
- return err
-{{endif}}
-
-{{if 'cuModuleGetSurfRef' in found_functions}}
-
-cdef CUresult _cuModuleGetSurfRef(CUsurfref* pSurfRef, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuModuleGetSurfRef
- cuPythonInit()
- if __cuModuleGetSurfRef == NULL:
- with gil:
- raise RuntimeError('Function "cuModuleGetSurfRef" not found')
- err = ( __cuModuleGetSurfRef)(pSurfRef, hmod, name)
- return err
-{{endif}}
-
-{{if 'cuLibraryLoadData' in found_functions}}
-
-cdef CUresult _cuLibraryLoadData(CUlibrary* library, const void* code, CUjit_option* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, CUlibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuLibraryLoadData
- cuPythonInit()
- if __cuLibraryLoadData == NULL:
- with gil:
- raise RuntimeError('Function "cuLibraryLoadData" not found')
- err = ( __cuLibraryLoadData)(library, code, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions)
- return err
-{{endif}}
-
-{{if 'cuLibraryLoadFromFile' in found_functions}}
-
-cdef CUresult _cuLibraryLoadFromFile(CUlibrary* library, const char* fileName, CUjit_option* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, CUlibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuLibraryLoadFromFile
- cuPythonInit()
- if __cuLibraryLoadFromFile == NULL:
- with gil:
- raise RuntimeError('Function "cuLibraryLoadFromFile" not found')
- err = ( __cuLibraryLoadFromFile)(library, fileName, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions)
- return err
-{{endif}}
-
-{{if 'cuLibraryUnload' in found_functions}}
-
-cdef CUresult _cuLibraryUnload(CUlibrary library) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuLibraryUnload
- cuPythonInit()
- if __cuLibraryUnload == NULL:
- with gil:
- raise RuntimeError('Function "cuLibraryUnload" not found')
- err = ( __cuLibraryUnload)(library)
- return err
-{{endif}}
-
-{{if 'cuLibraryGetKernel' in found_functions}}
-
-cdef CUresult _cuLibraryGetKernel(CUkernel* pKernel, CUlibrary library, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuLibraryGetKernel
- cuPythonInit()
- if __cuLibraryGetKernel == NULL:
- with gil:
- raise RuntimeError('Function "cuLibraryGetKernel" not found')
- err = ( __cuLibraryGetKernel)(pKernel, library, name)
- return err
-{{endif}}
-
-{{if 'cuLibraryGetKernelCount' in found_functions}}
-
-cdef CUresult _cuLibraryGetKernelCount(unsigned int* count, CUlibrary lib) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuLibraryGetKernelCount
- cuPythonInit()
- if __cuLibraryGetKernelCount == NULL:
- with gil:
- raise RuntimeError('Function "cuLibraryGetKernelCount" not found')
- err = ( __cuLibraryGetKernelCount)(count, lib)
- return err
-{{endif}}
-
-{{if 'cuLibraryEnumerateKernels' in found_functions}}
-
-cdef CUresult _cuLibraryEnumerateKernels(CUkernel* kernels, unsigned int numKernels, CUlibrary lib) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuLibraryEnumerateKernels
- cuPythonInit()
- if __cuLibraryEnumerateKernels == NULL:
- with gil:
- raise RuntimeError('Function "cuLibraryEnumerateKernels" not found')
- err = ( __cuLibraryEnumerateKernels)(kernels, numKernels, lib)
- return err
-{{endif}}
-
-{{if 'cuLibraryGetModule' in found_functions}}
-
-cdef CUresult _cuLibraryGetModule(CUmodule* pMod, CUlibrary library) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuLibraryGetModule
- cuPythonInit()
- if __cuLibraryGetModule == NULL:
- with gil:
- raise RuntimeError('Function "cuLibraryGetModule" not found')
- err = ( __cuLibraryGetModule)(pMod, library)
- return err
-{{endif}}
-
-{{if 'cuKernelGetFunction' in found_functions}}
-
-cdef CUresult _cuKernelGetFunction(CUfunction* pFunc, CUkernel kernel) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuKernelGetFunction
- cuPythonInit()
- if __cuKernelGetFunction == NULL:
- with gil:
- raise RuntimeError('Function "cuKernelGetFunction" not found')
- err = ( __cuKernelGetFunction)(pFunc, kernel)
- return err
-{{endif}}
-
-{{if 'cuKernelGetLibrary' in found_functions}}
-
-cdef CUresult _cuKernelGetLibrary(CUlibrary* pLib, CUkernel kernel) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuKernelGetLibrary
- cuPythonInit()
- if __cuKernelGetLibrary == NULL:
- with gil:
- raise RuntimeError('Function "cuKernelGetLibrary" not found')
- err = ( __cuKernelGetLibrary)(pLib, kernel)
- return err
-{{endif}}
-
-{{if 'cuLibraryGetGlobal' in found_functions}}
-
-cdef CUresult _cuLibraryGetGlobal(CUdeviceptr* dptr, size_t* numbytes, CUlibrary library, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuLibraryGetGlobal
- cuPythonInit()
- if __cuLibraryGetGlobal == NULL:
- with gil:
- raise RuntimeError('Function "cuLibraryGetGlobal" not found')
- err = ( __cuLibraryGetGlobal)(dptr, numbytes, library, name)
- return err
-{{endif}}
-
-{{if 'cuLibraryGetManaged' in found_functions}}
-
-cdef CUresult _cuLibraryGetManaged(CUdeviceptr* dptr, size_t* numbytes, CUlibrary library, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuLibraryGetManaged
- cuPythonInit()
- if __cuLibraryGetManaged == NULL:
- with gil:
- raise RuntimeError('Function "cuLibraryGetManaged" not found')
- err = ( __cuLibraryGetManaged)(dptr, numbytes, library, name)
- return err
-{{endif}}
-
-{{if 'cuLibraryGetUnifiedFunction' in found_functions}}
-
-cdef CUresult _cuLibraryGetUnifiedFunction(void** fptr, CUlibrary library, const char* symbol) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuLibraryGetUnifiedFunction
- cuPythonInit()
- if __cuLibraryGetUnifiedFunction == NULL:
- with gil:
- raise RuntimeError('Function "cuLibraryGetUnifiedFunction" not found')
- err = ( __cuLibraryGetUnifiedFunction)(fptr, library, symbol)
- return err
-{{endif}}
-
-{{if 'cuKernelGetAttribute' in found_functions}}
-
-cdef CUresult _cuKernelGetAttribute(int* pi, CUfunction_attribute attrib, CUkernel kernel, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuKernelGetAttribute
- cuPythonInit()
- if __cuKernelGetAttribute == NULL:
- with gil:
- raise RuntimeError('Function "cuKernelGetAttribute" not found')
- err = ( __cuKernelGetAttribute)(pi, attrib, kernel, dev)
- return err
-{{endif}}
-
-{{if 'cuKernelSetAttribute' in found_functions}}
-
-cdef CUresult _cuKernelSetAttribute(CUfunction_attribute attrib, int val, CUkernel kernel, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuKernelSetAttribute
- cuPythonInit()
- if __cuKernelSetAttribute == NULL:
- with gil:
- raise RuntimeError('Function "cuKernelSetAttribute" not found')
- err = ( __cuKernelSetAttribute)(attrib, val, kernel, dev)
- return err
-{{endif}}
-
-{{if 'cuKernelSetCacheConfig' in found_functions}}
-
-cdef CUresult _cuKernelSetCacheConfig(CUkernel kernel, CUfunc_cache config, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuKernelSetCacheConfig
- cuPythonInit()
- if __cuKernelSetCacheConfig == NULL:
- with gil:
- raise RuntimeError('Function "cuKernelSetCacheConfig" not found')
- err = ( __cuKernelSetCacheConfig)(kernel, config, dev)
- return err
-{{endif}}
-
-{{if 'cuKernelGetName' in found_functions}}
-
-cdef CUresult _cuKernelGetName(const char** name, CUkernel hfunc) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuKernelGetName
- cuPythonInit()
- if __cuKernelGetName == NULL:
- with gil:
- raise RuntimeError('Function "cuKernelGetName" not found')
- err = ( __cuKernelGetName)(name, hfunc)
- return err
-{{endif}}
-
-{{if 'cuKernelGetParamInfo' in found_functions}}
-
-cdef CUresult _cuKernelGetParamInfo(CUkernel kernel, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuKernelGetParamInfo
- cuPythonInit()
- if __cuKernelGetParamInfo == NULL:
- with gil:
- raise RuntimeError('Function "cuKernelGetParamInfo" not found')
- err = ( __cuKernelGetParamInfo)(kernel, paramIndex, paramOffset, paramSize)
- return err
-{{endif}}
-
-{{if 'cuMemGetInfo_v2' in found_functions}}
-
-cdef CUresult _cuMemGetInfo_v2(size_t* free, size_t* total) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemGetInfo_v2
- cuPythonInit()
- if __cuMemGetInfo_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuMemGetInfo_v2" not found')
- err = ( __cuMemGetInfo_v2)(free, total)
- return err
-{{endif}}
-
-{{if 'cuMemAlloc_v2' in found_functions}}
-
-cdef CUresult _cuMemAlloc_v2(CUdeviceptr* dptr, size_t bytesize) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemAlloc_v2
- cuPythonInit()
- if __cuMemAlloc_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuMemAlloc_v2" not found')
- err = ( __cuMemAlloc_v2)(dptr, bytesize)
- return err
-{{endif}}
-
-{{if 'cuMemAllocPitch_v2' in found_functions}}
-
-cdef CUresult _cuMemAllocPitch_v2(CUdeviceptr* dptr, size_t* pPitch, size_t WidthInBytes, size_t Height, unsigned int ElementSizeBytes) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemAllocPitch_v2
- cuPythonInit()
- if __cuMemAllocPitch_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuMemAllocPitch_v2" not found')
- err = ( __cuMemAllocPitch_v2)(dptr, pPitch, WidthInBytes, Height, ElementSizeBytes)
- return err
-{{endif}}
-
-{{if 'cuMemFree_v2' in found_functions}}
-
-cdef CUresult _cuMemFree_v2(CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemFree_v2
- cuPythonInit()
- if __cuMemFree_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuMemFree_v2" not found')
- err = ( __cuMemFree_v2)(dptr)
- return err
-{{endif}}
-
-{{if 'cuMemGetAddressRange_v2' in found_functions}}
-
-cdef CUresult _cuMemGetAddressRange_v2(CUdeviceptr* pbase, size_t* psize, CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemGetAddressRange_v2
- cuPythonInit()
- if __cuMemGetAddressRange_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuMemGetAddressRange_v2" not found')
- err = ( __cuMemGetAddressRange_v2)(pbase, psize, dptr)
- return err
-{{endif}}
-
-{{if 'cuMemAllocHost_v2' in found_functions}}
-
-cdef CUresult _cuMemAllocHost_v2(void** pp, size_t bytesize) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemAllocHost_v2
- cuPythonInit()
- if __cuMemAllocHost_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuMemAllocHost_v2" not found')
- err = ( __cuMemAllocHost_v2)(pp, bytesize)
- return err
-{{endif}}
-
-{{if 'cuMemFreeHost' in found_functions}}
-
-cdef CUresult _cuMemFreeHost(void* p) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemFreeHost
- cuPythonInit()
- if __cuMemFreeHost == NULL:
- with gil:
- raise RuntimeError('Function "cuMemFreeHost" not found')
- err = ( __cuMemFreeHost)(p)
- return err
-{{endif}}
-
-{{if 'cuMemHostAlloc' in found_functions}}
-
-cdef CUresult _cuMemHostAlloc(void** pp, size_t bytesize, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemHostAlloc
- cuPythonInit()
- if __cuMemHostAlloc == NULL:
- with gil:
- raise RuntimeError('Function "cuMemHostAlloc" not found')
- err = ( __cuMemHostAlloc)(pp, bytesize, Flags)
- return err
-{{endif}}
-
-{{if 'cuMemHostGetDevicePointer_v2' in found_functions}}
-
-cdef CUresult _cuMemHostGetDevicePointer_v2(CUdeviceptr* pdptr, void* p, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemHostGetDevicePointer_v2
- cuPythonInit()
- if __cuMemHostGetDevicePointer_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuMemHostGetDevicePointer_v2" not found')
- err = ( __cuMemHostGetDevicePointer_v2)(pdptr, p, Flags)
- return err
-{{endif}}
-
-{{if 'cuMemHostGetFlags' in found_functions}}
-
-cdef CUresult _cuMemHostGetFlags(unsigned int* pFlags, void* p) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemHostGetFlags
- cuPythonInit()
- if __cuMemHostGetFlags == NULL:
- with gil:
- raise RuntimeError('Function "cuMemHostGetFlags" not found')
- err = ( __cuMemHostGetFlags)(pFlags, p)
- return err
-{{endif}}
-
-{{if 'cuMemAllocManaged' in found_functions}}
-
-cdef CUresult _cuMemAllocManaged(CUdeviceptr* dptr, size_t bytesize, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemAllocManaged
- cuPythonInit()
- if __cuMemAllocManaged == NULL:
- with gil:
- raise RuntimeError('Function "cuMemAllocManaged" not found')
- err = ( __cuMemAllocManaged)(dptr, bytesize, flags)
- return err
-{{endif}}
-
-{{if 'cuDeviceRegisterAsyncNotification' in found_functions}}
-
-cdef CUresult _cuDeviceRegisterAsyncNotification(CUdevice device, CUasyncCallback callbackFunc, void* userData, CUasyncCallbackHandle* callback) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuDeviceRegisterAsyncNotification
- cuPythonInit()
- if __cuDeviceRegisterAsyncNotification == NULL:
- with gil:
- raise RuntimeError('Function "cuDeviceRegisterAsyncNotification" not found')
- err = ( __cuDeviceRegisterAsyncNotification)(device, callbackFunc, userData, callback)
- return err
-{{endif}}
-
-{{if 'cuDeviceUnregisterAsyncNotification' in found_functions}}
-
-cdef CUresult _cuDeviceUnregisterAsyncNotification(CUdevice device, CUasyncCallbackHandle callback) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuDeviceUnregisterAsyncNotification
- cuPythonInit()
- if __cuDeviceUnregisterAsyncNotification == NULL:
- with gil:
- raise RuntimeError('Function "cuDeviceUnregisterAsyncNotification" not found')
- err = ( __cuDeviceUnregisterAsyncNotification)(device, callback)
- return err
-{{endif}}
-
-{{if 'cuDeviceGetByPCIBusId' in found_functions}}
-
-cdef CUresult _cuDeviceGetByPCIBusId(CUdevice* dev, const char* pciBusId) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuDeviceGetByPCIBusId
- cuPythonInit()
- if __cuDeviceGetByPCIBusId == NULL:
- with gil:
- raise RuntimeError('Function "cuDeviceGetByPCIBusId" not found')
- err = ( __cuDeviceGetByPCIBusId)(dev, pciBusId)
- return err
-{{endif}}
-
-{{if 'cuDeviceGetPCIBusId' in found_functions}}
-
-cdef CUresult _cuDeviceGetPCIBusId(char* pciBusId, int length, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuDeviceGetPCIBusId
- cuPythonInit()
- if __cuDeviceGetPCIBusId == NULL:
- with gil:
- raise RuntimeError('Function "cuDeviceGetPCIBusId" not found')
- err = ( __cuDeviceGetPCIBusId)(pciBusId, length, dev)
- return err
-{{endif}}
-
-{{if 'cuIpcGetEventHandle' in found_functions}}
-
-cdef CUresult _cuIpcGetEventHandle(CUipcEventHandle* pHandle, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuIpcGetEventHandle
- cuPythonInit()
- if __cuIpcGetEventHandle == NULL:
- with gil:
- raise RuntimeError('Function "cuIpcGetEventHandle" not found')
- err = ( __cuIpcGetEventHandle)(pHandle, event)
- return err
-{{endif}}
-
-{{if 'cuIpcOpenEventHandle' in found_functions}}
-
-cdef CUresult _cuIpcOpenEventHandle(CUevent* phEvent, CUipcEventHandle handle) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuIpcOpenEventHandle
- cuPythonInit()
- if __cuIpcOpenEventHandle == NULL:
- with gil:
- raise RuntimeError('Function "cuIpcOpenEventHandle" not found')
- err = ( __cuIpcOpenEventHandle)(phEvent, handle)
- return err
-{{endif}}
-
-{{if 'cuIpcGetMemHandle' in found_functions}}
-
-cdef CUresult _cuIpcGetMemHandle(CUipcMemHandle* pHandle, CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuIpcGetMemHandle
- cuPythonInit()
- if __cuIpcGetMemHandle == NULL:
- with gil:
- raise RuntimeError('Function "cuIpcGetMemHandle" not found')
- err = ( __cuIpcGetMemHandle)(pHandle, dptr)
- return err
-{{endif}}
-
-{{if 'cuIpcOpenMemHandle_v2' in found_functions}}
-
-cdef CUresult _cuIpcOpenMemHandle_v2(CUdeviceptr* pdptr, CUipcMemHandle handle, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuIpcOpenMemHandle_v2
- cuPythonInit()
- if __cuIpcOpenMemHandle_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuIpcOpenMemHandle_v2" not found')
- err = ( __cuIpcOpenMemHandle_v2)(pdptr, handle, Flags)
- return err
-{{endif}}
-
-{{if 'cuIpcCloseMemHandle' in found_functions}}
-
-cdef CUresult _cuIpcCloseMemHandle(CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuIpcCloseMemHandle
- cuPythonInit()
- if __cuIpcCloseMemHandle == NULL:
- with gil:
- raise RuntimeError('Function "cuIpcCloseMemHandle" not found')
- err = ( __cuIpcCloseMemHandle)(dptr)
- return err
-{{endif}}
-
-{{if 'cuMemHostRegister_v2' in found_functions}}
-
-cdef CUresult _cuMemHostRegister_v2(void* p, size_t bytesize, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemHostRegister_v2
- cuPythonInit()
- if __cuMemHostRegister_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuMemHostRegister_v2" not found')
- err = ( __cuMemHostRegister_v2)(p, bytesize, Flags)
- return err
-{{endif}}
-
-{{if 'cuMemHostUnregister' in found_functions}}
-
-cdef CUresult _cuMemHostUnregister(void* p) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemHostUnregister
- cuPythonInit()
- if __cuMemHostUnregister == NULL:
- with gil:
- raise RuntimeError('Function "cuMemHostUnregister" not found')
- err = ( __cuMemHostUnregister)(p)
- return err
-{{endif}}
-
-{{if 'cuMemcpy' in found_functions}}
-
-cdef CUresult _cuMemcpy(CUdeviceptr dst, CUdeviceptr src, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemcpy
- cuPythonInit()
- if __cuMemcpy == NULL:
- with gil:
- raise RuntimeError('Function "cuMemcpy" not found')
- err = ( __cuMemcpy)(dst, src, ByteCount)
- return err
-{{endif}}
-
-{{if 'cuMemcpyPeer' in found_functions}}
-
-cdef CUresult _cuMemcpyPeer(CUdeviceptr dstDevice, CUcontext dstContext, CUdeviceptr srcDevice, CUcontext srcContext, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemcpyPeer
- cuPythonInit()
- if __cuMemcpyPeer == NULL:
- with gil:
- raise RuntimeError('Function "cuMemcpyPeer" not found')
- err = ( __cuMemcpyPeer)(dstDevice, dstContext, srcDevice, srcContext, ByteCount)
- return err
-{{endif}}
-
-{{if 'cuMemcpyHtoD_v2' in found_functions}}
-
-cdef CUresult _cuMemcpyHtoD_v2(CUdeviceptr dstDevice, const void* srcHost, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemcpyHtoD_v2
- cuPythonInit()
- if __cuMemcpyHtoD_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuMemcpyHtoD_v2" not found')
- err = ( __cuMemcpyHtoD_v2)(dstDevice, srcHost, ByteCount)
- return err
-{{endif}}
-
-{{if 'cuMemcpyDtoH_v2' in found_functions}}
-
-cdef CUresult _cuMemcpyDtoH_v2(void* dstHost, CUdeviceptr srcDevice, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemcpyDtoH_v2
- cuPythonInit()
- if __cuMemcpyDtoH_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuMemcpyDtoH_v2" not found')
- err = ( __cuMemcpyDtoH_v2)(dstHost, srcDevice, ByteCount)
- return err
-{{endif}}
-
-{{if 'cuMemcpyDtoD_v2' in found_functions}}
-
-cdef CUresult _cuMemcpyDtoD_v2(CUdeviceptr dstDevice, CUdeviceptr srcDevice, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemcpyDtoD_v2
- cuPythonInit()
- if __cuMemcpyDtoD_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuMemcpyDtoD_v2" not found')
- err = ( __cuMemcpyDtoD_v2)(dstDevice, srcDevice, ByteCount)
- return err
-{{endif}}
-
-{{if 'cuMemcpyDtoA_v2' in found_functions}}
-
-cdef CUresult _cuMemcpyDtoA_v2(CUarray dstArray, size_t dstOffset, CUdeviceptr srcDevice, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemcpyDtoA_v2
- cuPythonInit()
- if __cuMemcpyDtoA_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuMemcpyDtoA_v2" not found')
- err = ( __cuMemcpyDtoA_v2)(dstArray, dstOffset, srcDevice, ByteCount)
- return err
-{{endif}}
-
-{{if 'cuMemcpyAtoD_v2' in found_functions}}
-
-cdef CUresult _cuMemcpyAtoD_v2(CUdeviceptr dstDevice, CUarray srcArray, size_t srcOffset, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemcpyAtoD_v2
- cuPythonInit()
- if __cuMemcpyAtoD_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuMemcpyAtoD_v2" not found')
- err = ( __cuMemcpyAtoD_v2)(dstDevice, srcArray, srcOffset, ByteCount)
- return err
-{{endif}}
-
-{{if 'cuMemcpyHtoA_v2' in found_functions}}
-
-cdef CUresult _cuMemcpyHtoA_v2(CUarray dstArray, size_t dstOffset, const void* srcHost, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemcpyHtoA_v2
- cuPythonInit()
- if __cuMemcpyHtoA_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuMemcpyHtoA_v2" not found')
- err = ( __cuMemcpyHtoA_v2)(dstArray, dstOffset, srcHost, ByteCount)
- return err
-{{endif}}
-
-{{if 'cuMemcpyAtoH_v2' in found_functions}}
-
-cdef CUresult _cuMemcpyAtoH_v2(void* dstHost, CUarray srcArray, size_t srcOffset, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemcpyAtoH_v2
- cuPythonInit()
- if __cuMemcpyAtoH_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuMemcpyAtoH_v2" not found')
- err = ( __cuMemcpyAtoH_v2)(dstHost, srcArray, srcOffset, ByteCount)
- return err
-{{endif}}
-
-{{if 'cuMemcpyAtoA_v2' in found_functions}}
-
-cdef CUresult _cuMemcpyAtoA_v2(CUarray dstArray, size_t dstOffset, CUarray srcArray, size_t srcOffset, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemcpyAtoA_v2
- cuPythonInit()
- if __cuMemcpyAtoA_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuMemcpyAtoA_v2" not found')
- err = ( __cuMemcpyAtoA_v2)(dstArray, dstOffset, srcArray, srcOffset, ByteCount)
- return err
-{{endif}}
-
-{{if 'cuMemcpy2D_v2' in found_functions}}
-
-cdef CUresult _cuMemcpy2D_v2(const CUDA_MEMCPY2D* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemcpy2D_v2
- cuPythonInit()
- if __cuMemcpy2D_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuMemcpy2D_v2" not found')
- err = ( __cuMemcpy2D_v2)(pCopy)
- return err
-{{endif}}
-
-{{if 'cuMemcpy2DUnaligned_v2' in found_functions}}
-
-cdef CUresult _cuMemcpy2DUnaligned_v2(const CUDA_MEMCPY2D* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemcpy2DUnaligned_v2
- cuPythonInit()
- if __cuMemcpy2DUnaligned_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuMemcpy2DUnaligned_v2" not found')
- err = ( __cuMemcpy2DUnaligned_v2)(pCopy)
- return err
-{{endif}}
-
-{{if 'cuMemcpy3D_v2' in found_functions}}
-
-cdef CUresult _cuMemcpy3D_v2(const CUDA_MEMCPY3D* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemcpy3D_v2
- cuPythonInit()
- if __cuMemcpy3D_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuMemcpy3D_v2" not found')
- err = ( __cuMemcpy3D_v2)(pCopy)
- return err
-{{endif}}
-
-{{if 'cuMemcpy3DPeer' in found_functions}}
-
-cdef CUresult _cuMemcpy3DPeer(const CUDA_MEMCPY3D_PEER* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemcpy3DPeer
- cuPythonInit()
- if __cuMemcpy3DPeer == NULL:
- with gil:
- raise RuntimeError('Function "cuMemcpy3DPeer" not found')
- err = ( __cuMemcpy3DPeer)(pCopy)
- return err
-{{endif}}
-
-{{if 'cuMemcpyAsync' in found_functions}}
-
-cdef CUresult _cuMemcpyAsync(CUdeviceptr dst, CUdeviceptr src, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemcpyAsync
- cuPythonInit()
- if __cuMemcpyAsync == NULL:
- with gil:
- raise RuntimeError('Function "cuMemcpyAsync" not found')
- err = ( __cuMemcpyAsync)(dst, src, ByteCount, hStream)
- return err
-{{endif}}
-
-{{if 'cuMemcpyPeerAsync' in found_functions}}
-
-cdef CUresult _cuMemcpyPeerAsync(CUdeviceptr dstDevice, CUcontext dstContext, CUdeviceptr srcDevice, CUcontext srcContext, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemcpyPeerAsync
- cuPythonInit()
- if __cuMemcpyPeerAsync == NULL:
- with gil:
- raise RuntimeError('Function "cuMemcpyPeerAsync" not found')
- err = ( __cuMemcpyPeerAsync)(dstDevice, dstContext, srcDevice, srcContext, ByteCount, hStream)
- return err
-{{endif}}
-
-{{if 'cuMemcpyHtoDAsync_v2' in found_functions}}
-
-cdef CUresult _cuMemcpyHtoDAsync_v2(CUdeviceptr dstDevice, const void* srcHost, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemcpyHtoDAsync_v2
- cuPythonInit()
- if __cuMemcpyHtoDAsync_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuMemcpyHtoDAsync_v2" not found')
- err = ( __cuMemcpyHtoDAsync_v2)(dstDevice, srcHost, ByteCount, hStream)
- return err
-{{endif}}
-
-{{if 'cuMemcpyDtoHAsync_v2' in found_functions}}
-
-cdef CUresult _cuMemcpyDtoHAsync_v2(void* dstHost, CUdeviceptr srcDevice, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemcpyDtoHAsync_v2
- cuPythonInit()
- if __cuMemcpyDtoHAsync_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuMemcpyDtoHAsync_v2" not found')
- err = ( __cuMemcpyDtoHAsync_v2)(dstHost, srcDevice, ByteCount, hStream)
- return err
-{{endif}}
-
-{{if 'cuMemcpyDtoDAsync_v2' in found_functions}}
-
-cdef CUresult _cuMemcpyDtoDAsync_v2(CUdeviceptr dstDevice, CUdeviceptr srcDevice, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemcpyDtoDAsync_v2
- cuPythonInit()
- if __cuMemcpyDtoDAsync_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuMemcpyDtoDAsync_v2" not found')
- err = ( __cuMemcpyDtoDAsync_v2)(dstDevice, srcDevice, ByteCount, hStream)
- return err
-{{endif}}
-
-{{if 'cuMemcpyHtoAAsync_v2' in found_functions}}
-
-cdef CUresult _cuMemcpyHtoAAsync_v2(CUarray dstArray, size_t dstOffset, const void* srcHost, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemcpyHtoAAsync_v2
- cuPythonInit()
- if __cuMemcpyHtoAAsync_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuMemcpyHtoAAsync_v2" not found')
- err = ( __cuMemcpyHtoAAsync_v2)(dstArray, dstOffset, srcHost, ByteCount, hStream)
- return err
-{{endif}}
-
-{{if 'cuMemcpyAtoHAsync_v2' in found_functions}}
-
-cdef CUresult _cuMemcpyAtoHAsync_v2(void* dstHost, CUarray srcArray, size_t srcOffset, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemcpyAtoHAsync_v2
- cuPythonInit()
- if __cuMemcpyAtoHAsync_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuMemcpyAtoHAsync_v2" not found')
- err = ( __cuMemcpyAtoHAsync_v2)(dstHost, srcArray, srcOffset, ByteCount, hStream)
- return err
-{{endif}}
-
-{{if 'cuMemcpy2DAsync_v2' in found_functions}}
-
-cdef CUresult _cuMemcpy2DAsync_v2(const CUDA_MEMCPY2D* pCopy, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemcpy2DAsync_v2
- cuPythonInit()
- if __cuMemcpy2DAsync_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuMemcpy2DAsync_v2" not found')
- err = ( __cuMemcpy2DAsync_v2)(pCopy, hStream)
- return err
-{{endif}}
-
-{{if 'cuMemcpy3DAsync_v2' in found_functions}}
-
-cdef CUresult _cuMemcpy3DAsync_v2(const CUDA_MEMCPY3D* pCopy, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemcpy3DAsync_v2
- cuPythonInit()
- if __cuMemcpy3DAsync_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuMemcpy3DAsync_v2" not found')
- err = ( __cuMemcpy3DAsync_v2)(pCopy, hStream)
- return err
-{{endif}}
-
-{{if 'cuMemcpy3DPeerAsync' in found_functions}}
-
-cdef CUresult _cuMemcpy3DPeerAsync(const CUDA_MEMCPY3D_PEER* pCopy, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemcpy3DPeerAsync
- cuPythonInit()
- if __cuMemcpy3DPeerAsync == NULL:
- with gil:
- raise RuntimeError('Function "cuMemcpy3DPeerAsync" not found')
- err = ( __cuMemcpy3DPeerAsync)(pCopy, hStream)
- return err
-{{endif}}
-
-{{if 'cuMemcpyBatchAsync_v2' in found_functions}}
-
-cdef CUresult _cuMemcpyBatchAsync_v2(CUdeviceptr* dsts, CUdeviceptr* srcs, size_t* sizes, size_t count, CUmemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemcpyBatchAsync_v2
- cuPythonInit()
- if __cuMemcpyBatchAsync_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuMemcpyBatchAsync_v2" not found')
- err = ( __cuMemcpyBatchAsync_v2)(dsts, srcs, sizes, count, attrs, attrsIdxs, numAttrs, hStream)
- return err
-{{endif}}
-
-{{if 'cuMemcpy3DBatchAsync_v2' in found_functions}}
-
-cdef CUresult _cuMemcpy3DBatchAsync_v2(size_t numOps, CUDA_MEMCPY3D_BATCH_OP* opList, unsigned long long flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemcpy3DBatchAsync_v2
- cuPythonInit()
- if __cuMemcpy3DBatchAsync_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuMemcpy3DBatchAsync_v2" not found')
- err = ( __cuMemcpy3DBatchAsync_v2)(numOps, opList, flags, hStream)
- return err
-{{endif}}
-
-{{if 'cuMemsetD8_v2' in found_functions}}
-
-cdef CUresult _cuMemsetD8_v2(CUdeviceptr dstDevice, unsigned char uc, size_t N) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemsetD8_v2
- cuPythonInit()
- if __cuMemsetD8_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuMemsetD8_v2" not found')
- err = ( __cuMemsetD8_v2)(dstDevice, uc, N)
- return err
-{{endif}}
-
-{{if 'cuMemsetD16_v2' in found_functions}}
-
-cdef CUresult _cuMemsetD16_v2(CUdeviceptr dstDevice, unsigned short us, size_t N) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemsetD16_v2
- cuPythonInit()
- if __cuMemsetD16_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuMemsetD16_v2" not found')
- err = ( __cuMemsetD16_v2)(dstDevice, us, N)
- return err
-{{endif}}
-
-{{if 'cuMemsetD32_v2' in found_functions}}
-
-cdef CUresult _cuMemsetD32_v2(CUdeviceptr dstDevice, unsigned int ui, size_t N) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemsetD32_v2
- cuPythonInit()
- if __cuMemsetD32_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuMemsetD32_v2" not found')
- err = ( __cuMemsetD32_v2)(dstDevice, ui, N)
- return err
-{{endif}}
-
-{{if 'cuMemsetD2D8_v2' in found_functions}}
-
-cdef CUresult _cuMemsetD2D8_v2(CUdeviceptr dstDevice, size_t dstPitch, unsigned char uc, size_t Width, size_t Height) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemsetD2D8_v2
- cuPythonInit()
- if __cuMemsetD2D8_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuMemsetD2D8_v2" not found')
- err = ( __cuMemsetD2D8_v2)(dstDevice, dstPitch, uc, Width, Height)
- return err
-{{endif}}
-
-{{if 'cuMemsetD2D16_v2' in found_functions}}
-
-cdef CUresult _cuMemsetD2D16_v2(CUdeviceptr dstDevice, size_t dstPitch, unsigned short us, size_t Width, size_t Height) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemsetD2D16_v2
- cuPythonInit()
- if __cuMemsetD2D16_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuMemsetD2D16_v2" not found')
- err = ( __cuMemsetD2D16_v2)(dstDevice, dstPitch, us, Width, Height)
- return err
-{{endif}}
-
-{{if 'cuMemsetD2D32_v2' in found_functions}}
-
-cdef CUresult _cuMemsetD2D32_v2(CUdeviceptr dstDevice, size_t dstPitch, unsigned int ui, size_t Width, size_t Height) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemsetD2D32_v2
- cuPythonInit()
- if __cuMemsetD2D32_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuMemsetD2D32_v2" not found')
- err = ( __cuMemsetD2D32_v2)(dstDevice, dstPitch, ui, Width, Height)
- return err
-{{endif}}
-
-{{if 'cuMemsetD8Async' in found_functions}}
-
-cdef CUresult _cuMemsetD8Async(CUdeviceptr dstDevice, unsigned char uc, size_t N, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemsetD8Async
- cuPythonInit()
- if __cuMemsetD8Async == NULL:
- with gil:
- raise RuntimeError('Function "cuMemsetD8Async" not found')
- err = ( __cuMemsetD8Async)(dstDevice, uc, N, hStream)
- return err
-{{endif}}
-
-{{if 'cuMemsetD16Async' in found_functions}}
-
-cdef CUresult _cuMemsetD16Async(CUdeviceptr dstDevice, unsigned short us, size_t N, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemsetD16Async
- cuPythonInit()
- if __cuMemsetD16Async == NULL:
- with gil:
- raise RuntimeError('Function "cuMemsetD16Async" not found')
- err = ( __cuMemsetD16Async)(dstDevice, us, N, hStream)
- return err
-{{endif}}
-
-{{if 'cuMemsetD32Async' in found_functions}}
-
-cdef CUresult _cuMemsetD32Async(CUdeviceptr dstDevice, unsigned int ui, size_t N, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemsetD32Async
- cuPythonInit()
- if __cuMemsetD32Async == NULL:
- with gil:
- raise RuntimeError('Function "cuMemsetD32Async" not found')
- err = ( __cuMemsetD32Async)(dstDevice, ui, N, hStream)
- return err
-{{endif}}
-
-{{if 'cuMemsetD2D8Async' in found_functions}}
-
-cdef CUresult _cuMemsetD2D8Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned char uc, size_t Width, size_t Height, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemsetD2D8Async
- cuPythonInit()
- if __cuMemsetD2D8Async == NULL:
- with gil:
- raise RuntimeError('Function "cuMemsetD2D8Async" not found')
- err = ( __cuMemsetD2D8Async)(dstDevice, dstPitch, uc, Width, Height, hStream)
- return err
-{{endif}}
-
-{{if 'cuMemsetD2D16Async' in found_functions}}
-
-cdef CUresult _cuMemsetD2D16Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned short us, size_t Width, size_t Height, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemsetD2D16Async
- cuPythonInit()
- if __cuMemsetD2D16Async == NULL:
- with gil:
- raise RuntimeError('Function "cuMemsetD2D16Async" not found')
- err = ( __cuMemsetD2D16Async)(dstDevice, dstPitch, us, Width, Height, hStream)
- return err
-{{endif}}
-
-{{if 'cuMemsetD2D32Async' in found_functions}}
-
-cdef CUresult _cuMemsetD2D32Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned int ui, size_t Width, size_t Height, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemsetD2D32Async
- cuPythonInit()
- if __cuMemsetD2D32Async == NULL:
- with gil:
- raise RuntimeError('Function "cuMemsetD2D32Async" not found')
- err = ( __cuMemsetD2D32Async)(dstDevice, dstPitch, ui, Width, Height, hStream)
- return err
-{{endif}}
-
-{{if 'cuArrayCreate_v2' in found_functions}}
-
-cdef CUresult _cuArrayCreate_v2(CUarray* pHandle, const CUDA_ARRAY_DESCRIPTOR* pAllocateArray) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuArrayCreate_v2
- cuPythonInit()
- if __cuArrayCreate_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuArrayCreate_v2" not found')
- err = ( __cuArrayCreate_v2)(pHandle, pAllocateArray)
- return err
-{{endif}}
-
-{{if 'cuArrayGetDescriptor_v2' in found_functions}}
-
-cdef CUresult _cuArrayGetDescriptor_v2(CUDA_ARRAY_DESCRIPTOR* pArrayDescriptor, CUarray hArray) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuArrayGetDescriptor_v2
- cuPythonInit()
- if __cuArrayGetDescriptor_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuArrayGetDescriptor_v2" not found')
- err = ( __cuArrayGetDescriptor_v2)(pArrayDescriptor, hArray)
- return err
-{{endif}}
-
-{{if 'cuArrayGetSparseProperties' in found_functions}}
-
-cdef CUresult _cuArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES* sparseProperties, CUarray array) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuArrayGetSparseProperties
- cuPythonInit()
- if __cuArrayGetSparseProperties == NULL:
- with gil:
- raise RuntimeError('Function "cuArrayGetSparseProperties" not found')
- err = ( __cuArrayGetSparseProperties)(sparseProperties, array)
- return err
-{{endif}}
-
-{{if 'cuMipmappedArrayGetSparseProperties' in found_functions}}
-
-cdef CUresult _cuMipmappedArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES* sparseProperties, CUmipmappedArray mipmap) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMipmappedArrayGetSparseProperties
- cuPythonInit()
- if __cuMipmappedArrayGetSparseProperties == NULL:
- with gil:
- raise RuntimeError('Function "cuMipmappedArrayGetSparseProperties" not found')
- err = ( __cuMipmappedArrayGetSparseProperties)(sparseProperties, mipmap)
- return err
-{{endif}}
-
-{{if 'cuArrayGetMemoryRequirements' in found_functions}}
-
-cdef CUresult _cuArrayGetMemoryRequirements(CUDA_ARRAY_MEMORY_REQUIREMENTS* memoryRequirements, CUarray array, CUdevice device) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuArrayGetMemoryRequirements
- cuPythonInit()
- if __cuArrayGetMemoryRequirements == NULL:
- with gil:
- raise RuntimeError('Function "cuArrayGetMemoryRequirements" not found')
- err = ( __cuArrayGetMemoryRequirements)(memoryRequirements, array, device)
- return err
-{{endif}}
-
-{{if 'cuMipmappedArrayGetMemoryRequirements' in found_functions}}
-
-cdef CUresult _cuMipmappedArrayGetMemoryRequirements(CUDA_ARRAY_MEMORY_REQUIREMENTS* memoryRequirements, CUmipmappedArray mipmap, CUdevice device) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMipmappedArrayGetMemoryRequirements
- cuPythonInit()
- if __cuMipmappedArrayGetMemoryRequirements == NULL:
- with gil:
- raise RuntimeError('Function "cuMipmappedArrayGetMemoryRequirements" not found')
- err = ( __cuMipmappedArrayGetMemoryRequirements)(memoryRequirements, mipmap, device)
- return err
-{{endif}}
-
-{{if 'cuArrayGetPlane' in found_functions}}
-
-cdef CUresult _cuArrayGetPlane(CUarray* pPlaneArray, CUarray hArray, unsigned int planeIdx) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuArrayGetPlane
- cuPythonInit()
- if __cuArrayGetPlane == NULL:
- with gil:
- raise RuntimeError('Function "cuArrayGetPlane" not found')
- err = ( __cuArrayGetPlane)(pPlaneArray, hArray, planeIdx)
- return err
-{{endif}}
-
-{{if 'cuArrayDestroy' in found_functions}}
-
-cdef CUresult _cuArrayDestroy(CUarray hArray) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuArrayDestroy
- cuPythonInit()
- if __cuArrayDestroy == NULL:
- with gil:
- raise RuntimeError('Function "cuArrayDestroy" not found')
- err = ( __cuArrayDestroy)(hArray)
- return err
-{{endif}}
-
-{{if 'cuArray3DCreate_v2' in found_functions}}
-
-cdef CUresult _cuArray3DCreate_v2(CUarray* pHandle, const CUDA_ARRAY3D_DESCRIPTOR* pAllocateArray) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuArray3DCreate_v2
- cuPythonInit()
- if __cuArray3DCreate_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuArray3DCreate_v2" not found')
- err = ( __cuArray3DCreate_v2)(pHandle, pAllocateArray)
- return err
-{{endif}}
-
-{{if 'cuArray3DGetDescriptor_v2' in found_functions}}
-
-cdef CUresult _cuArray3DGetDescriptor_v2(CUDA_ARRAY3D_DESCRIPTOR* pArrayDescriptor, CUarray hArray) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuArray3DGetDescriptor_v2
- cuPythonInit()
- if __cuArray3DGetDescriptor_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuArray3DGetDescriptor_v2" not found')
- err = ( __cuArray3DGetDescriptor_v2)(pArrayDescriptor, hArray)
- return err
-{{endif}}
-
-{{if 'cuMipmappedArrayCreate' in found_functions}}
-
-cdef CUresult _cuMipmappedArrayCreate(CUmipmappedArray* pHandle, const CUDA_ARRAY3D_DESCRIPTOR* pMipmappedArrayDesc, unsigned int numMipmapLevels) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMipmappedArrayCreate
- cuPythonInit()
- if __cuMipmappedArrayCreate == NULL:
- with gil:
- raise RuntimeError('Function "cuMipmappedArrayCreate" not found')
- err = ( __cuMipmappedArrayCreate)(pHandle, pMipmappedArrayDesc, numMipmapLevels)
- return err
-{{endif}}
-
-{{if 'cuMipmappedArrayGetLevel' in found_functions}}
-
-cdef CUresult _cuMipmappedArrayGetLevel(CUarray* pLevelArray, CUmipmappedArray hMipmappedArray, unsigned int level) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMipmappedArrayGetLevel
- cuPythonInit()
- if __cuMipmappedArrayGetLevel == NULL:
- with gil:
- raise RuntimeError('Function "cuMipmappedArrayGetLevel" not found')
- err = ( __cuMipmappedArrayGetLevel)(pLevelArray, hMipmappedArray, level)
- return err
-{{endif}}
-
-{{if 'cuMipmappedArrayDestroy' in found_functions}}
-
-cdef CUresult _cuMipmappedArrayDestroy(CUmipmappedArray hMipmappedArray) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMipmappedArrayDestroy
- cuPythonInit()
- if __cuMipmappedArrayDestroy == NULL:
- with gil:
- raise RuntimeError('Function "cuMipmappedArrayDestroy" not found')
- err = ( __cuMipmappedArrayDestroy)(hMipmappedArray)
- return err
-{{endif}}
-
-{{if 'cuMemGetHandleForAddressRange' in found_functions}}
-
-cdef CUresult _cuMemGetHandleForAddressRange(void* handle, CUdeviceptr dptr, size_t size, CUmemRangeHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemGetHandleForAddressRange
- cuPythonInit()
- if __cuMemGetHandleForAddressRange == NULL:
- with gil:
- raise RuntimeError('Function "cuMemGetHandleForAddressRange" not found')
- err = ( __cuMemGetHandleForAddressRange)(handle, dptr, size, handleType, flags)
- return err
-{{endif}}
-
-{{if 'cuMemBatchDecompressAsync' in found_functions}}
-
-cdef CUresult _cuMemBatchDecompressAsync(CUmemDecompressParams* paramsArray, size_t count, unsigned int flags, size_t* errorIndex, CUstream stream) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemBatchDecompressAsync
- cuPythonInit()
- if __cuMemBatchDecompressAsync == NULL:
- with gil:
- raise RuntimeError('Function "cuMemBatchDecompressAsync" not found')
- err = ( __cuMemBatchDecompressAsync)(paramsArray, count, flags, errorIndex, stream)
- return err
-{{endif}}
-
-{{if 'cuMemAddressReserve' in found_functions}}
-
-cdef CUresult _cuMemAddressReserve(CUdeviceptr* ptr, size_t size, size_t alignment, CUdeviceptr addr, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemAddressReserve
- cuPythonInit()
- if __cuMemAddressReserve == NULL:
- with gil:
- raise RuntimeError('Function "cuMemAddressReserve" not found')
- err = ( __cuMemAddressReserve)(ptr, size, alignment, addr, flags)
- return err
-{{endif}}
-
-{{if 'cuMemAddressFree' in found_functions}}
-
-cdef CUresult _cuMemAddressFree(CUdeviceptr ptr, size_t size) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemAddressFree
- cuPythonInit()
- if __cuMemAddressFree == NULL:
- with gil:
- raise RuntimeError('Function "cuMemAddressFree" not found')
- err = ( __cuMemAddressFree)(ptr, size)
- return err
-{{endif}}
-
-{{if 'cuMemCreate' in found_functions}}
-
-cdef CUresult _cuMemCreate(CUmemGenericAllocationHandle* handle, size_t size, const CUmemAllocationProp* prop, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemCreate
- cuPythonInit()
- if __cuMemCreate == NULL:
- with gil:
- raise RuntimeError('Function "cuMemCreate" not found')
- err = ( __cuMemCreate)(handle, size, prop, flags)
- return err
-{{endif}}
-
-{{if 'cuMemRelease' in found_functions}}
-
-cdef CUresult _cuMemRelease(CUmemGenericAllocationHandle handle) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemRelease
- cuPythonInit()
- if __cuMemRelease == NULL:
- with gil:
- raise RuntimeError('Function "cuMemRelease" not found')
- err = ( __cuMemRelease)(handle)
- return err
-{{endif}}
-
-{{if 'cuMemMap' in found_functions}}
-
-cdef CUresult _cuMemMap(CUdeviceptr ptr, size_t size, size_t offset, CUmemGenericAllocationHandle handle, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemMap
- cuPythonInit()
- if __cuMemMap == NULL:
- with gil:
- raise RuntimeError('Function "cuMemMap" not found')
- err = ( __cuMemMap)(ptr, size, offset, handle, flags)
- return err
-{{endif}}
-
-{{if 'cuMemMapArrayAsync' in found_functions}}
-
-cdef CUresult _cuMemMapArrayAsync(CUarrayMapInfo* mapInfoList, unsigned int count, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemMapArrayAsync
- cuPythonInit()
- if __cuMemMapArrayAsync == NULL:
- with gil:
- raise RuntimeError('Function "cuMemMapArrayAsync" not found')
- err = ( __cuMemMapArrayAsync)(mapInfoList, count, hStream)
- return err
-{{endif}}
-
-{{if 'cuMemUnmap' in found_functions}}
-
-cdef CUresult _cuMemUnmap(CUdeviceptr ptr, size_t size) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemUnmap
- cuPythonInit()
- if __cuMemUnmap == NULL:
- with gil:
- raise RuntimeError('Function "cuMemUnmap" not found')
- err = ( __cuMemUnmap)(ptr, size)
- return err
-{{endif}}
-
-{{if 'cuMemSetAccess' in found_functions}}
-
-cdef CUresult _cuMemSetAccess(CUdeviceptr ptr, size_t size, const CUmemAccessDesc* desc, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemSetAccess
- cuPythonInit()
- if __cuMemSetAccess == NULL:
- with gil:
- raise RuntimeError('Function "cuMemSetAccess" not found')
- err = ( __cuMemSetAccess)(ptr, size, desc, count)
- return err
-{{endif}}
-
-{{if 'cuMemGetAccess' in found_functions}}
-
-cdef CUresult _cuMemGetAccess(unsigned long long* flags, const CUmemLocation* location, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemGetAccess
- cuPythonInit()
- if __cuMemGetAccess == NULL:
- with gil:
- raise RuntimeError('Function "cuMemGetAccess" not found')
- err = ( __cuMemGetAccess)(flags, location, ptr)
- return err
-{{endif}}
-
-{{if 'cuMemExportToShareableHandle' in found_functions}}
-
-cdef CUresult _cuMemExportToShareableHandle(void* shareableHandle, CUmemGenericAllocationHandle handle, CUmemAllocationHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemExportToShareableHandle
- cuPythonInit()
- if __cuMemExportToShareableHandle == NULL:
- with gil:
- raise RuntimeError('Function "cuMemExportToShareableHandle" not found')
- err = ( __cuMemExportToShareableHandle)(shareableHandle, handle, handleType, flags)
- return err
-{{endif}}
-
-{{if 'cuMemImportFromShareableHandle' in found_functions}}
-
-cdef CUresult _cuMemImportFromShareableHandle(CUmemGenericAllocationHandle* handle, void* osHandle, CUmemAllocationHandleType shHandleType) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemImportFromShareableHandle
- cuPythonInit()
- if __cuMemImportFromShareableHandle == NULL:
- with gil:
- raise RuntimeError('Function "cuMemImportFromShareableHandle" not found')
- err = ( __cuMemImportFromShareableHandle)(handle, osHandle, shHandleType)
- return err
-{{endif}}
-
-{{if 'cuMemGetAllocationGranularity' in found_functions}}
-
-cdef CUresult _cuMemGetAllocationGranularity(size_t* granularity, const CUmemAllocationProp* prop, CUmemAllocationGranularity_flags option) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemGetAllocationGranularity
- cuPythonInit()
- if __cuMemGetAllocationGranularity == NULL:
- with gil:
- raise RuntimeError('Function "cuMemGetAllocationGranularity" not found')
- err = ( __cuMemGetAllocationGranularity)(granularity, prop, option)
- return err
-{{endif}}
-
-{{if 'cuMemGetAllocationPropertiesFromHandle' in found_functions}}
-
-cdef CUresult _cuMemGetAllocationPropertiesFromHandle(CUmemAllocationProp* prop, CUmemGenericAllocationHandle handle) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemGetAllocationPropertiesFromHandle
- cuPythonInit()
- if __cuMemGetAllocationPropertiesFromHandle == NULL:
- with gil:
- raise RuntimeError('Function "cuMemGetAllocationPropertiesFromHandle" not found')
- err = ( __cuMemGetAllocationPropertiesFromHandle)(prop, handle)
- return err
-{{endif}}
-
-{{if 'cuMemRetainAllocationHandle' in found_functions}}
-
-cdef CUresult _cuMemRetainAllocationHandle(CUmemGenericAllocationHandle* handle, void* addr) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemRetainAllocationHandle
- cuPythonInit()
- if __cuMemRetainAllocationHandle == NULL:
- with gil:
- raise RuntimeError('Function "cuMemRetainAllocationHandle" not found')
- err = ( __cuMemRetainAllocationHandle)(handle, addr)
- return err
-{{endif}}
-
-{{if 'cuMemFreeAsync' in found_functions}}
-
-cdef CUresult _cuMemFreeAsync(CUdeviceptr dptr, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemFreeAsync
- cuPythonInit()
- if __cuMemFreeAsync == NULL:
- with gil:
- raise RuntimeError('Function "cuMemFreeAsync" not found')
- err = ( __cuMemFreeAsync)(dptr, hStream)
- return err
-{{endif}}
-
-{{if 'cuMemAllocAsync' in found_functions}}
-
-cdef CUresult _cuMemAllocAsync(CUdeviceptr* dptr, size_t bytesize, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemAllocAsync
- cuPythonInit()
- if __cuMemAllocAsync == NULL:
- with gil:
- raise RuntimeError('Function "cuMemAllocAsync" not found')
- err = ( __cuMemAllocAsync)(dptr, bytesize, hStream)
- return err
-{{endif}}
-
-{{if 'cuMemPoolTrimTo' in found_functions}}
-
-cdef CUresult _cuMemPoolTrimTo(CUmemoryPool pool, size_t minBytesToKeep) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemPoolTrimTo
- cuPythonInit()
- if __cuMemPoolTrimTo == NULL:
- with gil:
- raise RuntimeError('Function "cuMemPoolTrimTo" not found')
- err = ( __cuMemPoolTrimTo)(pool, minBytesToKeep)
- return err
-{{endif}}
-
-{{if 'cuMemPoolSetAttribute' in found_functions}}
-
-cdef CUresult _cuMemPoolSetAttribute(CUmemoryPool pool, CUmemPool_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemPoolSetAttribute
- cuPythonInit()
- if __cuMemPoolSetAttribute == NULL:
- with gil:
- raise RuntimeError('Function "cuMemPoolSetAttribute" not found')
- err = ( __cuMemPoolSetAttribute)(pool, attr, value)
- return err
-{{endif}}
-
-{{if 'cuMemPoolGetAttribute' in found_functions}}
-
-cdef CUresult _cuMemPoolGetAttribute(CUmemoryPool pool, CUmemPool_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemPoolGetAttribute
- cuPythonInit()
- if __cuMemPoolGetAttribute == NULL:
- with gil:
- raise RuntimeError('Function "cuMemPoolGetAttribute" not found')
- err = ( __cuMemPoolGetAttribute)(pool, attr, value)
- return err
-{{endif}}
-
-{{if 'cuMemPoolSetAccess' in found_functions}}
-
-cdef CUresult _cuMemPoolSetAccess(CUmemoryPool pool, const CUmemAccessDesc* map, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemPoolSetAccess
- cuPythonInit()
- if __cuMemPoolSetAccess == NULL:
- with gil:
- raise RuntimeError('Function "cuMemPoolSetAccess" not found')
- err = ( __cuMemPoolSetAccess)(pool, map, count)
- return err
-{{endif}}
-
-{{if 'cuMemPoolGetAccess' in found_functions}}
-
-cdef CUresult _cuMemPoolGetAccess(CUmemAccess_flags* flags, CUmemoryPool memPool, CUmemLocation* location) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemPoolGetAccess
- cuPythonInit()
- if __cuMemPoolGetAccess == NULL:
- with gil:
- raise RuntimeError('Function "cuMemPoolGetAccess" not found')
- err = ( __cuMemPoolGetAccess)(flags, memPool, location)
- return err
-{{endif}}
-
-{{if 'cuMemPoolCreate' in found_functions}}
-
-cdef CUresult _cuMemPoolCreate(CUmemoryPool* pool, const CUmemPoolProps* poolProps) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemPoolCreate
- cuPythonInit()
- if __cuMemPoolCreate == NULL:
- with gil:
- raise RuntimeError('Function "cuMemPoolCreate" not found')
- err = ( __cuMemPoolCreate)(pool, poolProps)
- return err
-{{endif}}
-
-{{if 'cuMemPoolDestroy' in found_functions}}
-
-cdef CUresult _cuMemPoolDestroy(CUmemoryPool pool) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemPoolDestroy
- cuPythonInit()
- if __cuMemPoolDestroy == NULL:
- with gil:
- raise RuntimeError('Function "cuMemPoolDestroy" not found')
- err = ( __cuMemPoolDestroy)(pool)
- return err
-{{endif}}
-
-{{if 'cuMemGetDefaultMemPool' in found_functions}}
-
-cdef CUresult _cuMemGetDefaultMemPool(CUmemoryPool* pool_out, CUmemLocation* location, CUmemAllocationType typename) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemGetDefaultMemPool
- cuPythonInit()
- if __cuMemGetDefaultMemPool == NULL:
- with gil:
- raise RuntimeError('Function "cuMemGetDefaultMemPool" not found')
- err = ( __cuMemGetDefaultMemPool)(pool_out, location, typename)
- return err
-{{endif}}
-
-{{if 'cuMemGetMemPool' in found_functions}}
-
-cdef CUresult _cuMemGetMemPool(CUmemoryPool* pool, CUmemLocation* location, CUmemAllocationType typename) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemGetMemPool
- cuPythonInit()
- if __cuMemGetMemPool == NULL:
- with gil:
- raise RuntimeError('Function "cuMemGetMemPool" not found')
- err = ( __cuMemGetMemPool)(pool, location, typename)
- return err
-{{endif}}
-
-{{if 'cuMemSetMemPool' in found_functions}}
-
-cdef CUresult _cuMemSetMemPool(CUmemLocation* location, CUmemAllocationType typename, CUmemoryPool pool) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemSetMemPool
- cuPythonInit()
- if __cuMemSetMemPool == NULL:
- with gil:
- raise RuntimeError('Function "cuMemSetMemPool" not found')
- err = ( __cuMemSetMemPool)(location, typename, pool)
- return err
-{{endif}}
-
-{{if 'cuMemAllocFromPoolAsync' in found_functions}}
-
-cdef CUresult _cuMemAllocFromPoolAsync(CUdeviceptr* dptr, size_t bytesize, CUmemoryPool pool, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemAllocFromPoolAsync
- cuPythonInit()
- if __cuMemAllocFromPoolAsync == NULL:
- with gil:
- raise RuntimeError('Function "cuMemAllocFromPoolAsync" not found')
- err = ( __cuMemAllocFromPoolAsync)(dptr, bytesize, pool, hStream)
- return err
-{{endif}}
-
-{{if 'cuMemPoolExportToShareableHandle' in found_functions}}
-
-cdef CUresult _cuMemPoolExportToShareableHandle(void* handle_out, CUmemoryPool pool, CUmemAllocationHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemPoolExportToShareableHandle
- cuPythonInit()
- if __cuMemPoolExportToShareableHandle == NULL:
- with gil:
- raise RuntimeError('Function "cuMemPoolExportToShareableHandle" not found')
- err = ( __cuMemPoolExportToShareableHandle)(handle_out, pool, handleType, flags)
- return err
-{{endif}}
-
-{{if 'cuMemPoolImportFromShareableHandle' in found_functions}}
-
-cdef CUresult _cuMemPoolImportFromShareableHandle(CUmemoryPool* pool_out, void* handle, CUmemAllocationHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemPoolImportFromShareableHandle
- cuPythonInit()
- if __cuMemPoolImportFromShareableHandle == NULL:
- with gil:
- raise RuntimeError('Function "cuMemPoolImportFromShareableHandle" not found')
- err = ( __cuMemPoolImportFromShareableHandle)(pool_out, handle, handleType, flags)
- return err
-{{endif}}
-
-{{if 'cuMemPoolExportPointer' in found_functions}}
-
-cdef CUresult _cuMemPoolExportPointer(CUmemPoolPtrExportData* shareData_out, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemPoolExportPointer
- cuPythonInit()
- if __cuMemPoolExportPointer == NULL:
- with gil:
- raise RuntimeError('Function "cuMemPoolExportPointer" not found')
- err = ( __cuMemPoolExportPointer)(shareData_out, ptr)
- return err
-{{endif}}
-
-{{if 'cuMemPoolImportPointer' in found_functions}}
-
-cdef CUresult _cuMemPoolImportPointer(CUdeviceptr* ptr_out, CUmemoryPool pool, CUmemPoolPtrExportData* shareData) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemPoolImportPointer
- cuPythonInit()
- if __cuMemPoolImportPointer == NULL:
- with gil:
- raise RuntimeError('Function "cuMemPoolImportPointer" not found')
- err = ( __cuMemPoolImportPointer)(ptr_out, pool, shareData)
- return err
-{{endif}}
-
-{{if 'cuMulticastCreate' in found_functions}}
-
-cdef CUresult _cuMulticastCreate(CUmemGenericAllocationHandle* mcHandle, const CUmulticastObjectProp* prop) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMulticastCreate
- cuPythonInit()
- if __cuMulticastCreate == NULL:
- with gil:
- raise RuntimeError('Function "cuMulticastCreate" not found')
- err = ( __cuMulticastCreate)(mcHandle, prop)
- return err
-{{endif}}
-
-{{if 'cuMulticastAddDevice' in found_functions}}
-
-cdef CUresult _cuMulticastAddDevice(CUmemGenericAllocationHandle mcHandle, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMulticastAddDevice
- cuPythonInit()
- if __cuMulticastAddDevice == NULL:
- with gil:
- raise RuntimeError('Function "cuMulticastAddDevice" not found')
- err = ( __cuMulticastAddDevice)(mcHandle, dev)
- return err
-{{endif}}
-
-{{if 'cuMulticastBindMem' in found_functions}}
-
-cdef CUresult _cuMulticastBindMem(CUmemGenericAllocationHandle mcHandle, size_t mcOffset, CUmemGenericAllocationHandle memHandle, size_t memOffset, size_t size, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMulticastBindMem
- cuPythonInit()
- if __cuMulticastBindMem == NULL:
- with gil:
- raise RuntimeError('Function "cuMulticastBindMem" not found')
- err = ( __cuMulticastBindMem)(mcHandle, mcOffset, memHandle, memOffset, size, flags)
- return err
-{{endif}}
-
-{{if 'cuMulticastBindAddr' in found_functions}}
-
-cdef CUresult _cuMulticastBindAddr(CUmemGenericAllocationHandle mcHandle, size_t mcOffset, CUdeviceptr memptr, size_t size, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMulticastBindAddr
- cuPythonInit()
- if __cuMulticastBindAddr == NULL:
- with gil:
- raise RuntimeError('Function "cuMulticastBindAddr" not found')
- err = ( __cuMulticastBindAddr)(mcHandle, mcOffset, memptr, size, flags)
- return err
-{{endif}}
-
-{{if 'cuMulticastUnbind' in found_functions}}
-
-cdef CUresult _cuMulticastUnbind(CUmemGenericAllocationHandle mcHandle, CUdevice dev, size_t mcOffset, size_t size) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMulticastUnbind
- cuPythonInit()
- if __cuMulticastUnbind == NULL:
- with gil:
- raise RuntimeError('Function "cuMulticastUnbind" not found')
- err = ( __cuMulticastUnbind)(mcHandle, dev, mcOffset, size)
- return err
-{{endif}}
-
-{{if 'cuMulticastGetGranularity' in found_functions}}
-
-cdef CUresult _cuMulticastGetGranularity(size_t* granularity, const CUmulticastObjectProp* prop, CUmulticastGranularity_flags option) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMulticastGetGranularity
- cuPythonInit()
- if __cuMulticastGetGranularity == NULL:
- with gil:
- raise RuntimeError('Function "cuMulticastGetGranularity" not found')
- err = ( __cuMulticastGetGranularity)(granularity, prop, option)
- return err
-{{endif}}
-
-{{if 'cuPointerGetAttribute' in found_functions}}
-
-cdef CUresult _cuPointerGetAttribute(void* data, CUpointer_attribute attribute, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuPointerGetAttribute
- cuPythonInit()
- if __cuPointerGetAttribute == NULL:
- with gil:
- raise RuntimeError('Function "cuPointerGetAttribute" not found')
- err = ( __cuPointerGetAttribute)(data, attribute, ptr)
- return err
-{{endif}}
-
-{{if 'cuMemPrefetchAsync_v2' in found_functions}}
-
-cdef CUresult _cuMemPrefetchAsync_v2(CUdeviceptr devPtr, size_t count, CUmemLocation location, unsigned int flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemPrefetchAsync_v2
- cuPythonInit()
- if __cuMemPrefetchAsync_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuMemPrefetchAsync_v2" not found')
- err = ( __cuMemPrefetchAsync_v2)(devPtr, count, location, flags, hStream)
- return err
-{{endif}}
-
-{{if 'cuMemAdvise_v2' in found_functions}}
-
-cdef CUresult _cuMemAdvise_v2(CUdeviceptr devPtr, size_t count, CUmem_advise advice, CUmemLocation location) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemAdvise_v2
- cuPythonInit()
- if __cuMemAdvise_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuMemAdvise_v2" not found')
- err = ( __cuMemAdvise_v2)(devPtr, count, advice, location)
- return err
-{{endif}}
-
-{{if 'cuMemPrefetchBatchAsync' in found_functions}}
-
-cdef CUresult _cuMemPrefetchBatchAsync(CUdeviceptr* dptrs, size_t* sizes, size_t count, CUmemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemPrefetchBatchAsync
- cuPythonInit()
- if __cuMemPrefetchBatchAsync == NULL:
- with gil:
- raise RuntimeError('Function "cuMemPrefetchBatchAsync" not found')
- err = ( __cuMemPrefetchBatchAsync)(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, hStream)
- return err
-{{endif}}
-
-{{if 'cuMemDiscardBatchAsync' in found_functions}}
-
-cdef CUresult _cuMemDiscardBatchAsync(CUdeviceptr* dptrs, size_t* sizes, size_t count, unsigned long long flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemDiscardBatchAsync
- cuPythonInit()
- if __cuMemDiscardBatchAsync == NULL:
- with gil:
- raise RuntimeError('Function "cuMemDiscardBatchAsync" not found')
- err = ( __cuMemDiscardBatchAsync)(dptrs, sizes, count, flags, hStream)
- return err
-{{endif}}
-
-{{if 'cuMemDiscardAndPrefetchBatchAsync' in found_functions}}
-
-cdef CUresult _cuMemDiscardAndPrefetchBatchAsync(CUdeviceptr* dptrs, size_t* sizes, size_t count, CUmemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemDiscardAndPrefetchBatchAsync
- cuPythonInit()
- if __cuMemDiscardAndPrefetchBatchAsync == NULL:
- with gil:
- raise RuntimeError('Function "cuMemDiscardAndPrefetchBatchAsync" not found')
- err = ( __cuMemDiscardAndPrefetchBatchAsync)(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, hStream)
- return err
-{{endif}}
-
-{{if 'cuMemRangeGetAttribute' in found_functions}}
-
-cdef CUresult _cuMemRangeGetAttribute(void* data, size_t dataSize, CUmem_range_attribute attribute, CUdeviceptr devPtr, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemRangeGetAttribute
- cuPythonInit()
- if __cuMemRangeGetAttribute == NULL:
- with gil:
- raise RuntimeError('Function "cuMemRangeGetAttribute" not found')
- err = ( __cuMemRangeGetAttribute)(data, dataSize, attribute, devPtr, count)
- return err
-{{endif}}
-
-{{if 'cuMemRangeGetAttributes' in found_functions}}
-
-cdef CUresult _cuMemRangeGetAttributes(void** data, size_t* dataSizes, CUmem_range_attribute* attributes, size_t numAttributes, CUdeviceptr devPtr, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuMemRangeGetAttributes
- cuPythonInit()
- if __cuMemRangeGetAttributes == NULL:
- with gil:
- raise RuntimeError('Function "cuMemRangeGetAttributes" not found')
- err = ( __cuMemRangeGetAttributes)(data, dataSizes, attributes, numAttributes, devPtr, count)
- return err
-{{endif}}
-
-{{if 'cuPointerSetAttribute' in found_functions}}
-
-cdef CUresult _cuPointerSetAttribute(const void* value, CUpointer_attribute attribute, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuPointerSetAttribute
- cuPythonInit()
- if __cuPointerSetAttribute == NULL:
- with gil:
- raise RuntimeError('Function "cuPointerSetAttribute" not found')
- err = ( __cuPointerSetAttribute)(value, attribute, ptr)
- return err
-{{endif}}
-
-{{if 'cuPointerGetAttributes' in found_functions}}
-
-cdef CUresult _cuPointerGetAttributes(unsigned int numAttributes, CUpointer_attribute* attributes, void** data, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuPointerGetAttributes
- cuPythonInit()
- if __cuPointerGetAttributes == NULL:
- with gil:
- raise RuntimeError('Function "cuPointerGetAttributes" not found')
- err = ( __cuPointerGetAttributes)(numAttributes, attributes, data, ptr)
- return err
-{{endif}}
-
-{{if 'cuStreamCreate' in found_functions}}
-
-cdef CUresult _cuStreamCreate(CUstream* phStream, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuStreamCreate
- cuPythonInit()
- if __cuStreamCreate == NULL:
- with gil:
- raise RuntimeError('Function "cuStreamCreate" not found')
- err = ( __cuStreamCreate)(phStream, Flags)
- return err
-{{endif}}
-
-{{if 'cuStreamCreateWithPriority' in found_functions}}
-
-cdef CUresult _cuStreamCreateWithPriority(CUstream* phStream, unsigned int flags, int priority) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuStreamCreateWithPriority
- cuPythonInit()
- if __cuStreamCreateWithPriority == NULL:
- with gil:
- raise RuntimeError('Function "cuStreamCreateWithPriority" not found')
- err = ( __cuStreamCreateWithPriority)(phStream, flags, priority)
- return err
-{{endif}}
-
-{{if 'cuStreamGetPriority' in found_functions}}
-
-cdef CUresult _cuStreamGetPriority(CUstream hStream, int* priority) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuStreamGetPriority
- cuPythonInit()
- if __cuStreamGetPriority == NULL:
- with gil:
- raise RuntimeError('Function "cuStreamGetPriority" not found')
- err = ( __cuStreamGetPriority)(hStream, priority)
- return err
-{{endif}}
-
-{{if 'cuStreamGetDevice' in found_functions}}
-
-cdef CUresult _cuStreamGetDevice(CUstream hStream, CUdevice* device) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuStreamGetDevice
- cuPythonInit()
- if __cuStreamGetDevice == NULL:
- with gil:
- raise RuntimeError('Function "cuStreamGetDevice" not found')
- err = ( __cuStreamGetDevice)(hStream, device)
- return err
-{{endif}}
-
-{{if 'cuStreamGetFlags' in found_functions}}
-
-cdef CUresult _cuStreamGetFlags(CUstream hStream, unsigned int* flags) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuStreamGetFlags
- cuPythonInit()
- if __cuStreamGetFlags == NULL:
- with gil:
- raise RuntimeError('Function "cuStreamGetFlags" not found')
- err = ( __cuStreamGetFlags)(hStream, flags)
- return err
-{{endif}}
-
-{{if 'cuStreamGetId' in found_functions}}
-
-cdef CUresult _cuStreamGetId(CUstream hStream, unsigned long long* streamId) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuStreamGetId
- cuPythonInit()
- if __cuStreamGetId == NULL:
- with gil:
- raise RuntimeError('Function "cuStreamGetId" not found')
- err = ( __cuStreamGetId)(hStream, streamId)
- return err
-{{endif}}
-
-{{if 'cuStreamGetCtx' in found_functions}}
-
-cdef CUresult _cuStreamGetCtx(CUstream hStream, CUcontext* pctx) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuStreamGetCtx
- cuPythonInit()
- if __cuStreamGetCtx == NULL:
- with gil:
- raise RuntimeError('Function "cuStreamGetCtx" not found')
- err = ( __cuStreamGetCtx)(hStream, pctx)
- return err
-{{endif}}
-
-{{if 'cuStreamGetCtx_v2' in found_functions}}
-
-cdef CUresult _cuStreamGetCtx_v2(CUstream hStream, CUcontext* pCtx, CUgreenCtx* pGreenCtx) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuStreamGetCtx_v2
- cuPythonInit()
- if __cuStreamGetCtx_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuStreamGetCtx_v2" not found')
- err = ( __cuStreamGetCtx_v2)(hStream, pCtx, pGreenCtx)
- return err
-{{endif}}
-
-{{if 'cuStreamWaitEvent' in found_functions}}
-
-cdef CUresult _cuStreamWaitEvent(CUstream hStream, CUevent hEvent, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuStreamWaitEvent
- cuPythonInit()
- if __cuStreamWaitEvent == NULL:
- with gil:
- raise RuntimeError('Function "cuStreamWaitEvent" not found')
- err = ( __cuStreamWaitEvent)(hStream, hEvent, Flags)
- return err
-{{endif}}
-
-{{if 'cuStreamAddCallback' in found_functions}}
-
-cdef CUresult _cuStreamAddCallback(CUstream hStream, CUstreamCallback callback, void* userData, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuStreamAddCallback
- cuPythonInit()
- if __cuStreamAddCallback == NULL:
- with gil:
- raise RuntimeError('Function "cuStreamAddCallback" not found')
- err = ( __cuStreamAddCallback)(hStream, callback, userData, flags)
- return err
-{{endif}}
-
-{{if 'cuStreamBeginCapture_v2' in found_functions}}
-
-cdef CUresult _cuStreamBeginCapture_v2(CUstream hStream, CUstreamCaptureMode mode) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuStreamBeginCapture_v2
- cuPythonInit()
- if __cuStreamBeginCapture_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuStreamBeginCapture_v2" not found')
- err = ( __cuStreamBeginCapture_v2)(hStream, mode)
- return err
-{{endif}}
-
-{{if 'cuStreamBeginCaptureToGraph' in found_functions}}
-
-cdef CUresult _cuStreamBeginCaptureToGraph(CUstream hStream, CUgraph hGraph, const CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, CUstreamCaptureMode mode) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuStreamBeginCaptureToGraph
- cuPythonInit()
- if __cuStreamBeginCaptureToGraph == NULL:
- with gil:
- raise RuntimeError('Function "cuStreamBeginCaptureToGraph" not found')
- err = ( __cuStreamBeginCaptureToGraph)(hStream, hGraph, dependencies, dependencyData, numDependencies, mode)
- return err
-{{endif}}
-
-{{if 'cuThreadExchangeStreamCaptureMode' in found_functions}}
-
-cdef CUresult _cuThreadExchangeStreamCaptureMode(CUstreamCaptureMode* mode) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuThreadExchangeStreamCaptureMode
- cuPythonInit()
- if __cuThreadExchangeStreamCaptureMode == NULL:
- with gil:
- raise RuntimeError('Function "cuThreadExchangeStreamCaptureMode" not found')
- err = ( __cuThreadExchangeStreamCaptureMode)(mode)
- return err
-{{endif}}
-
-{{if 'cuStreamEndCapture' in found_functions}}
-
-cdef CUresult _cuStreamEndCapture(CUstream hStream, CUgraph* phGraph) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuStreamEndCapture
- cuPythonInit()
- if __cuStreamEndCapture == NULL:
- with gil:
- raise RuntimeError('Function "cuStreamEndCapture" not found')
- err = ( __cuStreamEndCapture)(hStream, phGraph)
- return err
-{{endif}}
-
-{{if 'cuStreamIsCapturing' in found_functions}}
-
-cdef CUresult _cuStreamIsCapturing(CUstream hStream, CUstreamCaptureStatus* captureStatus) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuStreamIsCapturing
- cuPythonInit()
- if __cuStreamIsCapturing == NULL:
- with gil:
- raise RuntimeError('Function "cuStreamIsCapturing" not found')
- err = ( __cuStreamIsCapturing)(hStream, captureStatus)
- return err
-{{endif}}
-
-{{if 'cuStreamGetCaptureInfo_v3' in found_functions}}
-
-cdef CUresult _cuStreamGetCaptureInfo_v3(CUstream hStream, CUstreamCaptureStatus* captureStatus_out, cuuint64_t* id_out, CUgraph* graph_out, const CUgraphNode** dependencies_out, const CUgraphEdgeData** edgeData_out, size_t* numDependencies_out) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuStreamGetCaptureInfo_v3
- cuPythonInit()
- if __cuStreamGetCaptureInfo_v3 == NULL:
- with gil:
- raise RuntimeError('Function "cuStreamGetCaptureInfo_v3" not found')
- err = ( __cuStreamGetCaptureInfo_v3)(hStream, captureStatus_out, id_out, graph_out, dependencies_out, edgeData_out, numDependencies_out)
- return err
-{{endif}}
-
-{{if 'cuStreamUpdateCaptureDependencies_v2' in found_functions}}
-
-cdef CUresult _cuStreamUpdateCaptureDependencies_v2(CUstream hStream, CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuStreamUpdateCaptureDependencies_v2
- cuPythonInit()
- if __cuStreamUpdateCaptureDependencies_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuStreamUpdateCaptureDependencies_v2" not found')
- err = ( __cuStreamUpdateCaptureDependencies_v2)(hStream, dependencies, dependencyData, numDependencies, flags)
- return err
-{{endif}}
-
-{{if 'cuStreamAttachMemAsync' in found_functions}}
-
-cdef CUresult _cuStreamAttachMemAsync(CUstream hStream, CUdeviceptr dptr, size_t length, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuStreamAttachMemAsync
- cuPythonInit()
- if __cuStreamAttachMemAsync == NULL:
- with gil:
- raise RuntimeError('Function "cuStreamAttachMemAsync" not found')
- err = ( __cuStreamAttachMemAsync)(hStream, dptr, length, flags)
- return err
-{{endif}}
-
-{{if 'cuStreamQuery' in found_functions}}
-
-cdef CUresult _cuStreamQuery(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuStreamQuery
- cuPythonInit()
- if __cuStreamQuery == NULL:
- with gil:
- raise RuntimeError('Function "cuStreamQuery" not found')
- err = ( __cuStreamQuery)(hStream)
- return err
-{{endif}}
-
-{{if 'cuStreamSynchronize' in found_functions}}
-
-cdef CUresult _cuStreamSynchronize(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuStreamSynchronize
- cuPythonInit()
- if __cuStreamSynchronize == NULL:
- with gil:
- raise RuntimeError('Function "cuStreamSynchronize" not found')
- err = ( __cuStreamSynchronize)(hStream)
- return err
-{{endif}}
-
-{{if 'cuStreamDestroy_v2' in found_functions}}
-
-cdef CUresult _cuStreamDestroy_v2(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuStreamDestroy_v2
- cuPythonInit()
- if __cuStreamDestroy_v2 == NULL:
- with gil:
- raise RuntimeError('Function "cuStreamDestroy_v2" not found')
- err = ( __cuStreamDestroy_v2)(hStream)
- return err
-{{endif}}
-
-{{if 'cuStreamCopyAttributes' in found_functions}}
-
-cdef CUresult _cuStreamCopyAttributes(CUstream dst, CUstream src) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuStreamCopyAttributes
- cuPythonInit()
- if __cuStreamCopyAttributes == NULL:
- with gil:
- raise RuntimeError('Function "cuStreamCopyAttributes" not found')
- err = ( __cuStreamCopyAttributes)(dst, src)
- return err
-{{endif}}
-
-{{if 'cuStreamGetAttribute' in found_functions}}
-
-cdef CUresult _cuStreamGetAttribute(CUstream hStream, CUstreamAttrID attr, CUstreamAttrValue* value_out) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuStreamGetAttribute
- cuPythonInit()
- if __cuStreamGetAttribute == NULL:
- with gil:
- raise RuntimeError('Function "cuStreamGetAttribute" not found')
- err = ( __cuStreamGetAttribute)(hStream, attr, value_out)
- return err
-{{endif}}
-
-{{if 'cuStreamSetAttribute' in found_functions}}
-
-cdef CUresult _cuStreamSetAttribute(CUstream hStream, CUstreamAttrID attr, const CUstreamAttrValue* value) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuStreamSetAttribute
- cuPythonInit()
- if __cuStreamSetAttribute == NULL:
- with gil:
- raise RuntimeError('Function "cuStreamSetAttribute" not found')
- err = ( __cuStreamSetAttribute)(hStream, attr, value)
- return err
-{{endif}}
-
-{{if 'cuEventCreate' in found_functions}}
-
-cdef CUresult _cuEventCreate(CUevent* phEvent, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuEventCreate
- cuPythonInit()
- if __cuEventCreate == NULL:
- with gil:
- raise RuntimeError('Function "cuEventCreate" not found')
- err = ( __cuEventCreate)(phEvent, Flags)
- return err
-{{endif}}
-
-{{if 'cuEventRecord' in found_functions}}
-
-cdef CUresult _cuEventRecord(CUevent hEvent, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuEventRecord
- cuPythonInit()
- if __cuEventRecord == NULL:
- with gil:
- raise RuntimeError('Function "cuEventRecord" not found')
- err = ( __cuEventRecord)(hEvent, hStream)
- return err
-{{endif}}
-
-{{if 'cuEventRecordWithFlags' in found_functions}}
-
-cdef CUresult _cuEventRecordWithFlags(CUevent hEvent, CUstream hStream, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuEventRecordWithFlags
- cuPythonInit()
- if __cuEventRecordWithFlags == NULL:
- with gil:
- raise RuntimeError('Function "cuEventRecordWithFlags" not found')
- err = ( __cuEventRecordWithFlags)(hEvent, hStream, flags)
- return err
-{{endif}}
-
-{{if 'cuEventQuery' in found_functions}}
-
-cdef CUresult _cuEventQuery(CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil:
- global __cuEventQuery
- cuPythonInit()
- if __cuEventQuery == NULL:
- with gil:
- raise RuntimeError('Function "cuEventQuery" not found')
- err = (