mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-10 12:53:42 +08:00
Revert "fix(ocl zebin): do not expose functions as kernel"
This reverts commit 359b9278b8
.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
3fe394ecbe
commit
c322bc3578
@ -8,7 +8,6 @@
|
||||
#include "opencl/test/unit_test/fixtures/program_fixture.h"
|
||||
|
||||
#include "opencl/source/program/create.inl"
|
||||
#include "opencl/test/unit_test/mocks/mock_context.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_program.h"
|
||||
|
||||
namespace NEO {
|
||||
@ -41,13 +40,6 @@ void ProgramFixture::createProgramWithSource(Context *pContext,
|
||||
ASSERT_EQ(CL_SUCCESS, retVal);
|
||||
}
|
||||
|
||||
void ProgramFixture::cleanup() {
|
||||
if (pProgram != nullptr) {
|
||||
pProgram->release();
|
||||
}
|
||||
knownSource.reset();
|
||||
}
|
||||
|
||||
void ProgramFixture::createProgramFromBinary(Context *pContext,
|
||||
const ClDeviceVector &deviceVector,
|
||||
const std::string &binaryFileName,
|
||||
@ -91,14 +83,4 @@ void ProgramFixture::createProgramFromBinary(Context *pContext,
|
||||
ASSERT_EQ(CL_SUCCESS, retVal);
|
||||
}
|
||||
|
||||
NEOProgramFixture::NEOProgramFixture() = default;
|
||||
NEOProgramFixture::~NEOProgramFixture() = default;
|
||||
|
||||
void NEOProgramFixture::setUp() {
|
||||
context = std::make_unique<MockContext>();
|
||||
program = std::make_unique<MockNeoProgram>(context.get(), false, context->getDevices());
|
||||
}
|
||||
|
||||
void NEOProgramFixture::tearDown() {}
|
||||
|
||||
} // namespace NEO
|
||||
|
@ -9,31 +9,12 @@
|
||||
#include "shared/source/helpers/file_io.h"
|
||||
#include "shared/test/common/helpers/test_files.h"
|
||||
|
||||
#include "opencl/source/program/program.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_program.h"
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
namespace NEO {
|
||||
class Context;
|
||||
class ClDeviceVector;
|
||||
class MockContext;
|
||||
class MockProgram;
|
||||
class ClDevice;
|
||||
class MockNeoProgram;
|
||||
using cl_int = int;
|
||||
|
||||
class NEOProgramFixture {
|
||||
public:
|
||||
NEOProgramFixture();
|
||||
~NEOProgramFixture();
|
||||
|
||||
protected:
|
||||
void setUp();
|
||||
void tearDown();
|
||||
std::unique_ptr<MockContext> context;
|
||||
std::unique_ptr<MockNeoProgram> program;
|
||||
};
|
||||
|
||||
class ProgramFixture {
|
||||
public:
|
||||
@ -59,7 +40,12 @@ class ProgramFixture {
|
||||
cleanup();
|
||||
}
|
||||
|
||||
void cleanup();
|
||||
void cleanup() {
|
||||
if (pProgram != nullptr) {
|
||||
pProgram->release();
|
||||
}
|
||||
knownSource.reset();
|
||||
}
|
||||
|
||||
MockProgram *pProgram = nullptr;
|
||||
std::unique_ptr<char[]> knownSource;
|
||||
|
Reference in New Issue
Block a user