Skip to content

Commit 957aa6e

Browse files
author
Steffen Larsen
authored
Update tests/platform/platform_api.cpp
1 parent b06c3e5 commit 957aa6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/platform/platform_api.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ inline bool AllDevicesHaveType(const std::vector<sycl::device>& devices,
6767
inline size_t CountPlatformDevicesWithType(const sycl::platform& platform,
6868
sycl::info::device_type devType) {
6969
std::vector<sycl::device> allDevices = platform.get_devices();
70-
return std::all_of(
70+
return std::count_if(
7171
allDevices.begin(), allDevices.end(),
7272
[devType](const sycl::device& device) {
7373
return device.get_info<sycl::info::device::device_type>() == devType;

0 commit comments

Comments
 (0)