kaldi-asr / kaldi

kaldi-asr/kaldi is the official location of the Kaldi project.
http://kaldi-asr.org
Other
14.12k stars 5.31k forks source link

use last segment of the CXX as the ccbin compiler for cuda #4778

Closed jtrmal closed 2 years ago

jtrmal commented 2 years ago

This is a minor change to help in situation where the CXX variable is set to e.g. ccache g++ The nvcc will fail to parse this correctly both in cases where the name is escaped and when it's not escaped, i.e. both

-ccbin ccache g++ 

and

-ccbin "ccache g++"

will fail, causing compilation failure. This solves the issue.