darglein / ADOP

MIT License
2.03k stars 199 forks source link

Saiga::CUDA::CudaEvent::create() error after compiling #52

Closed davisj147 closed 2 years ago

davisj147 commented 2 years ago

I managed to successfully compile ADOP. However, when trying to run the scene viewer, there is a Saiga::CUDA::CudaEvent::create() error, but with no interpretable error message. Do you have any ideas on how to resolve this?

Thank you!

/build/bin/adop_viewer --scene_dir scenes/tt_train

register neural render info
Git ref: 33bed24450829a7a87e98a8438141a21d2a19499
Ref. 
=============== Saiga ===============
| Saiga Version     1.3.2           |
| Eigen Version     3.3.91          |
| Compiler          GNU             |
|   -> Version      7.5.0           |
| Build Type        RelWithDebInfo  |
| Debug             0               |
| Eigen Debug       0               |
| ASAN              0               |
| Asserts           1               |
| Optimizations     0               |
=====================================
Initializing GLFW.
Initializing GLFW sucessfull!
Creating GLFW Window. 1920x1080 Mode=3 Fullscreen=1 Borderless=0
=========================== OpenGL ===========================
| OpenGL Version    4.5 (Core Profile) Mesa 21.0.3           | 
| GLSL Version      4.50                                     | 
| Renderer          llvmpipe (LLVM 12.0.0, 256 bits)         | 
| Vendor            Mesa/X.org                               | 
==============================================================
[Renderer] Target resized to 1848x1016
loading shader /home/jack/Documents/ADOP/External/saiga/shader/imgui_gl.glsl
loading shader /home/jack/Documents/ADOP/External/saiga/shader/tone_map.glsl
loading shader /home/jack/Documents/ADOP/External/saiga/shader/tone_map_linear.glsl
loading shader /home/jack/Documents/ADOP/External/saiga/shader/compute/bloom_extract_bright.glsl
loading shader /home/jack/Documents/ADOP/External/saiga/shader/compute/bloom_downsample.glsl
loading shader /home/jack/Documents/ADOP/External/saiga/shader/compute/bloom_upsample.glsl
loading shader /home/jack/Documents/ADOP/External/saiga/shader/compute/bloom_combine_simple.glsl
loading shader /home/jack/Documents/ADOP/External/saiga/shader/compute/copy_image.glsl
loading shader /home/jack/Documents/ADOP/External/saiga/shader/compute/compute_blur.glsl
loading shader /home/jack/Documents/ADOP/External/saiga/shader/compute/compute_blur.glsl
loading shader /home/jack/Documents/ADOP/External/saiga/shader/lighting/light_directional.glsl
loading shader /home/jack/Documents/ADOP/External/saiga/shader/lighting/light_directional.glsl
loading shader /home/jack/Documents/ADOP/External/saiga/shader/lighting/light_point.glsl
loading shader /home/jack/Documents/ADOP/External/saiga/shader/lighting/light_point.glsl
loading shader /home/jack/Documents/ADOP/External/saiga/shader/lighting/light_spot.glsl
loading shader /home/jack/Documents/ADOP/External/saiga/shader/lighting/light_spot.glsl
loading shader /home/jack/Documents/ADOP/External/saiga/shader/lighting/light_point.glsl
loading shader /home/jack/Documents/ADOP/External/saiga/shader/lighting/light_spot.glsl
loading shader /home/jack/Documents/ADOP/External/saiga/shader/lighting/stenciltest.glsl
loading shader /home/jack/Documents/ADOP/External/saiga/shader/post_processing/post_processing.glsl
loading shader /home/jack/Documents/ADOP/External/saiga/shader/lighting/blitDepth.glsl
Deferred Renderer initialized. Render resolution: 1848x1016
loading shader /home/jack/Documents/ADOP/External/saiga/shader/post_processing/imagedisplay.glsl
Program Initialized!
Loading Scene scenes/tt_train
====================================
Scene Loaded
  Name       tt_train
  Path       /home/jack/Documents/ADOP/scenes/tt_train
  Image Size 1920x1080
  Aspect     1.77778
  K          1159.63 1166.22 960     540     0      
  ocam       1920x1080 affine(1, 0, 0, 0, 0) cam2world() world2cam()
  ocam cut   1
  normalized center 0 0
  dist       -0.0634429   0.0416044    0            0            0            0            -0.000792661 -0.000517484
  Points     11818812
  Colors     1
  Normals    1
  Avg. EV  -0.0733786
  Num Images 301
  Num Cameras 1
====================================
loading shader /home/jack/Documents/ADOP/External/saiga/shader/asset/ColoredAsset.glsl
loading shader /home/jack/Documents/ADOP/External/saiga/shader/asset/ColoredAsset.glsl
loading shader /home/jack/Documents/ADOP/External/saiga/shader/asset/ColoredAsset.glsl
loading shader /home/jack/Documents/ADOP/External/saiga/shader/asset/LineVertexColoredAsset.glsl
loading shader /home/jack/Documents/ADOP/External/saiga/shader/asset/LineVertexColoredAsset.glsl
loading shader /home/jack/Documents/ADOP/External/saiga/shader/asset/LineVertexColoredAsset.glsl
Assertion 'cudaEventCreate(&event) == cudaSuccess' failed!
  File: /home/jack/Documents/ADOP/External/saiga/src/saiga/cuda/event.h:51
  Function: void Saiga::CUDA::CudaEvent::create()
  Message: unknown error
Aborted (core dumped)
darglein commented 2 years ago

Adop does not run on integrated graphic chips (or software rendering). You will a need a NVIDIA GPU right now.

=========================== OpenGL ===========================
| OpenGL Version    4.5 (Core Profile) Mesa 21.0.3           | 
| GLSL Version      4.50                                     | 
| Renderer          llvmpipe (LLVM 12.0.0, 256 bits)         | 
| Vendor            Mesa/X.org                               | 
==============================================================