Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix v1 adapter implementation of the spill memory size kernel propert… #2713

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions source/adapters/level_zero/kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -752,8 +752,11 @@ ur_result_t urKernelGetInfo(
case UR_KERNEL_INFO_NUM_ARGS:
return ReturnValue(uint32_t{Kernel->ZeKernelProperties->numKernelArgs});
case UR_KERNEL_INFO_SPILL_MEM_SIZE: {
std::vector<uint32_t> spills = {
uint32_t{Kernel->ZeKernelProperties->spillMemSize}};
std::vector<uint32_t> spills;
spills.reserve(Kernel->ZeKernels.size());
for (const auto *K : Kernel->ZeKernels) {
spills.push_back(K->ZeKernelProperties->spillMemSize);
}
return ReturnValue(static_cast<const uint32_t *>(spills.data()),
spills.size());
}
Expand Down
Loading