如何在 Linux 中包含 cutil.h

发布于 2024-09-24 13:19:00 字数 54 浏览 1 评论 0原文

我不知道如何在linux中包含cutil.h,我知道它在哪里,但我不知道如何包含它。请出主意。

I don't know how to include cutil.h in linux, i know where it is, but I don't know how to include it. Ideas please.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

最佳男配角 2024-10-01 13:19:00
#include <cutil.h>

找出 cutil.h 的位置:

sudo updatedb; locate cutil.h

nvcc -I /usr/local/cuda/include ...

适合您

nvcc -I ~/NVIDIA_GPU_Computing/C/common/inc test.cu -o test
#include <cutil.h>

find out where cutil.h is:

sudo updatedb; locate cutil.h

nvcc -I /usr/local/cuda/include ...

for you

nvcc -I ~/NVIDIA_GPU_Computing/C/common/inc test.cu -o test
探春 2024-10-01 13:19:00

确保您的可执行脚本具有以下内容:

-I/usr/local/cuda/include \
-L/usr/local/cuda/lib64 \
-I/$HOME/NVIDIA_GPU_Computing_SDK/C/common/inc/ \
-L/$HOME/NVIDIA_GPU_Computing_SDK/C/lib -lcutil_x86_64 \

显然,假设 SDK 位于您的主目录中。

Make sure your executable script has the following:

-I/usr/local/cuda/include \
-L/usr/local/cuda/lib64 \
-I/$HOME/NVIDIA_GPU_Computing_SDK/C/common/inc/ \
-L/$HOME/NVIDIA_GPU_Computing_SDK/C/lib -lcutil_x86_64 \

Obviously the assumption is that the SDK is in your home directory.

说好的呢 2024-10-01 13:19:00
#include <cutil.h>
#include <cutil.h>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文