Collatz does not use all available GPUs
log in

Advanced search

Message boards : Unix/Linux : Collatz does not use all available GPUs

1 · 2 · 3 · Next
Author Message
vdvogt
Send message
Joined: 10 Jan 16
Posts: 38
Credit: 1,090,698,551
RAC: 0
Message 22361 - Posted: 8 May 2016, 11:27:12 UTC

Hi,
formerly I let run GPUGRID and Collatz on my computers and all GPUs has been in use.
I have two GTX 960, one GTX 980Ti and one dual-GPU Titan Z.


Some days ago I stopped GPUGRID and let run Collatz only.
But now I recognized that on my powerfull Titan Z which has two GPUs only GPU0 is in use.

First I checked all settings if there could be any wrong setting, but there was no.
Everything is OK.

Now I made some tests with my Titan Z:

1. GPUGRID only:
all GPUs are in use. GPUGRID calculates two tasks simultaneously on GPU0 and GPU1.

2a. GPUGRID on GPU0, Collatz on GPU1
GPUGRID calculates, but Collatz NOT.

2b. Collatz on GPU0, GPUGRID on GPU1
every project takes one GPU to calculate.

3. Collatz only:
ONLY GPU0 is in use!

Obviously Collatz is not capable to detect the two GPUs in my Titan Z and uses only GPU0!

There are AMD/ATI graphic cards with two GPUs also.
Do users with such dual-GPU graphic cards observe similar effects?

Is this a failure of Collatz?
IF YES, please fix it.

regards
Veit

Profile Slicker
Volunteer moderator
Project administrator
Project developer
Project tester
Project scientist
Avatar
Send message
Joined: 11 Jun 09
Posts: 2525
Credit: 740,580,099
RAC: 2
Message 22367 - Posted: 9 May 2016, 14:34:17 UTC - in response to Message 22361.

Collatz uses whatever GPU the BOINC client tells it to use. Collatz doesn't do any scheduling or control what runs on which CPU. That is controlled by the BOINC client and I can't fix that. However, before blaming BOINC, check the cc_config.xml file and make sure that you have the following option set:

<use_all_gpus>1</use_all_gpus>

vdvogt
Send message
Joined: 10 Jan 16
Posts: 38
Credit: 1,090,698,551
RAC: 0
Message 22373 - Posted: 10 May 2016, 11:12:16 UTC

Hi slicker,
yes, of course!
This setting is set, because, as I wrote before, when I let run GPUGRID, both GPUs had been in use.

But when Collatz runs alone, only GPU0 is in use.

This can't be a failure of Boinc.

regards
Veit

Hrbek75
Send message
Joined: 23 Dec 11
Posts: 1
Credit: 496,765
RAC: 0
Message 22376 - Posted: 11 May 2016, 7:01:05 UTC

Have exactly same problem. MOO! uses both GPUs, Collatz only one. When I turn off projects using CPU (WCG now), the work on Collatz starts on both GPUs (but then my 8cores are not crunching :-).
Suppose it could be something with share of CPU load? (Collatz uses 0,96 CPU, MOO! only 0,25 CPU).
____________

Zdenek Hrbek
Send message
Joined: 28 Mar 10
Posts: 4
Credit: 1,012,504,481
RAC: 846,808
Message 22377 - Posted: 11 May 2016, 7:05:17 UTC - in response to Message 22376.

Once again with correct account :-)
____________

Profile mikey
Avatar
Send message
Joined: 11 Aug 09
Posts: 3242
Credit: 1,686,599,333
RAC: 6,251,296
Message 22379 - Posted: 11 May 2016, 11:14:02 UTC - in response to Message 22377.

Once again with correct account :-)


Try leaving one cpu core free and see if that helps.

vdvogt
Send message
Joined: 10 Jan 16
Posts: 38
Credit: 1,090,698,551
RAC: 0
Message 22384 - Posted: 12 May 2016, 10:31:09 UTC

Hi mikey,
how can I leave one cpu free?
Could you please tell me what settings I have to change?

regards
Veit

Profile mikey
Avatar
Send message
Joined: 11 Aug 09
Posts: 3242
Credit: 1,686,599,333
RAC: 6,251,296
Message 22389 - Posted: 13 May 2016, 9:53:28 UTC - in response to Message 22384.
Last modified: 13 May 2016, 9:53:57 UTC

Hi mikey,
how can I leave one cpu free?
Could you please tell me what settings I have to change?

regards
Veit


Let's assume that the Windows version of Boinc is similar to the Linux version...open the Boinc Manager, click on the Options then Computing Preferences links, then under the Computing tab the top line says "Use at most [] % of the cpus", put 99 in that box and you will leave 1 cpu core free for the gpu to use. If you have a quad core cpu that means 3 cores will crunch cpu units and 1 core will be free to feed the gpu, or whatever else the pc wants to do. If you put 74 in the box, again on a quad core, then only 2 cores would be used as it is less than 3 cores at 75%, but more than 50%. The number does not have to be exact, so anything in the range of 99% to 75%, on a quad core cpu, means only 3 cores would be used. Likewise 74% to 50% means 2 cores and 49% to 25% means only 1 cpu core would be left free. On a 6 or 8 core the % numbers would change of course, but 99% always means leave 1 cpu core free.

vdvogt
Send message
Joined: 10 Jan 16
Posts: 38
Credit: 1,090,698,551
RAC: 0
Message 22391 - Posted: 13 May 2016, 11:27:33 UTC

Hi mikey,
many thanks for that hint!
I will try that.

regards
Veit

vdvogt
Send message
Joined: 10 Jan 16
Posts: 38
Credit: 1,090,698,551
RAC: 0
Message 22392 - Posted: 13 May 2016, 12:15:32 UTC - in response to Message 22391.

Hi mikey,
I had made some tests and lowered the cpu percentage in 5% steps:

100% all 8 cpus running and ONE GPU (GPU0)

95 and 90 % 7 cpus running and ONE GPU (GPU0)

85, 80 and 75% 6 cpus running and ONE GPU (GPU0)

70 and 65% 5 cpus running and ONE GPU (GPU0)

60, 55 and 50% 4 cpus running and ONE GPU (GPU0)

45 and 40% 3 cpus running and ONE GPU (GPU0)

35, 30 and 25% 2 cpus running and ONE GPU (GPU0)

20% only one cpu is running and ONE GPU (GPU0)

As you see there is NO change of the GPU usage independent of the percentage of CPUs running.

What could I do else to get GPU1 in work?

regards
Veit

Profile mikey
Avatar
Send message
Joined: 11 Aug 09
Posts: 3242
Credit: 1,686,599,333
RAC: 6,251,296
Message 22398 - Posted: 14 May 2016, 10:19:06 UTC - in response to Message 22392.

Hi mikey,
I had made some tests and lowered the cpu percentage in 5% steps:

100% all 8 cpus running and ONE GPU (GPU0)

95 and 90 % 7 cpus running and ONE GPU (GPU0)

85, 80 and 75% 6 cpus running and ONE GPU (GPU0)

70 and 65% 5 cpus running and ONE GPU (GPU0)

60, 55 and 50% 4 cpus running and ONE GPU (GPU0)

45 and 40% 3 cpus running and ONE GPU (GPU0)

35, 30 and 25% 2 cpus running and ONE GPU (GPU0)

20% only one cpu is running and ONE GPU (GPU0)

As you see there is NO change of the GPU usage independent of the percentage of CPUs running.

What could I do else to get GPU1 in work?

regards
Veit


What other projects are you running? Could it be one of the others is using it? Post your config files, all that you are using, maybe you just have too much going on in them, I'm not sure.

vdvogt
Send message
Joined: 10 Jan 16
Posts: 38
Credit: 1,090,698,551
RAC: 0
Message 22401 - Posted: 15 May 2016, 8:44:47 UTC

Hi mikey,
there is Collatz ONLY.

What config files do you mean?

Collatz calculation preferences, Boinc cc_config.xml, .....?

regards
Veit

Profile mikey
Avatar
Send message
Joined: 11 Aug 09
Posts: 3242
Credit: 1,686,599,333
RAC: 6,251,296
Message 22403 - Posted: 15 May 2016, 14:35:02 UTC - in response to Message 22401.

