Specialized Template Function Pennylane::Util::getCompilerVersion< Compiler::NVCC >¶
Defined in File Macros.hpp
Function Documentation¶
-
template<>
constexpr auto Pennylane::Util::getCompilerVersion<Compiler::NVCC>() -> std::string_view¶ Create version string for NVCC.
This function raises an error when instantiated (invoked) if a compiler does not define macros (i.e. other than NVCC).
See https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html#nvcc-identification-macro for related information
api/function_Macros_8hpp_1ab43359f67eb5553c2591eb489395ecf3
Download Python script
Download Notebook
View on GitHub