Cuda on the Windows/linux platform configuration and compilation

Source: Internet
Author: User

Some time ago, the OPENCV3.4,TX2 update source failed to install the TX2, OPENCV internal many functions have implemented GPU acceleration, but we manually write the function, want to through the GPU acceleration will need to manually call Cuda for acceleration. The following describes Cuda's environment configuration and compilation, respectively, from the Windows platform and the Linux platform.

1 Windows VS2013 + cuda configuration

1.1 Confirm Cuda Installation

Command Line Input

Nvcc

If the following print appears, the installation is complete

1.2 Creating a Cuda Project

Then open vs2013, create a new empty project

Then add Cuda dependencies to the project, solution right-click: Build dependencies, build customizations, add Cuda

After you add a dependency, you can create a new. cu file, and then right-click the file: Properties, configuration Properties, general-type->cuda C/

Cuda on the Windows/linux platform configuration and compilation

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.