Hi mikey,
there is Collatz ONLY.

What config files do you mean?

Collatz calculation preferences, Boinc cc_config.xml, .....?

regards
Veit


Yes the cc_config.xml and the app_config.xml if you use either one.

vdvogt
Send message
Joined: 10 Jan 16
Posts: 38
Credit: 1,090,698,551
RAC: 0
Message 22408 - Posted: 16 May 2016, 13:12:47 UTC - in response to Message 22403.

Hi mikey,
the file app_config.xml is not there.

This is my cc_config.xml:

<!--
This is a minimal configuration file cc_config.xml of the BOINC core client.
For a complete list of all available options and logging flags and their
meaning see: https://boinc.berkeley.edu/wiki/client_ ... figuration
-->

<cc_config>
<log_flags>
<task>1</task>
<file_xfer>1</file_xfer>
<sched_ops>1</sched_ops>
<coproc_debug>1</coproc_debug>
</log_flags>
<options>
<use_all_gpus>1</use_all_gpus>
</options>
</cc_config>


Is there something missing?
What do I have to change to run Collatz on both GPUs?

regards
Veit

Zdenek Hrbek
Send message
Joined: 28 Mar 10
Posts: 4
Credit: 1,012,504,481
RAC: 846,808
Message 22453 - Posted: 26 May 2016, 4:21:13 UTC - in response to Message 22408.

Hi all. Any progres regarding this? I would also like to run Collatz, but other projects use both GPUs, Collatz not. Thanks for info.
____________

Profile mikey
Avatar
Send message
Joined: 11 Aug 09
Posts: 3242
Credit: 1,686,599,333
RAC: 6,251,296
Message 22455 - Posted: 26 May 2016, 10:31:15 UTC - in response to Message 22408.

Hi mikey,
the file app_config.xml is not there.

This is my cc_config.xml:

<!--
This is a minimal configuration file cc_config.xml of the BOINC core client.
For a complete list of all available options and logging flags and their
meaning see: https://boinc.berkeley.edu/wiki/client_ ... figuration
-->

<cc_config>
<log_flags>
<task>1</task>
<file_xfer>1</file_xfer>
<sched_ops>1</sched_ops>
<coproc_debug>1</coproc_debug>
</log_flags>
<options>
<use_all_gpus>1</use_all_gpus>
</options>
</cc_config>


Is there something missing?
What do I have to change to run Collatz on both GPUs?

regards
Veit


I don't see anything wrong, nor do I know why it's not using both of your gpu's. When you first start up Boinc I'm assuming it sees both in the Activity Log? I see the website says you have 2 gpu's on 1 of your pc's, are they the same kind or different kinds?

vdvogt
Send message
Joined: 10 Jan 16
Posts: 38
Credit: 1,090,698,551
RAC: 0
Message 22458 - Posted: 26 May 2016, 16:53:09 UTC

Hi Mikey,
it is a ZOTAC Titan Z.
This is a Dual-GPU graphics card.

see here:
https://www.zotac.com/product/graphics_card/gtx-titan-z

regards
Veit

Profile Slicker
Volunteer moderator
Project administrator
Project developer
Project tester
Project scientist
Avatar
Send message
Joined: 11 Jun 09
Posts: 2525
Credit: 740,580,099
RAC: 2
Message 22459 - Posted: 27 May 2016, 3:07:06 UTC
Last modified: 27 May 2016, 3:08:23 UTC

One of the top hosts has 7 GPUs in his Linux box. He doesn't have verbose enabled in the collatz config so it's hard to tell how many different GPUs are being used but give the numbers, I'd have to think it was more than one.

http://boinc.thesonntags.com/collatz/show_host_detail.php?hostid=524336

It couldn't hurt to PM him.

vdvogt
Send message
Joined: 10 Jan 16
Posts: 38
Credit: 1,090,698,551
RAC: 0
Message 22461 - Posted: 27 May 2016, 9:42:36 UTC

Hi Slicker,
here is the computerlist of Jiri:

https://boinc.thesonntags.com/collatz/hosts_user.php?userid=1533209

He has Single-GPU graphics cards only.

My Titan Z is a DUAL-GPU graphics card.

