[CUDA] newbie question about CUT/CUDA_SAFE_CALL newbie question

Hey all,

I just started programming CUDA as home project but also to see if it is interesting within our company … now i have read the programming guide and so … and now i am starting with programming + looking at examples to see some real live code …

Anyway, i am looking at the alignment example within the CUDA toolkit SDKj and there i noticed the following functions …

-CUDA_SAFE_CALL() and CUT_SAFE_CALL()
-CUT_DEVICE_INIT()
-CUT_EXIT

Now i don’t find any documentation about those functions and what they exactly do … could someone please explain to me what they do or point me to the right documentation …

Thanks for your help in advance, it is really appreciated …

Kind regards,

Tim

The first two are debug macros to check for errors when calling cutil and cuda functions, respectively.

The other two are helper macros just to insert correct context initialization and termination code.

They’re all defined in <cutil.h>.

thanks for answering my question …