Am i crunching with my CPU tasks available for GPU?


Message boards : Number crunching : Am i crunching with my CPU tasks available for GPU?

Message board moderation

To post messages, you must log in.
AuthorMessage
Profile Luca

Send message
Joined: 12 Nov 22
Posts: 4
Credit: 826,625
RAC: 1,133
Message 8120 - Posted: 29 Oct 2023, 15:18:09 UTC
Asteroids can use both CPU and GPU. Am i not crunching with my CPU something that can be crunched with GPU. Right? Just asking to be sure. And just in case can i fix it disabling the CPU option in my preferences or will it also make me stop to receive GPU tasks since a little part of the CPU is also used during GPU ones?
ID: 8120 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile Keith Myers
Avatar

Send message
Joined: 16 Nov 22
Posts: 131
Credit: 144,239,235
RAC: 485,854
Message 8123 - Posted: 1 Nov 2023, 17:42:06 UTC - in response to Message 8120.  
No it will not stop running the gpu tasks when you disable the cpu tasks.

The gpu application uses whatever cpu resources it needs regardless of settings.

A proud member of the OFA (Old Farts Association)
ID: 8123 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile Luca

Send message
Joined: 12 Nov 22
Posts: 4
Credit: 826,625
RAC: 1,133
Message 8124 - Posted: 1 Nov 2023, 17:44:03 UTC
Thank you very much for your answer Keith
ID: 8124 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile Keith Myers
Avatar

Send message
Joined: 16 Nov 22
Posts: 131
Credit: 144,239,235
RAC: 485,854
Message 8125 - Posted: 1 Nov 2023, 17:58:23 UTC - in response to Message 8124.  
Your welcome.

It is a common misconception that any setting we use in various projects settings or app_config or app_info files actually have any control over cpu resource usage when crunching any gpu task.

Only the gpu application as coded itself, has any influence or control of how much cpu resource is needed to support the gpu task running. It will use as much or as little cpu support as needed. Only the developer can control that. Some gpu tasks at project need very minimal cpu support.

And some projects need massive gpu support and can use commonly 1-2 cpu cores to support each gpu task. On the extreme end are the PythonGPU tasks at GPUGrid project which even though they are released as gpu tasks, and do use the gpu occasionally, they are in principle a cpu task in reality and consume as many cpu cores as the host has.

The cpu_usage values in app_config files, for example, are only used by the project scheduler for determining the host loading so the scheduler can decide if there is room to run more cpu tasks.

A proud member of the OFA (Old Farts Association)
ID: 8125 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote

Message boards : Number crunching : Am i crunching with my CPU tasks available for GPU?