mirror of
https://github.com/intel/compute-runtime.git
synced 2025-11-10 05:49:51 +08:00
Add method to check tile only context
Related-To: NEO-6043 Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
8d22247ff2
commit
c8b85bb5a9
@@ -470,4 +470,8 @@ Platform *Context::getPlatformFromProperties(const cl_context_properties *proper
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
bool Context::isSingleDeviceContext() {
|
||||
return devices[0]->getNumAvailableDevices() == 1 && getNumDevices() == 1;
|
||||
}
|
||||
} // namespace NEO
|
||||
|
||||
@@ -142,6 +142,7 @@ class Context : public BaseObject<_cl_context> {
|
||||
bool getInteropUserSyncEnabled() { return interopUserSync; }
|
||||
void setInteropUserSyncEnabled(bool enabled) { interopUserSync = enabled; }
|
||||
bool areMultiStorageAllocationsPreferred();
|
||||
bool isSingleDeviceContext();
|
||||
|
||||
ContextType peekContextType() const { return contextType; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user