Skip to content

Commit

Permalink
[UR][Tests] fix CTS on devcloud (work on one device only)
Browse files Browse the repository at this point in the history
  • Loading branch information
szadam committed Oct 2, 2023
1 parent 2733a72 commit e75b79d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/conformance/source/environment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,9 @@ DevicesEnvironment::DevicesEnvironment(int argc, char **argv)
error = "Could not find any devices associated with the platform";
return;
}
devices.resize(count);
if (urDeviceGet(platform, UR_DEVICE_TYPE_ALL, count, devices.data(),
// TODO: Add a parameter to make the test work on one device only
devices.resize(1);
if (urDeviceGet(platform, UR_DEVICE_TYPE_ALL, 1, devices.data(),
nullptr)) {
error = "urDeviceGet() failed to get devices.";
return;
Expand Down

0 comments on commit e75b79d

Please sign in to comment.