SWDEV-227909 - Add gcnArchName

Change-Id: Iea6d16b5d693dd0d900fa424d7a321c39315430e
This commit is contained in:
Jason Tang
2020-06-05 15:15:20 -04:00
parent 8941d19fe8
commit 1c0d737e1f
6 changed files with 6 additions and 6 deletions
+1 -2
View File
@@ -83,8 +83,7 @@ int main()
hipDeviceProp_t props;
int device = 0;
hipGetDeviceProperties(&props, device);
std::string gfxName = "gfx" + std::to_string(props.gcnArch);
std::string sarg = "--gpu-architecture=" + gfxName;
std::string sarg = "--gpu-architecture=" + props.gcnArchName;
const char* options[] = {
sarg.c_str()
};
+1 -2
View File
@@ -70,8 +70,7 @@ int main()
hipDeviceProp_t props;
int device = 0;
hipGetDeviceProperties(&props, device);
std::string gfxName = "gfx" + std::to_string(props.gcnArch);
std::string sarg = "--gpu-architecture=" + gfxName;
std::string sarg = "--gpu-architecture=" + props.gcnArchName;
const char* options[] = {
sarg.c_str()
};