Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build error #7

Open
waky80 opened this issue Jan 8, 2021 · 1 comment
Open

build error #7

waky80 opened this issue Jan 8, 2021 · 1 comment

Comments

@waky80
Copy link

waky80 commented Jan 8, 2021

I tried building Nimble.
I had the following error.
Can you help me?

Than you.

=========================================================================================

[1581/2921] Building NVCC (Device) object caffe2/CMakeFiles/torch.dir/__/aten/src/ATen/native/cuda/torch_generated_UnaryOpsKernel.cu.o
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "setup.py", line 755, in
build_deps()
File "setup.py", line 316, in build_deps
cmake=cmake)
File "/root/nimble/tools/build_pytorch_libs.py", line 62, in build_caffe2
cmake.build(my_env)
File "/root/nimble/tools/setup_helpers/cmake.py", line 335, in build
self.run(build_args, my_env)
File "/root/nimble/tools/setup_helpers/cmake.py", line 141, in run
check_call(command, cwd=self.build_dir, env=env)
File "/root/anaconda3/envs/nimble/lib/python3.6/subprocess.py", line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', 'install', '--config', 'Release', '--', '-j', '48']' returned non-zero exit status 1.

@gyeongin
Copy link
Contributor

gyeongin commented Jan 8, 2021

Thanks for you interest!
I think this error is not relevant to the changes (for Nimble) we've made in PyTorch's codebase.
In fact, the log that you've attached above has no information about which part of the code made the compilation unsuccessful.
Can you first "clean" your build history (simply run python setup.py clean) and then retry the build again?

If you still have problem after cleaning the history, I think you should first try building PyTorch v1.4.1 because I expect you will have the same problem in building the original PyTorch codebase.

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

No branches or pull requests

2 participants