main .cu function question

It looks like your include does not work. Try to include cuda.h or some of those. cutil.h is only for the CUDA_SAFE_CALL, CUT_SAFE_CALL and other utilities… cutil is not the CUDA runtime…