Git Product home page Git Product logo

Comments (10)

darglein avatar darglein commented on July 20, 2024

Please also post the cmake output.

from adop.

XGenietony avatar XGenietony commented on July 20, 2024

CMake Output:

Performing C++ SOURCE FILE Test COMPILER_SUPPORT_std=cpp03 succeeded with the following output:
Change Dir: /home/xgenie/projectfold/ADOP/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_3a9c2/fast && /usr/bin/make  -f CMakeFiles/cmTC_3a9c2.dir/build.make CMakeFiles/cmTC_3a9c2.dir/build
make[1]: Entering directory '/home/xgenie/projectfold/ADOP/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_3a9c2.dir/src.cxx.o
/usr/bin/g++-7 -DCOMPILER_SUPPORT_std=cpp03  -std=c++03 -o CMakeFiles/cmTC_3a9c2.dir/src.cxx.o -c /home/xgenie/projectfold/ADOP/build/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTC_3a9c2
/home/xgenie/anaconda3/envs/adop/bin/cmake -E cmake_link_script CMakeFiles/cmTC_3a9c2.dir/link.txt --verbose=1
/usr/bin/g++-7 CMakeFiles/cmTC_3a9c2.dir/src.cxx.o -o cmTC_3a9c2 
make[1]: Leaving directory '/home/xgenie/projectfold/ADOP/build/CMakeFiles/CMakeTmp'


Source file was:
int main() { return 0; }

from adop.

darglein avatar darglein commented on July 20, 2024

I mean the output when running cmake in the build dir.

conda activate adop
cd ADOP/build
cmake ..

from adop.

XGenietony avatar XGenietony commented on July 20, 2024

You mean these?

