diff --git a/opencl/test/unit_test/mocks/mock_compilers.cpp b/opencl/test/unit_test/mocks/mock_compilers.cpp index 10b76a955a..cbe50fe773 100644 --- a/opencl/test/unit_test/mocks/mock_compilers.cpp +++ b/opencl/test/unit_test/mocks/mock_compilers.cpp @@ -337,6 +337,13 @@ CodeType::CodeType_t CIF_GET_INTERFACE_CLASS(FclOclDeviceCtx, 2)::GetPreferredIn return CodeType::spirV; } +IGC::FclOclTranslationCtxBase *CIF_GET_INTERFACE_CLASS(FclOclDeviceCtx, 3)::CreateTranslationCtxImpl(CIF::Version_t ver, + IGC::CodeType::CodeType_t inType, + IGC::CodeType::CodeType_t outType, + CIF::Builtins::BufferSimple *err) { + return nullptr; +} + } // namespace IGC #include "cif/macros/disable.h" @@ -593,6 +600,13 @@ IGC::FclOclTranslationCtxBase *MockFclOclDeviceCtx::CreateTranslationCtxImpl(CIF return new MockFclOclTranslationCtx; } +IGC::FclOclTranslationCtxBase *MockFclOclDeviceCtx::CreateTranslationCtxImpl(CIF::Version_t ver, + IGC::CodeType::CodeType_t inType, + IGC::CodeType::CodeType_t outType, + CIF::Builtins::BufferSimple *err) { + return new MockFclOclTranslationCtx; +} + std::vector MockCompilerInterface::getDummyGenBinary() { return MockSipKernel::getDummyGenBinary(); } diff --git a/opencl/test/unit_test/mocks/mock_compilers.h b/opencl/test/unit_test/mocks/mock_compilers.h index f8f5879c58..a0953bda21 100644 --- a/opencl/test/unit_test/mocks/mock_compilers.h +++ b/opencl/test/unit_test/mocks/mock_compilers.h @@ -235,7 +235,7 @@ struct MockFclOclTranslationCtx : MockCIF { uint32_t tracingOptionsCount) override; }; -struct MockFclOclDeviceCtx : MockCIF { +struct MockFclOclDeviceCtx : MockCIF> { MockFclOclDeviceCtx(); ~MockFclOclDeviceCtx() override; @@ -248,6 +248,11 @@ struct MockFclOclDeviceCtx : MockCIF { IGC::CodeType::CodeType_t inType, IGC::CodeType::CodeType_t outType) override; + IGC::FclOclTranslationCtxBase *CreateTranslationCtxImpl(CIF::Version_t ver, + IGC::CodeType::CodeType_t inType, + IGC::CodeType::CodeType_t outType, + CIF::Builtins::BufferSimple *err) override; + uint32_t oclApiVersion = 120; };