1. Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

More than one task on GPU ?

Discussion in 'World Community Grid (WCG)' started by RejZoR, Dec 13, 2012.

  1. RejZoR

    RejZoR

    Joined:
    Oct 2, 2004
    Messages:
    4,559 (1.26/day)
    Thanks Received:
    908
    Location:
    Europe/Slovenia
    After crunching for Rosetta@home for quite some time i've decided to go with WCG because they also offer GPU computation for certain projects. However i've noticed that no matter how i set it, it always performs just 1 task at once using GPU and like 8 on my CPU (where is the GPU parallelism here!?). Is there any special reason for such behavior or can i force it to use more of my GPU ? I mean, after all i do have the HD7950 and i'd like to run max lets say 4 tasks on it at the same time. Is it possible?
  2. Norton

    Norton WCG-TPU Team Captain

    Joined:
    Dec 21, 2011
    Messages:
    8,510 (8.66/day)
    Thanks Received:
    19,086
    Check/post on this thread and one of our Team members should be able to assist:

    http://www.techpowerup.com/forums/showthread.php?t=174138

    *Note- 1st post has some pretty good info :)
    Crunching for Team TPU More than 25k PPD
  3. RejZoR

    RejZoR

    Joined:
    Oct 2, 2004
    Messages:
    4,559 (1.26/day)
    Thanks Received:
    908
    Location:
    Europe/Slovenia
    Ok, thx. I've removed pending tasks and will leave those in progress to finish. Then i'll try the tweaks.
  4. RejZoR

    RejZoR

    Joined:
    Oct 2, 2004
    Messages:
    4,559 (1.26/day)
    Thanks Received:
    908
    Location:
    Europe/Slovenia
    The above thread doesn't really help me. I don't want to run only HCC. I have other projects as well. I just want to dedicate more tasks to the GPU.

    Assuming if i only change the GPU tasks setting, others will stick to default. However when i changed XML file to this:

    BOINC runs but even though i've allowed new tasks, nothing gets downloaded. Apparently i haven't done something right...
  5. RejZoR

    RejZoR

    Joined:
    Oct 2, 2004
    Messages:
    4,559 (1.26/day)
    Thanks Received:
    908
    Location:
    Europe/Slovenia
    Those configs are useless. I've used one template and now all it does is cruch HCC even though i also work on other projects... it's crunching 10 tasks at once at incredible speed but CPU is not being used for other projects... can someone help me out with this thing?

    I'm working with:
    Help Conquer cancer
    FightAIDS
    Fold Human Proteom
  6. KieX

    Joined:
    Dec 18, 2009
    Messages:
    2,408 (1.40/day)
    Thanks Received:
    2,461
    Location:
    London, UK
    I've only posted configs that have been tested and confirmed working on that page. I did link to XS where OldChap has put a lot of work getting the information for other projects: http://www.xtremesystems.org/forums/showthread.php?283509-Working-app_info-files

    BOINC will only crunch whatever is on app_info so your projects need to be specified inside. I've gone and put together the app_info code you need to run the projects you listed. Asuming this is for your i7/HD7970 setup I made this file use 4 GPU WU (locked to a CPU thread each) for HCC, and to then the remaining 4 CPU threads to work on the FAAH and HPF2 project.

    Code:
    <app_info>
    <!-- Start of the HCC app definition -->
       <app>
          <name>hcc1</name>
          <user_friendly_name>Help Conquer Cancer</user_friendly_name>
       </app>
    <! End of the HCC app definition -->
    <!-- Start of files required for HCC GPU -->
       <file_info>
          <name>wcg_hcc1_img_7.05_windows_intelx86__ati_hcc1</name>
          <executable/> 
       </file_info>
       <file_info>
          <name>hcckernel.cl.7.05</name>
          <executable/>
       </file_info>
    <!-- End of files required for HCC GPU -->
    <!-- Start of app_version for HCC GPU -->
       <app_version>
          <app_name>hcc1</app_name>
          <version_num>705</version_num>
          <platform>windows_intelx86</platform>
          <plan_class>ati_hcc1</plan_class>
          <avg_ncpus>1.000000</avg_ncpus>
          <max_ncpus>1.000000</max_ncpus>
          <coproc>
             <type>ATI</type>
             <count>0.250000</count>
          </coproc>
          <file_ref>
              <file_name>wcg_hcc1_img_7.05_windows_intelx86__ati_hcc1</file_name>
              <main_program/>
          </file_ref>
          <file_ref>
             <file_name>hcckernel.cl.7.05</file_name>
             <open_name>hcckernel.cl</open_name>
          </file_ref>
       </app_version>
    <!-- End of app info for HCC GPU -->
    <!-- Start of Fight Aids at Home -->
    <app>
        <name>faah</name>
        <user_friendly_name>FightAIDS@Home</user_friendly_name>
    </app>
    <file_info>
        <name>wcg_faah_autodock_6.40_windows_intelx86</name>
        <executable/>
    </file_info>
    <file_info>
        <name>wcg_faah_autodock_graphics_6.40_windows_intelx86</name>
        <executable/>
    </file_info>
    <file_info>
        <name>faah_protease_6.40.dat</name>
    </file_info>
    <file_info>
        <name>faah_image_6.40.tga</name>
    </file_info>
    <app_version>
        <app_name>faah</app_name>
        <version_num>640</version_num>
        <platform>windows_intelx86</platform>
        <avg_ncpus>1.000000</avg_ncpus>
        <max_ncpus>1.000000</max_ncpus>
        <flops>3894434573.022523</flops>
        <api_version>6.3.3</api_version>
        <file_ref>
            <file_name>wcg_faah_autodock_6.40_windows_intelx86</file_name>
            <main_program/>
        </file_ref>
        <file_ref>
            <file_name>wcg_faah_autodock_graphics_6.40_windows_intelx86</file_name>
            <open_name>graphics_app</open_name>
        </file_ref>
        <file_ref>
            <file_name>faah_protease_6.40.dat</file_name>
            <open_name>protease.dat</open_name>
        </file_ref>
        <file_ref>
            <file_name>faah_image_6.40.tga</file_name>
            <open_name>wc_grid_s1b2.tga</open_name>
        </file_ref>
    </app_version>
    <!-- End of Fight Aids at Home -->
    <!-- Start of Human Proteome Folding -->
    <app>
        <name>hpf2</name>
        <user_friendly_name>Human Proteome Folding - Phase 2</user_friendly_name>
    </app>
    <file_info>
        <name>wcg_hpf2_rosetta_6.40_windows_intelx86</name>
        <executable/>
    </file_info>
    <file_info>
        <name>wcg_hpf2_6.40.tga</name>
        <executable/>
    </file_info>
    <file_info>
        <name>wcg_hpf2_rosetta_graphics_6.40_windows_intelx86</name>
        <executable/>
    </file_info>
    <file_info>
        <name>hpf2_6.40_win_paths.txt</name>
        <executable/>
    </file_info>
    
    <app_version>
        <app_name>hpf2</app_name>
        <version_num>640</version_num>
        <platform>windows_intelx86</platform>
        <avg_ncpus>1.000000</avg_ncpus>
        <max_ncpus>1.000000</max_ncpus>
        <flops>3570131549.238372</flops>
        <api_version>6.3.3</api_version>
        <file_ref>
            <file_name>wcg_hpf2_rosetta_6.40_windows_intelx86</file_name>
            <main_program/>
        </file_ref>
        <file_ref>
            <file_name>wcg_hpf2_6.40.tga</file_name>
            <open_name>wc_grid_hpf2.tga</open_name>
        </file_ref>
        <file_ref>
            <file_name>wcg_hpf2_rosetta_graphics_6.40_windows_intelx86</file_name>
            <open_name>graphics_app</open_name>
        </file_ref>
        <file_ref>
            <file_name>hpf2_6.40_win_paths.txt</file_name>
            <open_name>paths.txt</open_name>
        </file_ref>
    </app_version>
    
    <app_version>
        <app_name>hpf2</app_name>
        <version_num>640</version_num>
        <platform>windows_x86_64</platform>
        <avg_ncpus>1.000000</avg_ncpus>
        <max_ncpus>1.000000</max_ncpus>
        <flops>3570131549.238372</flops>
        <api_version>6.3.3</api_version>
        <file_ref>
            <file_name>wcg_hpf2_rosetta_6.40_windows_intelx86</file_name>
            <main_program/>
        </file_ref>
        <file_ref>
            <file_name>wcg_hpf2_6.40.tga</file_name>
            <open_name>wc_grid_hpf2.tga</open_name>
        </file_ref>
        <file_ref>
            <file_name>wcg_hpf2_rosetta_graphics_6.40_windows_intelx86</file_name>
            <open_name>graphics_app</open_name>
        </file_ref>
        <file_ref>
            <file_name>hpf2_6.40_win_paths.txt</file_name>
            <open_name>paths.txt</open_name>
        </file_ref>
    </app_version>
    <!-- End of Fight Aids at Home -->
    </app_info>
    I think you already have a good grasp of how this works, but for posteriety I'll write down the steps needed to make the change minimising the chance of errors.

    Before you install it:
    1) Hit "no new tasks" in BOINC. Wait to finish or abort (send back to server) the WU in the task list.
    2) Once clear, close BOINC and remove your app_info.
    3) Start BOINC without any app_info. Hit the update button, wait for BOINC to download everything it needs to run normally.
    4) Repeat step 1) at this point
    5) Close BOINC, put in this new app_info file and restart it.

    Remember, this file is untested! But let me know if you encounter any problems.
  7. RejZoR

    RejZoR

    Joined:
    Oct 2, 2004
    Messages:
    4,559 (1.26/day)
    Thanks Received:
    908
    Location:
    Europe/Slovenia
    Yeah, only problem is that you have to explicitly specify everything. I thought it only reads stuff that you specify and the rest remains default. But it seems that app_info.xml overrides everything.

    One more question, does the GPU WU have to be locked to 1 CPU core as well (1 CPU + 1 GPU)?

    I'd dedicate just GPU for like 10 HCC WU's (without any CPU assist) and the remaining 8 threads for FightAIDS and HumanProteome

    Is this even possible?
  8. Jstn7477

    Jstn7477

    Joined:
    Aug 30, 2009
    Messages:
    3,829 (2.10/day)
    Thanks Received:
    1,518
    Location:
    Sarasota, Florida, USA
    By default each GPU WU needs a CPU core to assist it. You can subdivide the cores but it may impact your WU completion times.
    Crunching for Team TPU More than 25k PPD
  9. [Ion]

    [Ion] WCG Team Assistant

    Joined:
    Sep 15, 2009
    Messages:
    11,787 (6.51/day)
    Thanks Received:
    10,889
    Location:
    North Carolina, United States
    On my i7-920, I'm running 12 GPU WUs (4/card) and 1 CPU WU. This is probably about as hard as you'd want to push it. The output of the CPU is low enough (at least compared to a GPU) that you don't want to make the GPUs wait any longer by throwing in more CPU tasks :)
    Crunching for Team TPU
  10. RejZoR

    RejZoR

    Joined:
    Oct 2, 2004
    Messages:
    4,559 (1.26/day)
    Thanks Received:
    908
    Location:
    Europe/Slovenia
    Thx for all the effort but after poking with this thing for a while i've decided to stop all other projects for now and will only continue to work on HCC using 8 CPU + GPU threads (0.125 GPU load). When other projects will start using GPU, i'll add those as well.

    Using CPU seems such a waste of energy. It's crunching data for 4 hours at 100% load where GPU does like 10 WU's in 10 minutes. It's just not comparable.
  11. [Ion]

    [Ion] WCG Team Assistant

    Joined:
    Sep 15, 2009
    Messages:
    11,787 (6.51/day)
    Thanks Received:
    10,889
    Location:
    North Carolina, United States
    Fair enough. I like to support other projects as well, but in terms of work done/watt consumed, it's hard to beat a GPU right now.

    I'm glad to have you running your GPU for the Team :toast:
    Crunching for Team TPU
  12. johnspack

    johnspack

    Joined:
    Oct 6, 2007
    Messages:
    4,358 (1.73/day)
    Thanks Received:
    850
    Location:
    Nelson B.C. Canada
    Yeah, I've found my output is higher if I just use the cpu to feed my gpus. Plus my work cache would get overfilled with slow cpu wus and keep running out of gpu wus.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guest)

Share This Page