-
Notifications
You must be signed in to change notification settings - Fork 47
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
Comments
Hi Muhammad,
Oh dear. Thank you for reporting it. Can you tell me which version of the
nvcc compiler you are using? I will install it and try to reproduce the
error so that I can fix it.
|
Hi Alan, Here you go: nvcc: NVIDIA (R) Cuda compiler driver |
Hi Muhammad,
I was able to reproduce the error - it occurs with version 10.1 of the
nvcc compiler, but not with version 11 that I was using to test it. I
think I have found the problem and fixed it. I will do a bit more
testing before releasing it, but if you would like to use the new
version now you should be able to install the latest commit using pip
install git+https://github.com/ar4/deepwave.git I hope it works.
|
I have now released the version with the fix as version 0.0.12.
|
Hi Alan, Thanks a lot! I have installed version 0.0.12, and works just fine. :) |
Great news!
As I may have mentioned before, you might find it a bit slower than v0.0.9,
but I am working on improving it and hope to release a faster version in a
few weeks.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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.
`
The text was updated successfully, but these errors were encountered: