From 71c762216c3f195db3f7711a1d9a1575cafe3df8 Mon Sep 17 00:00:00 2001 From: rrawther Date: Tue, 26 May 2026 12:08:57 -0700 Subject: [PATCH] add cmake changes for hipfile to build with Rock --- rocAL/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rocAL/CMakeLists.txt b/rocAL/CMakeLists.txt index e8ed651e5..5158aac2d 100644 --- a/rocAL/CMakeLists.txt +++ b/rocAL/CMakeLists.txt @@ -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") @@ -264,11 +264,14 @@ if(${BUILD_ROCAL}) set(LINK_LIBRARY_LIST ${LINK_LIBRARY_LIST} $) 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}")