-- 
Build Type: RelWithDebInfo
Build Options
-- Option ADOP_HEADLESS         OFF
-- Option ADOP_ASAN             OFF
-- 
Build Options
-- Option SAIGA_BUILD_SHARED         ON
-- Option SAIGA_DEBUG                OFF
-- Option SAIGA_ASSERTS              ON
-- Option SAIGA_BUILD_SAMPLES        OFF
-- Option SAIGA_BUILD_TESTS          OFF
-- Option SAIGA_STRICT_FP            OFF
-- Option SAIGA_FAST_MATH            OFF
-- Option SAIGA_FULL_OPTIMIZE        OFF
-- Option SAIGA_ARCHNATIVE           ON
-- Option SAIGA_CUDA_DEBUG           ON
-- Option SAIGA_CUDA_BLSP            OFF
-- Option SAIGA_CUDA_RDC             OFF
-- Option SAIGA_CUDA_COMP            OFF
-- Option SAIGA_BUILD_DOC            OFF
-- Option SAIGA_NO_INSTALL           ON
-- Option SAIGA_LEGACY_GLM           OFF
-- Option SAIGA_PCH                  OFF
-- Option SAIGA_OPENMP               ON
-- Option SAIGA_LIBSTDCPP            OFF
-- Option SAIGA_DEBUG_ASAN           OFF
-- Option SAIGA_DEBUG_MSAN           OFF
-- Option SAIGA_DEBUG_TSAN           OFF
-- Option SAIGA_DEBIAN_BUILD         OFF
-- Option SAIGA_BUILD_GLFW           ON
-- Option SAIGA_MODULE_CORE          ON
-- Option SAIGA_MODULE_OPENGL        ON
-- Option SAIGA_MODULE_VULKAN        OFF
-- Option SAIGA_MODULE_VISION        OFF
-- Option SAIGA_MODULE_CUDA          ON
-- Option SAIGA_WITH_MKL             OFF
-- 
Build Type: RelWithDebInfo
-- Detected Compiler:  GNU
-- Compiler Version: 7.5.0
=================================
Adding Submodule eigen
-- Performing Test COMPILER_SUPPORT_std=cpp03
-- Performing Test COMPILER_SUPPORT_std=cpp03 - Success
-- Standard libraries to link to explicitly: none
-- Found unsuitable Qt version "5.9.5" from /home/xgenie/anaconda3/bin/qmake
-- Found unsuitable Qt version "5.9.5" from /home/xgenie/anaconda3/bin/qmake
-- Qt4 not found, so disabling the mandelbrot and opengl demos
-- Could NOT find CHOLMOD (missing: CHOLMOD_INCLUDES CHOLMOD_LIBRARIES) 
-- Could NOT find UMFPACK (missing: UMFPACK_INCLUDES UMFPACK_LIBRARIES) 
-- Could NOT find KLU (missing: KLU_INCLUDES KLU_LIBRARIES) 
-- Could NOT find SuperLU (missing: SUPERLU_INCLUDES SUPERLU_LIBRARIES SUPERLU_VERSION_OK) (Required is at least version "4.0")
-- A version of Pastix has been found but pastix_nompi.h does not exist in the include directory. Because Eigen tests require a version without MPI, we disable the Pastix backend.
-- 
-- Configured Eigen 3.4.0
-- 
-- Available targets (use: make TARGET):
-- ---------+--------------------------------------------------------------
-- Target   |   Description
-- ---------+--------------------------------------------------------------
-- install  | Install Eigen. Headers will be installed to:
--          |     <CMAKE_INSTALL_PREFIX>/<INCLUDE_INSTALL_DIR>
--          |   Using the following values:
--          |     CMAKE_INSTALL_PREFIX: /usr/local
--          |     INCLUDE_INSTALL_DIR:  include/eigen3
--          |   Change the install location of Eigen headers using:
--          |     cmake . -DCMAKE_INSTALL_PREFIX=yourprefix
--          |   Or:
--          |     cmake . -DINCLUDE_INSTALL_DIR=yourdir
-- doc      | Generate the API documentation, requires Doxygen & LaTeX
-- blas     | Build BLAS library (not the same thing as Eigen)
-- uninstall| Remove files installed by the install target
-- ---------+--------------------------------------------------------------
-- 
=================================
Adding Submodule glog
=================================
=================================
Adding Submodule ZLIB
=================================
=================================
Adding Submodule glfw
-- Using X11 for window creation
=================================
=================================
Adding Submodule libPNG
-- Symbol prefix: 
=================================
=================================
Adding Submodule assimp
-- Shared libraries enabled
-- Looking for ZLIB...
-- Checking for module 'zzip-zlib-config'
--   No package 'zzip-zlib-config' found
-- Checking for module 'minizip'
--   No package 'minizip' found
-- Enabled importer formats: AMF 3DS AC ASE ASSBIN B3D BVH COLLADA DXF CSM HMP IRRMESH IRR LWO LWS M3D MD2 MD3 MD5 MDC MDL NFF NDO OFF OBJ OGRE OPENGEX PLY MS3D COB BLEND IFC XGL FBX Q3D Q3BSP RAW SIB SMD STL TERRAGEN 3D X X3D GLTF 3MF MMD
-- Disabled importer formats:
-- Enabled exporter formats: OBJ OPENGEX PLY 3DS ASSBIN ASSXML M3D COLLADA FBX STL X X3D GLTF 3MF PBRT ASSJSON STEP
-- Disabled exporter formats:
=================================
=================================
Adding Submodule googletest
-- Package gtest                      Yes, at $<BUILD_INTERFACE:/home/xgenie/projectfold/ADOP/External/saiga/submodules/googletest/googletest/include;/home/xgenie/projectfold/ADOP/External/saiga/submodules/googletest/googletest>;$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>
=================================
-- Package Eigen3::Eigen              Yes, at $<BUILD_INTERFACE:/home/xgenie/projectfold/ADOP/External/saiga/submodules/eigen>;$<INSTALL_INTERFACE:include/eigen3>
-- Package glfw                       Yes, at $<BUILD_INTERFACE:/home/xgenie/projectfold/ADOP/External/saiga/submodules/glfw/include>;$<INSTALL_INTERFACE:include>
-- Package zlibstatic                 Yes, at $<BUILD_INTERFACE:/home/xgenie/projectfold/ADOP/External/saiga/submodules/zlib>;$<BUILD_INTERFACE:/home/xgenie/projectfold/ADOP/build/External/saiga/submodules/zlib>
-- Package png_static                 Yes, at $<BUILD_INTERFACE:/home/xgenie/projectfold/ADOP/External/saiga/submodules/libpng>;$<BUILD_INTERFACE:/home/xgenie/projectfold/ADOP/build/External/saiga/submodules/libpng>
-- Package assimp                     Yes, at $<BUILD_INTERFACE:/home/xgenie/projectfold/ADOP/External/saiga/submodules/assimp/code/../include>;$<BUILD_INTERFACE:/home/xgenie/projectfold/ADOP/build/External/saiga/submodules/assimp/code/../include>;$<INSTALL_INTERFACE:include>
-- Package glog                       Yes, at $<BUILD_INTERFACE:/home/xgenie/projectfold/ADOP/build/External/saiga/submodules/glog>;$<BUILD_INTERFACE:/home/xgenie/projectfold/ADOP/External/saiga/submodules/glog/src>;$<INSTALL_INTERFACE:include>
-- Package OpenMP::OpenMP_CXX         Yes
-- Package OpenAL                     No
-- Package ALUT                       No
-- Package Opus                       No
-- Package FreeImagePlus              No
-- Package FreeImage                  No
-- Package OpenMesh                   No
-- Package OpenGL                     Yes, at /usr/include
-- Package Freetype                   Yes, at /usr/include/freetype2
-- Package Bullet                     No
-- Package EGL                        Yes, at /usr/include
-- Package FFMPEG                     Yes, at /usr/include/x86_64-linux-gnu
-- Package OpenVR                     No
-- Enabled CUDA. Version: 10.2.89
-- Package CUDA::cudart               Yes, at /usr/local/cuda/include
-- Package CUDA::nppif                Yes, at /usr/local/cuda/include
-- Package CUDA::nppig                Yes, at /usr/local/cuda/include
-- Package CUDA::nvToolsExt           Yes, at /usr/local/cuda/include
-- Autodetected CUDA architecture(s):  7.5
-- SAIGA_CUDA_FLAGS: -Xcompiler=-fopenmp;-Xcompiler=-march=native;-use_fast_math;--expt-relaxed-constexpr;-Xcudafe=--diag_suppress=esa_on_defaulted_function_ignored;-Xcudafe=--diag_suppress=field_without_dll_interface;-Xcudafe=--diag_suppress=base_class_has_different_dll_interface;-Xcudafe=--diag_suppress=dll_interface_conflict_none_assumed;-Xcudafe=--diag_suppress=dll_interface_conflict_dllexport_assumed
-- SAIGA_CUDA_ARCH_FLAGS: -gencode;arch=compute_75,code=sm_75
-- 
Compiler Flags:
-- SAIGA_CXX_FLAGS: -Wall;-Werror=return-type;-Wno-strict-aliasing;-Wno-sign-compare;-march=native
-- SAIGA_PRIVATE_CXX_FLAGS: -fvisibility=hidden
-- SAIGA_LD_FLAGS: -lstdc++fs
-- CMAKE_CXX_FLAGS: 
-- CMAKE_CXX_FLAGS_DEBUG: -g
-- CMAKE_CXX_FLAGS_RELWITHDEBINFO: -O2 -g -DNDEBUG
-- CMAKE_CXX_FLAGS_RELEASE: -O3 -DNDEBUG
-- 
CUDA Compiler Flags:
-- CMAKE_CUDA_FLAGS: 
-- CMAKE_CUDA_FLAGS_DEBUG: -g
-- CMAKE_CUDA_FLAGS_RELWITHDEBINFO: -O2 -g -DNDEBUG
-- CMAKE_CUDA_FLAGS_RELEASE: -O3 -DNDEBUG
 
