SWDEV-369580 - hipModuleGetTexRef matching cuda

Change-Id: I3f071fe0b289c0ba8316c691f066f47d12b156b5


[ROCm/clr commit: 2c906460cb]
This commit is contained in:
pghafari
2022-12-26 00:41:30 -05:00
committed by Payam Ghafari
parent 609598cd15
commit 6bae9dde0a
+1 -1
View File
@@ -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) {