P4 to Git Change 2033779 by kjayapra@0_HIPWS_LNX1_ROCM on 2019/11/20 07:17:56
SWDEV-144570 - Update function global during hipModuleLoad. Affected files ... ... //depot/stg/opencl/drivers/opencl/api/hip/hip_internal.hpp#47 edit ... //depot/stg/opencl/drivers/opencl/api/hip/hip_module.cpp#48 edit ... //depot/stg/opencl/drivers/opencl/api/hip/hip_platform.cpp#50 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.cpp#69 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.hpp#35 edit
此提交包含在:
@@ -3178,6 +3178,14 @@ bool Program::getSymbolsFromCodeObj(std::vector<std::string>* var_names, amd_com
|
||||
}
|
||||
#endif /* USE_COMGR_LIBRARY */
|
||||
|
||||
bool Program::getFuncsFromCodeObj(std::vector<std::string>* func_names) const {
|
||||
#if defined(USE_COMGR_LIBRARY)
|
||||
return getSymbolsFromCodeObj(func_names, AMD_COMGR_SYMBOL_TYPE_FUNC);
|
||||
#else
|
||||
return true;
|
||||
#endif
|
||||
}
|
||||
|
||||
bool Program::getGlobalVarFromCodeObj(std::vector<std::string>* var_names) const {
|
||||
#if defined(USE_COMGR_LIBRARY)
|
||||
return getSymbolsFromCodeObj(var_names, AMD_COMGR_SYMBOL_TYPE_OBJECT);
|
||||
|
||||
@@ -240,6 +240,7 @@ class Program : public amd::HeapObject {
|
||||
//! Check if SRAM ECC is enable
|
||||
const bool sramEccEnable() const { return (sramEccEnabled_ == 1); }
|
||||
|
||||
bool getFuncsFromCodeObj(std::vector<std::string>* func_names) const;
|
||||
bool getGlobalVarFromCodeObj(std::vector<std::string>* var_names) const;
|
||||
bool getUndefinedVarFromCodeObj(std::vector<std::string>* var_names) const;
|
||||
|
||||
|
||||
新增問題並參考
封鎖使用者