-- Module enabled:     Core
-- Module enabled:     Opengl
-- Module enabled:     Cuda
-- 
No samples.
-- 
No tests.
-- Package saiga_core                 Yes, at $<INSTALL_INTERFACE:include>;$<BUILD_INTERFACE:/home/xgenie/projectfold/ADOP/External/saiga/src/>;$<BUILD_INTERFACE:/home/xgenie/projectfold/ADOP/External/saiga/shader/include/>;$<BUILD_INTERFACE:$<BUILD_INTERFACE:/home/xgenie/projectfold/ADOP/External/saiga/submodules/eigen>;$<INSTALL_INTERFACE:include/eigen3>;$<BUILD_INTERFACE:/home/xgenie/projectfold/ADOP/External/saiga/submodules/glfw/include>;$<INSTALL_INTERFACE:include>;$<BUILD_INTERFACE:/home/xgenie/projectfold/ADOP/External/saiga/submodules/zlib>;$<BUILD_INTERFACE:/home/xgenie/projectfold/ADOP/build/External/saiga/submodules/zlib>;$<BUILD_INTERFACE:/home/xgenie/projectfold/ADOP/External/saiga/submodules/libpng>;$<BUILD_INTERFACE:/home/xgenie/projectfold/ADOP/build/External/saiga/submodules/libpng>;$<BUILD_INTERFACE:/home/xgenie/projectfold/ADOP/External/saiga/submodules/assimp/code/../include>;$<BUILD_INTERFACE:/home/xgenie/projectfold/ADOP/build/External/saiga/submodules/assimp/code/../include>;$<INSTALL_INTERFACE:include>;$<BUILD_INTERFACE:/home/xgenie/projectfold/ADOP/build/External/saiga/submodules/glog>;$<BUILD_INTERFACE:/home/xgenie/projectfold/ADOP/External/saiga/submodules/glog/src>;$<INSTALL_INTERFACE:include>>;$<BUILD_INTERFACE:/home/xgenie/projectfold/ADOP/build/External/saiga/include>
-- Package saiga_opengl               Yes, at $<INSTALL_INTERFACE:include>;$<INSTALL_INTERFACE:include/saiga/opengl/glbinding/include>;$<INSTALL_INTERFACE:share/saiga/shader/include>;$<BUILD_INTERFACE:/home/xgenie/projectfold/ADOP/External/saiga/src/>;$<BUILD_INTERFACE:/home/xgenie/projectfold/ADOP/External/saiga/src/saiga/opengl/glbinding/include>;$<BUILD_INTERFACE:/home/xgenie/projectfold/ADOP/External/saiga/shader/include>;$<BUILD_INTERFACE:/usr/include;/usr/include/freetype2;/usr/include;/usr/include/x86_64-linux-gnu>
-- Package saiga_opengl               Yes, at $<INSTALL_INTERFACE:include>;$<INSTALL_INTERFACE:include/saiga/opengl/glbinding/include>;$<INSTALL_INTERFACE:share/saiga/shader/include>;$<BUILD_INTERFACE:/home/xgenie/projectfold/ADOP/External/saiga/src/>;$<BUILD_INTERFACE:/home/xgenie/projectfold/ADOP/External/saiga/src/saiga/opengl/glbinding/include>;$<BUILD_INTERFACE:/home/xgenie/projectfold/ADOP/External/saiga/shader/include>;$<BUILD_INTERFACE:/usr/include;/usr/include/freetype2;/usr/include;/usr/include/x86_64-linux-gnu>
-- Package saiga_cuda                 Yes, at $<INSTALL_INTERFACE:include>;$<BUILD_INTERFACE:/home/xgenie/projectfold/ADOP/External/saiga/src/>;$<BUILD_INTERFACE:/usr/local/cuda/include;/usr/local/cuda/include;/usr/local/cuda/include;/usr/local/cuda/include>
-- Caffe2: CUDA detected: 10.2
-- Caffe2: CUDA nvcc is: /usr/local/cuda/bin/nvcc
-- Caffe2: CUDA toolkit directory: /usr/local/cuda
-- Caffe2: Header version is: 10.2
-- Found cuDNN: v8.2.4  (include: /usr/local/cuda/include, library: /usr/local/cuda/lib64/libcudnn.so)
-- /usr/local/cuda/lib64/libnvrtc.so shorthash is 08c4863f
-- Autodetected CUDA architecture(s):  7.5
-- Added CUDA NVCC flags for: -gencode;arch=compute_75,code=sm_75
CMake Warning at /home/xgenie/anaconda3/envs/adop/lib/python3.9/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:22 (message):
  static library kineto_LIBRARY-NOTFOUND not found.
Call Stack (most recent call first):
  /home/xgenie/anaconda3/envs/adop/lib/python3.9/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:127 (append_torchlib_if_found)
  CMakeLists.txt:40 (find_package)


-- Package torch                      Yes, at /home/xgenie/anaconda3/envs/adop/lib/python3.9/site-packages/torch/include;/home/xgenie/anaconda3/envs/adop/lib/python3.9/site-packages/torch/include/torch/csrc/api/include
CMake Warning at /home/xgenie/anaconda3/envs/adop/lib/python3.9/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:22 (message):
  static library kineto_LIBRARY-NOTFOUND not found.
Call Stack (most recent call first):
  /home/xgenie/anaconda3/envs/adop/lib/python3.9/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:127 (append_torchlib_if_found)
  External/torchvision/CMakeLists.txt:17 (find_package)


-- Package torchvision                Yes, at $<BUILD_INTERFACE:/home/xgenie/projectfold/ADOP/External/torchvision/>;$<INSTALL_INTERFACE:External/torchvision/>
-- CMAKE_CXX_FLAGS -Wall -Werror=return-type -Wno-strict-aliasing -Wno-sign-compare -ftemplate-backtrace-limit=0 -march=native -pthread
-- CMAKE_EXE_LINKER_FLAGS-Wl,--no-as-needed
-- Autodetected CUDA architecture(s):  7.5
-- Test enabled:      test_loss
-- App enabled:       colmap2adop
-- App enabled:       preprocess_pointcloud
-- App enabled:       adop_train
-- App enabled:       adop_viewer
-- Configuring done
CMake Warning at External/saiga/src/saiga/opengl/CMakeLists.txt:57 (add_library):
  Cannot generate a safe runtime search path for target saiga_opengl because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libgomp.so.1] in /usr/lib/gcc/x86_64-linux-gnu/7 may be hidden by files in:
      /home/xgenie/anaconda3/envs/adop/lib

  Some of these libraries may not be found correctly.


