Needhelp with app_config and GPU usage

Ben Scott
Ben Scott
Joined: 30 Mar 20
Posts: 34
Credit: 485,716,410
RAC: 1,705,484
Topic 229514

So I run Einstein and LHC at the same time.  LHC  only has CPU work and I only run Einstein on GPU. When I run them together it often puts LHC on all 12 threads and has the GPU share with LHC. I specified 0.5 GPU but it will only run one at a time unless I suspend LHC. The Einstein GPU units run really slow this way, I want to run at least one and try two units at a time with their own CPU thread, no sharing.

If I do this:

<app_config>
  <app>
     <name>einstein_O3MDF</name>
     <max_concurrent>2</max_concurrent>
     <report_results_immediately/>
     <fraction_done_exact/>
     <gpu_versions>
         <gpu_usage>0.5</gpu_usage>
         <cpu_usage>1.0</cpu_usage>
     </gpu_versions>
   </app>
   <report_results_immediately/>
</app_config>

It "claims" to running 1 CPU per 0.5 GPU but it isn't, it is still sharing and mostly runs one instance.

I would be thankful for any help.

Keith Myers
Keith Myers
Joined: 11 Feb 11
Posts: 4,388
Credit: 16,148,172,466
RAC: 18,892,876

You need to put a

You need to put a max_concurrent on the LHC tasks so they don't hog all the cpu and leave a couple of cpu threads for the two gpu tasks.

 

Ben Scott
Ben Scott
Joined: 30 Mar 20
Posts: 34
Credit: 485,716,410
RAC: 1,705,484

I'll try that, thank you. As

I'll try that, thank you. As a follow up it seems the Atlas simulations are the ones that step over the line.

Harri Liljeroos
Harri Liljeroos
Joined: 10 Dec 05
Posts: 3,064
Credit: 2,722,299,032
RAC: 1,849,573

In LHC the Atlas tasks are

In LHC the Atlas tasks are the only multi core tasks. You can specify the number of cores used by the task on LHC project preferences. The number of simultaneous Atlas tasks you can specify in app_config.xml as Keith Myers said.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.