Skip to content

Commit

Permalink
[HIP] Fix compiler errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jammm committed Feb 9, 2024
1 parent e987bcd commit 09cdfdd
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion src/pbrt/cmd/imgtool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
#include <pbrt/filters.h>
#include <pbrt/options.h>
#ifdef PBRT_BUILD_GPU_RENDERER
#include <pbrt/gpu/denoiser.h>
#ifndef __HIP_PLATFORM_AMD__
#include <pbrt/gpu/optix/denoiser.h>
#endif // __HIP_PLATFORM_AMD__
#include <pbrt/gpu/util.h>
#endif // PBRT_BUILD_GPU_RENDERER
#include <pbrt/util/args.h>
Expand Down
2 changes: 1 addition & 1 deletion src/pbrt/gpu/optix/aggregate.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <pbrt/pbrt.h>

#include <pbrt/gpu/memory.h>
#include <pbrt/gpu/optix.h>
#include <pbrt/gpu/optix/optix.h>
#include <pbrt/scene.h>
#include <pbrt/util/containers.h>
#include <pbrt/util/pstd.h>
Expand Down
4 changes: 2 additions & 2 deletions src/pbrt/gpu/optix/optix.cu
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

#include <pbrt/pbrt.h>

#include <pbrt/gpu/aggregate.h>
#include <pbrt/gpu/optix.h>
#include <pbrt/gpu/optix/aggregate.h>
#include <pbrt/gpu/optix/optix.h>
#include <pbrt/interaction.h>
#include <pbrt/materials.h>
#include <pbrt/media.h>
Expand Down
2 changes: 1 addition & 1 deletion src/pbrt/util/color.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include <pbrt/util/color.h>

#if defined(PBRT_BUILD_GPU_RENDERER)
#if defined(PBRT_BUILD_GPU_RENDERER) && defined(__HIP_PLATFORM_AMD__)
#include <hip/hip_runtime.h>
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/pbrt/util/math.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

namespace pbrt {

#if defined(PBRT_IS_GPU_CODE) && defined(__HIP_PLATFORM_NVIDIA__)
#if defined(PBRT_IS_GPU_CODE) && defined(__NVCC__)

#define ShadowEpsilon 0.0001f
#define Pi Float(3.14159265358979323846)
Expand Down
2 changes: 1 addition & 1 deletion src/pbrt/wavefront/integrator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <pbrt/film.h>
#include <pbrt/filters.h>
#ifdef PBRT_BUILD_GPU_RENDERER
#include <pbrt/gpu/aggregate.h>
#include <pbrt/gpu/optix/aggregate.h>
#include <pbrt/gpu/memory.h>
#endif // PBRT_BUILD_GPU_RENDERER
#include <pbrt/lights.h>
Expand Down

0 comments on commit 09cdfdd

Please sign in to comment.