[英]Is the CUDA API version and driver version always the same
The CUDA version obtained from cuDriverGetVersion
, and the API version from the macro CUDA_VERSION
. 从
cuDriverGetVersion
获得的CUDA版本,以及从宏CUDA_VERSION
获得的API版本。 Are they supposed to be always the same (assuming CUDA is correctly installed)? 它们是否应该始终相同(假设正确安装了CUDA)?
The CUDA_VERSION
macro tells you which version of the CUDA API you are compiling your code against. CUDA_VERSION
宏告诉您编译代码所依据的CUDA API版本。 cuDriverGetVersion()
will tell you the most recent version of CUDA that the driver you're running with supports. cuDriverGetVersion()
会告诉您正在运行的驱动程序支持的最新CUDA版本。 So no, they don't have to be the same. 所以不,它们不必相同。 For example, an application that was compiled for CUDA 9.x will run perfectly fine with a driver that supports CUDA 10…
例如,为CUDA 9.x编译的应用程序将使用支持CUDA 10的驱动程序完美运行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.