SWDEV-223394 - Pass module info from hipModuleGetTexRef to internal Platformstate:: functions.
Change-Id: I7d1ba3f940f595c3fca74a57fa20f484c52d4741
[ROCm/clr commit: e066cc6f60]
Ta zmiana jest zawarta w:
%! (template.HTML=
Karthik Jayaprakash)złożyło 2020-02-18 11:23:03 -05:00
1 rodzic
6cb9ca6157
złożenie
8ad9be80bd
3 plików zmienionych
+4
-4
Żadne pliki nie pasują do Twojego wyszukiwania
Regularny → Wykonywalny
+1
-1
@@ -197,7 +197,7 @@ public:
|
||||
bool getFuncAttr(const void* hostFunction, hipFuncAttributes* func_attr);
|
||||
bool getGlobalVar(const void* hostVar, int deviceId, hipModule_t hmod,
|
||||
hipDeviceptr_t* dev_ptr, size_t* size_ptr);
|
||||
bool getTexRef(const char* hostVar, textureReference** texRef);
|
||||
bool getTexRef(const char* hostVar, hipModule_t hmod, textureReference** texRef);
|
||||
|
||||
bool getShadowVarInfo(std::string var_name, hipModule_t hmod,
|
||||
void** var_addr, size_t* var_size);
|
||||
|
||||
Regularny → Wykonywalny
+1
-1
@@ -520,7 +520,7 @@ hipError_t hipModuleGetTexRef(textureReference** texRef, hipModule_t hmod, const
|
||||
}
|
||||
|
||||
/* Get address and size for the global symbol */
|
||||
if (!PlatformState::instance().getTexRef(name, texRef)) {
|
||||
if (!PlatformState::instance().getTexRef(name, hmod, texRef)) {
|
||||
HIP_RETURN(hipErrorNotFound);
|
||||
}
|
||||
|
||||
|
||||
Regularny → Wykonywalny
+2
-2
@@ -351,9 +351,9 @@ bool PlatformState::getFuncAttr(const void* hostFunction,
|
||||
return true;
|
||||
}
|
||||
|
||||
bool PlatformState::getTexRef(const char* hostVar, textureReference** texRef) {
|
||||
bool PlatformState::getTexRef(const char* hostVar, hipModule_t hmod, textureReference** texRef) {
|
||||
amd::ScopedLock lock(lock_);
|
||||
DeviceVar* dvar = findVar(std::string(hostVar), ihipGetDevice(), nullptr);
|
||||
DeviceVar* dvar = findVar(std::string(hostVar), ihipGetDevice(), hmod);
|
||||
if (dvar == nullptr) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Zablokuj użytkownika