Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions rocAL/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ find_package(SndFile QUIET)
find_package(LibTar QUIET)
find_package(rocdecode 1.0.0 QUIET)
find_package(rocjpeg 1.0.0 QUIET)
find_package(hipfile CONFIG QUIET)
find_package(hipFile CONFIG QUIET)

# HIP Backend
if(GPU_SUPPORT AND "${BACKEND}" STREQUAL "HIP")
Expand Down Expand Up @@ -264,11 +264,14 @@ if(${BUILD_ROCAL})
set(LINK_LIBRARY_LIST ${LINK_LIBRARY_LIST} $<TARGET_OBJECTS:rocAL_hip>)
target_compile_definitions(${PROJECT_NAME} PRIVATE __HIP_PLATFORM_AMD__)
target_compile_definitions(${PROJECT_NAME} PUBLIC ENABLE_HIP=1)
if(hipfile_FOUND)
if(hipFile_FOUND)
target_compile_definitions(${PROJECT_NAME} PUBLIC ENABLE_HIPFILE=1)
set(LINK_LIBRARY_LIST ${LINK_LIBRARY_LIST} hip::hipfile)
message("-- ${White}rocAL built with hipFile GPU Direct I/O for numpy reader (disabled by default, set ROCAL_USE_HIPFILE=1 to enable)${ColourReset}")
else()
message("-- ${White}rocAL built without hipFile GPU Direct I/O for numpy reader (disabled by default, set ROCAL_USE_HIPFILE=1 to enable)${ColourReset}")
endif()

if(rocdecode_FOUND)
target_compile_definitions(${PROJECT_NAME} PUBLIC -DENABLE_ROCDECODE)
message("-- ${White}rocAL built with rocDecode video decode capabilities${ColourReset}")
Expand Down