SWDEV-316467 - hipGraphMemcpyNodeSetParamsToSymbol negative scenarios
Change-Id: Ic2a6ce1572f35dabe754c9459690448c49bbd4a6
[ROCm/clr commit: 0440d945e8]
This commit is contained in:
1 والد
6b86bb1618
کامیت
c27ec6c94e
2 files changed
+27
No files matched your search
@@ -1385,6 +1385,13 @@ hipError_t hipGraphMemcpyNodeSetParamsToSymbol(hipGraphNode_t node, const void*
|
||||
const void* src, size_t count, size_t offset,
|
||||
hipMemcpyKind kind) {
|
||||
HIP_INIT_API(hipGraphMemcpyNodeSetParamsToSymbol, symbol, src, count, offset, kind);
|
||||
if (node == nullptr || src == nullptr || count == 0 || symbol == src) {
|
||||
return hipErrorInvalidValue;
|
||||
}
|
||||
if (symbol == nullptr) {
|
||||
return hipErrorInvalidSymbol;
|
||||
}
|
||||
|
||||
HIP_RETURN(reinterpret_cast<hipGraphMemcpyNodeToSymbol*>(node)->SetParams(symbol, src, count,
|
||||
offset, kind));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user