Skip to content

Commit

Permalink
Add a separate device queries file for visionaray_hip
Browse files Browse the repository at this point in the history
  • Loading branch information
szellmann committed Jun 22, 2024
1 parent 76ef205 commit b86c475
Show file tree
Hide file tree
Showing 3 changed files with 11,543 additions and 0 deletions.
11 changes: 11 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ if (cuda)
)
endif()

if (hip)
anari_generate_queries(
NAME visionaray_hip
PREFIX VisionarayHIPDevice
CPP_NAMESPACE visionaray
JSON_DEFINITIONS_FILE ${CMAKE_CURRENT_SOURCE_DIR}/visionaray_hip_device.json
JSON_ROOT_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}
)
endif()

add_library(${PROJECT_NAME} SHARED)
if (cuda)
add_library(${PROJECT_NAME}_cuda SHARED)
Expand Down Expand Up @@ -180,6 +190,7 @@ if (hip)
renderer/DirectLight_impl.hip
renderer/Raycast_impl.hip
scene/VisionaraySceneGPU.hip
VisionarayHIPDeviceQueries.cpp
)
target_compile_definitions(${PROJECT_NAME}_hip PRIVATE WITH_HIP=1)

Expand Down
Loading

0 comments on commit b86c475

Please sign in to comment.