OpenCV3 带CUDA的CMake自编译 没有找到 CUDA_cufft_LIBRARY (ADVANCED) 问题

WITH_CUDA 勾选上 使得OpenCV支持GPU加速

需要利用CMake自编译

 

相关软件: OpenCV3.0 CUDA8.0 VS2013 64位 Win10

问题描述:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.

Please set them or make sure they are set and tested correctly in the CMake files:

CUDA_cufft_LIBRARY (ADVANCED) 

CUDA_nppi_LIBRARY (ADVANCED) 

CUDA_nppc_LIBRARY (ADVANCED) 

CUDA_npps_LIBRARY (ADVANCED) 

......

 

解决方案

查看C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\lib\x64安装目录下cufft.lib,nppi.lib, nppc.lib npps.lib等库是否存在

注意:

# In CUDA 8.0 NPP was splitted onto 12 separate libraries.

+ find_cuda_helper_libs(nppc)

+ find_cuda_helper_libs(nppial)

+ find_cuda_helper_libs(nppic)

+ find_cuda_helper_libs(nppicom)

+ find_cuda_helper_libs(nppidei)

+ find_cuda_helper_libs(nppif)

+ find_cuda_helper_libs(nppig)

+ find_cuda_helper_libs(nppim)

+ find_cuda_helper_libs(nppist)

+ find_cuda_helper_libs(nppisu)

+ find_cuda_helper_libs(nppitc)

+ find_cuda_helper_libs(npps)

如果不存在,需要重新安装CUDA8.0

其他注意事项:

(1)CUDA8.0重新安装注意一点,一定不要选择安装CUDA里面自带的驱动,仅安装第一个选项下的Runtime和Document即可。

 

(2)CMake的编译器一定要选择 VS2013 Win64,即64位编译器

否则会发生:fatal error LNK1112: 模块计算机类型“X86”与目标计算机类型“x64”冲突问题

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
This document describes CUFFT, the NVIDIA® CUDA™ Fast Fourier Transform (FFT) library. The FFT is a divide-and-conquer algorithm for efficiently computing discrete Fourier transforms of complex or real-valued data sets. It is one of the most important and widely used numerical algorithms in computational physics and general signal processing. The CUFFT library provides a simple interface for computing parallel FFTs on an NVIDIA GPU, which allows users to leverage the floating-point power and parallelism of the GPU without having to develop a custom, CUDA FFT implementation. FFT libraries typically vary in terms of supported transform sizes and data types. For example, some libraries only implement radix-2 FFTs, restricting the transform size to a power of two. The CUFFT Library aims to support a wide range of FFT options efficiently on NVIDIA GPUs. This version of the CUFFT library supports the following features: I Complex and real-valued input and output I 1D, 2D, and 3D transforms I Batch execution for doing multiple transforms of any dimension in parallel I Transform sizes up to 64 million elements in single precision and up to 128 million elements in double precision in any dimension, limited by the available GPU memory I In-place and out-of-place transforms I Double-precision (64-bit floating point) on compatible hardware (sm1.3 and later) I Support for streamed execution, enabling asynchronous computation and data movement I FFTW compatible data layouts I Arbitrary intra- and inter-dimension element strides I Thread-safe API that can be called from multiple independent host threads
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值