-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: Ia5ea548ce233d332a040fd3a50592da294d3d612 Signed-off-by: Filip Hazubski <[email protected]>
- Loading branch information
1 parent
a2c05a2
commit 880e891
Showing
6 changed files
with
50 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Copyright (C) 2019 Intel Corporation | ||
* | ||
* SPDX-License-Identifier: MIT | ||
* | ||
*/ | ||
|
||
#include "runtime/command_stream/create_command_stream_impl.h" | ||
#include "runtime/execution_environment/execution_environment.h" | ||
#include "runtime/helpers/hw_info.h" | ||
#include "runtime/os_interface/device_factory.h" | ||
|
||
namespace OCLRT { | ||
|
||
bool getDevices(HardwareInfo **hwInfo, size_t &numDevicesReturned, ExecutionEnvironment &executionEnviornment) { | ||
return getDevicesImpl(hwInfo, numDevicesReturned, executionEnviornment); | ||
} | ||
|
||
} // namespace OCLRT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Copyright (C) 2019 Intel Corporation | ||
* | ||
* SPDX-License-Identifier: MIT | ||
* | ||
*/ | ||
|
||
#include "runtime/execution_environment/execution_environment.h" | ||
#include "runtime/helpers/hw_info.h" | ||
#include "test.h" | ||
|
||
namespace OCLRT { | ||
bool getDevices(HardwareInfo **hwInfo, size_t &numDevicesReturned, ExecutionEnvironment &executionEnvironment); | ||
} // namespace OCLRT | ||
|
||
using GetDevicesTests = ::testing::Test; | ||
|
||
HWTEST_F(GetDevicesTests, WhenGetDevicesIsCalledThenSuccessIsReturned) { | ||
OCLRT::HardwareInfo *hwInfo; | ||
size_t numDevicesReturned = 0; | ||
OCLRT::ExecutionEnvironment executionEnviornment; | ||
|
||
auto returnValue = OCLRT::getDevices(&hwInfo, numDevicesReturned, executionEnviornment); | ||
EXPECT_EQ(true, returnValue); | ||
} |