mxnet icon indicating copy to clipboard operation
mxnet copied to clipboard

always error :compile with USE_DIST_KVSTORE=1 to use dist_sync

Open cupermanrose opened this issue 10 years ago • 8 comments

I want test ./image-classification/train_mnist.py in dist-training on local machine.But always error at :compile with USE_DIST_KVSTORE=1 to use dist_sync.It even error when I test "kv = mxnet.kv.create('dist_sync')" in Python.I have modified and compiled config.mk before I tested.Could you give me some help?

cupermanrose avatar Dec 14 '15 07:12 cupermanrose

are you using windows? it seems that we didn't test the distributed version at windows yet, i'll have a look once i got my new surface setup @hjk41

mli avatar Dec 14 '15 18:12 mli

@mli It errors in Linux.When I first compiled,the makefile is "USE_DIST_KVSTORE=0".Then I changed the makefile , "make clean_all" and make again like you say in one issue. image

cupermanrose avatar Dec 15 '15 03:12 cupermanrose

It is likely you need to reinstall the package after you remaked the project.

tqchen avatar Dec 15 '15 03:12 tqchen

so your compilation is finished successfully? from the error log, it seems that you installed the python package. i suggest you to reinstall the python package since the libmxnet.so is changed.

mli avatar Dec 15 '15 03:12 mli

see option 2 in http://mxnet.readthedocs.org/en/latest/build.html#python-package-installation

tqchen avatar Dec 15 '15 03:12 tqchen

@ml @tqchen Thanks a lot!I deleted the python package and updated mxnet.And I run image-classification/train_mnist.py with dist_sync successfully.I think it was ending training but throw exception like this image

One more question,does it make error if I just type "import mxnet;kv = mxnet.kv.create('dist_sync')" in python?(when I tested ,the error log image ) If it will be wrong,I think the doc http://mxnet.readthedocs.org/en/latest/distributed_training.html need to have a little modification.

cupermanrose avatar Dec 15 '15 05:12 cupermanrose

if you use dist_sync or dist_async, we often expect that you run the program by tools/launch.py, rather than just python

see example

https://github.com/dmlc/mxnet/tree/master/example/image-classification#distributed-training

mli avatar Dec 15 '15 05:12 mli

@mli ok,thanks for help!

cupermanrose avatar Dec 15 '15 06:12 cupermanrose