SWDEV-227909 - Add gcnArchName
Change-Id: Iea6d16b5d693dd0d900fa424d7a321c39315430e
Ta zmiana jest zawarta w:
%! (template.HTML=
Jason Tang)złożyło 2020-06-05 15:33:55 -04:00
1 rodzic
ea913c964a
złożenie
593b8a093f
2 plików zmienionych
+2
-2
Żadne pliki nie pasują do Twojego wyszukiwania
@@ -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);
|
||||
|
||||
Reference in new issue
Zablokuj użytkownika