mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Use all devices when building program
remove Program::internalOptions internal options are calculated separately in compile, link and build methods Related-To: NEO-5001 Change-Id: I85ea2d64c72edb9b0e3f23244b59b9af20e2d357 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:

committed by
sys_ocldev

parent
045632f355
commit
75d1ebb811
@ -90,7 +90,6 @@ class SimpleArgKernelFixture : public ProgramFixture {
|
||||
testFile.replace(pos, 1, "_");
|
||||
}
|
||||
|
||||
cl_device_id device = pDevice;
|
||||
auto deviceVector = toClDeviceVector(*pDevice);
|
||||
pContext = Context::create<MockContext>(nullptr, deviceVector, nullptr, nullptr, retVal);
|
||||
ASSERT_EQ(CL_SUCCESS, retVal);
|
||||
@ -103,8 +102,7 @@ class SimpleArgKernelFixture : public ProgramFixture {
|
||||
ASSERT_NE(nullptr, pProgram);
|
||||
|
||||
retVal = pProgram->build(
|
||||
1,
|
||||
&device,
|
||||
pProgram->getDevices(),
|
||||
nullptr,
|
||||
false);
|
||||
ASSERT_EQ(CL_SUCCESS, retVal);
|
||||
@ -143,8 +141,6 @@ class SimpleArgNonUniformKernelFixture : public ProgramFixture {
|
||||
void SetUp(ClDevice *device, Context *context) {
|
||||
ProgramFixture::SetUp();
|
||||
|
||||
cl_device_id deviceId = device;
|
||||
|
||||
CreateProgramFromBinary(
|
||||
context,
|
||||
context->getDevices(),
|
||||
@ -153,8 +149,7 @@ class SimpleArgNonUniformKernelFixture : public ProgramFixture {
|
||||
ASSERT_NE(nullptr, pProgram);
|
||||
|
||||
retVal = pProgram->build(
|
||||
1,
|
||||
&deviceId,
|
||||
pProgram->getDevices(),
|
||||
"-cl-std=CL2.0",
|
||||
false);
|
||||
ASSERT_EQ(CL_SUCCESS, retVal);
|
||||
@ -188,7 +183,6 @@ class SimpleKernelFixture : public ProgramFixture {
|
||||
void SetUp(ClDevice *device, Context *context) {
|
||||
ProgramFixture::SetUp();
|
||||
|
||||
cl_device_id deviceId = device;
|
||||
std::string programName("simple_kernels");
|
||||
CreateProgramFromBinary(
|
||||
context,
|
||||
@ -197,8 +191,7 @@ class SimpleKernelFixture : public ProgramFixture {
|
||||
ASSERT_NE(nullptr, pProgram);
|
||||
|
||||
retVal = pProgram->build(
|
||||
1,
|
||||
&deviceId,
|
||||
pProgram->getDevices(),
|
||||
nullptr,
|
||||
false);
|
||||
ASSERT_EQ(CL_SUCCESS, retVal);
|
||||
@ -241,7 +234,6 @@ class SimpleKernelStatelessFixture : public ProgramFixture {
|
||||
protected:
|
||||
void SetUp(ClDevice *device, Context *context) {
|
||||
ProgramFixture::SetUp();
|
||||
cl_device_id deviceId = device;
|
||||
DebugManager.flags.DisableStatelessToStatefulOptimization.set(true);
|
||||
DebugManager.flags.EnableStatelessToStatefulBufferOffsetOpt.set(false);
|
||||
|
||||
@ -252,8 +244,7 @@ class SimpleKernelStatelessFixture : public ProgramFixture {
|
||||
ASSERT_NE(nullptr, pProgram);
|
||||
|
||||
retVal = pProgram->build(
|
||||
1,
|
||||
&deviceId,
|
||||
pProgram->getDevices(),
|
||||
CompilerOptions::greaterThan4gbBuffersRequired.data(),
|
||||
false);
|
||||
ASSERT_EQ(CL_SUCCESS, retVal);
|
||||
@ -289,7 +280,6 @@ class BindlessKernelFixture : public ProgramFixture {
|
||||
|
||||
void createKernel(const std::string &programName, const std::string &kernelName) {
|
||||
DebugManager.flags.UseBindlessMode.set(1);
|
||||
cl_device_id deviceId = deviceCl;
|
||||
CreateProgramFromBinary(
|
||||
contextCl,
|
||||
contextCl->getDevices(),
|
||||
@ -297,8 +287,7 @@ class BindlessKernelFixture : public ProgramFixture {
|
||||
ASSERT_NE(nullptr, pProgram);
|
||||
|
||||
retVal = pProgram->build(
|
||||
1,
|
||||
&deviceId,
|
||||
pProgram->getDevices(),
|
||||
nullptr,
|
||||
false);
|
||||
ASSERT_EQ(CL_SUCCESS, retVal);
|
||||
|
Reference in New Issue
Block a user