Skip to content

Commit 478d54f

Browse files
committed
Adopt the new rmm interface
Signed-off-by: Nghia Truong <nghiat@nvidia.com>
1 parent 0f60936 commit 478d54f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/cpp/src/SparkResourceAdaptorJni.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2164,7 +2164,7 @@ class spark_resource_adaptor final : public rmm::mr::device_memory_resource {
21642164
while (true) {
21652165
bool const likely_spill = pre_alloc(tid);
21662166
try {
2167-
void* ret = resource->allocate(num_bytes, stream);
2167+
void* ret = resource->allocate(stream, num_bytes);
21682168
post_alloc_success(tid, likely_spill, num_bytes);
21692169
return ret;
21702170
} catch (rmm::out_of_memory const& e) {
@@ -2227,7 +2227,7 @@ class spark_resource_adaptor final : public rmm::mr::device_memory_resource {
22272227

22282228
void do_deallocate(void* p, std::size_t size, rmm::cuda_stream_view stream) noexcept override
22292229
{
2230-
resource->deallocate(p, size, stream);
2230+
resource->deallocate(stream, p, size);
22312231
// deallocate success
22322232
if (size > 0) {
22332233
std::unique_lock<std::mutex> lock(state_mutex);

0 commit comments

Comments
 (0)