SWDEV-227909 - Add gcnArchName

Change-Id: Iea6d16b5d693dd0d900fa424d7a321c39315430e
This commit is contained in:
Jason Tang committed 2020-06-05 15:33:55 -04:00
1 parent ea913c964a
commit 593b8a093f
2 file changed
+2 -2

No files matched your search

+1 -1
View File
@@ -58,7 +58,7 @@ int main(int argc, char* argv[]) {
CHECK(hipGetDeviceProperties(&props, device /*deviceID*/));
printf("info: running on device %s\n", props.name);
#ifdef __HIP_PLATFORM_HCC__
printf("info: architecture on AMD GPU device is: %d\n", props.gcnArch);
printf("info: architecture on AMD GPU device is: %s\n", props.gcnArchName);
#endif
printf("info: allocate host mem (%6.2f MB)\n", 2 * Nbytes / 1024.0 / 1024.0);
A_h = (float*)malloc(Nbytes);