May be that Collatz can not use both GPU on such a DUAL-GPU card.

Is it possible to fix that, so that Collatz, like other BOINC projects too, can use both GPUs?

regards
Veit

vdvogt
Send message
Joined: 10 Jan 16
Posts: 38
Credit: 1,090,698,551
RAC: 0
Message 22480 - Posted: 29 May 2016, 12:57:31 UTC

Hi,
I had found something in a file that should to be clarified:

/var/lib/boinc-client/sched_request_boinc.thesonntags.com_collatz.xml
.
.
.
<coprocs>
<coproc_cuda>
<count>2</count>................................................................<-------here 2
<name>GeForce GTX TITAN Z</name>
<available_ram>4204134400.000000</available_ram>
<have_cuda>1</have_cuda>
<have_opencl>1</have_opencl>
<req_secs>3416628.051939</req_secs>
<req_instances>0.000000</req_instances>
<estimated_delay>0.000000</estimated_delay>
<peak_flops>5042880000000.000000</peak_flops>
<cudaVersion>7050</cudaVersion>
<drvVersion>35279</drvVersion>
<totalGlobalMem>4294967295.000000</totalGlobalMem>
<sharedMemPerBlock>49152.000000</sharedMemPerBlock>
<regsPerBlock>65536</regsPerBlock>
<warpSize>32</warpSize>
<memPitch>2147483647.000000</memPitch>
<maxThreadsPerBlock>1024</maxThreadsPerBlock>
<maxThreadsDim>1024 1024 64</maxThreadsDim>
<maxGridSize>2147483647 65535 65535</maxGridSize>
<clockRate>875500</clockRate>
<totalConstMem>65536.000000</totalConstMem>
<major>3</major>
<minor>5</minor>
<textureAlignment>512.000000</textureAlignment>
<deviceOverlap>1</deviceOverlap>
<multiProcessorCount>15</multiProcessorCount>
<coproc_opencl>
<name>GeForce GTX TITAN Z</name>
<vendor>NVIDIA Corporation</vendor>
<vendor_id>4318</vendor_id>
<available>1</available>
<half_fp_config>0</half_fp_config>
<single_fp_config>191</single_fp_config>
<double_fp_config>63</double_fp_config>
<endian_little>1</endian_little>
<execution_capabilities>1</execution_capabilities>
<extensions>cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_copy_opts cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_at$
<global_mem_size>6441730048</global_mem_size>
<local_mem_size>49152</local_mem_size>
<max_clock_frequency>875</max_clock_frequency>
<max_compute_units>15</max_compute_units>
<nv_compute_capability_major>3</nv_compute_capability_major>
<nv_compute_capability_minor>5</nv_compute_capability_minor>
<amd_simd_per_compute_unit>0</amd_simd_per_compute_unit>
<amd_simd_width>0</amd_simd_width>
<amd_simd_instruction_width>0</amd_simd_instruction_width>
<opencl_platform_version>OpenCL 1.2 CUDA 7.5.23</opencl_platform_version>
<opencl_device_version>OpenCL 1.2 CUDA</opencl_device_version>
<opencl_driver_version>352.79</opencl_driver_version>
</coproc_opencl>
</coproc_cuda>
</coprocs>
.
.
.
<app_version>
<app_name>collatz_sieve</app_name>
<version_num>121</version_num>
<platform>x86_64-pc-linux-gnu</platform>
<avg_ncpus>0.932859</avg_ncpus>
<max_ncpus>0.932859</max_ncpus>
<flops>131403120106883.843750</flops>
<plan_class>opencl_nvidia_gpu</plan_class>
<api_version>7.7.0</api_version>
<coproc>
<type>NVIDIA</type>
<count>1.000000</count>.......................................<-----but here 1
</coproc>
<gpu_ram>48234496.000000</gpu_ram>
<dont_throttle/>
</app_version>


Should't in app_version a "2" too?

Could this be the failure that Collatz don't use both GPUs?

regards
Veit

1 · 2 · 3 · Next
Post to thread

Message boards : Unix/Linux : Collatz does not use all available GPUs


Main page · Your account · Message boards


Copyright © 2018 Jon Sonntag; All rights reserved.