SWDEV-369580 - hipModuleGetTexRef matching cuda

Change-Id: I3f071fe0b289c0ba8316c691f066f47d12b156b5


[ROCm/clr commit: 2c906460cb]
Tento commit je obsažen v:
pghafari
2022-12-26 00:41:30 -05:00
odevzdal Payam Ghafari
rodič 609598cd15
revize 6bae9dde0a
+1 -1
Zobrazit soubor
@@ -682,7 +682,7 @@ hipError_t hipModuleGetTexRef(textureReference** texRef, hipModule_t hmod, const
HIP_INIT_API(hipModuleGetTexRef, texRef, hmod, name);
/* input args check */
if ((texRef == nullptr) || (name == nullptr)) {
if ((texRef == nullptr) || (name == nullptr) || (strlen(name) == 0)) {
HIP_RETURN(hipErrorInvalidValue);
}
if (hmod == nullptr) {