Merge "Fix size type in __hipRegisterVar" into amd-master-next

[ROCm/hip commit: fad9e39597]
This commit is contained in:
Michael Hong Bin Liao
2020-04-03 15:12:21 -04:00
committad av Gerrit Code Review
förälder 1ed78d9869 9759e31dac
incheckning 8c63e2536d
+3 -3
Visa fil
@@ -544,15 +544,15 @@ extern "C" void __hipRegisterFunction(
// executions.
extern "C" void __hipRegisterVar(
std::vector<std::pair<hipModule_t,bool> >* modules, // The device modules containing code object
char* var, // The shadow variable in host code
void* var, // The shadow variable in host code
char* hostVar, // Variable name in host code
char* deviceVar, // Variable name in device code
int ext, // Whether this variable is external
int size, // Size of the variable
size_t size, // Size of the variable
int constant, // Whether this variable is constant
int global) // Unknown, always 0
{
PlatformState::DeviceVar dvar{var, std::string{ hostVar }, static_cast<size_t>(size), modules,
PlatformState::DeviceVar dvar{var, std::string{ hostVar }, size, modules,
std::vector<PlatformState::RegisteredVar>{g_devices.size()}, false };
PlatformState::instance().registerVar(hostVar, dvar);