Skip to content

Commit

Permalink
print out device id
Browse files Browse the repository at this point in the history
  • Loading branch information
patflick committed Jul 18, 2017
1 parent 96da0ff commit ad9a686
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions miopen.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,14 @@ void device_init() {
std::cout << "\t\tGMem:\t" << props.totalGlobalMem/1024/1024 << " MiB" << std::endl;
std::cout << "\t\twarps:\t" << props.warpSize << std::endl;
std::cout << "\t\tCUs:\t" << props.multiProcessorCount << std::endl;
std::cout << "\t\tpciDeviceID:\t" << props.pciDeviceID << std::endl;
#ifdef __HIP_PLATFORM_HCC__
std::cout << "\t\tArch:\t" << props.gcnArch << std::endl;
#endif
}



}

#endif
Expand Down

0 comments on commit ad9a686

Please sign in to comment.