<<  >> (p.201)
    Author Topic: OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.11.1  (Read 5806639 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: 4634
    Merit: 1701


    Ruu \o/


    View Profile WWW
    February 17, 2012, 09:03:58 AM
     #4001

    For -v 2 it should halve the global worksize (global Threads) number, so doubling this in the kernel should be no problem at all, right?
    global_id == global_work_offset  + global_worksize

    You're doubling the global id, not the worksize.


    Global ID without global offset is: 0 till (global worksize - 1) queried in the kernel via get_global_size(0). So for 2-component vectors we need a global worksize 2 (as argument in the enqueue kernel call), because there are 2 nonces processed in each work-item.

    Global ID with global offset is: global offset till (global worksize + global offset - 1).

    Dia
    I still think it should be something like:
          u nonce = ((uint)get_global_id(0) + get_global_size(0) * (0,1,2,3));
    for vectors4 etc.

    Anyway I ended up trying it both ways with your nonce code or mine and neither led to any improvement (actually detriment if anything).

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