kaldi-asr / kaldi

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

Error when build docker GPU image ubuntu22.04-cuda12.2.0 #4889

Closed asr-lord closed 2 weeks ago

asr-lord commented 10 months ago

Using Dockerfile: https://github.com/kaldi-asr/kaldi/tree/master/docker/ubuntu22.04-cuda12.2.0/Dockerfile to build the image I get the following error Unknown argument: --use-cuda, exiting:

167.7 make[1]: Leaving directory '/opt/kaldi/tools/openfst-1.7.2'
167.7 rm -f openfst
167.7 ln -s openfst-1.7.2 openfst
167.7 -e 
167.7 
167.7 
167.7 Warning: IRSTLM is not installed by default anymore. If you need IRSTLM
167.7 Warning: use the script extras/install_irstlm.sh
167.7 All done OK.
167.7 Unknown argument: --use-cuda, exiting
167.7 'configure' configures Kaldi installation.
167.7 
167.7 Usage: [VAR=VALUE]... ./configure [OPTION]...
167.7 
167.7 The default configuration is to build and link against static Kaldi libraries.
167.7 OpenFst and Math libraries are linked dynamically.
167.7 
167.7 Configuration options:
167.7   --help                Display this help message and exit
167.7   --version             Display the version of 'configure' and exit
167.7   --static              Build and link against static libraries [default=no]
167.7   --shared              Build and link against shared libraries [default=no]
167.7   --use-cuda            Build with CUDA [default=yes]
167.7   --with-cudadecoder    Build with CUDA decoder [default=yes]
167.7   --cudatk-dir=DIR      CUDA toolkit directory
167.7   --cuda-arch=FLAGS     Override the default CUDA_ARCH flags. See:

I solve adding "yes" value to "use-cuda" option on this line in Dockerfile https://github.com/kaldi-asr/kaldi/blob/master/docker/ubuntu22.04-cuda12.2.0/Dockerfile#L40: ./configure --shared --use-cuda=yes && \

jtrmal commented 2 weeks ago

this was included in the PR #4942 Thanks for reporting this!