Skip to content

Commit 399cdaf

Browse files
achirkinenp1s0
authored andcommitted
ANN_BENCH: Don't throw in noexcept do_deallocate (rapidsai#1417)
A follow-up fix for rapidsai#1416 Authors: - Artem M. Chirkin (https://github.com/achirkin) Approvers: - Divye Gala (https://github.com/divyegala) URL: rapidsai#1417
1 parent cf59b02 commit 399cdaf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cpp/bench/ann/src/common/cuda_huge_page_resource.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#pragma once
1717

1818
#include <raft/core/error.hpp>
19+
#include <raft/core/logger_macros.hpp>
1920

2021
#include <rmm/cuda_stream_view.hpp>
2122
#include <rmm/mr/device/device_memory_resource.hpp>
@@ -81,7 +82,7 @@ class cuda_huge_page_resource final : public rmm::mr::device_memory_resource {
8182
*/
8283
void do_deallocate(void* ptr, std::size_t size, rmm::cuda_stream_view) noexcept override
8384
{
84-
if (munmap(ptr, size) == -1) { RAFT_FAIL("huge_page_resource::munmap"); }
85+
if (munmap(ptr, size) == -1) { RAFT_LOG_ERROR("huge_page_resource::munmap failed"); }
8586
}
8687

8788
/**

0 commit comments

Comments
 (0)