While compiling mex
files with nvcc
I have struggled to pass compiler options specific to CUDA to the nvcc
compiler, as mex
doesn't recognize them.
I found some old posts about passing compiler flags and some newer ones,
but the questions are quite user-specific, and the mex
compiler has changed over the years, so I cant figure out what to do.
So, my specific question: What should I do to make mex
pass compiler flags to nvcc
?
A bit more generic: What should one do to make mex
pass compiler flags to another compiler?