<<  >> (p.326)
    Author Topic: OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.11.1  (Read 5806565 times)
    This is a self-moderated topic. If you do not want to be moderated by the person who started this topic, create a new topic. (3 posts by 1+ user deleted.)
    -ck (OP)
    Legendary
    *
    Offline Offline

    Activity: 4578
    Merit: 1695


    Ruu \o/


    View Profile WWW
    August 11, 2012, 02:36:53 PM
     #6501

    Hi!

    Testing version 2.6.4 on Ubuntu 12.04, found a (minor) bug, but I think it could be an older one. Yesterday I configured my system to use the onboard GPU (3300) for display and the PCIe card (5770) for mining only. Unfortunately, ADL and CL GPU mapping does not seem to work.



    Ok, fixed it by myself. There is definitely a bug. When finding ADL devices, one loop mixed up CL and ADL devices. Here is the diff which fixes it:
    Code:
    hko@cave:~/src/cgminer/cgminer$ git diff
    diff --git a/adl.c b/adl.c
    index 69c06de..c60f08c 100644
    --- a/adl.c
    +++ b/adl.c
    @@ -339,16 +339,16 @@ void init_adl(int nDevs)
                    }
            }
     
    -       for (gpu = 0; gpu < devices; gpu++) {
    +       for (gpu = 0; gpu < nDevs; gpu++) {
                    struct gpu_adl *ga;
                    int iAdapterIndex;
                    int lpAdapterID;
                    ADLODPerformanceLevels *lpOdPerformanceLevels;
                    int lev;
    -
    -               i = vadapters[gpu].id;
    +               int adlGpu = gpus[gpu].virtual_adl;
    +               i = vadapters[adlGpu].id;
                    iAdapterIndex = lpInfo[i].iAdapterIndex;
    -               gpus[gpu].virtual_gpu = vadapters[gpu].virtual_gpu;
    +               gpus[gpu].virtual_gpu = vadapters[adlGpu].virtual_gpu;
     
                    /* Get unique identifier of the adapter, 0 means not AMD */
                    result = ADL_Adapter_ID_Get(iAdapterIndex, &lpAdapterID);
    @@ -358,11 +358,11 @@ void init_adl(int nDevs)
                    }
     
                    if (gpus[gpu].deven == DEV_DISABLED) {
    -                       gpus[i].gpu_engine =
    -                       gpus[i].gpu_memclock =
    -                       gpus[i].gpu_vddc =
    -                       gpus[i].gpu_fan =
    -                       gpus[i].gpu_powertune = 0;
    +                       gpus[gpu].gpu_engine =
    +                       gpus[gpu].gpu_memclock =
    +                       gpus[gpu].gpu_vddc =
    +                       gpus[gpu].gpu_fan =
    +                       gpus[gpu].gpu_powertune = 0;
                            continue;
                    }
     

    and a debug log file fromfixed code:
    Code:
    [2012-08-11 16:01:32] Started cgminer 2.6.4
     [2012-08-11 16:01:32] Loaded configuration filehome/xxxxxxx/.cgminer/cgminer.conf
     [2012-08-11 16:01:32] CL Platform 0 vendor: Advanced Micro Devices, Inc.
     [2012-08-11 16:01:32] CL Platform 0 name: AMD Accelerated Parallel Processing
     [2012-08-11 16:01:32] CL Platform 0 version: OpenCL 1.2 AMD-APP (937.2)
     [2012-08-11 16:01:32] Platform 0 devices: 1
     [2012-08-11 16:01:32] 0 Juniper
     [2012-08-11 16:01:32] GPU 0 iAdapterIndex 0 strUDID 296:38420:4098:33613:4163 iBusNumber 1 iDeviceNumber
    5 iFunctionNumber 0 iVendorID 4098 strAdapterName  ATI Radeon HD 3300 Graphics
     [2012-08-11 16:01:32] GPU 1 iAdapterIndex 2 strUDID 512:26808:4098:9539:4098 iBusNumber 2 iDeviceNumber 0
     iFunctionNumber 0 iVendorID 4098 strAdapterName  ATI Radeon HD 5700 Series
     [2012-08-11 16:01:32] ADL found more devices than opencl!
     [2012-08-11 16:01:32] There is possibly at least one GPU that doesn't support OpenCL
     [2012-08-11 16:01:32] Use the gpu map feature to reliably map OpenCL to ADL
     [2012-08-11 16:01:32] Mapping OpenCL device 0 to ADL device 1
     [2012-08-11 16:01:32] WARNING: Number of OpenCL and ADL devices did not match!
     [2012-08-11 16:01:32] Hardware monitoring may NOT match up with devices!
     [2012-08-11 16:01:32] GPU 0 ATI Radeon HD 5700 Series hardware monitoring enabled
     [2012-08-11 16:01:32] Setting GPU 0 engine clock to 945
     [2012-08-11 16:01:32] Setting GPU 0 memory clock to 180
     [2012-08-11 16:01:32] Setting GPU 0 voltage to 1.125
     [2012-08-11 16:01:32] Popping work to work thread
     [2012-08-11 16:01:32] Probing for an alive pool
     [2012-08-11 16:01:32] Popping work to stage thread
    ---
    Nite69
    WalletId: 17gNvfoD2FDqTfESUxNEmTukGbGVAiJhXp

    Much appreciated, thanks!

    Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
    2% Fee Solo mining at solo.ckpool.org
    -ck
Page 325
Viewing Page: 326