UPSNet icon indicating copy to clipboard operation
UPSNet copied to clipboard

Extension horovod.torch has not been built.

Open general-wang opened this issue 5 years ago • 4 comments

Hello, After I run : python upsnet/upsnet_end2end_train.py --cfg upsnet/experiments/upsnet_resnet50_coco.yaml

I encountered that: ImportError: Extension horovod.torch has not been built. If this is not expected, reinstall Horovod with HOROVOD_WITH_PYTORCH=1 to debug the build error.

How should I do? Thanks for answering.

Traceback (most recent call last): File "/home/anaconda3/envs/pytorch1.0_python3.5/lib/python3.5/site-packages/horovod/torch/init.py", line 24, in file, 'mpi_lib_v2') File "/home/anaconda3/envs/pytorch1.0_python3.5/lib/python3.5/site-packages/horovod/common/init.py", line 48, in check_extension 'Horovod with %s=1 to debug the build error.' % (ext_name, ext_env_var)) ImportError: Extension horovod.torch has not been built. If this is not expected, reinstall Horovod with HOROVOD_WITH_PYTORCH=1 to debug the build error.

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "upsnet/upsnet_end2end_train.py", line 44, in import horovod.torch as hvd File "/home/anaconda3/envs/pytorch1.0_python3.5/lib/python3.5/site-packages/horovod/torch/init.py", line 27, in file, 'mpi_lib', '_mpi_lib') File "/home/anaconda3/envs/pytorch1.0_python3.5/lib/python3.5/site-packages/horovod/common/init.py", line 48, in check_extension 'Horovod with %s=1 to debug the build error.' % (ext_name, ext_env_var))

general-wang avatar May 08 '19 04:05 general-wang

If you don't know how to run horovod properly, please use the 4gpu config file. And you can ask horovod-related issue at here: https://github.com/horovod/horovod

YuwenXiong avatar May 09 '19 15:05 YuwenXiong

OK, Thank you, YuwenXiong.

general-wang avatar May 10 '19 09:05 general-wang

If you don't know how to run horovod properly, please use the 4gpu config file. And you can ask horovod-related issue at here: https://github.com/horovod/horovod

hello,have you help him solve this problem?

lushishuai avatar Jan 14 '20 10:01 lushishuai

my algorithm also has the problem:

ImportError: Extension horovod.torch has not been built:If this is not expected, reinstall Horovod with HOROVOD_WITH_PYTORCH=1 to debug the build error.

could any suggestions for solving this problem?

chauncygu avatar Jan 10 '21 09:01 chauncygu