Skip to content

Conversation

@kazum
Copy link
Contributor

@kazum kazum commented Oct 27, 2018

When running modules in multiple threads, OpenCLModule can start before OpenCLWorkspace completes Init() and it causes segmentation fault.

I added support for multithreading to apps/benchmark/gpu_imagenet_bench.py. You can reproduce the problem with the following command.

python apps/benchmark/gpu_imagenet_bench.py --target opencl --network resnet-18 --thread 2

@tqchen @nishi-t Can you please review?

@tqchen tqchen merged commit b5b51f0 into apache:master Oct 28, 2018
@tqchen
Copy link
Member

tqchen commented Oct 28, 2018

Thanks @kazum ! this is merged

eqy pushed a commit to eqy/tvm that referenced this pull request Oct 29, 2018
@kazum kazum deleted the opencl-module-race-condition branch October 30, 2018 02:15
FrozenGene pushed a commit to FrozenGene/tvm that referenced this pull request Dec 27, 2018
wweic pushed a commit to neo-ai/tvm that referenced this pull request Feb 20, 2019
wweic pushed a commit to neo-ai/tvm that referenced this pull request Feb 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants