Skip to content

Default selected GPU is not faster presented in system. #152

@inferrna

Description

@inferrna

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions