Skip to content
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
4 changes: 4 additions & 0 deletions projects/clr/hipamd/src/hip_module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,10 @@ hipError_t ihipLaunchKernel_validate(hipFunction_t f, const amd::LaunchParams& l
}
hip::DeviceFunc* function = hip::DeviceFunc::asFunction(f);
amd::Kernel* kernel = function->kernel();
if (!kernel) {
LogPrintfError("%s", "Kernel object is invalid or null, possibly due to architecture mismatch.");
return hipErrorInvalidValue;
}
const amd::KernelSignature& signature = kernel->signature();
if ((signature.numParameters() > 0) && (kernelParams == nullptr) && (extra == nullptr)) {
LogPrintfError("%s", "At least one of kernelParams or extra Params should be provided");
Expand Down
Loading