In my Makefile I want to compile cuda source files with dependency generation. The rule
%.o : %.cu
$(NVCC) $(NVCCFLAGS) -c $< -o $@ -MMD
works just fine, but notice I don’t include -MP flag (NVCC :: CUDA Toolkit Documentation). If I add the -MP flag after -MMD I get an error:
nvcc fatal : Unknown option '-MP'
… I don’t see why it wouldn’t work, is this a WSL-specific problem?