dmlc / gluon-cv

Gluon CV Toolkit
http://gluon-cv.mxnet.io
Apache License 2.0
5.82k stars 1.21k forks source link

Pretty high cpu load when import mxnet #268

Open fighting-liu opened 6 years ago

fighting-liu commented 6 years ago

When i import mxnet in 8 processes simultaneously, all cpu resources will be used and the program stagnates for almost 5 minutes.

It works well for mxnet1.1 but failed for mxnet1.2 and mxnet1.3 Following is the sample code

import multiprocessing

def mxnet_worker():
    print 'before import'
    import mxnet 
    print 'after import'

read_process = [multiprocessing.Process(target=mxnet_worker) for i in range(8)]
for p in read_process:
    p.daemon = True
    p.start()

Any solution to this for mxnet1.2 and mxnet1.3? Thanks.

zhreshold commented 6 years ago

For mxnet only problems, can you post it on https://github.com/apache/incubator-mxnet/issues?