-
Notifications
You must be signed in to change notification settings - Fork 241
Description
Getting an error in caffe ( BVLC/caffe#2195 (comment) ) I have added some debug output to xgemm.cc and also got info about used device
Name: Devastator
Vendor: Advanced Micro Devices, Inc.
Available: Yes
Compute Units: 4
Clock Frequency: 760 mHz
Global Memory: 570 mb
Max Allocateable Memory: 142 mb
Local Memory: 32768 kb
But according to my clinfo https://gist.github.com/inferrna/f183896a683ba773e3b4 I have more powerful device Pitcairn which was not selected.
As I found in src/library/blas/AutoGemm/AutoGemmTools/ProfileAutoGemm.cpp
device = NULL;
for (i = 0; i < nrDevices; i++) {
err = clGetDeviceInfo(list[i], CL_DEVICE_NAME,
sizeof(deviceName), deviceName, NULL);
CL_CHECK(err);
assert(err == CL_SUCCESS);
if ((err == CL_SUCCESS) ) {
device = list[i];
break;
}
}it just selects first available device. May be it would be better to select most powerful device, for example by comparing value of compute_units*clock_frequency.