Skip to content

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

Merged
danpovey merged 3 commits intokaldi-asr:masterfrom
danpovey:compiler_thread_safe
Mar 22, 2018
Merged

[src] Make CachingOptimizingCompiler thread safe. Thx: Arseniy Gorin#2288
danpovey merged 3 commits intokaldi-asr:masterfrom
danpovey:compiler_thread_safe

Conversation

@danpovey
Copy link
Contributor

No description provided.

@danpovey danpovey force-pushed the compiler_thread_safe branch from a8b1fc1 to e4da298 Compare March 17, 2018 22:02
@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

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