Report failure given Compiler Library Load failed for L0

- Return ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE given the Compiler
  cannot be loaded.
- Print dlopen and LoadLibrary error strings given Debug Print Messages
  are enabled.

Related-To: LOCI-1313

Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com>
This commit is contained in:
Spruit, Neil R
2021-03-11 17:01:51 -08:00
committed by Compute-Runtime-Automation
parent 95b9880385
commit 7a3095c273
37 changed files with 297 additions and 49 deletions

View File

@@ -28,9 +28,10 @@ class MetricQueryPoolTest : public MetricContextFixture,
public ::testing::Test {
public:
void SetUp() override {
ze_result_t returnValue = ZE_RESULT_SUCCESS;
MetricContextFixture::SetUp();
auto executionEnvironment = new NEO::ExecutionEnvironment();
driverHandle.reset(DriverHandle::create(NEO::DeviceFactory::createDevices(*executionEnvironment), L0EnvVariables{}));
driverHandle.reset(DriverHandle::create(NEO::DeviceFactory::createDevices(*executionEnvironment), L0EnvVariables{}, &returnValue));
}
void TearDown() override {

View File

@@ -29,9 +29,10 @@ class MetricQueryPoolTest : public MetricContextFixture,
public ::testing::Test {
public:
void SetUp() override {
ze_result_t returnValue = ZE_RESULT_SUCCESS;
MetricContextFixture::SetUp();
auto executionEnvironment = new NEO::ExecutionEnvironment();
driverHandle.reset(DriverHandle::create(NEO::DeviceFactory::createDevices(*executionEnvironment), L0EnvVariables{}));
driverHandle.reset(DriverHandle::create(NEO::DeviceFactory::createDevices(*executionEnvironment), L0EnvVariables{}, &returnValue));
}
void TearDown() override {