21 lines
382 B
C++
21 lines
382 B
C++
#include <iostream>
|
|
#include <hip/hip_runtime.h>
|
|
|
|
#define HIP(e) \
|
|
if (hipError_t err = (e); err != hipSuccess) { \
|
|
std::cerr << __FILE__ << ":" << __LINE__ << " " << err << "\n"; \
|
|
exit(1); \
|
|
}
|
|
|
|
int main(void) {
|
|
|
|
hipDeviceProp_t props;
|
|
HIP(hipGetDeviceProperties(&props, 0));
|
|
|
|
std::cout << "gcnArchName: " << props.gcnArchName << "\n";
|
|
|
|
return 0;
|
|
}
|
|
|
|
|