Skip to content

Commit

Permalink
Minor fixes to device cide
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Schuchart <schuchart@icl.utk.edu>
  • Loading branch information
devreal committed Sep 29, 2023
1 parent 3aff11c commit 3fa8001
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ttg/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ if (TTG_HAVE_HIPBLAS)
)
endif (NOT TTG_HAVE_CUDA)
list(APPEND ttg-deps roc::hipblas)
find_package(hip REQUIRED)
list(APPEND ttg-deps hip::host)

endif (TTG_HAVE_HIPBLAS)

set(ttg-public-headers ${ttg-headers};${ttg-impl-headers};${ttg-base-headers};${ttg-util-headers};${ttg_device_headers})
Expand Down
2 changes: 2 additions & 0 deletions ttg/ttg/config.in.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

#cmakedefine TTG_HAVE_CUDART

#cmakedefine TTG_HAVE_HIP

#cmakedefine TTG_HAVE_HIPBLAS

#cmakedefine TTG_HAVE_MPI
Expand Down
2 changes: 1 addition & 1 deletion ttg/ttg/device/cublas_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#endif // TTG_HAVE_CUDART

#ifdef TTG_HAVE_HIPBLAS
#include <hip.h>
#include <hip_runtime.h>
#endif // TTG_HAVE_HIPBLAS

namespace ttg::detail {
Expand Down
2 changes: 1 addition & 1 deletion ttg/ttg/device/task.h
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ namespace ttg {
// clang-format on
template <size_t i, typename keyT, typename valueT>
inline auto send(const keyT &key, valueT &&value) {
return send(i, key, std::forward<valueT>(value));
return ttg::device::send(i, key, std::forward<valueT>(value));
}


Expand Down

0 comments on commit 3fa8001

Please sign in to comment.