The thing you need to do is remove -Xptxas -abi=no from NVCCFLAGS. -Xptxas tells nvcc that the parameter following it is to be passed to ptxas. Similarly -Xcompiler for parameters passed to the C compiler. So if you just remove -abi=no nvcc will take the next parameter, -Xcompiler, as to be passed to ptxas, then complain about -fPIC. This took me a while to figure out (eventually finding and reading the right manual cracked it).
I hope this saves someone a bit of puzzling.
Chris
|