diff --git a/projects/rocdecode/samples/videoDecode/CMakeLists.txt b/projects/rocdecode/samples/videoDecode/CMakeLists.txt index d7d5ce9684..0fd52772a1 100644 --- a/projects/rocdecode/samples/videoDecode/CMakeLists.txt +++ b/projects/rocdecode/samples/videoDecode/CMakeLists.txt @@ -64,8 +64,9 @@ find_package(HIP QUIET) find_package(FFmpeg QUIET) find_package(rocDecode QUIET) find_package(Threads REQUIRED) +find_package(rocprofiler-register QUIET) -if(HIP_FOUND AND FFMPEG_FOUND AND ROCDECODE_FOUND AND Threads_FOUND) +if(HIP_FOUND AND FFMPEG_FOUND AND ROCDECODE_FOUND AND Threads_FOUND AND rocprofiler-register_FOUND) # HIP set(LINK_LIBRARY_LIST ${LINK_LIBRARY_LIST} hip::host) # FFMPEG @@ -78,6 +79,8 @@ if(HIP_FOUND AND FFMPEG_FOUND AND ROCDECODE_FOUND AND Threads_FOUND) # threads set(THREADS_PREFER_PTHREAD_FLAG ON) set(LINK_LIBRARY_LIST ${LINK_LIBRARY_LIST} Threads::Threads) + # rocprofiler-register + set(LINK_LIBRARY_LIST ${LINK_LIBRARY_LIST} rocprofiler-register::rocprofiler-register) # sample app exe list(APPEND SOURCES ${PROJECT_SOURCE_DIR} videodecode.cpp ${CMAKE_CURRENT_SOURCE_DIR}/../../utils/rocvideodecode/roc_video_dec.cpp ${CMAKE_CURRENT_SOURCE_DIR}/../../utils/ffmpegvideodecode/ffmpeg_video_dec.cpp) add_executable(${PROJECT_NAME} ${SOURCES}) @@ -103,4 +106,7 @@ else() if (NOT Threads_FOUND) message(FATAL_ERROR "-- ERROR!: Threads Not Found! - please insatll Threads!") endif() + if (NOT rocprofiler-register_FOUND) + message(FATAL_ERROR "-- ERROR!: rocprofiler-register Not Found! - please install rocprofiler-register!") + endif() endif() diff --git a/projects/rocdecode/samples/videoDecodeBatch/CMakeLists.txt b/projects/rocdecode/samples/videoDecodeBatch/CMakeLists.txt index 462f5565cb..2578460e1c 100644 --- a/projects/rocdecode/samples/videoDecodeBatch/CMakeLists.txt +++ b/projects/rocdecode/samples/videoDecodeBatch/CMakeLists.txt @@ -63,8 +63,9 @@ endif() find_package(HIP QUIET) find_package(FFmpeg QUIET) find_package(rocDecode QUIET) +find_package(rocprofiler-register QUIET) -if(HIP_FOUND AND FFMPEG_FOUND AND ROCDECODE_FOUND) +if(HIP_FOUND AND FFMPEG_FOUND AND ROCDECODE_FOUND AND rocprofiler-register_FOUND) # HIP set(LINK_LIBRARY_LIST ${LINK_LIBRARY_LIST} hip::host) # FFMPEG @@ -80,6 +81,8 @@ if(HIP_FOUND AND FFMPEG_FOUND AND ROCDECODE_FOUND) set(THREADS_PREFER_PTHREAD_FLAG ON) find_package(Threads REQUIRED) set(LINK_LIBRARY_LIST ${LINK_LIBRARY_LIST} Threads::Threads) + # rocprofiler-register + set(LINK_LIBRARY_LIST ${LINK_LIBRARY_LIST} rocprofiler-register::rocprofiler-register) list(APPEND SOURCES ${PROJECT_SOURCE_DIR} videodecodebatch.cpp ${CMAKE_CURRENT_SOURCE_DIR}/../../utils/rocvideodecode/roc_video_dec.cpp) add_executable(${PROJECT_NAME} ${SOURCES}) @@ -105,4 +108,7 @@ else() if (NOT Threads_FOUND) message(FATAL_ERROR "-- ERROR!: Threads Not Found! - please insatll Threads!") endif() + if (NOT rocprofiler-register_FOUND) + message(FATAL_ERROR "-- ERROR!: rocprofiler-register Not Found! - please install rocprofiler-register!") + endif() endif() \ No newline at end of file diff --git a/projects/rocdecode/samples/videoDecodeMem/CMakeLists.txt b/projects/rocdecode/samples/videoDecodeMem/CMakeLists.txt index 34117ba2fa..e2320e0244 100644 --- a/projects/rocdecode/samples/videoDecodeMem/CMakeLists.txt +++ b/projects/rocdecode/samples/videoDecodeMem/CMakeLists.txt @@ -64,8 +64,9 @@ endif() find_package(HIP QUIET) find_package(FFmpeg QUIET) find_package(rocDecode QUIET) +find_package(rocprofiler-register QUIET) -if(HIP_FOUND AND FFMPEG_FOUND AND ROCDECODE_FOUND) +if(HIP_FOUND AND FFMPEG_FOUND AND ROCDECODE_FOUND AND rocprofiler-register_FOUND) # HIP set(LINK_LIBRARY_LIST ${LINK_LIBRARY_LIST} hip::host) # FFMPEG @@ -75,6 +76,8 @@ if(HIP_FOUND AND FFMPEG_FOUND AND ROCDECODE_FOUND) # rocDecode and utils include_directories (${ROCDECODE_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/../../utils ${CMAKE_CURRENT_SOURCE_DIR}/../../utils/rocvideodecode) set(LINK_LIBRARY_LIST ${LINK_LIBRARY_LIST} ${ROCDECODE_LIBRARY}) + # rocprofiler-register + set(LINK_LIBRARY_LIST ${LINK_LIBRARY_LIST} rocprofiler-register::rocprofiler-register) # sample app exe list(APPEND SOURCES ${PROJECT_SOURCE_DIR} videodecodemem.cpp ${CMAKE_CURRENT_SOURCE_DIR}/../../utils/rocvideodecode/roc_video_dec.cpp) add_executable(${PROJECT_NAME} ${SOURCES}) @@ -97,4 +100,7 @@ else() if (NOT ROCDECODE_FOUND) message(FATAL_ERROR "-- ERROR!: rocDecode Not Found! - please install rocDecode!") endif() + if (NOT rocprofiler-register_FOUND) + message(FATAL_ERROR "-- ERROR!: rocprofiler-register Not Found! - please install rocprofiler-register!") + endif() endif() \ No newline at end of file diff --git a/projects/rocdecode/samples/videoDecodeMultiFiles/CMakeLists.txt b/projects/rocdecode/samples/videoDecodeMultiFiles/CMakeLists.txt index 4d382ecca4..7dcd8abc61 100644 --- a/projects/rocdecode/samples/videoDecodeMultiFiles/CMakeLists.txt +++ b/projects/rocdecode/samples/videoDecodeMultiFiles/CMakeLists.txt @@ -63,8 +63,9 @@ endif() find_package(HIP QUIET) find_package(FFmpeg QUIET) find_package(rocDecode QUIET) +find_package(rocprofiler-register QUIET) -if(HIP_FOUND AND FFMPEG_FOUND AND ROCDECODE_FOUND) +if(HIP_FOUND AND FFMPEG_FOUND AND ROCDECODE_FOUND AND rocprofiler-register_FOUND) # HIP set(LINK_LIBRARY_LIST ${LINK_LIBRARY_LIST} hip::host) # FFMPEG @@ -74,6 +75,8 @@ if(HIP_FOUND AND FFMPEG_FOUND AND ROCDECODE_FOUND) # rocDecode and utils include_directories (${ROCDECODE_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/../../utils ${CMAKE_CURRENT_SOURCE_DIR}/../../utils/rocvideodecode) set(LINK_LIBRARY_LIST ${LINK_LIBRARY_LIST} ${ROCDECODE_LIBRARY}) + # rocprofiler-register + set(LINK_LIBRARY_LIST ${LINK_LIBRARY_LIST} rocprofiler-register::rocprofiler-register) # sample app exe list(APPEND SOURCES ${PROJECT_SOURCE_DIR} videodecodemultifiles.cpp ${CMAKE_CURRENT_SOURCE_DIR}/../../utils/rocvideodecode/roc_video_dec.cpp) add_executable(${PROJECT_NAME} ${SOURCES}) @@ -96,4 +99,7 @@ else() if (NOT ROCDECODE_FOUND) message(FATAL_ERROR "-- ERROR!: rocDecode Not Found! - please install rocDecode!") endif() + if (NOT rocprofiler-register_FOUND) + message(FATAL_ERROR "-- ERROR!: rocprofiler-register Not Found! - please install rocprofiler-register!") + endif() endif() \ No newline at end of file diff --git a/projects/rocdecode/samples/videoDecodePerf/CMakeLists.txt b/projects/rocdecode/samples/videoDecodePerf/CMakeLists.txt index b060edc254..eac869bc5c 100644 --- a/projects/rocdecode/samples/videoDecodePerf/CMakeLists.txt +++ b/projects/rocdecode/samples/videoDecodePerf/CMakeLists.txt @@ -63,8 +63,9 @@ endif() find_package(HIP QUIET) find_package(FFmpeg QUIET) find_package(rocDecode QUIET) +find_package(rocprofiler-register QUIET) -if(HIP_FOUND AND FFMPEG_FOUND AND ROCDECODE_FOUND AND Threads_FOUND) +if(HIP_FOUND AND FFMPEG_FOUND AND ROCDECODE_FOUND AND Threads_FOUND AND rocprofiler-register_FOUND) # HIP set(LINK_LIBRARY_LIST ${LINK_LIBRARY_LIST} hip::host) # FFMPEG @@ -78,6 +79,8 @@ if(HIP_FOUND AND FFMPEG_FOUND AND ROCDECODE_FOUND AND Threads_FOUND) set(THREADS_PREFER_PTHREAD_FLAG ON) find_package(Threads REQUIRED) set(LINK_LIBRARY_LIST ${LINK_LIBRARY_LIST} Threads::Threads) + # rocprofiler-register + set(LINK_LIBRARY_LIST ${LINK_LIBRARY_LIST} rocprofiler-register::rocprofiler-register) # sample app exe list(APPEND SOURCES ${PROJECT_SOURCE_DIR} videodecodeperf.cpp ${CMAKE_CURRENT_SOURCE_DIR}/../../utils/rocvideodecode/roc_video_dec.cpp) add_executable(${PROJECT_NAME} ${SOURCES}) @@ -103,4 +106,7 @@ else() if (NOT Threads_FOUND) message(FATAL_ERROR "-- ERROR!: Threads Not Found! - please insatll Threads!") endif() + if (NOT rocprofiler-register_FOUND) + message(FATAL_ERROR "-- ERROR!: rocprofiler-register Not Found! - please install rocprofiler-register!") + endif() endif() \ No newline at end of file diff --git a/projects/rocdecode/samples/videoDecodeRGB/CMakeLists.txt b/projects/rocdecode/samples/videoDecodeRGB/CMakeLists.txt index 102c9ff1d5..9835d21ba9 100644 --- a/projects/rocdecode/samples/videoDecodeRGB/CMakeLists.txt +++ b/projects/rocdecode/samples/videoDecodeRGB/CMakeLists.txt @@ -85,8 +85,9 @@ message("-- ${White}${PROJECT_NAME} -- AMD GPU_TARGETS: ${GPU_TARGETS}${ColourRe find_package(HIP QUIET) find_package(FFmpeg QUIET) find_package(rocDecode QUIET) +find_package(rocprofiler-register QUIET) -if(HIP_FOUND AND FFMPEG_FOUND AND ROCDECODE_FOUND) +if(HIP_FOUND AND FFMPEG_FOUND AND ROCDECODE_FOUND AND rocprofiler-register_FOUND) # HIP set(LINK_LIBRARY_LIST ${LINK_LIBRARY_LIST} hip::device) # FFMPEG @@ -99,6 +100,9 @@ if(HIP_FOUND AND FFMPEG_FOUND AND ROCDECODE_FOUND) set(THREADS_PREFER_PTHREAD_FLAG ON) find_package(Threads REQUIRED) set(LINK_LIBRARY_LIST ${LINK_LIBRARY_LIST} Threads::Threads) + # rocprofiler-register + set(LINK_LIBRARY_LIST ${LINK_LIBRARY_LIST} rocprofiler-register::rocprofiler-register) + # sample app exe list(APPEND SOURCES ${PROJECT_SOURCE_DIR} videodecrgb.cpp @@ -126,4 +130,7 @@ else() if (NOT ROCDECODE_FOUND) message(FATAL_ERROR "-- ERROR!: rocDecode Not Found! - please install rocDecode!") endif() + if (NOT rocprofiler-register_FOUND) + message(FATAL_ERROR "-- ERROR!: rocprofiler-register Not Found! - please install rocprofiler-register!") + endif() endif() diff --git a/projects/rocdecode/samples/videoDecodeRaw/CMakeLists.txt b/projects/rocdecode/samples/videoDecodeRaw/CMakeLists.txt index fa946c82f0..ca96518b7c 100644 --- a/projects/rocdecode/samples/videoDecodeRaw/CMakeLists.txt +++ b/projects/rocdecode/samples/videoDecodeRaw/CMakeLists.txt @@ -62,13 +62,16 @@ endif() find_package(HIP QUIET) find_package(rocDecode QUIET) +find_package(rocprofiler-register QUIET) -if(HIP_FOUND AND ROCDECODE_FOUND) +if(HIP_FOUND AND ROCDECODE_FOUND AND rocprofiler-register_FOUND) # HIP set(LINK_LIBRARY_LIST ${LINK_LIBRARY_LIST} hip::host) # rocDecode and utils include_directories (${ROCDECODE_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/../../utils ${CMAKE_CURRENT_SOURCE_DIR}/../../utils/rocvideodecode) set(LINK_LIBRARY_LIST ${LINK_LIBRARY_LIST} ${ROCDECODE_LIBRARY}) + # rocprofiler-register + set(LINK_LIBRARY_LIST ${LINK_LIBRARY_LIST} rocprofiler-register::rocprofiler-register) # sample app exe list(APPEND SOURCES ${PROJECT_SOURCE_DIR} videodecoderaw.cpp ${CMAKE_CURRENT_SOURCE_DIR}/../../utils/rocvideodecode/roc_video_dec.cpp) add_executable(${PROJECT_NAME} ${SOURCES}) @@ -82,4 +85,7 @@ else() if (NOT ROCDECODE_FOUND) message(FATAL_ERROR "-- ERROR!: rocDecode Not Found! - please install rocDecode!") endif() + if (NOT rocprofiler-register_FOUND) + message(FATAL_ERROR "-- ERROR!: rocprofiler-register Not Found! - please install rocprofiler-register!") + endif() endif() diff --git a/projects/rocdecode/samples/videoToSequence/CMakeLists.txt b/projects/rocdecode/samples/videoToSequence/CMakeLists.txt index 3c5bacc6ca..b7db27f2ae 100644 --- a/projects/rocdecode/samples/videoToSequence/CMakeLists.txt +++ b/projects/rocdecode/samples/videoToSequence/CMakeLists.txt @@ -63,8 +63,9 @@ endif() find_package(HIP QUIET) find_package(FFmpeg QUIET) find_package(rocDecode QUIET) +find_package(rocprofiler-register QUIET) -if(HIP_FOUND AND FFMPEG_FOUND AND ROCDECODE_FOUND) +if(HIP_FOUND AND FFMPEG_FOUND AND ROCDECODE_FOUND AND rocprofiler-register_FOUND) # HIP set(LINK_LIBRARY_LIST ${LINK_LIBRARY_LIST} hip::host) # FFMPEG @@ -74,6 +75,8 @@ if(HIP_FOUND AND FFMPEG_FOUND AND ROCDECODE_FOUND) # rocDecode and utils include_directories (${ROCDECODE_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/../../utils ${CMAKE_CURRENT_SOURCE_DIR}/../../utils/rocvideodecode) set(LINK_LIBRARY_LIST ${LINK_LIBRARY_LIST} ${ROCDECODE_LIBRARY}) + # rocprofiler-register + set(LINK_LIBRARY_LIST ${LINK_LIBRARY_LIST} rocprofiler-register::rocprofiler-register) # sample app exe list(APPEND SOURCES ${PROJECT_SOURCE_DIR} videotosequence.cpp ${CMAKE_CURRENT_SOURCE_DIR}/../../utils/rocvideodecode/roc_video_dec.cpp) add_executable(${PROJECT_NAME} ${SOURCES}) @@ -96,4 +99,7 @@ else() if (NOT ROCDECODE_FOUND) message(FATAL_ERROR "-- ERROR!: rocDecode Not Found! - please install rocDecode!") endif() + if (NOT rocprofiler-register_FOUND) + message(FATAL_ERROR "-- ERROR!: rocprofiler-register Not Found! - please install rocprofiler-register!") + endif() endif()