P4 to Git Change 1229824 by bwicakso@opencl-hsa-stg-bwicakso on 2016/01/21 11:45:50
SWDEV-82353 - Remove assert and only assign the customHostAllocDevice_ with the first device that has customHostAllocator.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/platform/context.cpp#38 edit
[ROCm/clr commit: 7bf5bb51b5]
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user