baowenbo / DAIN

Depth-Aware Video Frame Interpolation (CVPR 2019)
https://sites.google.com/view/wenbobao/dain
MIT License
8.23k stars 840 forks source link

CUDA related errors when compiling from source [with output log] #55

Open Hachiverol opened 4 years ago

Hachiverol commented 4 years ago

when executing sudo ./build.sh i get this output pytorch 1.4.0 cuda-10.2.89-3 cudnn-7.6.5.32-3 on 5.4.24-1-MANJARO GPU: NVIDIA GeForce GTX 1070

Need pytorch>=1.0.0
./build.sh: line 4: activate: No such file or directory
No CUDA runtime is found, using CUDA_HOME='/opt/cuda'
running install
running bdist_egg
running egg_info
creating mindepthflowprojection_cuda.egg-info
writing mindepthflowprojection_cuda.egg-info/PKG-INFO
writing dependency_links to mindepthflowprojection_cuda.egg-info/dependency_links.txt
writing top-level names to mindepthflowprojection_cuda.egg-info/top_level.txt
writing manifest file 'mindepthflowprojection_cuda.egg-info/SOURCES.txt'
reading manifest file 'mindepthflowprojection_cuda.egg-info/SOURCES.txt'
writing manifest file 'mindepthflowprojection_cuda.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_ext
building 'mindepthflowprojection_cuda' extension
creating build
creating build/temp.linux-x86_64-3.8
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fno-semantic-interposition -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fPIC -I/usr/lib/python3.8/site-packages/torch/include -I/usr/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/usr/lib/python3.8/site-packages/torch/include/TH -I/usr/lib/python3.8/site-packages/torch/include/THC -I/opt/cuda/include -I/usr/include/python3.8 -c mindepthflowprojection_cuda.cc -o build/temp.linux-x86_64-3.8/mindepthflowprojection_cuda.o -std=c++11 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=mindepthflowprojection_cuda -D_GLIBCXX_USE_CXX11_ABI=1
In file included from /usr/include/c10/cuda/CUDAStream.h:9,
                 from /usr/include/ATen/cuda/CUDAContext.h:11,
                 from mindepthflowprojection_cuda.cc:5:
/usr/include/c10/cuda/CUDAMacros.h:4:10: fatal error: c10/cuda/impl/cuda_cmake_macros.h: No such file or directory
    4 | #include <c10/cuda/impl/cuda_cmake_macros.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
No CUDA runtime is found, using CUDA_HOME='/opt/cuda'
running install
running bdist_egg
running egg_info
creating flowprojection_cuda.egg-info
writing flowprojection_cuda.egg-info/PKG-INFO
writing dependency_links to flowprojection_cuda.egg-info/dependency_links.txt
writing top-level names to flowprojection_cuda.egg-info/top_level.txt
writing manifest file 'flowprojection_cuda.egg-info/SOURCES.txt'
reading manifest file 'flowprojection_cuda.egg-info/SOURCES.txt'
writing manifest file 'flowprojection_cuda.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_ext
building 'flowprojection_cuda' extension
creating build
creating build/temp.linux-x86_64-3.8
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fno-semantic-interposition -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fPIC -I/usr/lib/python3.8/site-packages/torch/include -I/usr/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/usr/lib/python3.8/site-packages/torch/include/TH -I/usr/lib/python3.8/site-packages/torch/include/THC -I/opt/cuda/include -I/usr/include/python3.8 -c flowprojection_cuda.cc -o build/temp.linux-x86_64-3.8/flowprojection_cuda.o -std=c++11 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=flowprojection_cuda -D_GLIBCXX_USE_CXX11_ABI=1
In file included from /usr/include/c10/cuda/CUDAStream.h:9,
                 from /usr/include/ATen/cuda/CUDAContext.h:11,
                 from flowprojection_cuda.cc:5:
/usr/include/c10/cuda/CUDAMacros.h:4:10: fatal error: c10/cuda/impl/cuda_cmake_macros.h: No such file or directory
    4 | #include <c10/cuda/impl/cuda_cmake_macros.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
No CUDA runtime is found, using CUDA_HOME='/opt/cuda'
running install
running bdist_egg
running egg_info
creating separableconv_cuda.egg-info
writing separableconv_cuda.egg-info/PKG-INFO
writing dependency_links to separableconv_cuda.egg-info/dependency_links.txt
writing top-level names to separableconv_cuda.egg-info/top_level.txt
writing manifest file 'separableconv_cuda.egg-info/SOURCES.txt'
reading manifest file 'separableconv_cuda.egg-info/SOURCES.txt'
writing manifest file 'separableconv_cuda.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_ext
building 'separableconv_cuda' extension
creating build
creating build/temp.linux-x86_64-3.8
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fno-semantic-interposition -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fPIC -I/usr/lib/python3.8/site-packages/torch/include -I/usr/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/usr/lib/python3.8/site-packages/torch/include/TH -I/usr/lib/python3.8/site-packages/torch/include/THC -I/opt/cuda/include -I/usr/include/python3.8 -c separableconv_cuda.cc -o build/temp.linux-x86_64-3.8/separableconv_cuda.o -std=c++11 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=separableconv_cuda -D_GLIBCXX_USE_CXX11_ABI=1
In file included from /usr/include/c10/cuda/CUDAStream.h:9,
                 from /usr/include/ATen/cuda/CUDAContext.h:11,
                 from separableconv_cuda.cc:5:
