kokkos / nvcc_wrapper

Wrapper shell script for NVIDIA nvcc to better conform to host compiler command line arguments
7 stars 13 forks source link

nvcc_wrapper breaks when using -O which is a valid optimization on host compilers #28

Closed nmhamster closed 5 years ago

nmhamster commented 5 years ago

Reported by @jhux2 - Issue with nvcc_wrapper where it breaks if -O is used to signify optimization.

Example:

$ NVCC_WRAPPER_SHOW_COMMANDS_BEING_RUN=1 /home/sdhammo/git/nvcc-wrapper-nmhamster-github-repo/nvcc_wrapper -o hello-nvcc-wrapper -O hello.cc

Will yield output:

nvcc  -ccbin /home/projects/ppc64le/ibm/xlC/16.1.1/bin/xlC -arch=sm_35  -O    -x cu  hello.cc   -o hello-nvcc-wrapper

with error:

nvcc fatal   : '-x': expected a number
ibaned commented 5 years ago

It looks like there was a PR to fix this. closing, please comment if not fixed.