instant-ngp icon indicating copy to clipboard operation
instant-ngp copied to clipboard

Failing on [CMakeFiles/ngp.dir/build.make:284: CMakeFiles/ngp.dir/src/testbed.cu.o] Error 1

Open tmo17 opened this issue 2 years ago • 5 comments

[ 62%] Built target tiny-cuda-nn [ 63%] Converting PTX files to a C header CMake Error: Error processing file: /home/BOSDYN/tmorcott/Desktop/Development/NeRF/instant-ngp/cmake/bin2c_wrapper.cmake gmake[2]: *** [CMakeFiles/ngp.dir/build.make:74: optix_ptx.h] Error 1 gmake[1]: *** [CMakeFiles/Makefile2:307: CMakeFiles/ngp.dir/all] Error 2 gmake: *** [Makefile:136: all] Error 2

Versions:

-- The C compiler identification is GNU 12.3.0 -- The CXX compiler identification is GNU 12.3.0 -- The CUDA compiler identification is NVIDIA 12.2.140

tmo17 avatar Oct 11 '23 17:10 tmo17

I recloned the repo and ran everything again. I now pass the above but still fail to build at the below mark.

[ 92%] Building CUDA object CMakeFiles/ngp.dir/src/triangle_bvh.cu.o /home/BOSDYN/tmorcott/Desktop/Development/NeRF/instant-ngp/src/testbed_nerf.cu(1854): warning #177-D: variable "resolution" was declared but never referenced auto resolution = render_buffer.resolution; ^

Remark: The warnings can be suppressed with "-diag-suppress "

