Skip to content

Commit

Permalink
Fixing portability bug without HIP/ROCm
Browse files Browse the repository at this point in the history
  • Loading branch information
khuck committed Feb 6, 2023
1 parent c2e9a26 commit 2c43347
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/apex/proc_read.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1020,9 +1020,11 @@ std::array<double,2> getAvailableMemory() {
}
fclose(f);
}
#ifdef APEX_WITH_HIP
if (global_rsmi_reader != nullptr) {
values[1] = global_rsmi_reader->getAvailableMemory();
}
#endif
return values;
}

Expand Down

0 comments on commit 2c43347

Please sign in to comment.