Skip to content

Commit

Permalink
disable memcpy.cpp on hipcc (ICE)
Browse files Browse the repository at this point in the history
  • Loading branch information
cwpearson committed Oct 26, 2023
1 parent a31ce60 commit 6fe6b46
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/libc/memcpy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@

#define NAME "libc_memcpy_NUMAToNUMA"

#if !defined(__HIPCC__) // crashes rocm/5.7.0
auto libc_memcpy_NUMAToNUMA = [](benchmark::State &state, const int src_id,
const int dst_id, const bool flush) {
const auto bytes = 1ULL << static_cast<size_t>(state.range(0));

// allocate
void *src = numa::alloc_onnode(bytes, src_id);
void *src = numa::alloc_node<char>(bytes, src_id);
defer(numa::free(src, bytes));
void *dst = numa::alloc_onnode(bytes, dst_id);
void *dst = numa::alloc_node<char>(bytes, dst_id);
defer(numa::free(dst, bytes));

// touch
Expand Down Expand Up @@ -87,3 +88,4 @@ static void registerer() {
}

SCOPE_AFTER_INIT(registerer, NAME);
#endif // defined(__HIPCC__)

0 comments on commit 6fe6b46

Please sign in to comment.