SWDEV-369580 - hipModuleGetTexRef matching cuda

Change-Id: I3f071fe0b289c0ba8316c691f066f47d12b156b5
This commit is contained in:
pghafari
2022-12-26 00:41:30 -05:00
committad av Payam Ghafari
förälder ad1fae7df4
incheckning 2c906460cb
+1 -1
Visa fil
@@ -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) {