简体   繁体   English

CUDA cuFFT体系结构x86_64的未定义符号

[英]CUDA cuFFT Undefined symbols for architecture x86_64

I'm trying to use cuFFT library but when I compile my project I have the error: 我正在尝试使用cuFFT库,但是在编译项目时出现错误:

Undefined symbols for architecture x86_64:
"_cufftDestroy" ...
"_cufftExecC2C" ...
"_cufftPlan1d" ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I'm using CUDA 7 and Eclipse Nsight on Mac OS X 10.10.3. 我在Mac OS X 10.10.3上使用CUDA 7和Eclipse Nsight。 Other examples without cuFFT library correctly work. 没有cuFFT库的其他示例可以正常工作。 Are there other settings to do? 还有其他设置吗?

I solved using the command line: 我使用命令行解决了:

nvcc filename.cu -I/path_CUDA/include -L/path_CUDA/lib -lcufft

I surely think there is a configuration in Eclipse Nsight, but still I can't find it. 我当然认为Eclipse Nsight中有一个配置,但是我仍然找不到它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM