HIP
HIP copied to clipboard
hipDeviceGetName returns an empty string
#include <hip/hip_runtime.h>
#define len 256
int main() {
int numDevices = 0;
char name[len];
hipDevice_t device;
hipGetDeviceCount(&numDevices);
printf("#devices %d\n", numDevices);
for (int i = 0; i < numDevices; i++) {
hipDeviceGet(&device, i);
hipDeviceGetName(name, len, device);
printf("%s\n", name);
}
return 0;
}
https://github.com/intel/llvm/pull/5508