/usr/include/c10/cuda/CUDAMacros.h:4:10: fatal error: c10/cuda/impl/cuda_cmake_macros.h: No such file or directory
    4 | #include <c10/cuda/impl/cuda_cmake_macros.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
No CUDA runtime is found, using CUDA_HOME='/opt/cuda'
running install
running bdist_egg
running egg_info
creating interpolationch_cuda.egg-info
writing interpolationch_cuda.egg-info/PKG-INFO
writing dependency_links to interpolationch_cuda.egg-info/dependency_links.txt
writing top-level names to interpolationch_cuda.egg-info/top_level.txt
writing manifest file 'interpolationch_cuda.egg-info/SOURCES.txt'
reading manifest file 'interpolationch_cuda.egg-info/SOURCES.txt'
writing manifest file 'interpolationch_cuda.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_ext
building 'interpolationch_cuda' extension
creating build
creating build/temp.linux-x86_64-3.8
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fno-semantic-interposition -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fPIC -I/usr/lib/python3.8/site-packages/torch/include -I/usr/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/usr/lib/python3.8/site-packages/torch/include/TH -I/usr/lib/python3.8/site-packages/torch/include/THC -I/opt/cuda/include -I/usr/include/python3.8 -c interpolationch_cuda.cc -o build/temp.linux-x86_64-3.8/interpolationch_cuda.o -std=c++11 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=interpolationch_cuda -D_GLIBCXX_USE_CXX11_ABI=1
In file included from /usr/include/c10/cuda/CUDAStream.h:9,
                 from /usr/include/ATen/cuda/CUDAContext.h:11,
                 from interpolationch_cuda.cc:5:
/usr/include/c10/cuda/CUDAMacros.h:4:10: fatal error: c10/cuda/impl/cuda_cmake_macros.h: No such file or directory
    4 | #include <c10/cuda/impl/cuda_cmake_macros.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
No CUDA runtime is found, using CUDA_HOME='/opt/cuda'
running install
running bdist_egg
running egg_info
creating depthflowprojection_cuda.egg-info
writing depthflowprojection_cuda.egg-info/PKG-INFO
writing dependency_links to depthflowprojection_cuda.egg-info/dependency_links.txt
writing top-level names to depthflowprojection_cuda.egg-info/top_level.txt
writing manifest file 'depthflowprojection_cuda.egg-info/SOURCES.txt'
reading manifest file 'depthflowprojection_cuda.egg-info/SOURCES.txt'
writing manifest file 'depthflowprojection_cuda.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_ext
building 'depthflowprojection_cuda' extension
creating build
creating build/temp.linux-x86_64-3.8
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fno-semantic-interposition -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fPIC -I/usr/lib/python3.8/site-packages/torch/include -I/usr/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/usr/lib/python3.8/site-packages/torch/include/TH -I/usr/lib/python3.8/site-packages/torch/include/THC -I/opt/cuda/include -I/usr/include/python3.8 -c depthflowprojection_cuda.cc -o build/temp.linux-x86_64-3.8/depthflowprojection_cuda.o -std=c++11 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=depthflowprojection_cuda -D_GLIBCXX_USE_CXX11_ABI=1
In file included from /usr/include/c10/cuda/CUDAStream.h:9,
                 from /usr/include/ATen/cuda/CUDAContext.h:11,
                 from depthflowprojection_cuda.cc:5:
/usr/include/c10/cuda/CUDAMacros.h:4:10: fatal error: c10/cuda/impl/cuda_cmake_macros.h: No such file or directory
    4 | #include <c10/cuda/impl/cuda_cmake_macros.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
