mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
Add ClDevice
Decouple cl_device_id from Device class. Related-To: NEO-3938 Change-Id: I68543a753aea562f3b47ba0d23a059ff3cffa906 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
@@ -95,7 +95,7 @@ bool Context::areMultiStorageAllocationsPreferred() {
|
||||
}
|
||||
|
||||
bool Context::createImpl(const cl_context_properties *properties,
|
||||
const DeviceVector &inputDevices,
|
||||
const ClDeviceVector &inputDevices,
|
||||
void(CL_CALLBACK *funcNotify)(const char *, const void *, size_t, void *),
|
||||
void *data, cl_int &errcodeRet) {
|
||||
|
||||
@@ -257,8 +257,8 @@ size_t Context::getTotalNumDevices() const {
|
||||
return numAvailableDevices;
|
||||
}
|
||||
|
||||
Device *Context::getDevice(size_t deviceOrdinal) {
|
||||
return (Device *)devices[deviceOrdinal];
|
||||
ClDevice *Context::getDevice(size_t deviceOrdinal) {
|
||||
return (ClDevice *)devices[deviceOrdinal];
|
||||
}
|
||||
|
||||
cl_int Context::getSupportedImageFormats(
|
||||
|
||||
Reference in New Issue
Block a user