Skip to content

Commit 8cc087e

Browse files
bjoernknaflabader
authored andcommitted
[SYCL][PI] Fix PI unittests after PI API name changes (#572)
Adapt namechanges, e.g., `cl::sycl::detail::pi::piInitialize` to`cl::sycl::detail::pi::initialize`. Fix unittests signed-unsigned comparison compiler warning in PI unittests: ```sh warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ``` Signed-off-by: Bjoern Knafla <[email protected]>
1 parent d7b5c0d commit 8cc087e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/unittests/pi/PlatformTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class PlatformTest : public ::testing::Test {
2020
constexpr static size_t out_string_size =
2121
8192u; // Using values from OpenCL CTS clGetPlatforms test
2222

23-
PlatformTest() { detail::pi::piInitialize(); }
23+
PlatformTest() { detail::pi::initialize(); }
2424

2525
~PlatformTest() = default;
2626
};
@@ -32,7 +32,7 @@ TEST_F(PlatformTest, piPlatformsGet) {
3232
PI_SUCCESS)
3333
<< "piPlatformsGet failed";
3434

35-
ASSERT_GT(platformCount, 0) << "piPlatformsGet found 0 platforms.\n";
35+
ASSERT_GT(platformCount, 0u) << "piPlatformsGet found 0 platforms.\n";
3636

3737
std::vector<pi_platform> platforms(platformCount);
3838

0 commit comments

Comments
 (0)