SWDEV-227909 - Add gcnArchName

Change-Id: Iea6d16b5d693dd0d900fa424d7a321c39315430e
This commit is contained in:
Jason Tang
2020-06-05 15:15:20 -04:00
parent ea913c964a
commit 593b8a093f
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
+1 -1
Vedi 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);