cuda-api-wrappers
Thin C++-flavored wrappers for the CUDA Runtime API
|
Wrappers for Runtime API functions involving versions - of the CUDA runtime and of the CUDA driver. More...
Go to the source code of this file.
Classes | |
struct | cuda::version_t |
A structure representing a CUDA release version. More... | |
Namespaces | |
cuda | |
Definitions and functionality wrapping CUDA APIs. | |
Typedefs | |
using | cuda::combined_version_t = int |
A combination of the major and minor version numbers for a CUDA release into a single integer, e.g. More... | |
Functions | |
constexpr version_t | cuda::version_numbers::none () noexcept |
This "value" is what the Runtime API returns if no version is supported by the driver. More... | |
version_t | cuda::version_numbers::make (combined_version_t combined_version) noexcept |
Convert an integer representing a major and minor number (e.g. More... | |
version_t | cuda::version_numbers::make (int major, int minor) noexcept |
Convert a pair integer representing a major and minor number (e.g. More... | |
version_t | cuda::version_numbers::driver () |
Obtains the maximum version of the CUDA Runtime supported by the driver currently loaded by the operating system. More... | |
version_t | cuda::version_numbers::runtime () |
Obtains the CUDA Runtime version. More... | |
Wrappers for Runtime API functions involving versions - of the CUDA runtime and of the CUDA driver.
Also defines a cuda::version_t class for working with such versions (as they are not really single numbers) - which is what the wrappers return.
|
inline |
Obtains the maximum version of the CUDA Runtime supported by the driver currently loaded by the operating system.
|
inlinenoexcept |
Convert an integer representing a major and minor number (e.g.
55 for major version 5, minor version 5) into the version type we use (version_t).
|
inlinenoexcept |
Convert a pair integer representing a major and minor number (e.g.
5 and 5) into the version type we use (version_t).
|
noexcept |
This "value" is what the Runtime API returns if no version is supported by the driver.
|
inline |
Obtains the CUDA Runtime version.