SWDEV-446992 - Request can be for bytes OR dptr OR both.
Change-Id: Ib479c744b90125b74d99cbf18b7f4b8cf765bf1c
[ROCm/clr commit: 09328f45b3]
Этот коммит содержится в:
коммит произвёл
Jaydeepkumar Patel
родитель
0f8a9567e6
Коммит
c4239ed8e8
@@ -92,10 +92,6 @@ hipError_t hipModuleGetGlobal(hipDeviceptr_t* dptr, size_t* bytes, hipModule_t h
|
||||
const char* name) {
|
||||
HIP_INIT_API(hipModuleGetGlobal, dptr, bytes, hmod, name);
|
||||
|
||||
if (dptr == nullptr || bytes == nullptr) {
|
||||
// If either is nullptr, ignore it
|
||||
HIP_RETURN(hipSuccess);
|
||||
}
|
||||
if ((dptr == nullptr && bytes == nullptr) || name == nullptr || strlen(name) == 0) {
|
||||
HIP_RETURN(hipErrorInvalidValue);
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user