aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/unstable_cuda.py
AgeCommit message (Collapse)AuthorFilesLines
2022-08-17interpreter: move handling of module stability to interpreterDylan Baker1-360/+0
Thanks to `ModuleInfo`, all modules are just named `foo.py` instead of `unstable_foo.py`, which simplifies the import method a bit. This also allows for accurate FeatureNew/FeatureDeprecated use, as we know when the module was added and if/when it was stabilized.
2022-08-17modules: Add stabilization information to ModuleInfoDylan Baker1-1/+1
We're going to do more with this in the next commit, but this just adds the information for now. This allows the next commit have 100% mv changes for some of the modules, which makes review easier
2022-08-17modules: use module level information about new and deprecationDylan Baker1-3/+4
Instead of using FeatureNew/FeatureDeprecated in the module. The goal here is to be able to handle information about modules in a single place, instead of having to handle it separately. Each module simply defines some metadata, and then the interpreter handles the rest.
2022-06-19Update CUDA Toolkit/driver version table for recent releases.Olexa Bilaniuk1-0/+5
Agrees with Release Notes, Section 1.1, Table 3. https://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html
2022-06-10treewide: various cleanups to move imports for mypy into typechecking blocksEli Schwartz1-1/+3
Along the way, add __future__ annotations where lacking.
2021-10-21Add entries for new CUDA Toolkit versions.Olexa Bilaniuk1-0/+2
2021-10-04f-stringsEli Schwartz1-2/+1
2021-10-04various python neatness cleanupsEli Schwartz1-1/+1
All changes were created by running "pyupgrade --py3-only" and committing the results. Although this has been performed in the past, newer versions of pyupgrade can automatically catch more opportunities, notably list comprehensions can use generators instead, in the following cases: - unpacking into function arguments as function(*generator) - unpacking into assignments of the form x, y = generator - as the argument to some builtin functions such as min/max/sorted Also catch a few creeping cases of new code added using older styles.
2021-09-14apply flake8 fixes for unused imports and missing importsEli Schwartz1-0/+3
2021-07-03Merge pull request #8950 from dcbaker/submit/import-required-disabledJussi Pakkanen1-2/+2
Add required and disabled to import, modules.found method
2021-07-01Add minimum NVIDIA driver version entry in table for newly-released CUDA ↵Olexa Bilaniuk1-0/+1
Toolkit 11.4.0. We skip 11.3.1 because it shares the same version requirements as 11.3.0.
2021-06-30modules: modules need to return either an ExtensionModlue or aDylan Baker1-2/+2
NewExtensionModule object So that we get the found() method.
2021-06-18holders: remove unholderDaniel Mensinger1-8/+3
2021-06-09cuda module: fully buy into new modules APIEli Schwartz1-3/+3
In commit 3340284805b96a4b9b62405f626020276341944c the new ModuleObject API got further updated to hide self.interpreter; at the time, the CUDA module got transferred over to the wrapper which does provide it. But it works fine without self.interpreter, so let's just use the best base class.
2021-05-28modules: Stop using InterpreterObjectXavier Claessens1-2/+2
Custom objects returned by modules must be subclass of ModuleObject and have the state argument in its methods. Add MutableModuleObject base class for objects that needs to be deep copied on assignation.
2021-04-26Update CUDA Toolkit driver version table.Olexa Bilaniuk1-0/+2
2021-03-05Port CUDA module to new API.Olexa Bilaniuk1-11/+23
2021-02-16CUDA Toolkit 11.2.1 has been released, update version tableOlexa Bilaniuk1-1/+2
Strangely, the minimum version of CUDA Toolkit 11.2.0 has also been updated - downwards. We pick up this change as well.
2021-02-02Quick update of table of CUDA Toolkit vs. NVIDIA driver versions.Olexa Bilaniuk1-0/+2
2020-11-05Update CUDA module's nvcc_arch_flags() and nvcc_arch_readable() for newOlexa Bilaniuk1-35/+96
CUDA Toolkits. Also harden internal logic and add several asserts in the testcase.
2020-11-05Add newer CUDA Toolkit version entries.Olexa Bilaniuk1-6/+9
Also, remove the possibility of passing in a compiler instance to min_driver_version. This is because the NVCC compiler instance is, as of CUDA Toolkit 11.0, no longer guaranteed to be versioned identically to the toolkit itself.
2019-11-21Add table entry for CUDA Toolkit 10.2.89.Olexa Bilaniuk1-0/+1
2019-02-27Add table entry for CUDA Toolkit 10.1.Olexa Bilaniuk1-0/+1
2019-02-24Correct Volta+Tegra -> Xavier.Olexa Bilaniuk1-2/+2
2019-02-24Allow 'Auto'-mode flags to use the compiler's detected GPUOlexa Bilaniuk1-3/+13
architectures.
2019-02-02Add unstable CUDA module.Olexa Bilaniuk1-0/+259
Includes three general utility functions connected to CUDA, in particular the crafting of -gencode flags as done in CMake: https://github.com/Kitware/CMake/blob/master/Modules/FindCUDA/ select_compute_arch.cmake