Skip to content

Commit

Permalink
CMakeLists - Fixing HIP CMake issue (#1356)
Browse files Browse the repository at this point in the history
* Fixing HIP CMake issue

* Remove HIP CMake

* Remove AMDGPU targets

* Loom - Turn off

---------

Co-authored-by: Kiriti Gowda <[email protected]>
Co-authored-by: Kiriti Gowda <[email protected]>
  • Loading branch information
3 people authored May 21, 2024
1 parent 8982ea8 commit 8f4d40b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ message("-- ${BoldBlue}MIVisionX Build Type -- ${CMAKE_BUILD_TYPE}${ColourReset}
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
list(APPEND CMAKE_PREFIX_PATH ${ROCM_PATH} ${ROCM_PATH}/hip)
find_package(HALF QUIET)
find_package(HIP QUIET)

if(HALF_FOUND)
add_definitions(-DAMD_FP16_SUPPORT)
Expand All @@ -132,8 +131,8 @@ else()
message("-- ${Blue}MIVisionX Built with float16 Support OFF${ColourReset}")
endif()

if(HIP_FOUND)
message("-- ${BoldBlue}ROCm Version -- ${HIP_VERSION}${ColourReset}")
# Turn off Loom for HIP backend
if("${BACKEND}" STREQUAL "HIP")
set(LOOM OFF)
endif()

Expand Down

0 comments on commit 8f4d40b

Please sign in to comment.