1. 04 5月, 2021 1 次提交
  2. 03 5月, 2021 1 次提交
    • M
      Generalize GPU rendering path to run on both CPU and GPU (#125) · e90458fb
      Matt Pharr 提交于
      * Generalize GPU rendering path to run on both CPU and GPU
      
      Now we have a WavefrontIntegrator that can both run on the CPU (backed by
      ParallelFor() for parallelization and pbrt's aggregates for ray
      intersection acceleration) and on the GPU (backed by GPUParallelFor() for
      parallelization and OptiX for ray intersection on NVIDIA GPUs.)
      
      Beyond generalizing the code, this refactor allows CPU-side debugging and
      testing of the wavefront integrator.  Doing so allows further isolation of
      the GPU-specific code into a few source files, now just ~2.5k lines of code.
      
      This includes a bug fix in the wavefront medium code to resolve MixMaterials
      to one of their constituent materials before enqueuing material evaluation
      and shading work.
      
      Note that on the CPU, the wavefront integrator runs 5-10x more slowly than
      pbrt's regular CPU integrators, so it is not recommended for regular use...
      Co-authored-by: NWenzel Jakob <wenzel.jakob@epfl.ch>
      e90458fb
  3. 01 5月, 2021 1 次提交
  4. 18 4月, 2021 1 次提交
  5. 20 2月, 2021 1 次提交
    • M
      Update from book source. · 09ea972a
      Matt Pharr 提交于
      - Minor changes to how hash values are computed for scrambling in the
      ZSobolSampler.
      - Folded util/bits.h into util/math.h.
      09ea972a
  6. 18 2月, 2021 2 次提交
  7. 15 2月, 2021 1 次提交
  8. 11 2月, 2021 1 次提交
    • M
      CMake improvements · 70c39fce
      Matt Pharr 提交于
      Set PBRT_DEBUG_BUILD via generator expression.
      
      Use -march=native with CUDA builds again using a generator expression that
      adds '-Xcompiler' for CUDA targets.  (Hopefully works around #87.)
      This gives about a 10% perf. benefit with CPU rendering.
      70c39fce
  9. 29 1月, 2021 2 次提交
  10. 23 1月, 2021 1 次提交
  11. 22 1月, 2021 2 次提交
  12. 05 1月, 2021 1 次提交
  13. 02 1月, 2021 1 次提交
  14. 08 12月, 2020 1 次提交
  15. 06 12月, 2020 1 次提交
    • M
      Add cmd/pspec.cpp · dabe4ae8
      Matt Pharr 提交于
      Small utility for computing power spectra of pbrt's point sets.
      dabe4ae8
  16. 26 11月, 2020 1 次提交
  17. 24 10月, 2020 9 次提交
  18. 23 10月, 2020 2 次提交
  19. 22 10月, 2020 5 次提交
  20. 08 10月, 2020 2 次提交
    • P
      Rework the compilation to PTX and embedding · 6446512c
      Pierre Moreau 提交于
      Since we have a CMake target, we can do scoped include directories.
      Remove duplicate compile flags, and also add compile definitions which
      enables PBRT to compile on Windows for Pascal-architecture cards.
      
      Compared to commit a685e020, this also
      
      * changes the dependency to be directly on the library rather than some
        of its object file;
      * adds a missing dependency on several generated header files;
      * avoids passing `/D _CRT_SECURE_NO_WARNINGS` to nvcc;
      * removes compiler flags that are part of the regular CUDA flags.
      6446512c
    • M
      Revert "Rework the compilation to PTX and embedding" · ec742b2c
      Matt Pharr 提交于
      This reverts commit a685e020, which seems
      to have caused issue #56 (the Ubuntu part at least.)
      ec742b2c
  21. 25 9月, 2020 1 次提交
  22. 24 9月, 2020 1 次提交
  23. 19 9月, 2020 1 次提交