使用CUDA 5.0时对cutil的依赖 [英] Dependencies on cutil when using CUDA 5.0

查看:144
本文介绍了使用CUDA 5.0时对cutil的依赖的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行 make 命令以符合Linux 64位下的CUDA程序时,会收到以下错误消息:

When I run the make command to complie a CUDA program under Linux 64bits, I receive the following error message:

    error: cutil.h: No such file or directory

我发现一些答案,但没有一个有用。

I found some answers, but none of them useful.

makefile c $ c> CUDA_SDK_PATH ,但在CUDA入门指南中找不到有关SDK的任何有用信息:
http://docs.nvidia.com/cuda/cuda-getting-started-guide-for-linux/index.html < a>

In the makefile, there is one CUDA_SDK_PATH, but cannot find anything useful about the SDK in the CUDA Getting Started Guide: http://docs.nvidia.com/cuda/cuda-getting-started-guide-for-linux/index.html

如何设置为 CUDA-SDK-PATH / p>

How should i set to the CUDA-SDK-PATH?

推荐答案

如果您计划使用CUDA 5或更高版本,则需要修改您尝试编译的代码以删除或替换依赖于 libcutil 。这是CUDA SDK在版本4及更早版本中的非官方组件,已被弃用并从CUDA 5中删除。

If you are planning on using CUDA 5 or later, it be necessary to modify the code you are trying compile to remove or replace dependencies on libcutil. That was an unofficial component of the CUDA SDK in version 4 and earlier and has been deprecated and removed from CUDA 5.

另一种方法是使用CUDA 4.2构建代码或者尝试使用CUDA 5工具链从CUDA 4.2 SDK源构建库。我对后者没有个人经验,不知道是否可行。

The alternative would be to build the code with CUDA 4.2 or to try building the library from the CUDA 4.2 SDK source using the CUDA 5 toolchain. I have no personal experience with the latter and don't know whether it is feasible or not.

这篇关于使用CUDA 5.0时对cutil的依赖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