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

[src] Make CachingOptimizingCompiler thread safe. Thx: Arseniy Gorin #2288

Merged
merged 3 commits into from
Mar 22, 2018

Conversation

danpovey
Copy link
Contributor

No description provided.

@btiplitz
Copy link
Contributor

You can add thread safety but right now if a kernel does a Malloc as the same time as user space, the gpu will deadlock

@danpovey
Copy link
Contributor Author

danpovey commented Mar 18, 2018 via email

@btiplitz
Copy link
Contributor

Oh I misread the comment. Ignore what I said

@@ -248,7 +248,7 @@ void DecodableNnetSimple::DoNnetComputation(
request.outputs.resize(1);
request.outputs[0].Swap(&output_spec);

const NnetComputation *computation = compiler_.Compile(request);
std::shared_ptr<const NnetComputation> computation = compiler_.Compile(request);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please apply the same fix in nnet3-xvector-compute.cc:47

@danpovey danpovey merged commit dbd513c into kaldi-asr:master Mar 22, 2018
LvHang pushed a commit to LvHang/kaldi that referenced this pull request Apr 14, 2018
…aldi-asr#2288)

Conflicts:
	src/nnet3/nnet-optimize-utils.cc
	src/nnet3/nnet-optimize.cc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants