mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-22 10:17:01 +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:
@@ -47,7 +47,7 @@ class ProgramDataTestBase : public testing::Test,
|
||||
|
||||
void SetUp() override {
|
||||
PlatformFixture::SetUp();
|
||||
cl_device_id device = pPlatform->getDevice(0);
|
||||
cl_device_id device = pPlatform->getClDevice(0);
|
||||
ContextFixture::SetUp(1, &device);
|
||||
ProgramFixture::SetUp();
|
||||
|
||||
@@ -723,7 +723,7 @@ TEST_F(ProgramDataTest, ConstantPointerProgramBinaryInfo) {
|
||||
|
||||
TEST(ProgramScopeMetadataTest, WhenPatchingGlobalSurfaceThenPickProperSourceBuffer) {
|
||||
MockExecutionEnvironment execEnv;
|
||||
MockDevice device;
|
||||
MockClDevice device{new MockDevice};
|
||||
execEnv.memoryManager = std::make_unique<MockMemoryManager>();
|
||||
PatchTokensTestData::ValidProgramWithMixedGlobalVarAndConstSurfacesAndPointers decodedProgram;
|
||||
decodedProgram.globalPointerMutable->GlobalPointerOffset = 0U;
|
||||
@@ -742,7 +742,7 @@ TEST(ProgramScopeMetadataTest, WhenPatchingGlobalSurfaceThenPickProperSourceBuff
|
||||
}
|
||||
|
||||
TEST_F(ProgramDataTest, GivenProgramWith32bitPointerOptWhenProgramScopeConstantBufferPatchTokensAreReadThenConstantPointerOffsetIsPatchedWith32bitPointer) {
|
||||
cl_device_id device = pPlatform->getDevice(0);
|
||||
cl_device_id device = pPlatform->getClDevice(0);
|
||||
CreateProgramWithSource(pContext, &device, "CopyBuffer_simd8.cl");
|
||||
ASSERT_NE(nullptr, pProgram);
|
||||
|
||||
@@ -785,7 +785,7 @@ TEST_F(ProgramDataTest, GivenProgramWith32bitPointerOptWhenProgramScopeConstantB
|
||||
}
|
||||
|
||||
TEST_F(ProgramDataTest, GivenProgramWith32bitPointerOptWhenProgramScopeGlobalPointerPatchTokensAreReadThenGlobalPointerOffsetIsPatchedWith32bitPointer) {
|
||||
cl_device_id device = pPlatform->getDevice(0);
|
||||
cl_device_id device = pPlatform->getClDevice(0);
|
||||
CreateProgramWithSource(pContext, &device, "CopyBuffer_simd8.cl");
|
||||
ASSERT_NE(nullptr, pProgram);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user