I am trying to invoke nvcc and pass some options to the opencc compiler by using the -Xopencc switch. Here’s my line:
nvcc -v -keep -Xopencc -Wb,-ttexp:0x001 -I../../common/inc -o obj/release/matrixMul.cu.co -c matrixMul.cu
# nvopencc -TARG:compute_10 -Wb -ttexp:0x001 -m64 “matrixMul.cpp3.i” -o “matrixMul.ptx”
nvopencc ERROR parsing -Wb: unknown flag
nvopencc ERROR parsing -ttexp:0x001: unknown flag
My problem is with the way nvcc parses the -Xopencc options by splitting them in two (-Wb and -ttexp:0x001). I would like nvcc to treat it as a single option (-Wb,-ttexp:0x001). I tried escaping the comma but that didn’t work.
Thanks for your help,