mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-13 10:14:36 +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:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2017-2019 Intel Corporation
|
||||
* Copyright (C) 2017-2020 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -19,6 +19,9 @@
|
||||
namespace NEO {
|
||||
GlobalMockSipProgram *GlobalMockSipProgram::sipProgram;
|
||||
ExecutionEnvironment GlobalMockSipProgram::executionEnvironment;
|
||||
|
||||
ClDevice *MockProgram::getDevicePtr() { return this->pDevice; }
|
||||
|
||||
std::string MockProgram::getCachedFileName() const {
|
||||
auto hwInfo = this->context->getDevice(0)->getHardwareInfo();
|
||||
auto input = ArrayRef<const char>(this->sourceCode.c_str(), this->sourceCode.size());
|
||||
|
||||
Reference in New Issue
Block a user