Skip to content

Commit

Permalink
MAINT: fix gdr_unpin_buffer warning
Browse files Browse the repository at this point in the history
* Fix the warning message when `gdr_unpin_buffer`
fails, so that the message is not conflated with
the prior `gdr_unmap` call.

Signed-off-by: Tyler Reddy <tyler.je.reddy@gmail.com>
  • Loading branch information
tylerjereddy committed May 17, 2024
1 parent 4ee2cbe commit 5524e7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hmem_cuda_gdrcopy.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ int cuda_gdrcopy_dev_unregister(uint64_t handle)
err = global_gdrcopy_ops.gdr_unpin_buffer(global_gdr, gdrcopy->mh);
if (err) {
FI_WARN(&core_prov, FI_LOG_MR,
"gdr_unmap failed! error: %s\n",
"gdr_unpin_buffer failed! error: %s\n",
strerror(err));
goto exit;
}
Expand Down

0 comments on commit 5524e7e

Please sign in to comment.