在哪里可以找到 CUDA 的 cutil_math.h? [英] Where to find CUDA's cutil_math.h?

查看:26
本文介绍了在哪里可以找到 CUDA 的 cutil_math.h?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

CUDA 常见问题解答 说:

CUDA 定义了 float4 等向量类型,但不包含任何默认情况下对它们进行操作.但是,您可以定义自己的使用标准 C++ 的运算符.CUDA SDK 包含一个标头"cutil_math.h" 定义了对向量的一些常用操作类型.

CUDA defines vector types such as float4, but doesn't include any operators on them by default. However, you can define your own operators using standard C++. The CUDA SDK includes a header "cutil_math.h" that defines some common operations on the vector types.

但是我无法使用 CUDA SDK 5.0 找到它.它是否已被删除/重命名?

However I can not find this using CUDA SDK 5.0. Has it been removed/renamed?

我找到了一个版本的标题 这里.它与 SDK 自带的有什么关系?

I've found a version of the header here. How is it related to the one that's supposed to come with SDK?

推荐答案

cutil 功能已从 CUDA 5.0 示例(即SDK")中删除.您仍然可以下载以前的 SDK 并在 CUDA 5 下编译它,您应该拥有一切以前的 SDK 附带的.

The cutil functionality was deleted from the CUDA 5.0 Samples (i.e. the "SDK"). You can still download a previous SDK and compile it under CUDA 5, you should then have everything that came with previous SDK's.

nvidia 在 CUDA 5.0 发行说明(CUDA_Samples_Release_Notes.pdf,随样本一起安装)中给出了官方通知.至于为什么,我想 nvidia 关于 cutil 的情绪可能类似于 here "不适合在实际应用中使用.完全不支持但人们在实际应用中使用它.所以尝试阻止这种情况的一种方法是删除它,我想.这只是猜测.

The official notice was given by nvidia in the CUDA 5.0 release notes (CUDA_Samples_Release_Notes.pdf, installed with the samples). As to why, I imagine that the nvidia sentiment regarding cutil probably was something like what is expressed here "not suitable for use in a real application. It is completely unsupported" but people were using it in real applications. So one way to try put a stop to that is to delete it, I suppose. That's just speculation.

请注意发行说明中提供的一些其他有用信息:

Note some additional useful info provided in the release notes:

CUTIL 已随 CUDA 5.0 中的 CUDA 示例一起删除,并被替换使用 NVIDIA_CUDA-5.0/common/inc 中的辅助函数:helper_cuda.h,helper_cuda_gl.h,helper_cuda_drvapi.h,helper_functions.h,helper_image.h,helper_math.h,helper_string.h,helper_timer.h

CUTIL has been removed with the CUDA Samples in CUDA 5.0, and replaced with helper functions found in NVIDIA_CUDA-5.0/common/inc: helper_cuda.h, helper_cuda_gl.h, helper_cuda_drvapi.h, helper_functions.h, helper_image.h, helper_math.h, helper_string.h, helper_timer.h

这些辅助函数处理 CUDA 设备初始化、CUDA 错误检查、字符串解析、图像文件加载和保存,以及定时功能.CUDA 示例项目没有不再有对 CUTIL 的引用和依赖,现在使用这些未来的辅助函数.

These helper functions handle CUDA device initialization, CUDA error checking, string parsing, image file loading and saving, and timing functions. The CUDA Samples projects no longer have references and dependencies to CUTIL, and now use these helper functions going forward.

因此,您可能会在其中一些头文件中找到有用的功能.

So you may find useful functions in some of those header files.

这篇关于在哪里可以找到 CUDA 的 cutil_math.h?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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