No CUDA runtime is found, using CUDA_HOME='/opt/cuda'
running install
running bdist_egg
running egg_info
creating interpolation_cuda.egg-info
writing interpolation_cuda.egg-info/PKG-INFO
writing dependency_links to interpolation_cuda.egg-info/dependency_links.txt
writing top-level names to interpolation_cuda.egg-info/top_level.txt
writing manifest file 'interpolation_cuda.egg-info/SOURCES.txt'
reading manifest file 'interpolation_cuda.egg-info/SOURCES.txt'
writing manifest file 'interpolation_cuda.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_ext
building 'interpolation_cuda' extension
creating build
creating build/temp.linux-x86_64-3.8
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fno-semantic-interposition -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fPIC -I/usr/lib/python3.8/site-packages/torch/include -I/usr/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/usr/lib/python3.8/site-packages/torch/include/TH -I/usr/lib/python3.8/site-packages/torch/include/THC -I/opt/cuda/include -I/usr/include/python3.8 -c interpolation_cuda.cc -o build/temp.linux-x86_64-3.8/interpolation_cuda.o -std=c++11 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=interpolation_cuda -D_GLIBCXX_USE_CXX11_ABI=1
In file included from /usr/include/c10/cuda/CUDAStream.h:9,
                 from /usr/include/ATen/cuda/CUDAContext.h:11,
                 from interpolation_cuda.cc:5:
/usr/include/c10/cuda/CUDAMacros.h:4:10: fatal error: c10/cuda/impl/cuda_cmake_macros.h: No such file or directory
    4 | #include <c10/cuda/impl/cuda_cmake_macros.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
No CUDA runtime is found, using CUDA_HOME='/opt/cuda'
running install
running bdist_egg
running egg_info
creating separableconvflow_cuda.egg-info
writing separableconvflow_cuda.egg-info/PKG-INFO
writing dependency_links to separableconvflow_cuda.egg-info/dependency_links.txt
writing top-level names to separableconvflow_cuda.egg-info/top_level.txt
writing manifest file 'separableconvflow_cuda.egg-info/SOURCES.txt'
reading manifest file 'separableconvflow_cuda.egg-info/SOURCES.txt'
writing manifest file 'separableconvflow_cuda.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_ext
building 'separableconvflow_cuda' extension
creating build
creating build/temp.linux-x86_64-3.8
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fno-semantic-interposition -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fPIC -I/usr/lib/python3.8/site-packages/torch/include -I/usr/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/usr/lib/python3.8/site-packages/torch/include/TH -I/usr/lib/python3.8/site-packages/torch/include/THC -I/opt/cuda/include -I/usr/include/python3.8 -c separableconvflow_cuda.cc -o build/temp.linux-x86_64-3.8/separableconvflow_cuda.o -std=c++11 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=separableconvflow_cuda -D_GLIBCXX_USE_CXX11_ABI=1
In file included from /usr/include/c10/cuda/CUDAStream.h:9,
                 from /usr/include/ATen/cuda/CUDAContext.h:11,
                 from separableconvflow_cuda.cc:5:
/usr/include/c10/cuda/CUDAMacros.h:4:10: fatal error: c10/cuda/impl/cuda_cmake_macros.h: No such file or directory
    4 | #include <c10/cuda/impl/cuda_cmake_macros.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
No CUDA runtime is found, using CUDA_HOME='/opt/cuda'
running install
running bdist_egg
running egg_info
creating filterinterpolation_cuda.egg-info
writing filterinterpolation_cuda.egg-info/PKG-INFO
writing dependency_links to filterinterpolation_cuda.egg-info/dependency_links.txt
writing top-level names to filterinterpolation_cuda.egg-info/top_level.txt
writing manifest file 'filterinterpolation_cuda.egg-info/SOURCES.txt'
reading manifest file 'filterinterpolation_cuda.egg-info/SOURCES.txt'
writing manifest file 'filterinterpolation_cuda.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_ext
building 'filterinterpolation_cuda' extension
creating build
creating build/temp.linux-x86_64-3.8
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fno-semantic-interposition -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fPIC -I/usr/lib/python3.8/site-packages/torch/include -I/usr/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/usr/lib/python3.8/site-packages/torch/include/TH -I/usr/lib/python3.8/site-packages/torch/include/THC -I/opt/cuda/include -I/usr/include/python3.8 -c filterinterpolation_cuda.cc -o build/temp.linux-x86_64-3.8/filterinterpolation_cuda.o -std=c++11 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=filterinterpolation_cuda -D_GLIBCXX_USE_CXX11_ABI=1
In file included from /usr/include/c10/cuda/CUDAStream.h:9,
                 from /usr/include/ATen/cuda/CUDAContext.h:11,
                 from filterinterpolation_cuda.cc:5:
/usr/include/c10/cuda/CUDAMacros.h:4:10: fatal error: c10/cuda/impl/cuda_cmake_macros.h: No such file or directory
    4 | #include <c10/cuda/impl/cuda_cmake_macros.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
jpleyvat commented 4 years ago

I am getting the exact same error. I haven't been able to find the installation directory for cuda. I guess if we set CUDA_HOME to that path it will maybe solve the issue.

baowenbo commented 4 years ago

No CUDA runtime is found, using CUDA_HOME='/opt/cuda'

Your cuda is not ready.

JiangBing123 commented 4 years ago

I meet the same error. I change the default gcc and g++ to 4.9 (gcc=4.9 and g++=4.9), then the issue is solved.