Specialized Template Function Pennylane::Util::getCompilerVersion< Compiler::NVCC >

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