File size: 252 Bytes
be99550
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <hip/hip_runtime.h>
#include <stdio.h>

int main() {
    hipDeviceProp_t prop;
    if (hipGetDeviceProperties(&prop, 0) == hipSuccess) {
        printf("%s\n", prop.gcnArchName);
    } else {
        printf("unknown\n");
    }
    return 0;
}