Advertisement
iSach

Untitled

Feb 14th, 2023
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.53 KB | None | 0 0
  1. No checkpoints to load, training from scratch
  2. nerfstudio field components: Setting up CUDA (This may take a few minutes the first time)
  3. Printing profiling stats, from longest to shortest duration in seconds
  4. Traceback (most recent call last):
  5. File "/home/user/.local/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1808, in _run_ninja_build
  6. subprocess.run(
  7. File "/usr/lib/python3.10/subprocess.py", line 524, in run
  8. raise CalledProcessError(retcode, process.args,
  9. subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
  10.  
  11. The above exception was the direct cause of the following exception:
  12.  
  13. Traceback (most recent call last):
  14. File "/home/user/.local/bin/ns-train", line 8, in <module>
  15. sys.exit(entrypoint())
  16. File "/home/user/nerfstudio/scripts/train.py", line 247, in entrypoint
  17. main(
  18. File "/home/user/nerfstudio/scripts/train.py", line 233, in main
  19. launch(
  20. File "/home/user/nerfstudio/scripts/train.py", line 172, in launch
  21. main_func(local_rank=0, world_size=world_size, config=config)
  22. File "/home/user/nerfstudio/scripts/train.py", line 87, in train_loop
  23. trainer.train()
  24. File "/home/user/nerfstudio/nerfstudio/engine/trainer.py", line 198, in train
  25. callback.run_callback_at_location(
  26. File "/home/user/nerfstudio/nerfstudio/engine/callbacks.py", line 103, in run_callback_at_location
  27. self.run_callback(step=step)
  28. File "/home/user/nerfstudio/nerfstudio/engine/callbacks.py", line 90, in run_callback
  29. self.func(*self.args, **self.kwargs, step=step)
  30. File "/home/user/nerfstudio/nerfstudio/models/instant_ngp.py", line 148, in update_occupancy_grid
  31. self.occupancy_grid.every_n_step(
  32. File "/home/user/.local/lib/python3.10/site-packages/torch/autograd/grad_mode.py", line 27, in decorate_context
  33. return func(*args, **kwargs)
  34. File "/home/user/.local/lib/python3.10/site-packages/nerfacc/grid.py", line 271, in every_n_step
  35. self._update(
  36. File "/home/user/.local/lib/python3.10/site-packages/torch/autograd/grad_mode.py", line 27, in decorate_context
  37. return func(*args, **kwargs)
  38. File "/home/user/.local/lib/python3.10/site-packages/nerfacc/grid.py", line 229, in _update
  39. occ = occ_eval_fn(x).squeeze(-1)
  40. File "/home/user/nerfstudio/nerfstudio/models/instant_ngp.py", line 150, in <lambda>
  41. occ_eval_fn=lambda x: self.field.get_opacity(x, self.config.render_step_size),
  42. File "/home/user/nerfstudio/nerfstudio/fields/nerfplayer_ngp_field.py", line 233, in get_opacity
  43. density = self.density_fn(positions, t / (time_intervals - 1) * torch.ones_like(positions)[..., [0]])
  44. File "/home/user/nerfstudio/nerfstudio/fields/nerfplayer_ngp_field.py", line 217, in density_fn
  45. density, _ = self.get_density(ray_samples)
  46. File "/home/user/nerfstudio/nerfstudio/fields/nerfplayer_ngp_field.py", line 154, in get_density
  47. h = self.mlp_base(positions_flat, times_flat)
  48. File "/home/user/.local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
  49. return forward_call(*input, **kwargs)
  50. File "/home/user/nerfstudio/nerfstudio/field_components/temporal_grid.py", line 336, in forward
  51. outputs = TemporalGridEncodeFunc.apply(
  52. File "/home/user/.local/lib/python3.10/site-packages/torch/cuda/amp/autocast_mode.py", line 110, in decorate_fwd
  53. return fwd(*args, **kwargs)
  54. File "/home/user/nerfstudio/nerfstudio/field_components/temporal_grid.py", line 89, in forward
  55. _C.temporal_grid_encode_forward(
  56. File "/home/user/nerfstudio/nerfstudio/field_components/cuda/__init__.py", line 24, in call_cuda
  57. from ._backend import _C
  58. File "/home/user/nerfstudio/nerfstudio/field_components/cuda/_backend.py", line 46, in <module>
  59. _C = load(
  60. File "/home/user/.local/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1202, in load
  61. return _jit_compile(
  62. File "/home/user/.local/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1425, in _jit_compile
  63. _write_ninja_file_and_build_library(
  64. File "/home/user/.local/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1537, in _write_ninja_file_and_build_library
  65. _run_ninja_build(
  66. File "/home/user/.local/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1824, in _run_ninja_build
  67. raise RuntimeError(message) from e
  68. RuntimeError: Error building extension 'nerfstudio_field_components_cuda': [1/3] /usr/local/cuda/bin/nvcc -DTORCH_EXTENSION_NAME=nerfstudio_field_components_cuda -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/user/.local/lib/python3.10/site-packages/torch/include -isystem /home/user/.local/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -isystem /home/user/.local/lib/python3.10/site-packages/torch/include/TH -isystem /home/user/.local/lib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /usr/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=compute_61 -gencode=arch=compute_61,code=sm_61 --compiler-options '-fPIC' -O3 -std=c++14 -c /home/user/nerfstudio/nerfstudio/field_components/cuda/csrc/temporal_gridencoder.cu -o temporal_gridencoder.cuda.o
  69. FAILED: temporal_gridencoder.cuda.o
  70. /usr/local/cuda/bin/nvcc -DTORCH_EXTENSION_NAME=nerfstudio_field_components_cuda -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/user/.local/lib/python3.10/site-packages/torch/include -isystem /home/user/.local/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -isystem /home/user/.local/lib/python3.10/site-packages/torch/include/TH -isystem /home/user/.local/lib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /usr/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=compute_61 -gencode=arch=compute_61,code=sm_61 --compiler-options '-fPIC' -O3 -std=c++14 -c /home/user/nerfstudio/nerfstudio/field_components/cuda/csrc/temporal_gridencoder.cu -o temporal_gridencoder.cuda.o
  71. /home/user/nerfstudio/nerfstudio/field_components/cuda/csrc/temporal_gridencoder.cu(36): error: no instance of overloaded function "atomicAdd" matches the argument list
  72. argument types are: (__half *, c10::Half)
  73.  
  74. /home/user/nerfstudio/nerfstudio/field_components/cuda/csrc/temporal_gridencoder.cu(222): warning #186-D: pointless comparison of unsigned integer with zero
  75. detected during:
  76. instantiation of "void kernel_grid<scalar_t,D,C>(const float *, const float *, const scalar_t *, const int *, scalar_t *, uint32_t, uint32_t, uint32_t, float, uint32_t, scalar_t *, uint32_t, __nv_bool) [with scalar_t=double, D=1U, C=1U]"
  77. (425): here
  78. instantiation of "void kernel_grid_wrapper<scalar_t,D>(const float *, const float *, const scalar_t *, const int *, scalar_t *, uint32_t, uint32_t, uint32_t, uint32_t, float, uint32_t, scalar_t *, uint32_t, __nv_bool) [with scalar_t=double, D=1U]"
  79. (460): here
  80. instantiation of "void temporal_grid_encode_forward_cuda(const float *, const float *, const scalar_t *, const int *, scalar_t *, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, float, uint32_t, scalar_t *, uint32_t, __nv_bool) [with scalar_t=double]"
  81. (610): here
  82.  
  83. /home/user/nerfstudio/nerfstudio/field_components/cuda/csrc/temporal_gridencoder.cu(222): warning #186-D: pointless comparison of unsigned integer with zero
  84. detected during:
  85. instantiation of "void kernel_grid<scalar_t,D,C>(const float *, const float *, const scalar_t *, const int *, scalar_t *, uint32_t, uint32_t, uint32_t, float, uint32_t, scalar_t *, uint32_t, __nv_bool) [with scalar_t=double, D=1U, C=2U]"
  86. (428): here
  87. instantiation of "void kernel_grid_wrapper<scalar_t,D>(const float *, const float *, const scalar_t *, const int *, scalar_t *, uint32_t, uint32_t, uint32_t, uint32_t, float, uint32_t, scalar_t *, uint32_t, __nv_bool) [with scalar_t=double, D=1U]"
  88. (460): here
  89. instantiation of "void temporal_grid_encode_forward_cuda(const float *, const float *, const scalar_t *, const int *, scalar_t *, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, float, uint32_t, scalar_t *, uint32_t, __nv_bool) [with scalar_t=double]"
  90. (610): here
  91.  
  92. /home/user/nerfstudio/nerfstudio/field_components/cuda/csrc/temporal_gridencoder.cu(222): warning #186-D: pointless comparison of unsigned integer with zero
  93. detected during:
  94. instantiation of "void kernel_grid<scalar_t,D,C>(const float *, const float *, const scalar_t *, const int *, scalar_t *, uint32_t, uint32_t, uint32_t, float, uint32_t, scalar_t *, uint32_t, __nv_bool) [with scalar_t=double, D=1U, C=4U]"
  95. (431): here
  96. instantiation of "void kernel_grid_wrapper<scalar_t,D>(const float *, const float *, const scalar_t *, const int *, scalar_t *, uint32_t, uint32_t, uint32_t, uint32_t, float, uint32_t, scalar_t *, uint32_t, __nv_bool) [with scalar_t=double, D=1U]"
  97. (460): here
  98. instantiation of "void temporal_grid_encode_forward_cuda(const float *, const float *, const scalar_t *, const int *, scalar_t *, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, float, uint32_t, scalar_t *, uint32_t, __nv_bool) [with scalar_t=double]"
  99. (610): here
  100.  
  101. /home/user/nerfstudio/nerfstudio/field_components/cuda/csrc/temporal_gridencoder.cu(222): warning #186-D: pointless comparison of unsigned integer with zero
  102. detected during:
  103. instantiation of "void kernel_grid<scalar_t,D,C>(const float *, const float *, const scalar_t *, const int *, scalar_t *, uint32_t, uint32_t, uint32_t, float, uint32_t, scalar_t *, uint32_t, __nv_bool) [with scalar_t=double, D=1U, C=8U]"
  104. (434): here
  105. instantiation of "void kernel_grid_wrapper<scalar_t,D>(const float *, const float *, const scalar_t *, const int *, scalar_t *, uint32_t, uint32_t, uint32_t, uint32_t, float, uint32_t, scalar_t *, uint32_t, __nv_bool) [with scalar_t=double, D=1U]"
  106. (460): here
  107. instantiation of "void temporal_grid_encode_forward_cuda(const float *, const float *, const scalar_t *, const int *, scalar_t *, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, float, uint32_t, scalar_t *, uint32_t, __nv_bool) [with scalar_t=double]"
  108. (610): here
  109.  
  110. /home/user/nerfstudio/nerfstudio/field_components/cuda/csrc/temporal_gridencoder.cu(222): warning #186-D: pointless comparison of unsigned integer with zero
  111. detected during:
  112. instantiation of "void kernel_grid<scalar_t,D,C>(const float *, const float *, const scalar_t *, const int *, scalar_t *, uint32_t, uint32_t, uint32_t, float, uint32_t, scalar_t *, uint32_t, __nv_bool) [with scalar_t=float, D=1U, C=1U]"
  113. (425): here
  114. instantiation of "void kernel_grid_wrapper<scalar_t,D>(const float *, const float *, const scalar_t *, const int *, scalar_t *, uint32_t, uint32_t, uint32_t, uint32_t, float, uint32_t, scalar_t *, uint32_t, __nv_bool) [with scalar_t=float, D=1U]"
  115. (460): here
  116. instantiation of "void temporal_grid_encode_forward_cuda(const float *, const float *, const scalar_t *, const int *, scalar_t *, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, float, uint32_t, scalar_t *, uint32_t, __nv_bool) [with scalar_t=float]"
  117. (610): here
  118.  
  119. /home/user/nerfstudio/nerfstudio/field_components/cuda/csrc/temporal_gridencoder.cu(222): warning #186-D: pointless comparison of unsigned integer with zero
  120. detected during:
  121. instantiation of "void kernel_grid<scalar_t,D,C>(const float *, const float *, const scalar_t *, const int *, scalar_t *, uint32_t, uint32_t, uint32_t, float, uint32_t, scalar_t *, uint32_t, __nv_bool) [with scalar_t=float, D=1U, C=2U]"
  122. (428): here
  123. instantiation of "void kernel_grid_wrapper<scalar_t,D>(const float *, const float *, const scalar_t *, const int *, scalar_t *, uint32_t, uint32_t, uint32_t, uint32_t, float, uint32_t, scalar_t *, uint32_t, __nv_bool) [with scalar_t=float, D=1U]"
  124. (460): here
  125. instantiation of "void temporal_grid_encode_forward_cuda(const float *, const float *, const scalar_t *, const int *, scalar_t *, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, float, uint32_t, scalar_t *, uint32_t, __nv_bool) [with scalar_t=float]"
  126. (610): here
  127.  
  128. /home/user/nerfstudio/nerfstudio/field_components/cuda/csrc/temporal_gridencoder.cu(222): warning #186-D: pointless comparison of unsigned integer with zero
  129. detected during:
  130. instantiation of "void kernel_grid<scalar_t,D,C>(const float *, const float *, const scalar_t *, const int *, scalar_t *, uint32_t, uint32_t, uint32_t, float, uint32_t, scalar_t *, uint32_t, __nv_bool) [with scalar_t=float, D=1U, C=4U]"
  131. (431): here
  132. instantiation of "void kernel_grid_wrapper<scalar_t,D>(const float *, const float *, const scalar_t *, const int *, scalar_t *, uint32_t, uint32_t, uint32_t, uint32_t, float, uint32_t, scalar_t *, uint32_t, __nv_bool) [with scalar_t=float, D=1U]"
  133. (460): here
  134. instantiation of "void temporal_grid_encode_forward_cuda(const float *, const float *, const scalar_t *, const int *, scalar_t *, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, float, uint32_t, scalar_t *, uint32_t, __nv_bool) [with scalar_t=float]"
  135. (610): here
  136.  
  137. /home/user/nerfstudio/nerfstudio/field_components/cuda/csrc/temporal_gridencoder.cu(222): warning #186-D: pointless comparison of unsigned integer with zero
  138. detected during:
  139. instantiation of "void kernel_grid<scalar_t,D,C>(const float *, const float *, const scalar_t *, const int *, scalar_t *, uint32_t, uint32_t, uint32_t, float, uint32_t, scalar_t *, uint32_t, __nv_bool) [with scalar_t=float, D=1U, C=8U]"
  140. (434): here
  141. instantiation of "void kernel_grid_wrapper<scalar_t,D>(const float *, const float *, const scalar_t *, const int *, scalar_t *, uint32_t, uint32_t, uint32_t, uint32_t, float, uint32_t, scalar_t *, uint32_t, __nv_bool) [with scalar_t=float, D=1U]"
  142. (460): here
  143. instantiation of "void temporal_grid_encode_forward_cuda(const float *, const float *, const scalar_t *, const int *, scalar_t *, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, float, uint32_t, scalar_t *, uint32_t, __nv_bool) [with scalar_t=float]"
  144. (610): here
  145.  
  146. /home/user/nerfstudio/nerfstudio/field_components/cuda/csrc/temporal_gridencoder.cu(222): warning #186-D: pointless comparison of unsigned integer with zero
  147. detected during:
  148. instantiation of "void kernel_grid<scalar_t,D,C>(const float *, const float *, const scalar_t *, const int *, scalar_t *, uint32_t, uint32_t, uint32_t, float, uint32_t, scalar_t *, uint32_t, __nv_bool) [with scalar_t=c10::Half, D=1U, C=1U]"
  149. (425): here
  150. instantiation of "void kernel_grid_wrapper<scalar_t,D>(const float *, const float *, const scalar_t *, const int *, scalar_t *, uint32_t, uint32_t, uint32_t, uint32_t, float, uint32_t, scalar_t *, uint32_t, __nv_bool) [with scalar_t=c10::Half, D=1U]"
  151. (460): here
  152. instantiation of "void temporal_grid_encode_forward_cuda(const float *, const float *, const scalar_t *, const int *, scalar_t *, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, float, uint32_t, scalar_t *, uint32_t, __nv_bool) [with scalar_t=c10::Half]"
  153. (610): here
  154.  
  155. /home/user/nerfstudio/nerfstudio/field_components/cuda/csrc/temporal_gridencoder.cu(222): warning #186-D: pointless comparison of unsigned integer with zero
  156. detected during:
  157. instantiation of "void kernel_grid<scalar_t,D,C>(const float *, const float *, const scalar_t *, const int *, scalar_t *, uint32_t, uint32_t, uint32_t, float, uint32_t, scalar_t *, uint32_t, __nv_bool) [with scalar_t=c10::Half, D=1U, C=2U]"
  158. (428): here
  159. instantiation of "void kernel_grid_wrapper<scalar_t,D>(const float *, const float *, const scalar_t *, const int *, scalar_t *, uint32_t, uint32_t, uint32_t, uint32_t, float, uint32_t, scalar_t *, uint32_t, __nv_bool) [with scalar_t=c10::Half, D=1U]"
  160. (460): here
  161. instantiation of "void temporal_grid_encode_forward_cuda(const float *, const float *, const scalar_t *, const int *, scalar_t *, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, float, uint32_t, scalar_t *, uint32_t, __nv_bool) [with scalar_t=c10::Half]"
  162. (610): here
  163.  
  164. /home/user/nerfstudio/nerfstudio/field_components/cuda/csrc/temporal_gridencoder.cu(222): warning #186-D: pointless comparison of unsigned integer with zero
  165. detected during:
  166. instantiation of "void kernel_grid<scalar_t,D,C>(const float *, const float *, const scalar_t *, const int *, scalar_t *, uint32_t, uint32_t, uint32_t, float, uint32_t, scalar_t *, uint32_t, __nv_bool) [with scalar_t=c10::Half, D=1U, C=4U]"
  167. (431): here
  168. instantiation of "void kernel_grid_wrapper<scalar_t,D>(const float *, const float *, const scalar_t *, const int *, scalar_t *, uint32_t, uint32_t, uint32_t, uint32_t, float, uint32_t, scalar_t *, uint32_t, __nv_bool) [with scalar_t=c10::Half, D=1U]"
  169. (460): here
  170. instantiation of "void temporal_grid_encode_forward_cuda(const float *, const float *, const scalar_t *, const int *, scalar_t *, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, float, uint32_t, scalar_t *, uint32_t, __nv_bool) [with scalar_t=c10::Half]"
  171. (610): here
  172.  
  173. /home/user/nerfstudio/nerfstudio/field_components/cuda/csrc/temporal_gridencoder.cu(222): warning #186-D: pointless comparison of unsigned integer with zero
  174. detected during:
  175. instantiation of "void kernel_grid<scalar_t,D,C>(const float *, const float *, const scalar_t *, const int *, scalar_t *, uint32_t, uint32_t, uint32_t, float, uint32_t, scalar_t *, uint32_t, __nv_bool) [with scalar_t=c10::Half, D=1U, C=8U]"
  176. (434): here
  177. instantiation of "void kernel_grid_wrapper<scalar_t,D>(const float *, const float *, const scalar_t *, const int *, scalar_t *, uint32_t, uint32_t, uint32_t, uint32_t, float, uint32_t, scalar_t *, uint32_t, __nv_bool) [with scalar_t=c10::Half, D=1U]"
  178. (460): here
  179. instantiation of "void temporal_grid_encode_forward_cuda(const float *, const float *, const scalar_t *, const int *, scalar_t *, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, float, uint32_t, scalar_t *, uint32_t, __nv_bool) [with scalar_t=c10::Half]"
  180. (610): here
  181.  
  182. 1 error detected in the compilation of "/home/user/nerfstudio/nerfstudio/field_components/cuda/csrc/temporal_gridencoder.cu".
  183. [2/3] /usr/local/cuda/bin/nvcc -DTORCH_EXTENSION_NAME=nerfstudio_field_components_cuda -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/user/.local/lib/python3.10/site-packages/torch/include -isystem /home/user/.local/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -isystem /home/user/.local/lib/python3.10/site-packages/torch/include/TH -isystem /home/user/.local/lib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /usr/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=compute_61 -gencode=arch=compute_61,code=sm_61 --compiler-options '-fPIC' -O3 -std=c++14 -c /home/user/nerfstudio/nerfstudio/field_components/cuda/csrc/pybind.cu -o pybind.cuda.o
  184. ninja: build stopped: subcommand failed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement