I've only been including vector_helpers.cuh in the .cu file. I think cuda.h is being included because I include libavutil/hwcontext_cuda_internal.h in the c file. I was looking at vf_thumbnail_cuda.c for reference and I copied the line #include "libavutil/hwcontext_cuda_internal.h".