SWDEV-369580 - hipModuleGetTexRef matching cuda

Change-Id: I3f071fe0b289c0ba8316c691f066f47d12b156b5
Esse commit está contido em:
pghafari authored and Payam Ghafari committed 2022-12-27 13:58:26 -05:00
1 pai ad1fae7df4
commit 2c906460cb
1 file changed
+1 -1
+1 -1
Ver Arquivo
@@ -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) {