CMake Error in src/lib/CMakeLists.txt:
  Target "NeuralPoints" requires the language dialect "CUDA17" (with compiler
  extensions), but CMake does not know the compile flags to use to enable it.


CMake Warning at src/lib/CMakeLists.txt:22 (add_library):
  Cannot generate a safe runtime search path for target NeuralPoints because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libgomp.so.1] in /usr/lib/gcc/x86_64-linux-gnu/7 may be hidden by files in:
      /home/xgenie/anaconda3/envs/adop/lib

  Some of these libraries may not be found correctly.


CMake Warning at src/tests/CMakeLists.txt:6 (add_executable):
  Cannot generate a safe runtime search path for target test_loss because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libgomp.so.1] in /usr/lib/gcc/x86_64-linux-gnu/7 may be hidden by files in:
      /home/xgenie/anaconda3/envs/adop/lib

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  src/tests/CMakeLists.txt:21 (saiga_test)


CMake Warning at src/apps/CMakeLists.txt:25 (add_executable):
  Cannot generate a safe runtime search path for target adop_viewer because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libgomp.so.1] in /usr/lib/gcc/x86_64-linux-gnu/7 may be hidden by files in:
      /home/xgenie/anaconda3/envs/adop/lib

  Some of these libraries may not be found correctly.


CMake Warning at src/apps/CMakeLists.txt:15 (add_executable):
  Cannot generate a safe runtime search path for target colmap2adop because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libgomp.so.1] in /usr/lib/gcc/x86_64-linux-gnu/7 may be hidden by files in:
      /home/xgenie/anaconda3/envs/adop/lib

  Some of these libraries may not be found correctly.


CMake Warning at src/apps/CMakeLists.txt:18 (add_executable):
  Cannot generate a safe runtime search path for target preprocess_pointcloud
  because files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libgomp.so.1] in /usr/lib/gcc/x86_64-linux-gnu/7 may be hidden by files in:
      /home/xgenie/anaconda3/envs/adop/lib

  Some of these libraries may not be found correctly.


CMake Warning at src/apps/CMakeLists.txt:21 (add_executable):
  Cannot generate a safe runtime search path for target adop_train because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libgomp.so.1] in /usr/lib/gcc/x86_64-linux-gnu/7 may be hidden by files in:
      /home/xgenie/anaconda3/envs/adop/lib

  Some of these libraries may not be found correctly.

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.
[  2%] Built target glog
[  4%] Built target genfiles
[  4%] Built target gtest
[  9%] Built target zlibstatic
[ 11%] Built target glfw
[ 11%] Built target gmock
[ 11%] Built target gtest_main
[ 13%] Built target png_static
[ 13%] Built target gmock_main
[ 48%] Built target assimp
[ 53%] Built target torchvision
[ 67%] Built target saiga_core
[ 67%] Built target saiga_test
[ 90%] Built target saiga_opengl
[ 95%] Built target saiga_cuda
[ 95%] Building CUDA object src/lib/CMakeFiles/NeuralPoints.dir/rendering/EnvironmentMap.cu.o
[ 95%] Building CUDA object src/lib/CMakeFiles/NeuralPoints.dir/rendering/PointRenderer.cu.o
/home/xgenie/projectfold/ADOP/src/lib/./config.h(25): error: inline specifier allowed on function declarations only

/home/xgenie/projectfold/ADOP/src/lib/./config.h(25): error: inline specifier allowed on function declarations only

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.h(37): error: qualified name is not allowed

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.h(39): error: Function is not a template

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.h(39): error: not a class or struct name

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.h(42): error: identifier "variable_list" is undefined

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.h(42): error: identifier "AutogradContext" is undefined

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.h(42): error: identifier "Variable" is undefined

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.h(42): error: identifier "Variable" is undefined

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.h(42): error: identifier "Variable" is undefined

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.h(43): error: identifier "Variable" is undefined

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.h(43): error: identifier "Variable" is undefined

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.h(43): error: identifier "IValue" is undefined

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.h(45): error: identifier "variable_list" is undefined

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.h(45): error: identifier "AutogradContext" is undefined

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.h(45): error: identifier "variable_list" is undefined

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(422): error: expected an identifier

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(422): error: identifier "K" is undefined

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(422): error: expected a "]"

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(422): warning: nonstandard use of "auto" to both deduce the type from an initializer and to announce a trailing return type

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(422): error: cannot deduce "auto" type (initializer required)

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(422): error: expected a ";"

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(429): error: expected an identifier

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(429): error: identifier "aff" is undefined

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(429): error: expected a "]"

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(429): warning: nonstandard use of "auto" to both deduce the type from an initializer and to announce a trailing return type

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(429): error: cannot deduce "auto" type (initializer required)

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(429): error: expected a ";"

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(621): error: expected an identifier

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(621): error: identifier "K" is undefined

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(621): error: expected a "]"

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(621): warning: nonstandard use of "auto" to both deduce the type from an initializer and to announce a trailing return type

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(621): error: cannot deduce "auto" type (initializer required)

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(621): error: expected a ";"

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(622): error: expected an identifier

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(622): error: identifier "g_point" is undefined

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(622): error: expected a "]"

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(622): warning: nonstandard use of "auto" to both deduce the type from an initializer and to announce a trailing return type

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(622): error: cannot deduce "auto" type (initializer required)

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(622): error: expected a ";"

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(686): error: expected an identifier

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(686): error: identifier "aff" is undefined

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(686): error: expected a "]"

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(686): warning: nonstandard use of "auto" to both deduce the type from an initializer and to announce a trailing return type

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(686): error: cannot deduce "auto" type (initializer required)

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(686): error: expected a ";"

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(687): error: expected an identifier

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(687): error: identifier "g_point" is undefined

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(687): error: expected a "]"

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(687): warning: nonstandard use of "auto" to both deduce the type from an initializer and to announce a trailing return type

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(687): error: cannot deduce "auto" type (initializer required)

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(687): error: expected a ";"

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(527): warning: variable "iw" was declared but never referenced

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(615): warning: variable "cam2" was set but never used

1 error detected in the compilation of "/tmp/tmpxft_00001f02_00000000-6_EnvironmentMap.cpp1.ii".
src/lib/CMakeFiles/NeuralPoints.dir/build.make:263: recipe for target 'src/lib/CMakeFiles/NeuralPoints.dir/rendering/EnvironmentMap.cu.o' failed
make[2]: *** [src/lib/CMakeFiles/NeuralPoints.dir/rendering/EnvironmentMap.cu.o] Error 1
make[2]: *** 正在等待未完成的任务....
/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(240): error: expected an identifier

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(240): error: identifier "K" is undefined

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(240): error: expected a "]"

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(240): warning: nonstandard use of "auto" to both deduce the type from an initializer and to announce a trailing return type

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(240): error: cannot deduce "auto" type (initializer required)

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(240): error: expected a ";"

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(247): error: expected an identifier

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(247): error: identifier "aff" is undefined

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(247): error: expected a "]"

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(247): warning: nonstandard use of "auto" to both deduce the type from an initializer and to announce a trailing return type

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(247): error: cannot deduce "auto" type (initializer required)

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(247): error: expected a ";"

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(284): warning: constexpr if statements are a C++17 feature

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(344): error: expected an identifier

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(344): error: identifier "K" is undefined

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(344): error: expected a "]"

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(344): warning: nonstandard use of "auto" to both deduce the type from an initializer and to announce a trailing return type

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(344): error: cannot deduce "auto" type (initializer required)

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(344): error: expected a ";"

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(351): error: expected an identifier

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(351): error: identifier "aff" is undefined

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(351): error: expected a "]"

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(351): warning: nonstandard use of "auto" to both deduce the type from an initializer and to announce a trailing return type

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(351): error: cannot deduce "auto" type (initializer required)

/home/xgenie/projectfold/ADOP/src/lib/rendering/PointRenderer.cu(351): error: expected a ";"

65 errors detected in the compilation of "/tmp/tmpxft_00001f03_00000000-6_PointRenderer.cpp1.ii".
src/lib/CMakeFiles/NeuralPoints.dir/build.make:276: recipe for target 'src/lib/CMakeFiles/NeuralPoints.dir/rendering/PointRenderer.cu.o' failed
make[2]: *** [src/lib/CMakeFiles/NeuralPoints.dir/rendering/PointRenderer.cu.o] Error 1
CMakeFiles/Makefile2:13941: recipe for target 'src/lib/CMakeFiles/NeuralPoints.dir/all' failed
make[1]: *** [src/lib/CMakeFiles/NeuralPoints.dir/all] Error 2
Makefile:170: recipe for target 'all' failed
make: *** [all] Error 2

from adop.

darglein avatar darglein commented on July 20, 2024

Yes, you are using an incompatible CUDA version:

-- Enabled CUDA. Version: 10.2.89
-- Package CUDA::cudart               Yes, at /usr/local/cuda/include
-- Package CUDA::nppif                Yes, at /usr/local/cuda/include
-- Package CUDA::nppig                Yes, at /usr/local/cuda/include
-- Package CUDA::nvToolsExt           Yes, at /usr/local/cuda/include

To fix that you should just use the provided scripts to create and build ADOP inside the conda environment.

cd ADOP
./create_environement.sh
./install_pytorch.sh
rm -rf build/
./build_adop.sh

If you take a look in create_environment.sh you can see that cuda 11.2 is installed.

from adop.

ookey avatar ookey commented on July 20, 2024

hi there,
I must say I was surprised that conda does not modify CUDA_HOME env variable, thus build will still use the system toolkit, not the 11.2 that was just installed.

I had to force:

export CUDA_HOME=~/anaconda3/envs/adop/pkgs/cuda-toolkit/

Unless I missed something?

from adop.

darglein avatar darglein commented on July 20, 2024

Yes that seems strange. @ookey what is your output of:

find ~/anaconda3/envs/adop/ -name "device_types.h"
find ~/anaconda3/envs/adop/ -name "nvcc"

from adop.

XGenietony avatar XGenietony commented on July 20, 2024

Thanks a lot, i have solved this problem.
I installed cuda11.2 in my machine, and use cmake-gui choose cuda11.2.
Then everything has been done.

from adop.

ookey avatar ookey commented on July 20, 2024

Yes that seems strange. @ookey what is your output of:

find ~/anaconda3/envs/adop/ -name "device_types.h"
find ~/anaconda3/envs/adop/ -name "nvcc"
(adop) $ find ~/anaconda3/envs/adop/ -name "device_types.h"
/home/matthieu/anaconda3/envs/adop/pkgs/cuda-toolkit/targets/x86_64-linux/include/device_types.h
/home/matthieu/anaconda3/envs/adop/include/device_types.h
(adop) $ find ~/anaconda3/envs/adop/ -name "nvcc"
/home/matthieu/anaconda3/envs/adop/pkgs/cuda-toolkit/bin/nvcc
/home/matthieu/anaconda3/envs/adop/bin/nvcc

I'm just realizing that my default environment defines CUDA_HOME=/etc/alternatives/cuda (it's the way I manage several cuda version on my pc). If I unset CUDA_HOME your scripts work as expected.

from adop.

darglein avatar darglein commented on July 20, 2024

Thanks for figuring that out. I have added unset CUDA_HOME in the build scripts. 5faf5c2

from adop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.