Skip to content

Commit

Permalink
CMakeLists cleanup for samples- read openvx backend config from the n…
Browse files Browse the repository at this point in the history
…ew location only (#885)
  • Loading branch information
AryanSalmanpour authored and kiritigowda committed Jun 28, 2022
1 parent 498051b commit d1eeda9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions samples/inference/mv_objdetect/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ if(EXISTS ${ROCM_PATH}/include/mivisionx/openvx_backend.h)
set(OPENVX_BACKEND_OPENCL_FOUND ${CMAKE_MATCH_1})
string(REGEX MATCH "ENABLE_HIP ([0-9]*)" _ ${OPENVX_BACKEND_FILE})
set(OPENVX_BACKEND_HIP_FOUND ${CMAKE_MATCH_1})
elseif(EXISTS ${ROCM_PATH}/mivisionx/include/openvx_backend.h)
file(READ ${ROCM_PATH}/mivisionx/include/openvx_backend.h OPENVX_BACKEND_FILE)
string(REGEX MATCH "ENABLE_OPENCL ([0-9]*)" _ ${OPENVX_BACKEND_FILE})
set(OPENVX_BACKEND_OPENCL_FOUND ${CMAKE_MATCH_1})
string(REGEX MATCH "ENABLE_HIP ([0-9]*)" _ ${OPENVX_BACKEND_FILE})
set(OPENVX_BACKEND_HIP_FOUND ${CMAKE_MATCH_1})
else()
message("-- WARNING: ${ROCM_PATH}/include/mivisionx/openvx_backend.h file Not Found. please install the latest mivisionx!")
endif()
Expand Down
6 changes: 0 additions & 6 deletions samples/model_compiler_samples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,6 @@ find_package(OpenCV REQUIRED)
set(OPENVX_BACKEND_OPENCL_FOUND ${CMAKE_MATCH_1})
string(REGEX MATCH "ENABLE_HIP ([0-9]*)" _ ${OPENVX_BACKEND_FILE})
set(OPENVX_BACKEND_HIP_FOUND ${CMAKE_MATCH_1})
elseif(EXISTS ${ROCM_PATH}/mivisionx/include/openvx_backend.h)
file(READ ${ROCM_PATH}/mivisionx/include/openvx_backend.h OPENVX_BACKEND_FILE)
string(REGEX MATCH "ENABLE_OPENCL ([0-9]*)" _ ${OPENVX_BACKEND_FILE})
set(OPENVX_BACKEND_OPENCL_FOUND ${CMAKE_MATCH_1})
string(REGEX MATCH "ENABLE_HIP ([0-9]*)" _ ${OPENVX_BACKEND_FILE})
set(OPENVX_BACKEND_HIP_FOUND ${CMAKE_MATCH_1})
else()
message("-- WARNING: ${ROCM_PATH}/include/mivisionx/openvx_backend.h file Not Found. please install the latest mivisionx!")
endif()
Expand Down

0 comments on commit d1eeda9

Please sign in to comment.