Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
572 views
in Technique[技术] by (71.8m points)

cuda - CUDA5 Examples: Has anyone translated some cutil definitions to CUDA5?

Has anyone started to work with the CUDA5 SDK?
I have an old project that uses some cutil functions, but they've been abandoned in the new one.

The solution was that most functions can be translated from cutil*/cut* to a similar named sdk* equivalent from the helper*.h headers...

As an example: cutStartTimer becomes sdkCreateTimer Just that simple...

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Has anyone started to work with the CUDA5 SDK?

Probably.

Has anyone translated some cutil definitions to CUDA5?

Maybe. But why not just use the new header files intended to replace it? Quoted from the Beta release notes:

Prior to CUDA 5.0, CUDA Sample projects referenced a utility library with header and source files called cutil. This has been removed with the CUDA Samples in CUDA 5.0, and replaced with header files found in CUDA Samplesv5.0Ccommoninc

helper_cuda.h, helper_cuda_gl.h, helper_cuda_drvapi.h, helper_functions.h,
helper_image.h, helper_math.h, helper_string.h, and helper_timer.h

These files provide utility functions for 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 will now use these helper functions going forward.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...