cuda - remove include path in nvcc -
i trying extend vector support cuda, e.g, overriding operators in vector structures. modifying default vector_types.h file. not possible in multi-user environment don't have permission modify it.
hence, decided create new vector_types.h , not include original vector_types.h. seems nvcc automatically includes file don't include in code. question is there anyway change behavior of nvcc?
any appreciated.
thanks
you can create separate header file , include vector_types.h
there:
// vector_types_ext.h #include <vector_types.h> __device__ float4 operator +(float4 a, float4 b) { // ... }
Comments
Post a Comment