mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 20:39:56 +08:00
Enhance processing Queue properties
Change-Id: I53ab00bdbfb6b11a7d9fdcaec816eead625ae737 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
ac56465031
commit
9d9b11734d
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2017-2018 Intel Corporation
|
* Copyright (C) 2017-2019 Intel Corporation
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
*
|
*
|
||||||
@@ -3867,7 +3867,7 @@ cl_command_queue CL_API_CALL clCreateCommandQueueWithProperties(cl_context conte
|
|||||||
tokenValue != CL_QUEUE_SIZE &&
|
tokenValue != CL_QUEUE_SIZE &&
|
||||||
tokenValue != CL_QUEUE_PRIORITY_KHR &&
|
tokenValue != CL_QUEUE_PRIORITY_KHR &&
|
||||||
tokenValue != CL_QUEUE_THROTTLE_KHR &&
|
tokenValue != CL_QUEUE_THROTTLE_KHR &&
|
||||||
!processExtraTokens(pDevice, propertiesAddress)) {
|
!processExtraTokens(pDevice, *pContext, propertiesAddress)) {
|
||||||
err.set(CL_INVALID_VALUE);
|
err.set(CL_INVALID_VALUE);
|
||||||
return commandQueue;
|
return commandQueue;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2018 Intel Corporation
|
* Copyright (C) 2018-2019 Intel Corporation
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
*
|
*
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
#include "runtime/helpers/queue_helpers.h"
|
#include "runtime/helpers/queue_helpers.h"
|
||||||
|
|
||||||
namespace OCLRT {
|
namespace OCLRT {
|
||||||
bool processExtraTokens(Device *&device, const cl_queue_properties *property) {
|
bool processExtraTokens(Device *&device, Context &context, const cl_queue_properties *property) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2017-2018 Intel Corporation
|
* Copyright (C) 2017-2019 Intel Corporation
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
*
|
*
|
||||||
@@ -102,5 +102,5 @@ returnType getCmdQueueProperties(const cl_queue_properties *properties,
|
|||||||
}
|
}
|
||||||
return retVal;
|
return retVal;
|
||||||
}
|
}
|
||||||
bool processExtraTokens(Device *&device, const cl_queue_properties *property);
|
bool processExtraTokens(Device *&device, Context &context, const cl_queue_properties *property);
|
||||||
} // namespace OCLRT
|
} // namespace OCLRT
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2017-2018 Intel Corporation
|
* Copyright (C) 2017-2019 Intel Corporation
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
*
|
*
|
||||||
@@ -73,6 +73,10 @@ void MockContext::setSharingFunctions(SharingFunctions *sharingFunctions) {
|
|||||||
this->sharingFunctions[sharingFunctions->getId()].reset(sharingFunctions);
|
this->sharingFunctions[sharingFunctions->getId()].reset(sharingFunctions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MockContext::setContextType(ContextType contextType) {
|
||||||
|
this->contextType = contextType;
|
||||||
|
}
|
||||||
|
|
||||||
void MockContext::releaseSharingFunctions(SharingType sharing) {
|
void MockContext::releaseSharingFunctions(SharingType sharing) {
|
||||||
this->sharingFunctions[sharing].release();
|
this->sharingFunctions[sharing].release();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2017-2018 Intel Corporation
|
* Copyright (C) 2017-2019 Intel Corporation
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
*
|
*
|
||||||
@@ -28,6 +28,7 @@ class MockContext : public Context {
|
|||||||
|
|
||||||
void clearSharingFunctions();
|
void clearSharingFunctions();
|
||||||
void setSharingFunctions(SharingFunctions *sharingFunctions);
|
void setSharingFunctions(SharingFunctions *sharingFunctions);
|
||||||
|
void setContextType(ContextType contextType);
|
||||||
void releaseSharingFunctions(SharingType sharing);
|
void releaseSharingFunctions(SharingType sharing);
|
||||||
void registerSharingWithId(SharingFunctions *sharing, SharingType sharingId);
|
void registerSharingWithId(SharingFunctions *sharing, SharingType sharingId);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user