mmp / pbrt-v4

Source code to pbrt, the ray tracer described in the forthcoming 4th edition of the "Physically Based Rendering: From Theory to Implementation" book.
https://pbrt.org
Apache License 2.0
2.89k stars 457 forks source link

CMakeLists.txt: Added missing CMAKE_CXX_STANDARD #460

Closed jerstlouis closed 1 week ago

jerstlouis commented 1 week ago
jerstlouis commented 1 week ago

That did not fix the errors :(

[  0%] Building CUDA object CMakeFiles/pbrt_lib.dir/src/pbrt/wavefront/aggregate.cpp.o
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/13.3.0/include/stddef.h:218:
/tmp/tmpxft_000042b6_00000000-6_aggregate.cudafe1.stub.c: In function ‘void __nv_cudaEntityRegisterCallback(void**)’:
/tmp/tmpxft_000042b6_00000000-6_aggregate.cudafe1.stub.c:13:138: error: ‘::cuda’ has not been declared
   13 | static void __nv_cudaEntityRegisterCallback(void **__T1935){__nv_dummy_param_ref(__T1935);__nv_save_fatbinhandle_for_managed_rt(__T1935);__cudaRegisterVariable(__T1935, __shadow_var(__nv_static_41__83b4357d_13_aggregate_cpp_5c41c12c_17086__ZN50_INTERNAL_83b4357d_13_aggregate_cpp_5c41c12c_170864cuda3std6ranges3__45__cpo4swapE,::cuda::std::ranges::__4::__cpo::swap), 0, 1UL, 0, 0);__cudaRegisterVariable(__T1935, __shadow_var(__nv_static_41__83b4357d_13_aggregate_cpp_5c41c12c_17086__ZN50_INTERNAL_83b4357d_13_aggregate_cpp_5c41c12c_170864cuda3std6ranges3__45__cpo9iter_moveE,::cuda::std::ranges::__4::__cpo::iter_move), 0, 1UL, 0, 0);}
      |                                                                                                                                          ^~~~~~~~~~~~~~~~~~~~~~
/tmp/tmpxft_000042b6_00000000-6_aggregate.cudafe1.stub.c:13:382: error: ‘::cuda’ has not been declared
   13 | iable(__T1935, __shadow_var(__nv_static_41__83b4357d_13_aggregate_cpp_5c41c12c_17086__ZN50_INTERNAL_83b4357d_13_aggregate_cpp_5c41c12c_170864cuda3std6ranges3__45__cpo4swapE,::cuda::std::ranges::__4::__cpo::swap), 0, 1UL, 0, 0);__cudaRegisterVariable(__T1935, __shadow_var(__nv_static_41__83b4357d_13_aggregate_cpp_5c41c12c_17086__ZN50_INTERNAL_83b4357d_13_aggregate_cpp_5c41c12c_170864cuda3std6ranges3__45__cpo9iter_moveE,::cuda::std::ranges::__4::__cpo::iter_move), 0, 1UL, 0, 0);}
      |                                                                                                                                                                                                                                    ^~~~~~~~~~~~
jerstlouis commented 1 week ago

This is possibly due to a GCC 13.3 incompatibility with CUDA 12.6...