forked from numba/numba
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into guilhermeleobas/exc…
…eption-handling
- Loading branch information
Showing
51 changed files
with
1,404 additions
and
252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ CUDA_TOOLKIT_VER: | |
- "11.1" | ||
- "11.2" | ||
- "11.5" | ||
- "11.8" | ||
|
||
LINUX_VER: | ||
- ubuntu18.04 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,4 +26,5 @@ Numba for CUDA GPUs | |
bindings.rst | ||
cuda_ffi.rst | ||
caching.rst | ||
minor_version_compatibility.rst | ||
faq.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
.. _minor-version-compatibility: | ||
|
||
CUDA Minor Version Compatiblity | ||
=============================== | ||
|
||
CUDA `Minor Version Compatibility | ||
<https://docs.nvidia.com/deploy/cuda-compatibility/index.html#minor-version-compatibility>`_ | ||
(MVC) enables the use of a newer CUDA toolkit version than the CUDA version | ||
supported by the driver, provided that the toolkit and driver both have the same | ||
major version. For example, use of CUDA toolkit 11.5 with CUDA driver 450 (CUDA | ||
version 11.0) is supported through MVC. | ||
|
||
Numba supports MVC for CUDA 11 on Linux using the external ``cubinlinker`` and | ||
``ptxcompiler`` packages, subject to the following limitations: | ||
|
||
- Linking of archives is unsupported. | ||
- Cooperative Groups are unsupported, because they require an archive to be | ||
linked. | ||
|
||
MVC is not supported on Windows. | ||
|
||
|
||
Enabling MVC Support | ||
-------------------- | ||
|
||
To use MVC support, the ``cubinlinker`` and ``ptxcompiler`` compiler packages | ||
must be installed from the appropriate channels. To install using conda, use: | ||
|
||
.. code:: bash | ||
conda install rapidsai::cubinlinker conda-forge::ptxcompiler | ||
To install with pip, use the NVIDIA package index: | ||
|
||
.. code:: bash | ||
pip install ptxcompiler-cu11 cubinlinker-cu11 --extra-index-url=https://pypi.ngc.nvidia.com | ||
MVC support is enabled by setting the environment variable: | ||
|
||
.. code:: bash | ||
export NUMBA_CUDA_ENABLE_MINOR_VERSION_COMPATIBILITY=1 | ||
or by setting a configuration variable prior to using any CUDA functionality in | ||
Numba: | ||
|
||
.. code:: python | ||
from numba import config | ||
config.CUDA_ENABLE_MINOR_VERSION_COMPATIBILITY = True | ||
References | ||
---------- | ||
|
||
Further information about Minor Version Compatibility may be found in: | ||
|
||
- The `CUDA Compatibility Guide | ||
<https://docs.nvidia.com/deploy/cuda-compatibility/index.html>`_. | ||
- The `README for ptxcompiler | ||
<https://github.com/rapidsai/ptxcompiler/blob/main/README.md>`_. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.