From 5524e7e660946c5f2e4e4e7e57222dbb235e99ed Mon Sep 17 00:00:00 2001 From: Tyler Reddy Date: Wed, 15 May 2024 16:15:52 -0600 Subject: [PATCH] MAINT: fix gdr_unpin_buffer warning * 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 --- src/hmem_cuda_gdrcopy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hmem_cuda_gdrcopy.c b/src/hmem_cuda_gdrcopy.c index e013777dfbc..e58a2b0240a 100644 --- a/src/hmem_cuda_gdrcopy.c +++ b/src/hmem_cuda_gdrcopy.c @@ -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; }