mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 12:23:05 +08:00
Allow to create HardwareContextController for multiple Devices
Change-Id: Ib066c937809536196182ca87359c487570cc2e89 Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
46225890a9
commit
958d931cd9
@@ -13,8 +13,8 @@
|
||||
|
||||
namespace OCLRT {
|
||||
|
||||
OsContext::OsContext(OSInterface *osInterface, uint32_t contextId, EngineInstanceT engineType, PreemptionMode preemptionMode)
|
||||
: contextId(contextId), engineType(engineType) {
|
||||
OsContext::OsContext(OSInterface *osInterface, uint32_t contextId, uint32_t numDevicesSupported, EngineInstanceT engineType, PreemptionMode preemptionMode)
|
||||
: contextId(contextId), numDevicesSupported(numDevicesSupported), engineType(engineType) {
|
||||
if (osInterface) {
|
||||
osContextImpl = std::make_unique<OsContextLinux>(*osInterface->get()->getDrm(), engineType);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user