Introduction to Cuda C Programming-Programming Interface (3.3) version and compatibility

Source: Internet
Author: User

There are two versions that developers need to care about when developing Cuda applications: computing capability-describe product specifications and computing device features and Cuda driver API version-Describe the features supported by the driver API and runtime.

You can obtain the driver API version from the macro cuda_version in the driver header file. Developers can check whether their applications require a version later than the existing version. This is important because the driver API is backward compatible, meaning that applications, plug-ins, and libraries compiled for the special edition (including C Runtime) it can continue running on the device drivers of later releases, as shown in 11. The driver is not forward compatible, meaning that the applications, plug-ins, and libraries (including C Runtime) compiled for the special edition cannot run on the device driver of the later releases.

It is important to remember versions that do not support mixed match, especially:

  • Because the system can only install one Cuda device driver, all applications, plug-ins and libraries in the system must use the same version of The Cuda driver API.
  • The plug-ins and libraries used by the application must use the same version of runtime.
  • The plug-ins and libraries used by applications must use any runtime libraries of the same version.

Figure 11 the API driver is backward-compatible, not forward-compatible.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.