Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

cuda

nvidia

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...

like image 396
Manuel Avatar asked Sep 18 '12 09:09

Manuel


1 Answers

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 Samples\v5.0\C\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, 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.

like image 169
l4mpi Avatar answered Sep 21 '22 14:09

l4mpi