Skip to content

Conversation

@againull
Copy link
Contributor

Currently urProgramGetInfo will return UR_RESULT_ERROR_INVALID_PROGRAM if program is built only for a subset of associated devices, i.e. not all devices have level zero module and binaries.

This PR fixes this behaviour. Such urProgramGetInfo will return UR_RESULT_SUCCESS and 0 will be returned as binary size for devices which don't have a binary and binary data will not be copied for them.

@againull againull requested review from a team as code owners November 12, 2024 08:14
@againull againull force-pushed the fix_ur_program_get_info branch from e089640 to 1d7fd6c Compare November 12, 2024 17:32
Currently urProgramGetInfo will return UR_RESULT_ERROR_INVALID_PROGRAM if program is
built only for a subset of associated devices, i.e. not all devices have level zero module and binaries.

This PR fixes this behaviour. Such urProgramGetInfo will return
UR_RESULT_SUCCESS and 0 will be returned as binary size for devices
which don't have a binary and binary data will not be copied for them.
@againull againull force-pushed the fix_ur_program_get_info branch from 1d7fd6c to 3e1a0ea Compare November 13, 2024 00:52
@againull
Copy link
Contributor Author

Failures are unrelated:


Failed Tests (2):
SYCL :: Matrix/joint_matrix_bf16_fill_k_cache_arg_dim.cpp
SYCL :: Matrix/joint_matrix_bf16_fill_k_cache_runtime_dim.cpp

@nrspruit
Copy link
Contributor

Hello @againull ,

Looks good to me, can you post the intel/llvm PR using the commit in this PR?

@againull
Copy link
Contributor Author

Hello @againull ,

Looks good to me, can you post the intel/llvm PR using the commit in this PR?

Hello @nrspruit , thank you for taking a look! Yes, here is associated intel/llvm PR: intel/llvm#16056

@againull
Copy link
Contributor Author

@oneapi-src/unified-runtime-maintain Could you please merge this PR.

@pbalcer pbalcer added the ready to merge Added to PR's which are ready to merge label Nov 14, 2024
@pbalcer pbalcer merged commit 3e17b04 into oneapi-src:main Nov 14, 2024
81 of 83 checks passed
sarnex pushed a commit to intel/llvm that referenced this pull request Nov 14, 2024
Includes new low-power events API
(oneapi-src/unified-runtime#2253) and fixes to
urProgramGetInfo
(oneapi-src/unified-runtime#2313).
againull added a commit to intel/llvm that referenced this pull request Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready to merge Added to PR's which are ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants