Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete the obsolete BatchedThreadedNnet3CudaPipeline? #4546

Closed
kkm000 opened this issue May 28, 2021 · 4 comments
Closed

Delete the obsolete BatchedThreadedNnet3CudaPipeline? #4546

kkm000 opened this issue May 28, 2021 · 4 comments
Assignees

Comments

@kkm000
Copy link
Contributor

kkm000 commented May 28, 2021

@hugovbraun, @galv, @danpovey, the module has been declared obsolete 13 months ago in 0bca93e. Is it the time to 👎 it? It has a maintenance burden.

~/work/kaldi/src[master]$ git show 0bca93ea34 cudadecoder/batched-threaded-nnet3-cuda-pipeline.cc
commit 0bca93ea3466b467748105fedbdf16c52383e402
Author: Hugo Braun <hbraun@nvidia.com>
Date:   Thu Apr 30 20:20:34 2020 -0700

    [src] CUDA Online/Offline pipelines + light batched nnet3 driver (#3568)
. . .
--- a/src/cudadecoder/batched-threaded-nnet3-cuda-pipeline.cc
+++ b/src/cudadecoder/batched-threaded-nnet3-cuda-pipeline.cc
@@ -23,12 +23,18 @@
 #include <nvToolsExt.h>
 #include "base/kaldi-utils.h"

+// This pipeline is deprecated and will be removed. Please switch to
+// batched-threaded-nnet3-cuda-pipeline2
+
 namespace kaldi {
 namespace cuda_decoder {

 void BatchedThreadedNnet3CudaPipeline::Initialize(
     const fst::Fst<fst::StdArc> &decode_fst, const nnet3::AmNnetSimple &am_nnet,
     const TransitionModel &trans_model) {
+  KALDI_LOG << "\n\nIMPORTANT: This pipeline is deprecated. Please switch to "
+               "cudadecoderbin/batch-wav-nnet3-cuda2 (binary) or "
+               "cudadecoder/batched-threaded-nnet3-cuda-pipeline2.h (class)\n";
   KALDI_LOG << "BatchedThreadedNnet3CudaPipeline Initialize with "
             << config_.num_control_threads << " control threads, "
             << config_.num_worker_threads << " worker threads"
@kkm000 kkm000 self-assigned this May 28, 2021
@danpovey
Copy link
Contributor

danpovey commented May 28, 2021 via email

@kkm000
Copy link
Contributor Author

kkm000 commented May 28, 2021

Well, I'm patching it for the second time already (because of CudaFst rework, found the double-free. cuda-memcheck is a pig: it did not detect it). When it would need a third change, I'll kill it. Sounds good?

It's always possible to go back to a pre-delete commit and get it. It won't evaporate completely. As long as the complainers maintain it and not me, I'm totally cool! :)

@danpovey
Copy link
Contributor

danpovey commented May 28, 2021 via email

@kkm000
Copy link
Contributor Author

kkm000 commented May 30, 2021

Closing this to reduce clutter.

@kkm000 kkm000 closed this as completed May 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants