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

import deepwave error #44

Closed
izzatum opened this issue Jun 18, 2022 · 6 comments
Closed

import deepwave error #44

izzatum opened this issue Jun 18, 2022 · 6 comments

Comments

@izzatum
Copy link

izzatum commented Jun 18, 2022

Hi Alan,

I installed the latest version of deepwave, and the installation went smoothly. However, I received an error when I imported the package. Kindly find the error messages below. Thanks! -Muhammad

`Python 3.10.4 (main, Mar 31 2022, 08:41:55) [GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import torch
import deepwave

Traceback (most recent call last):
File "/home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1740, in _run_ninja_build
subprocess.run(
File "/home/izzatum/anaconda3/envs/metaot/lib/python3.10/subprocess.py", line 524, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "", line 1, in
File "/home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/deepwave/init.py", line 26, in
torch.utils.cpp_extension.load(
File "/home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1144, in load
return _jit_compile(
File "/home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1357, in _jit_compile
write_ninja_file_and_build_library(
File "/home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1469, in write_ninja_file_and_build_library
run_ninja_build(
File "/home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1756, in run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error building extension 'deepwave': [1/5] c++ -MMD -MF scalar.o.d -DTORCH_EXTENSION_NAME=deepwave -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="gcc" -DPYBIND11_STDLIB="libstdcpp" -DPYBIND11_BUILD_ABI="cxxabi1011" -isystem /home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/torch/include -isystem /home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -isystem /home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/torch/include/TH -isystem /home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/torch/include/THC -isystem /home/izzatum/anaconda3/envs/metaot/include/python3.10 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++14 -march=native -Ofast -fopenmp -c /home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/deepwave/scalar.cpp -o scalar.o
[2/5] c++ -MMD -MF scalar_born.o.d -DTORCH_EXTENSION_NAME=deepwave -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="gcc" -DPYBIND11_STDLIB="libstdcpp" -DPYBIND11_BUILD_ABI="cxxabi1011" -isystem /home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/torch/include -isystem /home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -isystem /home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/torch/include/TH -isystem /home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/torch/include/THC -isystem /home/izzatum/anaconda3/envs/metaot/include/python3.10 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++14 -march=native -Ofast -fopenmp -c /home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/deepwave/scalar_born.cpp -o scalar_born.o
[3/5] /usr/bin/nvcc -DTORCH_EXTENSION_NAME=deepwave -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="gcc" -DPYBIND11_STDLIB="libstdcpp" -DPYBIND11_BUILD_ABI="cxxabi1011" -isystem /home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/torch/include -isystem /home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -isystem /home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/torch/include/TH -isystem /home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/torch/include/THC -isystem /home/izzatum/anaconda3/envs/metaot/include/python3.10 -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS
-D__CUDA_NO_BFLOAT16_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
--expt-relaxed-constexpr -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75 --compiler-options '-fPIC' --restrict -O3 --use_fast_math -std=c++14 -c /home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/deepwave/scalar.cu -o scalar.cuda.o
FAILED: scalar.cuda.o
/usr/bin/nvcc -DTORCH_EXTENSION_NAME=deepwave -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="gcc" -DPYBIND11_STDLIB="libstdcpp" -DPYBIND11_BUILD_ABI="cxxabi1011" -isystem /home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/torch/include -isystem /home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -isystem /home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/torch/include/TH -isystem /home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/torch/include/THC -isystem /home/izzatum/anaconda3/envs/metaot/include/python3.10 -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS
-D__CUDA_NO_BFLOAT16_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
--expt-relaxed-constexpr -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75 --compiler-options '-fPIC' --restrict -O3 --use_fast_math -std=c++14 -c /home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/deepwave/scalar.cu -o scalar.cuda.o
/home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/deepwave/scalar.cu(522): error: expression must have a constant value
/home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/deepwave/scalar.cu(522): note: attempt to access run-time storage

/home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/deepwave/scalar.cu(522): error: expression must have a constant value
/home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/deepwave/scalar.cu(522): note: attempt to access run-time storage

/home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/deepwave/scalar.cu(676): error: expression must have a constant value
/home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/deepwave/scalar.cu(676): note: attempt to access run-time storage

/home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/deepwave/scalar.cu(676): error: expression must have a constant value
/home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/deepwave/scalar.cu(676): note: attempt to access run-time storage

4 errors detected in the compilation of "/tmp/tmpxft_000a4225_00000000-4_scalar.cpp4.ii".
[4/5] /usr/bin/nvcc -DTORCH_EXTENSION_NAME=deepwave -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="gcc" -DPYBIND11_STDLIB="libstdcpp" -DPYBIND11_BUILD_ABI="cxxabi1011" -isystem /home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/torch/include -isystem /home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -isystem /home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/torch/include/TH -isystem /home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/torch/include/THC -isystem /home/izzatum/anaconda3/envs/metaot/include/python3.10 -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS_ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75 --compiler-options '-fPIC' --restrict -O3 --use_fast_math -std=c++14 -c /home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/deepwave/scalar_born.cu -o scalar_born.cuda.o
FAILED: scalar_born.cuda.o
/usr/bin/nvcc -DTORCH_EXTENSION_NAME=deepwave -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="gcc" -DPYBIND11_STDLIB="libstdcpp" -DPYBIND11_BUILD_ABI="cxxabi1011" -isystem /home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/torch/include -isystem /home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -isystem /home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/torch/include/TH -isystem /home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/torch/include/THC -isystem /home/izzatum/anaconda3/envs/metaot/include/python3.10 -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS_ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75 --compiler-options '-fPIC' --restrict -O3 --use_fast_math -std=c++14 -c /home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/deepwave/scalar_born.cu -o scalar_born.cuda.o
/home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/deepwave/scalar_born.cu(867): error: expression must have a constant value
/home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/deepwave/scalar_born.cu(867): note: attempt to access run-time storage

/home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/deepwave/scalar_born.cu(867): error: expression must have a constant value
/home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/deepwave/scalar_born.cu(867): note: attempt to access run-time storage

/home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/deepwave/scalar_born.cu(1090): error: expression must have a constant value
/home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/deepwave/scalar_born.cu(1090): note: attempt to access run-time storage

/home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/deepwave/scalar_born.cu(1090): error: expression must have a constant value
/home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/deepwave/scalar_born.cu(1090): note: attempt to access run-time storage

/home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/deepwave/scalar_born.cu(1090): error: expression must have a constant value
/home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/deepwave/scalar_born.cu(1090): note: attempt to access run-time storage

/home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/deepwave/scalar_born.cu(1090): error: expression must have a constant value
/home/izzatum/anaconda3/envs/metaot/lib/python3.10/site-packages/deepwave/scalar_born.cu(1090): note: attempt to access run-time storage

6 errors detected in the compilation of "/tmp/tmpxft_000a4226_00000000-4_scalar_born.cpp4.ii".
ninja: build stopped: subcommand failed.
`

@ar4
Copy link
Owner

ar4 commented Jun 18, 2022 via email

@izzatum
Copy link
Author

izzatum commented Jun 18, 2022

Hi Alan,

Here you go:

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Sun_Jul_28_19:07:16_PDT_2019
Cuda compilation tools, release 10.1, V10.1.243

@ar4
Copy link
Owner

ar4 commented Jun 18, 2022 via email

@ar4
Copy link
Owner

ar4 commented Jun 18, 2022 via email

@izzatum
Copy link
Author

izzatum commented Jun 18, 2022

Hi Alan,

Thanks a lot! I have installed version 0.0.12, and works just fine. :)

@izzatum izzatum closed this as completed Jun 18, 2022
@ar4
Copy link
Owner

ar4 commented Jun 18, 2022 via email

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