Age | Commit message (Collapse) | Author | Files | Lines |
|
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.
|
|
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
|
|
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.
|
|
Agrees with Release Notes, Section 1.1, Table 3.
https://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html
|
|
Along the way, add __future__ annotations where lacking.
|
|
|
|
|
|
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.
|
|
|
|
Add required and disabled to import, modules.found method
|
|
Toolkit 11.4.0.
We skip 11.3.1 because it shares the same version requirements as 11.3.0.
|
|
NewExtensionModule object
So that we get the found() method.
|
|
|
|
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.
|
|
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.
|
|
|
|
|
|
Strangely, the minimum version of CUDA Toolkit 11.2.0 has also been
updated - downwards. We pick up this change as well.
|
|
|
|
CUDA Toolkits.
Also harden internal logic and add several asserts in the testcase.
|
|
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.
|
|
|
|
|
|
|
|
architectures.
|
|
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
|