我正在使用NVidia Tesla 2050 GPU卡设置一台新的Dell Precision工作站。我想安装R的包gputools。我的操作系统是带有KDE4.4的openSuse 11.3。
我下载了NVidia的CUDA Toolkit3.2并将其安装在/usr/local/cuda中,我还下载了最新版本的CULA工具集(R10版)并将其安装在/usr/local/cula中。
当尝试从R中使用: install.packages(" gputools ")安装gputools时,我收到以下错误消息:
classification.cu(735): error: argument of type "unsigned int *" is incompatible with parameter of type "size_t *"
classification.cu(735): error: argument of type "unsigned int *" is incompatible with parameter of type "size_t *"
classification.cu(1042): error: argument of type "unsigned int *" is incompatible with parameter of type "size_t *"
classification.cu(1042): error: argument of type "unsigned int *" is incompatible with parameter of type "size_t *"
4 errors detected in the compilation of "/tmp/tmpxft_00003d8d_00000000-12_classification.compute_12.cpp1.ii".
make: *** [classification.o] Error 2
ERROR: compilation failed for package ‘gputools’
* removing ‘/home/moswald/R/x86_64-unknown-linux-gnu-library/2.12/gputools’
The downloaded packages are in
‘/tmp/RtmphI30zE/downloaded_packages’
Warning message:
In install.packages("gputools", dependencies = TRUE) :
installation of package 'gputools' had non-zero exit status使用旧版本的CULA和CUDA工具集也没有帮助。
发布于 2010-12-16 06:36:18
从我的头顶开始,试试3.1版本的NVidua CUDA SDK。我认为与较新的一个有互动。
发布于 2010-12-16 15:48:08
为了支持具有大量内存的设备(例如具有6 6GB设备内存的C2070 ),CUDA-3.2使用"size_t“而不是CUDA <= 3.1中使用的"unsigned int”来描述内存量。这看起来像是使用CUDA-3.2的经典案例,而CUDA-3.1是预期的。您可以通过添加以下内容来使用CUDA-3.2编译器解决问题
-DCUDA_FORCE_API_VERSION=3010添加到您的nvcc命令行。
https://stackoverflow.com/questions/4455643
复制相似问题