Skip to content

Commit 637ad26

Browse files
made message more specific about limitation issue
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
1 parent 19983fe commit 637ad26

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sycl/source/detail/program_manager/program_manager.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -994,8 +994,9 @@ ur_program_handle_t ProgramManager::getBuiltURProgram(
994994
if (URDevicesSet.size() > sizeof(Mask) * 8 - 1) {
995995
// Protection for the algorithm below. Although overflow is very unlikely
996996
// to be reached.
997-
throw sycl::exception(make_error_code(errc::runtime),
998-
"Unable to generate device sets");
997+
throw sycl::exception(
998+
make_error_code(errc::runtime),
999+
"Unable to cache built program for more than 31 devices");
9991000
}
10001001
for (; Mask < (1 << URDevicesSet.size()) - 1; ++Mask) {
10011002
std::set<ur_device_handle_t> Subset;

0 commit comments

Comments
 (0)