Skip to content

Commit e32b71d

Browse files
committed
Bug fix.
1 parent dbe295a commit e32b71d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

dali/kernels/dynamic_scratchpad.h

+2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ class DynamicScratchpadImplT {
6060
AccessOrder dealloc_order = {}) {
6161
static_assert(!std::is_same<Kind, mm::memory_kind::host>::value,
6262
"Cannot use a stream-ordered resource for plain host memory");
63+
if (dealloc_order.has_value())
64+
dealloc_order = alloc_order;
6365
adapter<Kind>() = { rsrc, alloc_order, dealloc_order };
6466
set_upstream_resource<Kind>(&adapter<Kind>());
6567
}

dali/operators/image/resize/resize_base.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ void ResizeBase<GPUBackend>::InitializeGPU(int minibatch_size, size_t temp_buffe
121121
minibatch_size_ = minibatch_size;
122122
}
123123
kmgr_.Resize(1, 0);
124-
kmgr_.SetMemoryHint<mm::memory_kind::device>(temp_buffer_hint);
125-
kmgr_.GetScratchpadAllocator(0).Reserve<mm::memory_kind::device>(temp_buffer_hint);
124+
// kmgr_.SetMemoryHint<mm::memory_kind::device>(temp_buffer_hint);
125+
// kmgr_.GetScratchpadAllocator(0).Reserve<mm::memory_kind::device>(temp_buffer_hint);
126126
}
127127

128128
template <typename Backend>

0 commit comments

Comments
 (0)