码迷,mamicode.com
首页 > 其他好文 > 详细

cudpp库的使用

时间:2014-12-14 17:09:06      阅读:343      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   io   ar   color   os   使用   sp   

项目主页

http://cudpp.github.io/

根据这个网址的提示进行

https://github.com/cudpp/cudpp/wiki/BuildingCUDPPwithCMake

我的环境:win7 x64+vs2013

编译

首先是下载cmake

下载地址

http://www.cmake.org/download/

我是通过cmake-gui方式来编译的

The cmake gui can be used to interactively configure and generate CUDPP build files. Just run cmake-gui, then set the path to the CUDPP source tree in the field "Where is the source code", and set the path to where you want the build files generated in "Where to build the binaries".

bubuko.com,布布扣

Then press "Configure". You will see a list of options you can set. Click "Advanced" to see advanced options. Click "grouped" to logically group them.

Once you have set the necessary options (see below), click "Generate" to generate makefiles.

bubuko.com,布布扣

Go to the directory you set in "Where to build the binaries", and run make (`*`nix), or open the cudpp.sln (Windows).

bubuko.com,布布扣

用2.2的版本,貌似有问题,缺少文件,我找了这个文件补充到指定位置,还是有问题。暂时不知道怎么解决,我就下载了2.2的版本,编译通过。

最后打开就是这个效果

bubuko.com,布布扣

bubuko.com,布布扣

选项

Useful options to set:

  • CMAKE_BUILD_TYPE: set to Debug for debug builds, Release (or blank) for release builds. Not needed on Windows.
  • BUILD_APPLICATIONS: set to on to build the CUDPP example applications and testrig in addition to CUDPP libraries.
  • BUILD_SHARED_LIBS: set to on to build dynamic/shared CUDPP libraries, off to build static libraries
  • CUDA_VERBOSE_BUILD: Print out commands run while compiling CUDA source files
  • CUDA_VERBOSE_PTXAS: Print out the output of --ptxas-options=-verbose, which displays details of shared memory, registers, and constants used by CUDA device kernels.

最后

On Windows, rather than running make, you just open the generated cudpp.sln in your source directory.

cudpp库的使用

标签:style   blog   http   io   ar   color   os   使用   sp   

原文地址:http://www.cnblogs.com/liangliangdetianxia/p/4162634.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!