/home/BOSDYN/tmorcott/Desktop/Development/NeRF/instant-ngp/src/marching_cubes.cu: In function ‘void ngp::draw_mesh_gl(const tcnn::GPUMemory<tcnn::tvec<float, 3, 4> >&, const tcnn::GPUMemory<tcnn::tvec<float, 3, 4> >&, const tcnn::GPUMemory<tcnn::tvec<float, 3, 4> >&, const tcnn::GPUMemory&, const tcnn::ivec2&, const tcnn::vec2&, const tcnn::mat4x3&, const tcnn::vec2&, int)’: /home/BOSDYN/tmorcott/Desktop/Development/NeRF/instant-ngp/src/marching_cubes.cu:132:57: warning: ‘cudaError_t cudaGLUnregisterBufferObject(GLuint)’ is deprecated [-Wdeprecated-declarations] 132 | cudaGLUnregisterBufferObject(VBO[i]); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/local/cuda-12.2/bin/../targets/x86_64-linux/include/cuda_gl_interop.h:410:46: note: declared here 410 | extern __CUDA_DEPRECATED host cudaError_t CUDARTAPI cudaGLUnregisterBufferObject(GLuint bufObj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/BOSDYN/tmorcott/Desktop/Development/NeRF/instant-ngp/src/marching_cubes.cu:139:48: warning: ‘cudaError_t cudaGLRegisterBufferObject(GLuint)’ is deprecated [-Wdeprecated-declarations] 139 | cudaGLRegisterBufferObject(VBO[i]); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/local/cuda-12.2/bin/../targets/x86_64-linux/include/cuda_gl_interop.h:333:46: note: declared here 333 | extern __CUDA_DEPRECATED host cudaError_t CUDARTAPI cudaGLRegisterBufferObject(GLuint bufObj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /home/BOSDYN/tmorcott/Desktop/Development/NeRF/instant-ngp/src/marching_cubes.cu:144:50: warning: ‘cudaError_t cudaGLUnregisterBufferObject(GLuint)’ is deprecated [-Wdeprecated-declarations] 144 | cudaGLUnregisterBufferObject(els); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /usr/local/cuda-12.2/bin/../targets/x86_64-linux/include/cuda_gl_interop.h:410:46: note: declared here 410 | extern __CUDA_DEPRECATED host cudaError_t CUDARTAPI cudaGLUnregisterBufferObject(GLuint bufObj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/BOSDYN/tmorcott/Desktop/Development/NeRF/instant-ngp/src/marching_cubes.cu:151:41: warning: ‘cudaError_t cudaGLRegisterBufferObject(GLuint)’ is deprecated [-Wdeprecated-declarations] 151 | cudaGLRegisterBufferObject(els); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /usr/local/cuda-12.2/bin/../targets/x86_64-linux/include/cuda_gl_interop.h:333:46: note: declared here 333 | extern __CUDA_DEPRECATED host cudaError_t CUDARTAPI cudaGLRegisterBufferObject(GLuint bufObj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /home/BOSDYN/tmorcott/Desktop/Development/NeRF/instant-ngp/src/marching_cubes.cu:154:29: warning: ‘cudaError_t cudaGLMapBufferObject(void**, GLuint)’ is deprecated [-Wdeprecated-declarations] 154 | cudaGLMapBufferObject(&ptr, VBO[0]); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/local/cuda-12.2/bin/../targets/x86_64-linux/include/cuda_gl_interop.h:362:46: note: declared here 362 | extern __CUDA_DEPRECATED host cudaError_t CUDARTAPI cudaGLMapBufferObject(void devPtr, GLuint bufObj); | ^~~~~~~~~~~~~~~~~~~~~ /home/BOSDYN/tmorcott/Desktop/Development/NeRF/instant-ngp/src/marching_cubes.cu:156:29: warning: ‘cudaError_t cudaGLMapBufferObject(void, GLuint)’ is deprecated [-Wdeprecated-declarations] 156 | cudaGLMapBufferObject(&ptr, VBO[1]); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/local/cuda-12.2/bin/../targets/x86_64-linux/include/cuda_gl_interop.h:362:46: note: declared here 362 | extern __CUDA_DEPRECATED host cudaError_t CUDARTAPI cudaGLMapBufferObject(void devPtr, GLuint bufObj); | ^~~~~~~~~~~~~~~~~~~~~ /home/BOSDYN/tmorcott/Desktop/Development/NeRF/instant-ngp/src/marching_cubes.cu:158:29: warning: ‘cudaError_t cudaGLMapBufferObject(void, GLuint)’ is deprecated [-Wdeprecated-declarations] 158 | cudaGLMapBufferObject(&ptr, VBO[2]); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/local/cuda-12.2/bin/../targets/x86_64-linux/include/cuda_gl_interop.h:362:46: note: declared here 362 | extern __CUDA_DEPRECATED host cudaError_t CUDARTAPI cudaGLMapBufferObject(void devPtr, GLuint bufObj); | ^~~~~~~~~~~~~~~~~~~~~ /home/BOSDYN/tmorcott/Desktop/Development/NeRF/instant-ngp/src/marching_cubes.cu:164:31: warning: ‘cudaError_t cudaGLUnmapBufferObject(GLuint)’ is deprecated [-Wdeprecated-declarations] 164 | cudaGLUnmapBufferObject(VBO[2]); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/local/cuda-12.2/bin/../targets/x86_64-linux/include/cuda_gl_interop.h:388:46: note: declared here 388 | extern __CUDA_DEPRECATED host cudaError_t CUDARTAPI cudaGLUnmapBufferObject(GLuint bufObj); | ^~~~~~~~~~~~~~~~~~~~~~~ /home/BOSDYN/tmorcott/Desktop/Development/NeRF/instant-ngp/src/marching_cubes.cu:165:31: warning: ‘cudaError_t cudaGLUnmapBufferObject(GLuint)’ is deprecated [-Wdeprecated-declarations] 165 | cudaGLUnmapBufferObject(VBO[1]); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/local/cuda-12.2/bin/../targets/x86_64-linux/include/cuda_gl_interop.h:388:46: note: declared here 388 | extern __CUDA_DEPRECATED host cudaError_t CUDARTAPI cudaGLUnmapBufferObject(GLuint bufObj); | ^~~~~~~~~~~~~~~~~~~~~~~ /home/BOSDYN/tmorcott/Desktop/Development/NeRF/instant-ngp/src/marching_cubes.cu:166:31: warning: ‘cudaError_t cudaGLUnmapBufferObject(GLuint)’ is deprecated [-Wdeprecated-declarations] 166 | cudaGLUnmapBufferObject(VBO[0]); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/local/cuda-12.2/bin/../targets/x86_64-linux/include/cuda_gl_interop.h:388:46: note: declared here 388 | extern __CUDA_DEPRECATED host cudaError_t CUDARTAPI cudaGLUnmapBufferObject(GLuint bufObj); | ^~~~~~~~~~~~~~~~~~~~~~~ /home/BOSDYN/tmorcott/Desktop/Development/NeRF/instant-ngp/src/marching_cubes.cu:167:29: warning: ‘cudaError_t cudaGLMapBufferObject(void, GLuint)’ is deprecated [-Wdeprecated-declarations] 167 | cudaGLMapBufferObject(&ptr, els); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ /usr/local/cuda-12.2/bin/../targets/x86_64-linux/include/cuda_gl_interop.h:362:46: note: declared here 362 | extern __CUDA_DEPRECATED host cudaError_t CUDARTAPI cudaGLMapBufferObject(void **devPtr, GLuint bufObj); | ^~~~~~~~~~~~~~~~~~~~~ /home/BOSDYN/tmorcott/Desktop/Development/NeRF/instant-ngp/src/marching_cubes.cu:169:31: warning: ‘cudaError_t cudaGLUnmapBufferObject(GLuint)’ is deprecated [-Wdeprecated-declarations] 169 | cudaGLUnmapBufferObject(els); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~ /usr/local/cuda-12.2/bin/../targets/x86_64-linux/include/cuda_gl_interop.h:388:46: note: declared here 388 | extern __CUDA_DEPRECATED host cudaError_t CUDARTAPI cudaGLUnmapBufferObject(GLuint bufObj); | ^~~~~~~~~~~~~~~~~~~~~~~ /home/BOSDYN/tmorcott/Desktop/Development/NeRF/instant-ngp/src/testbed.cu: In member function ‘void ngp::Testbed::set_mode(ngp::ETestbedMode)’: /home/BOSDYN/tmorcott/Desktop/Development/NeRF/instant-ngp/src/testbed.cu:174:23: error: no match for ‘operator=’ (operand types are ‘ngp::Testbed::Volume’ and ‘’) 174 | m_volume = {}; | ^ /home/BOSDYN/tmorcott/Desktop/Development/NeRF/instant-ngp/include/neural-graphics-primitives/testbed.h:864:15: note: candidate: ‘ngp::Testbed::Volume& ngp::Testbed::Volume::operator=(ngp::Testbed::Volume&&)’ 864 | struct Volume { | ^~~~~~ /home/BOSDYN/tmorcott/Desktop/Development/NeRF/instant-ngp/include/neural-graphics-primitives/testbed.h:864:15: note: no known conversion for argument 1 from ‘’ to ‘ngp::Testbed::Volume&&’ gmake[2]: *** [CMakeFiles/ngp.dir/build.make:284: CMakeFiles/ngp.dir/src/testbed.cu.o] Error 1 gmake[2]: *** Waiting for unfinished jobs.... gmake[1]: *** [CMakeFiles/Makefile2:308: CMakeFiles/ngp.dir/all] Error 2 gmake: *** [Makefile:136: all] Error 2

tmo17 avatar Oct 11 '23 17:10 tmo17

Hi

Is there any guidance that could be given as to why this may be happening?

Thank you.

tmo17 avatar Oct 18 '23 00:10 tmo17

@tmo17 Did you solve your problem? I used a lower version of cuda to solve this problem cmake 3.21 cuda3.7 python 3.8 ubuntu20.04

num-doc avatar Oct 23 '23 13:10 num-doc

@tmo17 I had the same error with you before. My cuda is 11.8. Now I don't have this problem when I use 11.7

num-doc avatar Oct 23 '23 13:10 num-doc

I had same problem, this answer solves. https://github.com/NVlabs/instant-ngp/issues/1372#issuecomment-1586179152

enderbas avatar Nov 03 '23 09:11 enderbas