Skip to content

Commit

Permalink
Use CMake property LOCATION for the HIP fallback.
Browse files Browse the repository at this point in the history
  • Loading branch information
tcojean committed Apr 29, 2021
1 parent e33808e commit 303e833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hip/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ if(GINKGO_HIP_PLATFORM MATCHES "${HIP_PLATFORM_AMD_REGEX}")
endif()
if (NOT HIP_LIBAMDHIP64_LIBRARIES)
# Fall back to anything
get_target_property(HIP_LIBAMDHIP64_LIBRARIES hip::amdhip64 IMPORTED_LOCATION)
get_target_property(HIP_LIBAMDHIP64_LIBRARIES hip::amdhip64 LOCATION)
endif()
target_link_libraries(ginkgo_hip PUBLIC ${HIP_LIBAMDHIP64_LIBRARIES})
elseif(GINKGO_HIP_PLATFORM MATCHES "${HIP_PLATFORM_NVIDIA_REGEX}")
Expand Down

0 comments on commit 303e833

Please sign in to comment.