Skip to content

Commit

Permalink
Fixing bug in kokkos counter name generation
Browse files Browse the repository at this point in the history
  • Loading branch information
khuck committed Sep 11, 2024
1 parent e44221a commit a99f8ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apex/apex_kokkos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,11 +311,11 @@ void kokkosp_allocate_data(SpaceHandle_t handle, const char* name,
APEX_UNUSED(ptr);
std::stringstream ss;
ss << "Kokkos " << handle.name << " data, " << name;
ss << ": Bytes";
std::string tmp2{ss.str()};
memory_mtx.lock();
memory_map().insert(std::pair<void*,std::string>(ptr, tmp2));
memory_mtx.unlock();
ss << ": Bytes";
double bytes = (double)(size);
if (apex::apex_options::use_kokkos_counters()) {
apex::sample_value(tmp2, bytes);
Expand Down

0 comments on commit a99f8ba

Please sign in to comment.