diff --git a/projects/clr/rocclr/runtime/platform/context.cpp b/projects/clr/rocclr/runtime/platform/context.cpp index d015c29b93..5a3c24bf94 100644 --- a/projects/clr/rocclr/runtime/platform/context.cpp +++ b/projects/clr/rocclr/runtime/platform/context.cpp @@ -31,9 +31,7 @@ Context::Context( { for (const auto& device : devices) { device->retain(); - if (device->customHostAllocator()) { - assert(!customHostAllocDevice_ && "Only one custom host allocator " - "is allowed per context"); + if (customHostAllocDevice_ == NULL && device->customHostAllocator()) { customHostAllocDevice_ = device; } if (device->svmSupport()) {