Specialized Template Function Pennylane::Util::Constant::getCompilerVersion< Compiler::NVCC >¶
Defined in File Macros.hpp
Function Documentation¶
-
template<>
constexpr auto Pennylane::Util::Constant::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_1ae8efde09267518bc71ef58decaa0eef6
Download Python script
Download Notebook
View on GitHub