You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I cannot build the examples with CUDA 11.4 and libcudacxx 1.7.0-ea
To Reproduce
CMake configuration:
(base) root@fdecaa517939:~/matx_test/MatX/build# https_proxy=10.162.14.132:7890 cmake -DBUILD_EXAMPLES=ON ..
-- Auto-detecting GPU architectures since CMAKE_CUDA_ARCHITECTURES not defined
-- The CUDA compiler identification is NVIDIA 11.4.100
-- The CXX compiler identification is GNU 9.3.0
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc - skipped
-- Detecting CUDA compile features
-- Detecting CUDA compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Auto detection of gpu-archs: 86
-- Using GPU architectures 86-real
-- Downloading CPM.cmake to /root/matx_test/MatX/build/cmake/CPM_0.32.2.cmake
-- Setting build type to 'Debug' as none was specified.
-- Found CUDAToolkit: /usr/local/cuda/include (found version "11.4.100")
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Need libcuda++ 1.7.0 or higher (included in CTK 11.5+). Finding...
-- CPM: adding package libcudacxx@1.7.0 (1.7.0-ea)
-- CPM: adding package pybind11@2.6.2 (v2.6.2)
-- pybind11 v2.6.2
-- Found PythonInterp: /root/miniconda3/bin/python (found version "3.9.5")
-- Found PythonLibs: /root/miniconda3/lib/libpython3.9.so
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- Found Python3: /root/miniconda3/bin/python3.9 (found version "3.9.5") found components: Interpreter Development Development.Module Development.Embed
-- Configuring done
-- Generating done
-- Build files have been written to: /root/matx_test/MatX/build
Make convolution example:
(base) root@fdecaa517939:~/matx_test/MatX/build# make convolution
[ 50%] Building CUDA object examples/CMakeFiles/convolution.dir/convolution.cu.o
/root/matx_test/MatX/include/matx_tensor_impl.h(700): error: missing return statement at end of non-void function "matx::detail::tensor_impl_t<T, RANK, Desc>::GetVal(std::tuple<Is...>) [with T=float, RANK=1, Desc=matx::static_tensor_desc_t<10LL>, I=1, Is=<matx::index_t>]"
detected during:
instantiation of "matx::detail::tensor_impl_t<T, RANK, Desc>::stride_type matx::detail::tensor_impl_t<T, RANK, Desc>::GetVal(std::tuple<Is...>) [with T=float, RANK=1, Desc=matx::static_tensor_desc_t<10LL>, I=1, Is=<matx::index_t>]"
(695): here
instantiation of "matx::detail::tensor_impl_t<T, RANK, Desc>::stride_type matx::detail::tensor_impl_t<T, RANK, Desc>::GetVal(std::tuple<Is...>) [with T=float, RANK=1, Desc=matx::static_tensor_desc_t<10LL>, I=0, Is=<matx::index_t>]"
(740): here
instantiation of "T &matx::detail::tensor_impl_t<T, RANK, Desc>::operator()(Is...) noexcept [with T=float, RANK=1, Desc=matx::static_tensor_desc_t<10LL>, M=1, Is=<matx::index_t>, <unnamed>=true]"
/root/matx_test/MatX/include/matx_tensor.h(1103): here
instantiation of "void matx::tensor_t<T, RANK, Storage, Desc>::SetVals(const std::initializer_list<T> &) noexcept [with T=float, RANK=1, Storage=matx::basic_storage<matx::raw_pointer_buffer<float, matx::owning, matx::matx_allocator<float>>>, Desc=matx::static_tensor_desc_t<10LL>]"
/root/matx_test/MatX/examples/convolution.cu(93): here
/root/matx_test/MatX/include/matx_tensor_impl.h(700): error: missing return statement at end of non-void function "matx::detail::tensor_impl_t<T, RANK, Desc>::GetVal(std::tuple<Is...>) [with T=float, RANK=2, Desc=matx::static_tensor_desc_t<100LL, 16384000LL>, I=2, Is=<matx::index_t, matx::index_t>]"
detected during:
instantiation of "matx::detail::tensor_impl_t<T, RANK, Desc>::stride_type matx::detail::tensor_impl_t<T, RANK, Desc>::GetVal(std::tuple<Is...>) [with T=float, RANK=2, Desc=matx::static_tensor_desc_t<100LL, 16384000LL>, I=2, Is=<matx::index_t, matx::index_t>]"
(695): here
instantiation of "matx::detail::tensor_impl_t<T, RANK, Desc>::stride_type matx::detail::tensor_impl_t<T, RANK, Desc>::GetVal(std::tuple<Is...>) [with T=float, RANK=2, Desc=matx::static_tensor_desc_t<100LL, 16384000LL>, I=1, Is=<matx::index_t, matx::index_t>]"
(695): here
instantiation of "matx::detail::tensor_impl_t<T, RANK, Desc>::stride_type matx::detail::tensor_impl_t<T, RANK, Desc>::GetVal(std::tuple<Is...>) [with T=float, RANK=2, Desc=matx::static_tensor_desc_t<100LL, 16384000LL>, I=0, Is=<matx::index_t, matx::index_t>]"
(740): here
instantiation of "T &matx::detail::tensor_impl_t<T, RANK, Desc>::operator()(Is...) noexcept [with T=float, RANK=2, Desc=matx::static_tensor_desc_t<100LL, 16384000LL>, M=2, Is=<matx::index_t, matx::index_t>, <unnamed>=true]"
/root/matx_test/MatX/examples/convolution.cu(77): here
/root/matx_test/MatX/include/matx_tensor_impl.h(700): error: missing return statement at end of non-void function "matx::detail::tensor_impl_t<T, RANK, Desc>::GetVal(std::tuple<Is...>) [with T=float, RANK=1, Desc=matx::static_tensor_desc_t<10LL>, I=1, Is=<unsigned int>]"
detected during:
instantiation of "matx::detail::tensor_impl_t<T, RANK, Desc>::stride_type matx::detail::tensor_impl_t<T, RANK, Desc>::GetVal(std::tuple<Is...>) [with T=float, RANK=1, Desc=matx::static_tensor_desc_t<10LL>, I=1, Is=<unsigned int>]"
(695): here
instantiation of "matx::detail::tensor_impl_t<T, RANK, Desc>::stride_type matx::detail::tensor_impl_t<T, RANK, Desc>::GetVal(std::tuple<Is...>) [with T=float, RANK=1, Desc=matx::static_tensor_desc_t<10LL>, I=0, Is=<unsigned int>]"
(740): here
instantiation of "T &matx::detail::tensor_impl_t<T, RANK, Desc>::operator()(Is...) noexcept [with T=float, RANK=1, Desc=matx::static_tensor_desc_t<10LL>, M=1, Is=<unsigned int>, <unnamed>=true]"
/root/matx_test/MatX/include/kernels/matx_conv_kernels.cuh(93): here
instantiation of "void matx::Conv1D(OutType, InType, FilterType, matx::index_t, matx::index_t, matx::matxConvCorrMode_t) [with OutType=matx::detail::tensor_impl_t<float, 2, matx::static_tensor_desc_t<100LL, 16384009LL>>, InType=matx::tensor_t<float, 2, matx::basic_storage<matx::raw_pointer_buffer<float, matx::owning, matx::matx_allocator<float>>>, matx::static_tensor_desc_t<100LL, 16384000LL>>, FilterType=matx::tensor_t<float, 1, matx::basic_storage<matx::raw_pointer_buffer<float, matx::owning, matx::matx_allocator<float>>>, matx::static_tensor_desc_t<10LL>>]"
/root/matx_test/MatX/include/matx_conv.h(89): here
instantiation of "void matx::detail::matxDirectConv1DInternal(OutputType &, const InType &, const FilterType &, matx::matxConvCorrMode_t, cudaStream_t) [with OutputType=matx::detail::tensor_impl_t<float, 2, matx::static_tensor_desc_t<100LL, 16384009LL>>, InType=matx::tensor_t<float, 2, matx::basic_storage<matx::raw_pointer_buffer<float, matx::owning, matx::matx_allocator<float>>>, matx::static_tensor_desc_t<100LL, 16384000LL>>, FilterType=matx::tensor_t<float, 1, matx::basic_storage<matx::raw_pointer_buffer<float, matx::owning, matx::matx_allocator<float>>>, matx::static_tensor_desc_t<10LL>>]"
/root/matx_test/MatX/include/matx_conv.h(187): here
instantiation of "void matx::conv1d(OutputType &, const In1Type &, const In2Type &, matx::matxConvCorrMode_t, cudaStream_t) [with OutputType=matx::tensor_t<float, 2, matx::basic_storage<matx::raw_pointer_buffer<float, matx::owning, matx::matx_allocator<float>>>, matx::static_tensor_desc_t<100LL, 16384009LL>>, In1Type=matx::tensor_t<float, 2, matx::basic_storage<matx::raw_pointer_buffer<float, matx::owning, matx::matx_allocator<float>>>, matx::static_tensor_desc_t<100LL, 16384000LL>>, In2Type=matx::tensor_t<float, 1, matx::basic_storage<matx::raw_pointer_buffer<float, matx::owning, matx::matx_allocator<float>>>, matx::static_tensor_desc_t<10LL>>]"
/root/matx_test/MatX/examples/convolution.cu(103): here
/root/matx_test/MatX/include/matx_tensor_impl.h(700): error: missing return statement at end of non-void function "matx::detail::tensor_impl_t<T, RANK, Desc>::GetVal(std::tuple<Is...>) [with T=float, RANK=2, Desc=matx::static_tensor_desc_t<100LL, 16384000LL>, I=2, Is=<unsigned int, unsigned int>]"
detected during:
instantiation of "matx::detail::tensor_impl_t<T, RANK, Desc>::stride_type matx::detail::tensor_impl_t<T, RANK, Desc>::GetVal(std::tuple<Is...>) [with T=float, RANK=2, Desc=matx::static_tensor_desc_t<100LL, 16384000LL>, I=2, Is=<unsigned int, unsigned int>]"
(695): here
instantiation of "matx::detail::tensor_impl_t<T, RANK, Desc>::stride_type matx::detail::tensor_impl_t<T, RANK, Desc>::GetVal(std::tuple<Is...>) [with T=float, RANK=2, Desc=matx::static_tensor_desc_t<100LL, 16384000LL>, I=1, Is=<unsigned int, unsigned int>]"
(695): here
instantiation of "matx::detail::tensor_impl_t<T, RANK, Desc>::stride_type matx::detail::tensor_impl_t<T, RANK, Desc>::GetVal(std::tuple<Is...>) [with T=float, RANK=2, Desc=matx::static_tensor_desc_t<100LL, 16384000LL>, I=0, Is=<unsigned int, unsigned int>]"
(740): here
instantiation of "T &matx::detail::tensor_impl_t<T, RANK, Desc>::operator()(Is...) noexcept [with T=float, RANK=2, Desc=matx::static_tensor_desc_t<100LL, 16384000LL>, M=2, Is=<unsigned int, unsigned int>, <unnamed>=true]"
/root/matx_test/MatX/include/kernels/matx_conv_kernels.cuh(117): here
instantiation of "void matx::Conv1D(OutType, InType, FilterType, matx::index_t, matx::index_t, matx::matxConvCorrMode_t) [with OutType=matx::detail::tensor_impl_t<float, 2, matx::static_tensor_desc_t<100LL, 16384009LL>>, InType=matx::tensor_t<float, 2, matx::basic_storage<matx::raw_pointer_buffer<float, matx::owning, matx::matx_allocator<float>>>, matx::static_tensor_desc_t<100LL, 16384000LL>>, FilterType=matx::tensor_t<float, 1, matx::basic_storage<matx::raw_pointer_buffer<float, matx::owning, matx::matx_allocator<float>>>, matx::static_tensor_desc_t<10LL>>]"
/root/matx_test/MatX/include/matx_conv.h(89): here
instantiation of "void matx::detail::matxDirectConv1DInternal(OutputType &, const InType &, const FilterType &, matx::matxConvCorrMode_t, cudaStream_t) [with OutputType=matx::detail::tensor_impl_t<float, 2, matx::static_tensor_desc_t<100LL, 16384009LL>>, InType=matx::tensor_t<float, 2, matx::basic_storage<matx::raw_pointer_buffer<float, matx::owning, matx::matx_allocator<float>>>, matx::static_tensor_desc_t<100LL, 16384000LL>>, FilterType=matx::tensor_t<float, 1, matx::basic_storage<matx::raw_pointer_buffer<float, matx::owning, matx::matx_allocator<float>>>, matx::static_tensor_desc_t<10LL>>]"
/root/matx_test/MatX/include/matx_conv.h(187): here
instantiation of "void matx::conv1d(OutputType &, const In1Type &, const In2Type &, matx::matxConvCorrMode_t, cudaStream_t) [with OutputType=matx::tensor_t<float, 2, matx::basic_storage<matx::raw_pointer_buffer<float, matx::owning, matx::matx_allocator<float>>>, matx::static_tensor_desc_t<100LL, 16384009LL>>, In1Type=matx::tensor_t<float, 2, matx::basic_storage<matx::raw_pointer_buffer<float, matx::owning, matx::matx_allocator<float>>>, matx::static_tensor_desc_t<100LL, 16384000LL>>, In2Type=matx::tensor_t<float, 1, matx::basic_storage<matx::raw_pointer_buffer<float, matx::owning, matx::matx_allocator<float>>>, matx::static_tensor_desc_t<10LL>>]"
/root/matx_test/MatX/examples/convolution.cu(103): here
/root/matx_test/MatX/include/matx_tensor_impl.h(700): error: missing return statement at end of non-void function "matx::detail::tensor_impl_t<T, RANK, Desc>::GetVal(std::tuple<Is...>) [with T=float, RANK=2, Desc=matx::static_tensor_desc_t<100LL, 16384000LL>, I=2, Is=<unsigned int, int>]"
detected during:
instantiation of "matx::detail::tensor_impl_t<T, RANK, Desc>::stride_type matx::detail::tensor_impl_t<T, RANK, Desc>::GetVal(std::tuple<Is...>) [with T=float, RANK=2, Desc=matx::static_tensor_desc_t<100LL, 16384000LL>, I=2, Is=<unsigned int, int>]"
(695): here
instantiation of "matx::detail::tensor_impl_t<T, RANK, Desc>::stride_type matx::detail::tensor_impl_t<T, RANK, Desc>::GetVal(std::tuple<Is...>) [with T=float, RANK=2, Desc=matx::static_tensor_desc_t<100LL, 16384000LL>, I=1, Is=<unsigned int, int>]"
(695): here
instantiation of "matx::detail::tensor_impl_t<T, RANK, Desc>::stride_type matx::detail::tensor_impl_t<T, RANK, Desc>::GetVal(std::tuple<Is...>) [with T=float, RANK=2, Desc=matx::static_tensor_desc_t<100LL, 16384000LL>, I=0, Is=<unsigned int, int>]"
(740): here
instantiation of "T &matx::detail::tensor_impl_t<T, RANK, Desc>::operator()(Is...) noexcept [with T=float, RANK=2, Desc=matx::static_tensor_desc_t<100LL, 16384000LL>, M=2, Is=<unsigned int, int>, <unnamed>=true]"
/root/matx_test/MatX/include/kernels/matx_conv_kernels.cuh(134): here
instantiation of "void matx::Conv1D(OutType, InType, FilterType, matx::index_t, matx::index_t, matx::matxConvCorrMode_t) [with OutType=matx::detail::tensor_impl_t<float, 2, matx::static_tensor_desc_t<100LL, 16384009LL>>, InType=matx::tensor_t<float, 2, matx::basic_storage<matx::raw_pointer_buffer<float, matx::owning, matx::matx_allocator<float>>>, matx::static_tensor_desc_t<100LL, 16384000LL>>, FilterType=matx::tensor_t<float, 1, matx::basic_storage<matx::raw_pointer_buffer<float, matx::owning, matx::matx_allocator<float>>>, matx::static_tensor_desc_t<10LL>>]"
/root/matx_test/MatX/include/matx_conv.h(89): here
instantiation of "void matx::detail::matxDirectConv1DInternal(OutputType &, const InType &, const FilterType &, matx::matxConvCorrMode_t, cudaStream_t) [with OutputType=matx::detail::tensor_impl_t<float, 2, matx::static_tensor_desc_t<100LL, 16384009LL>>, InType=matx::tensor_t<float, 2, matx::basic_storage<matx::raw_pointer_buffer<float, matx::owning, matx::matx_allocator<float>>>, matx::static_tensor_desc_t<100LL, 16384000LL>>, FilterType=matx::tensor_t<float, 1, matx::basic_storage<matx::raw_pointer_buffer<float, matx::owning, matx::matx_allocator<float>>>, matx::static_tensor_desc_t<10LL>>]"
/root/matx_test/MatX/include/matx_conv.h(187): here
instantiation of "void matx::conv1d(OutputType &, const In1Type &, const In2Type &, matx::matxConvCorrMode_t, cudaStream_t) [with OutputType=matx::tensor_t<float, 2, matx::basic_storage<matx::raw_pointer_buffer<float, matx::owning, matx::matx_allocator<float>>>, matx::static_tensor_desc_t<100LL, 16384009LL>>, In1Type=matx::tensor_t<float, 2, matx::basic_storage<matx::raw_pointer_buffer<float, matx::owning, matx::matx_allocator<float>>>, matx::static_tensor_desc_t<100LL, 16384000LL>>, In2Type=matx::tensor_t<float, 1, matx::basic_storage<matx::raw_pointer_buffer<float, matx::owning, matx::matx_allocator<float>>>, matx::static_tensor_desc_t<10LL>>]"
/root/matx_test/MatX/examples/convolution.cu(103): here
/root/matx_test/MatX/include/matx_tensor_impl.h(700): error: missing return statement at end of non-void function "matx::detail::tensor_impl_t<T, RANK, Desc>::GetVal(std::tuple<Is...>) [with T=float, RANK=2, Desc=matx::static_tensor_desc_t<100LL, 16384009LL>, I=2, Is=<unsigned int, matx::index_t>]"
detected during:
instantiation of "matx::detail::tensor_impl_t<T, RANK, Desc>::stride_type matx::detail::tensor_impl_t<T, RANK, Desc>::GetVal(std::tuple<Is...>) [with T=float, RANK=2, Desc=matx::static_tensor_desc_t<100LL, 16384009LL>, I=2, Is=<unsigned int, matx::index_t>]"
(695): here
instantiation of "matx::detail::tensor_impl_t<T, RANK, Desc>::stride_type matx::detail::tensor_impl_t<T, RANK, Desc>::GetVal(std::tuple<Is...>) [with T=float, RANK=2, Desc=matx::static_tensor_desc_t<100LL, 16384009LL>, I=1, Is=<unsigned int, matx::index_t>]"
(695): here
instantiation of "matx::detail::tensor_impl_t<T, RANK, Desc>::stride_type matx::detail::tensor_impl_t<T, RANK, Desc>::GetVal(std::tuple<Is...>) [with T=float, RANK=2, Desc=matx::static_tensor_desc_t<100LL, 16384009LL>, I=0, Is=<unsigned int, matx::index_t>]"
(740): here
instantiation of "T &matx::detail::tensor_impl_t<T, RANK, Desc>::operator()(Is...) noexcept [with T=float, RANK=2, Desc=matx::static_tensor_desc_t<100LL, 16384009LL>, M=2, Is=<unsigned int, matx::index_t>, <unnamed>=true]"
/root/matx_test/MatX/include/kernels/matx_conv_kernels.cuh(161): here
instantiation of "void matx::Conv1D(OutType, InType, FilterType, matx::index_t, matx::index_t, matx::matxConvCorrMode_t) [with OutType=matx::detail::tensor_impl_t<float, 2, matx::static_tensor_desc_t<100LL, 16384009LL>>, InType=matx::tensor_t<float, 2, matx::basic_storage<matx::raw_pointer_buffer<float, matx::owning, matx::matx_allocator<float>>>, matx::static_tensor_desc_t<100LL, 16384000LL>>, FilterType=matx::tensor_t<float, 1, matx::basic_storage<matx::raw_pointer_buffer<float, matx::owning, matx::matx_allocator<float>>>, matx::static_tensor_desc_t<10LL>>]"
/root/matx_test/MatX/include/matx_conv.h(89): here
instantiation of "void matx::detail::matxDirectConv1DInternal(OutputType &, const InType &, const FilterType &, matx::matxConvCorrMode_t, cudaStream_t) [with OutputType=matx::detail::tensor_impl_t<float, 2, matx::static_tensor_desc_t<100LL, 16384009LL>>, InType=matx::tensor_t<float, 2, matx::basic_storage<matx::raw_pointer_buffer<float, matx::owning, matx::matx_allocator<float>>>, matx::static_tensor_desc_t<100LL, 16384000LL>>, FilterType=matx::tensor_t<float, 1, matx::basic_storage<matx::raw_pointer_buffer<float, matx::owning, matx::matx_allocator<float>>>, matx::static_tensor_desc_t<10LL>>]"
/root/matx_test/MatX/include/matx_conv.h(187): here
instantiation of "void matx::conv1d(OutputType &, const In1Type &, const In2Type &, matx::matxConvCorrMode_t, cudaStream_t) [with OutputType=matx::tensor_t<float, 2, matx::basic_storage<matx::raw_pointer_buffer<float, matx::owning, matx::matx_allocator<float>>>, matx::static_tensor_desc_t<100LL, 16384009LL>>, In1Type=matx::tensor_t<float, 2, matx::basic_storage<matx::raw_pointer_buffer<float, matx::owning, matx::matx_allocator<float>>>, matx::static_tensor_desc_t<100LL, 16384000LL>>, In2Type=matx::tensor_t<float, 1, matx::basic_storage<matx::raw_pointer_buffer<float, matx::owning, matx::matx_allocator<float>>>, matx::static_tensor_desc_t<10LL>>]"
/root/matx_test/MatX/examples/convolution.cu(103): here
6 errors detected in the compilation of "/root/matx_test/MatX/examples/convolution.cu".
make[3]: *** [examples/CMakeFiles/convolution.dir/build.make:76: examples/CMakeFiles/convolution.dir/convolution.cu.o] Error 255
make[2]: *** [CMakeFiles/Makefile2:306: examples/CMakeFiles/convolution.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:313: examples/CMakeFiles/convolution.dir/rule] Error 2
make: *** [Makefile:248: convolution] Error 2
Expected behavior
The example is expected to be compiled.
System details (please complete the following information):
Hi @ZJUGuoShuai, this has been fixed. I also had to deprecate support for 11.2 and 11.3 since it has new errors that there is no workaround for without a large amount of effort. 11.4 compiles are runs the tests without issues now.
Describe the bug
I cannot build the examples with CUDA 11.4 and libcudacxx 1.7.0-ea
To Reproduce
Expected behavior
The example is expected to be compiled.
System details (please complete the following information):
The text was updated successfully, but these errors were encountered: