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

compile the code #18

Open
lyltc1 opened this issue Jun 22, 2022 · 1 comment
Open

compile the code #18

lyltc1 opened this issue Jun 22, 2022 · 1 comment

Comments

@lyltc1
Copy link

lyltc1 commented Jun 22, 2022

when I install with the "python setup.py install",
the problem raised as
`g++ -pthread -B /home/lyltc/miniconda3/envs/cir/compiler_compat -shared -Wl,--allow-shlib-undefined -Wl,-rpath,/home/lyltc/miniconda3/envs/cir/lib -Wl,-rpath-link,/home/lyltc/miniconda3/envs/cir/lib -L/home/lyltc/miniconda3/envs/cir/lib -Wl,--allow-shlib-undefined -Wl,-rpath,/home/lyltc/miniconda3/envs/cir/lib -Wl,-rpath-link,/home/lyltc/miniconda3/envs/cir/lib -L/home/lyltc/miniconda3/envs/cir/lib /home/lyltc/git/lietorch/build/temp.linux-x86_64-3.8/lietorch/src/lietorch.o /home/lyltc/git/lietorch/build/temp.linux-x86_64-3.8/lietorch/src/lietorch_gpu.o /home/lyltc/git/lietorch/build/temp.linux-x86_64-3.8/lietorch/src/lietorch_cpu.o -L/home/lyltc/miniconda3/envs/cir/lib/python3.8/site-packages/torch/lib -L/usr/local/cuda-11.1/lib64 -lc10 -ltorch -ltorch_cpu -ltorch_python -lcudart -lc10_cuda -ltorch_cuda_cu -ltorch_cuda_cpp -o build/lib.linux-x86_64-3.8/lietorch_backends.cpython-38-x86_64-linux-gnu.so

g++: error: /home/lyltc/git/lietorch/build/temp.linux-x86_64-3.8/lietorch/src/lietorch.o: No such file or directory
g++: error: /home/lyltc/git/lietorch/build/temp.linux-x86_64-3.8/lietorch/src/lietorch_gpu.o: No such file or directory
g++: error: /home/lyltc/git/lietorch/build/temp.linux-x86_64-3.8/lietorch/src/lietorch_cpu.o: No such file or directory
`

@lyltc1
Copy link
Author

lyltc1 commented Jun 22, 2022

the full output is
python setup.py install
/home/lyltc/miniconda3/envs/cir/lib/python3.8/site-packages/setuptools/config/init.py:28: SetuptoolsDeprecationWarning: As setuptools moves its configuration towards pyproject.toml,
setuptools.config.parse_configuration became deprecated.

For the time being, you can use the setuptools.config.setupcfg module
to access a backward compatible API, but this module is provisional
and might be removed in the future.

warnings.warn(dedent(msg), SetuptoolsDeprecationWarning)
running install
running bdist_egg
running egg_info
writing lietorch.egg-info/PKG-INFO
writing dependency_links to lietorch.egg-info/dependency_links.txt
writing top-level names to lietorch.egg-info/top_level.txt
reading manifest file 'lietorch.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'lietorch.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/lietorch
copying lietorch/groups.py -> build/lib.linux-x86_64-3.8/lietorch
copying lietorch/init.py -> build/lib.linux-x86_64-3.8/lietorch
copying lietorch/group_ops.py -> build/lib.linux-x86_64-3.8/lietorch
copying lietorch/gradcheck.py -> build/lib.linux-x86_64-3.8/lietorch
copying lietorch/run_tests.py -> build/lib.linux-x86_64-3.8/lietorch
copying lietorch/broadcasting.py -> build/lib.linux-x86_64-3.8/lietorch
running build_ext
building 'lietorch_backends' extension
creating /home/lyltc/git/lietorch/build/temp.linux-x86_64-3.8
creating /home/lyltc/git/lietorch/build/temp.linux-x86_64-3.8/lietorch
creating /home/lyltc/git/lietorch/build/temp.linux-x86_64-3.8/lietorch/src
Emitting ninja build file /home/lyltc/git/lietorch/build/temp.linux-x86_64-3.8/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
1.11.0
g++ -pthread -B /home/lyltc/miniconda3/envs/cir/compiler_compat -shared -Wl,--allow-shlib-undefined -Wl,-rpath,/home/lyltc/miniconda3/envs/cir/lib -Wl,-rpath-link,/home/lyltc/miniconda3/envs/cir/lib -L/home/lyltc/miniconda3/envs/cir/lib -Wl,--allow-shlib-undefined -Wl,-rpath,/home/lyltc/miniconda3/envs/cir/lib -Wl,-rpath-link,/home/lyltc/miniconda3/envs/cir/lib -L/home/lyltc/miniconda3/envs/cir/lib /home/lyltc/git/lietorch/build/temp.linux-x86_64-3.8/lietorch/src/lietorch.o /home/lyltc/git/lietorch/build/temp.linux-x86_64-3.8/lietorch/src/lietorch_gpu.o /home/lyltc/git/lietorch/build/temp.linux-x86_64-3.8/lietorch/src/lietorch_cpu.o -L/home/lyltc/miniconda3/envs/cir/lib/python3.8/site-packages/torch/lib -L/usr/local/cuda-11.1/lib64 -lc10 -ltorch -ltorch_cpu -ltorch_python -lcudart -lc10_cuda -ltorch_cuda_cu -ltorch_cuda_cpp -o build/lib.linux-x86_64-3.8/lietorch_backends.cpython-38-x86_64-linux-gnu.so
g++: error: /home/lyltc/git/lietorch/build/temp.linux-x86_64-3.8/lietorch/src/lietorch.o: No such file or directory
g++: error: /home/lyltc/git/lietorch/build/temp.linux-x86_64-3.8/lietorch/src/lietorch_gpu.o: No such file or directory
g++: error: /home/lyltc/git/lietorch/build/temp.linux-x86_64-3.8/lietorch/src/lietorch_cpu.o: No such file or directory
error: command 'g++' failed with exit status 1

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

1 participant