Unable to link cutil.h in OS Lion
I've got a problem linking cutil.h on my MacBook Air (NVIDIA GeForce 320M 256 MB). The program just won't see it! All the drivers and packages are set up. I've tried it many different ways like putting the library into my project's folder and even adding it to libraries list. What do I do?
I've got a problem linking cutil.h on my MacBook Air (NVIDIA GeForce 320M 256 MB). The program just won't see it! All the drivers and packages are set up. I've tried it many different ways like putting the library into my project's folder and even adding it to libraries list. What do I do?

#1
Posted 11/15/2011 05:34 AM   
cutil.h is a header file and gets included, not linked. If you are seeing linker errors, that is because the object file (cutil.cpp.o) is missing in your project, not cutil.h.

In general, don't include cutil into your own projects though. It's a mess and not supported by Nvidia. If you need some function of it, move it to your own sourcecode and maintain it yourself.
cutil.h is a header file and gets included, not linked. If you are seeing linker errors, that is because the object file (cutil.cpp.o) is missing in your project, not cutil.h.



In general, don't include cutil into your own projects though. It's a mess and not supported by Nvidia. If you need some function of it, move it to your own sourcecode and maintain it yourself.

Always check return codes of CUDA calls for errors. Do not use __syncthreads() in conditional code unless the condition is guaranteed to evaluate identically for all threads of each block. Run your program under cuda-memcheck to detect stray memory accesses. If your kernel dies for larger problem sizes, it might exceed the runtime limit and trigger the watchdog timer.

#2
Posted 11/15/2011 10:21 AM   
Scroll To Top