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

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -