Skip to content

Commit

Permalink
Add perror to numa move page
Browse files Browse the repository at this point in the history
  • Loading branch information
suyashmahar committed May 23, 2024
1 parent 1787b1a commit 97ceb27
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/nvsl/numa.hh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ static inline void move_region_to_node(int node, void *start, size_t size,
MPOL_MF_MOVE_ALL);

if (err != 0) {
std::cerr << "perror: " << strerror(errno) << std::endl;
std::cerr << "Warning: first page might not be on the target node. ";
std::cerr << "Expected: " << node << ", got: " << status[0] << std::endl;
}
Expand Down

0 comments on commit 97ceb27

Please sign in to comment.