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

查看:971
本文介绍了在哪里可以找到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?

我找到了一个版本的标题此处

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,随示例一起安装)中给出。至于为什么,我想象关于cutil的nvidia情感可能是什么像这里不适用于实际应用程序,完全不受支持但人们在实际应用中使用它。所以,一种尝试停止,那就是删除它,我想。

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天全站免登陆