Skip to content

Commit

Permalink
[HIP] Move optix specific code in a new folder
Browse files Browse the repository at this point in the history
  • Loading branch information
jammm committed Feb 7, 2024
1 parent d2d1ef6 commit e987bcd
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -694,17 +694,17 @@ SET (PBRT_UTIL_SOURCE_HEADERS

if (PBRT_CUDA_ENABLED)
set (PBRT_GPU_SOURCE
src/pbrt/gpu/aggregate.cpp
src/pbrt/gpu/denoiser.cpp
src/pbrt/gpu/optix/aggregate.cpp
src/pbrt/gpu/optix/denoiser.cpp
src/pbrt/gpu/memory.cpp
src/pbrt/gpu/util.cpp
)
set (PBRT_GPU_SOURCE_HEADERS
src/pbrt/gpu/aggregate.h
src/pbrt/gpu/optix/aggregate.h
src/pbrt/gpu/cudagl.h
src/pbrt/gpu/denoiser.h
src/pbrt/gpu/optix/denoiser.h
src/pbrt/gpu/memory.h
src/pbrt/gpu/optix.h
src/pbrt/gpu/optix/optix.h
src/pbrt/gpu/util.h
)

Expand Down Expand Up @@ -770,7 +770,7 @@ if (PBRT_CUDA_ENABLED)
PROPERTIES LANGUAGE CUDA
)

cuda_compile_and_embed (PBRT_EMBEDDED_PTX src/pbrt/gpu/optix.cu optix.cu)
cuda_compile_and_embed (PBRT_EMBEDDED_PTX src/pbrt/gpu/optix/optix.cu optix.cu)
endif ()

source_group ("Source Files" FILES ${PBRT_SOURCE})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// The pbrt source code is licensed under the Apache License, Version 2.0.
// SPDX: Apache-2.0

#include <pbrt/gpu/aggregate.h>
#include <pbrt/gpu/optix/aggregate.h>

#include <pbrt/gpu/optix.h>
#include <pbrt/gpu/optix/optix.h>
#include <pbrt/gpu/util.h>
#include <pbrt/lights.h>
#include <pbrt/materials.h>
Expand Down
4 changes: 2 additions & 2 deletions src/pbrt/gpu/aggregate.h → src/pbrt/gpu/optix/aggregate.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// The pbrt source code is licensed under the Apache License, Version 2.0.
// SPDX: Apache-2.0

#ifndef PBRT_GPU_AGGREGATE_H
#define PBRT_GPU_AGGREGATE_H
#ifndef PBRT_GPU_OPTIX_AGGREGATE_H
#define PBRT_GPU_OPTIX_AGGREGATE_H

#include <pbrt/pbrt.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// The pbrt source code is licensed under the Apache License, Version 2.0.
// SPDX: Apache-2.0

#include <pbrt/gpu/denoiser.h>
#include <pbrt/gpu/optix/denoiser.h>

#include <pbrt/gpu/memory.h>
#include <pbrt/gpu/util.h>
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions src/pbrt/gpu/optix.h → src/pbrt/gpu/optix/optix.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// The pbrt source code is licensed under the Apache License, Version 2.0.
// SPDX: Apache-2.0

#ifndef PBRT_GPU_OPTIX_H
#define PBRT_GPU_OPTIX_H
#ifndef PBRT_GPU_OPTIX_OPTIX_H
#define PBRT_GPU_OPTIX_OPTIX_H

#include <pbrt/pbrt.h>

Expand Down Expand Up @@ -69,4 +69,4 @@ struct RayIntersectParameters {

} // namespace pbrt

#endif // PBRT_GPU_OPTIX_H
#endif // PBRT_GPU_OPTIX_OPTIX_H

0 comments on commit e987bcd

Please sign in to comment.