We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e5b7ac commit d6ae2a9Copy full SHA for d6ae2a9
source/adapters/native_cpu/program.cpp
@@ -81,7 +81,10 @@ UR_APIEXPORT ur_result_t UR_APICALL urProgramCreateWithBinary(
81
auto [Prefix, Tag] = splitMetadataName(mdName);
82
if (Tag == __SYCL_UR_PROGRAM_METADATA_TAG_REQD_WORK_GROUP_SIZE) {
83
native_cpu::ReqdWGSize_t reqdWGSize;
84
- getReqdWGSize(mdNode, reqdWGSize);
+ auto res = getReqdWGSize(mdNode, reqdWGSize);
85
+ if (res != UR_RESULT_SUCCESS) {
86
+ return res;
87
+ }
88
hProgram->KernelReqdWorkGroupSizeMD[Prefix] = std::move(reqdWGSize);
89
}
90
0 commit comments