Hi
How do you disable the pre-including of header files that nvcc does when compiling *.cu files? For example this file will compile if compiled as a .cu file even though the headers aren’t there.
#include <stdio.h>
int
main(int argc, char* argv[])
{
void* dev;
cudaError_t err;
err = cudaMalloc(&dev, 1024);
cudaFree(dev);
return 0;
}
It will compile with nvcc -o test test.cu. nvcc -E test.cu shows a bunch of include files being shoved into this automatically. How do I disable this?