Trial Factoring tests
log in

Advanced search

Message boards : Number crunching : Trial Factoring tests

Previous · 1 · 2 · 3 · 4 · 5 · 6 . . . 7 · Next
Author Message
mmonnin
Send message
Joined: 1 Feb 17
Posts: 30
Credit: 544,175,973
RAC: 45,412
Message 5982 - Posted: 31 Mar 2020, 23:51:47 UTC
Last modified: 1 Apr 2020, 0:36:19 UTC

Would the BOINC wrapper help?
https://boinc.berkeley.edu/trac/wiki/WrapperApp
The wrapper has the following command-line options:

--device N: macro-substitute N for $GPU_DEVICE_NUM

in worker command lines and environment variables.

Profile rebirther
Volunteer moderator
Project administrator
Project developer
Project tester
Project scientist
Avatar
Send message
Joined: 2 Jan 13
Posts: 7479
Credit: 43,690,041
RAC: 42,170
Message 5983 - Posted: 1 Apr 2020, 5:25:46 UTC - in response to Message 5982.

Would the BOINC wrapper help?
https://boinc.berkeley.edu/trac/wiki/WrapperApp
The wrapper has the following command-line options:

--device N: macro-substitute N for $GPU_DEVICE_NUM

in worker command lines and environment variables.


no, app_config is better

Sergey Kovalchuk
Send message
Joined: 27 Oct 15
Posts: 12
Credit: 5,358,644
RAC: 0
Message 5984 - Posted: 1 Apr 2020, 7:04:12 UTC - in response to Message 5983.

no, app_config is better

wrapper receives this argument (--device N) and passes it to the application (job.xml <append_cmdline_args/>)

the question is in the source of this argument - a task template on the server ($GPU_DEVICE_NUM), a sheduler, or a local client?
find and neutralize :o)

or
- change wrapper - force it to translate into a form that the application understands.
- change application - add this form of argument
- switch to another platform/device selection scheme - for example opencl_platform.txt

mmonnin
Send message
Joined: 1 Feb 17
Posts: 30
Credit: 544,175,973
RAC: 45,412
Message 5985 - Posted: 1 Apr 2020, 10:49:57 UTC - in response to Message 5983.

Would the BOINC wrapper help?
https://boinc.berkeley.edu/trac/wiki/WrapperApp
The wrapper has the following command-line options:

--device N: macro-substitute N for $GPU_DEVICE_NUM

in worker command lines and environment variables.


no, app_config is better


Forcing users to setup an app config just to be able to use 2 GPUs is never better.

zombie67 [MM]
Avatar
Send message
Joined: 4 Dec 14
Posts: 31
Credit: 1,166,007,944
RAC: 60,474
Message 5988 - Posted: 2 Apr 2020, 19:42:04 UTC

Running a radeon VII on a Mac fails. I assume it is because the GPU is not known, but not sure.

http://srbase.my-firewall.org/sr5/result.php?resultid=387845348

Stderr output

<core_client_version>7.14.4</core_client_version>
<![CDATA[
<message>
process exited with code 195 (0xc3, -61)</message>
<stderr_txt>
12:38:38 (2042): wrapper (7.2.26012): starting
12:38:38 (2042): wrapper: running ./mfakto ( --device 0)
ERROR: unknown option '--device'
12:38:39 (2042): ./mfakto exited; CPU time 0.012094
12:38:39 (2042): app exit status: 0x100
12:38:39 (2042): called boinc_finish

</stderr_txt>
]]>


Startup GPU identification:

Thu Apr 2 12:37:57 2020 | | OpenCL: AMD/ATI GPU 0: AMD Radeon VII Compute Engine (driver version 1.2 (Jan 13 2020 20:12:46), device version OpenCL 1.2, 16368MB, 16368MB available, 8645 GFLOPS peak)
____________
Reno, NV
Team: SETI.USA

Profile rebirther
Volunteer moderator
Project administrator
Project developer
Project tester
Project scientist
Avatar
Send message
Joined: 2 Jan 13
Posts: 7479
Credit: 43,690,041
RAC: 42,170
Message 5989 - Posted: 2 Apr 2020, 19:51:33 UTC - in response to Message 5988.

Can you try standalone with:

./mfakto -d 00 -st
./mfakto -d 01 -st
./mfakto -d 10 -st
./mfakto -d 11 -st

mfakto is terrible to recognize the GPU

I have also below a possible compiling mfaktc app for mac if you are able to do this.

Sergey Kovalchuk
Send message
Joined: 27 Oct 15
Posts: 12
Credit: 5,358,644
RAC: 0
Message 5991 - Posted: 2 Apr 2020, 20:56:19 UTC - in response to Message 5989.

option -d don't work with 0, start from 1

-d 00-10

Select device - Error: No platform found
ERROR: init_CL(3, 10) failed


-d 11
Select device - Get device info - Compiling kernels.

BUILD OUTPUT
In file included from input.cl:75:
./common.cl:45:6: error: redeclaration of 'popcount' must have the 'overloadable' attribute
/usr/include/clc/integer/unary.inc:1:39: note: previous overload of function is here
/usr/include/clc/integer/popcount.h:1:24: note: expanded from macro '__CLC_FUNCTION'
In file included from input.cl:80:
./barrett15.cl:218:40: warning: operator '>>' has lower precedence than '+'; '+' will be evaluated first
./barrett15.cl:218:40: note: place parentheses around the '+' expression to silence this warning
./barrett15.cl:223:40: warning: operator '>>' has lower precedence than '+'; '+' will be evaluated first
./barrett15.cl:223:40: note: place parentheses around the '+' expression to silence this warning
./barrett15.cl:227:40: warning: operator '>>' has lower precedence than '+'; '+' will be evaluated first
./barrett15.cl:227:40: note: place parentheses around the '+' expression to silence this warning

END OF BUILD OUTPUT
ERROR: init_CL(3, 11) failed

zombie67 [MM]
Avatar
Send message
Joined: 4 Dec 14
Posts: 31
Credit: 1,166,007,944
RAC: 60,474
Message 5992 - Posted: 3 Apr 2020, 0:21:53 UTC - in response to Message 5989.
Last modified: 3 Apr 2020, 0:27:18 UTC

Can you try standalone with:

./mfakto -d 00 -st
./mfakto -d 01 -st
./mfakto -d 10 -st
./mfakto -d 11 -st

mfakto is terrible to recognize the GPU

I have also below a possible compiling mfaktc app for mac if you are able to do this.



FYI, mfakto did not exist. It was still inside a zip package. I had to manually unzip it, cd into the unzipped directory, and then run the commands. Here are the results.

Notes:
- I currently have the cc_config.xml set to ignore the internal AMD Radeon Pro 580 (GPU1), and run only on the external AMD Radeon VII (GPU0).
- It looks like the first and third commands show the 580, and the second and fourth commands show the VII.
- BOINC startup info:

5 4/2/2020 12:37:57 PM OpenCL: AMD/ATI GPU 0: AMD Radeon VII Compute Engine (driver version 1.2 (Jan 13 2020 20:12:46), device version OpenCL 1.2, 16368MB, 16368MB available, 8645 GFLOPS peak)
6 4/2/2020 12:37:57 PM OpenCL: AMD/ATI GPU 1 (ignored by config): AMD Radeon Pro 580 Compute Engine (driver version 1.2 (Jan 13 2020 20:12:40), device version OpenCL 1.2, 8192MB, 8192MB available, 3456 GFLOPS peak)



kyoko:srbase.my-firewall.org_sr5 zombie67$ ./mfakto -d 00 -st
-bash: ./mfakto: No such file or directory
kyoko:srbase.my-firewall.org_sr5 zombie67$ ls
app_config.xml job_srbase_m64_00022.xml mfakto-mac64-v1.zip wrapper_26012_v2_x86_64-apple-darwin
job_GPU72_m64_00001.xml mfakto-mac64-v1 srbase_v8_m64.zip
kyoko:srbase.my-firewall.org_sr5 zombie67$ cd mfakto-mac64-v1
kyoko:mfakto-mac64-v1 zombie67$ ls
COPYING README.txt barrett15.cl common.cl gpusieve.cl mfakto.ini montgomery.cl tf_debug.h
Changelog-mfakto.txt barrett.cl barrett24.cl datatypes.h mfakto mfakto_Kernels.cl mul24.cl
kyoko:mfakto-mac64-v1 zombie67$ ./mfakto -d 00 -st
mfakto 0.15pre6 (64bit build)


Runtime options
Inifile mfakto.ini
Verbosity 1
SieveOnGPU yes
MoreClasses yes
GPUSievePrimes 82486
GPUSieveProcessSize 24Ki bits
GPUSieveSize 96Mi bits
FlushInterval 8
WorkFile worktodo.txt
ResultsFile results.txt
Checkpoints enabled
CheckpointDelay 300s
Stages enabled
StopAfterFactor class
PrintMode compact
V5UserID none
ComputerID none
TimeStampInResults no
VectorSize 2
GPUType AUTO
SmallExp no
UseBinfile mfakto_Kernels.elf
Compiletime options

Select device - Get device info:
WARNING: Unknown GPU name, assuming GCN. Please post the device name "AMD Radeon Pro 580 Compute Engine (AMD)" to http://www.mersenneforum.org/showthread.php?t=15646 to have it added to mfakto. Set GPUType in mfakto.ini to select a GPU type yourself to avoid this warning.

OpenCL device info
name AMD Radeon Pro 580 Compute Engine (AMD)
device (driver) version OpenCL 1.2 (1.2 (Jan 13 2020 20:12:40))
maximum threads per block 256
maximum threads per grid 16777216
number of multiprocessors 36 (2304 compute elements)
clock rate 1200MHz

Automatic parameters
threads per grid 0
optimizing kernels for GCN

Compiling kernels.
Warning: Dumping only the first of 2 binary formats - if loading the binary file mfakto_Kernels.elf fails, delete it and specify the -d <n> option for mfakto.
Error -46 (Invalid kernel name): Creating Kernel cl_barrett15_74_gs from program. (clCreateKernel)
ERROR: load_kernels(0) failed
kyoko:mfakto-mac64-v1 zombie67$ ./mfakto -d 01 -st
mfakto 0.15pre6 (64bit build)


Runtime options
Inifile mfakto.ini
Verbosity 1
SieveOnGPU yes
MoreClasses yes
GPUSievePrimes 82486
GPUSieveProcessSize 24Ki bits
GPUSieveSize 96Mi bits
FlushInterval 8
WorkFile worktodo.txt
ResultsFile results.txt
Checkpoints enabled
CheckpointDelay 300s
Stages enabled
StopAfterFactor class
PrintMode compact
V5UserID none
ComputerID none
TimeStampInResults no
VectorSize 2
GPUType AUTO
SmallExp no
UseBinfile mfakto_Kernels.elf
Compiletime options

Select device - Get device info:
WARNING: Unknown GPU name, assuming GCN. Please post the device name "AMD Radeon VII Compute Engine (AMD)" to http://www.mersenneforum.org/showthread.php?t=15646 to have it added to mfakto. Set GPUType in mfakto.ini to select a GPU type yourself to avoid this warning.

OpenCL device info
name AMD Radeon VII Compute Engine (AMD)
device (driver) version OpenCL 1.2 (1.2 (Jan 13 2020 20:12:46))
maximum threads per block 256
maximum threads per grid 16777216
number of multiprocessors 60 (3840 compute elements)
clock rate 1801MHz

Automatic parameters
threads per grid 0
optimizing kernels for GCN

Loading binary kernel file mfakto_Kernels.elf
Compiling kernels.
Error -46 (Invalid kernel name): Creating Kernel cl_barrett15_74_gs from program. (clCreateKernel)
ERROR: load_kernels(0) failed
kyoko:mfakto-mac64-v1 zombie67$ ./mfakto -d 10 -st
mfakto 0.15pre6 (64bit build)


Runtime options
Inifile mfakto.ini
Verbosity 1
SieveOnGPU yes
MoreClasses yes
GPUSievePrimes 82486
GPUSieveProcessSize 24Ki bits
GPUSieveSize 96Mi bits
FlushInterval 8
WorkFile worktodo.txt
ResultsFile results.txt
Checkpoints enabled
CheckpointDelay 300s
Stages enabled
StopAfterFactor class
PrintMode compact
V5UserID none
ComputerID none
TimeStampInResults no
VectorSize 2
GPUType AUTO
SmallExp no
UseBinfile mfakto_Kernels.elf
Compiletime options

Select device - Get device info:
WARNING: Unknown GPU name, assuming GCN. Please post the device name "AMD Radeon Pro 580 Compute Engine (AMD)" to http://www.mersenneforum.org/showthread.php?t=15646 to have it added to mfakto. Set GPUType in mfakto.ini to select a GPU type yourself to avoid this warning.

OpenCL device info
name AMD Radeon Pro 580 Compute Engine (AMD)
device (driver) version OpenCL 1.2 (1.2 (Jan 13 2020 20:12:40))
maximum threads per block 256
maximum threads per grid 16777216
number of multiprocessors 36 (2304 compute elements)
clock rate 1200MHz

Automatic parameters
threads per grid 0
optimizing kernels for GCN

Loading binary kernel file mfakto_Kernels.elf
Compiling kernels.
Error -46 (Invalid kernel name): Creating Kernel cl_barrett15_74_gs from program. (clCreateKernel)
ERROR: load_kernels(0) failed
kyoko:mfakto-mac64-v1 zombie67$ ./mfakto -d 11 -st
mfakto 0.15pre6 (64bit build)


Runtime options
Inifile mfakto.ini
Verbosity 1
SieveOnGPU yes
MoreClasses yes
GPUSievePrimes 82486
GPUSieveProcessSize 24Ki bits
GPUSieveSize 96Mi bits
FlushInterval 8
WorkFile worktodo.txt
ResultsFile results.txt
Checkpoints enabled
CheckpointDelay 300s
Stages enabled
StopAfterFactor class
PrintMode compact
V5UserID none
ComputerID none
TimeStampInResults no
VectorSize 2
GPUType AUTO
SmallExp no
UseBinfile mfakto_Kernels.elf
Compiletime options

Select device - Get device info:
WARNING: Unknown GPU name, assuming GCN. Please post the device name "AMD Radeon VII Compute Engine (AMD)" to http://www.mersenneforum.org/showthread.php?t=15646 to have it added to mfakto. Set GPUType in mfakto.ini to select a GPU type yourself to avoid this warning.

OpenCL device info
name AMD Radeon VII Compute Engine (AMD)
device (driver) version OpenCL 1.2 (1.2 (Jan 13 2020 20:12:46))
maximum threads per block 256
maximum threads per grid 16777216
number of multiprocessors 60 (3840 compute elements)
clock rate 1801MHz

Automatic parameters
threads per grid 0
optimizing kernels for GCN

Loading binary kernel file mfakto_Kernels.elf
Compiling kernels.
Error -46 (Invalid kernel name): Creating Kernel cl_barrett15_74_gs from program. (clCreateKernel)
ERROR: load_kernels(0) failed
kyoko:mfakto-mac64-v1 zombie67$

____________
Reno, NV
Team: SETI.USA

Profile rebirther
Volunteer moderator
Project administrator
Project developer
Project tester
Project scientist
Avatar
Send message
Joined: 2 Jan 13
Posts: 7479
Credit: 43,690,041
RAC: 42,170
Message 5999 - Posted: 3 Apr 2020, 16:51:08 UTC - in response to Message 5992.

Thats interesting so -d 00 is working, if someone can test it on linux opencl that would be very helpful.

bluestang
Send message
Joined: 6 Jun 19
Posts: 60
Credit: 2,244,690,070
RAC: 238,442
Message 6000 - Posted: 3 Apr 2020, 19:55:30 UTC - in response to Message 5999.
Last modified: 3 Apr 2020, 20:43:10 UTC

I'm beginning to think AMD needs the "-d xx" format and NVIDIA is fine with the "-d x" format? Or is it because it's Linux?

Profile rebirther
Volunteer moderator
Project administrator
Project developer
Project tester
Project scientist
Avatar
Send message
Joined: 2 Jan 13
Posts: 7479
Credit: 43,690,041
RAC: 42,170
Message 6002 - Posted: 4 Apr 2020, 6:00:23 UTC - in response to Message 6000.

I'm beginning to think AMD needs the "-d xx" format and NVIDIA is fine with the "-d x" format? Or is it because it's Linux?


from the readme its always -d xx

DeleteNull
Volunteer developer
Volunteer tester
Send message
Joined: 29 Nov 14
Posts: 83
Credit: 374,914,522
RAC: 4,661
Message 6019 - Posted: 4 Apr 2020, 13:19:19 UTC - in response to Message 6002.
Last modified: 4 Apr 2020, 13:20:47 UTC

both works (not) for me.
-d 00 seems to be the same as -d 11

GPU is listed and the test starts, but the selftest fails. GPU is a Radeon 5500 XT and mfakto doesn't like these new GPU's:
Unknown GPU name, assuming GCN.

All settings are wrong: AUTO, GCN, VLIW4, VLIW5, APU => selftest FAILED!

Profile rebirther
Volunteer moderator
Project administrator
Project developer
Project tester
Project scientist
Avatar
Send message
Joined: 2 Jan 13
Posts: 7479
Credit: 43,690,041
RAC: 42,170
Message 6021 - Posted: 4 Apr 2020, 13:43:05 UTC - in response to Message 6019.
Last modified: 4 Apr 2020, 13:46:27 UTC

both works (not) for me.
-d 00 seems to be the same as -d 11

GPU is listed and the test starts, but the selftest fails. GPU is a Radeon 5500 XT and mfakto doesn't like these new GPU's:
Unknown GPU name, assuming GCN.

All settings are wrong: AUTO, GCN, VLIW4, VLIW5, APU => selftest FAILED!


This is normal (Unknown GPU name, assuming GCN), but its running. The code doesnt recognize the new GPUs yet.

I have tested this -d 00 in windows and its still working.

Profile rebirther
Volunteer moderator
Project administrator
Project developer
Project tester
Project scientist
Avatar
Send message
Joined: 2 Jan 13
Posts: 7479
Credit: 43,690,041
RAC: 42,170
Message 6022 - Posted: 4 Apr 2020, 14:08:13 UTC
Last modified: 4 Apr 2020, 14:18:17 UTC

If someone can compile v0.15 on linux and mac that would be great:

https://github.com/Bdot42/mfakto

So we can test further on these new pre-release versions. I will update the windows app for mfakto, its slighty faster and maybe reduce some other errors.

DeleteNull
Volunteer developer
Volunteer tester
Send message
Joined: 29 Nov 14
Posts: 83
Credit: 374,914,522
RAC: 4,661
Message 6040 - Posted: 7 Apr 2020, 15:38:25 UTC - in response to Message 6022.

You can download the linux version from here:
https://p-numbers.net/mfakto_linux_x86_64.zip

Profile rebirther
Volunteer moderator
Project administrator
Project developer
Project tester
Project scientist
Avatar
Send message
Joined: 2 Jan 13
Posts: 7479
Credit: 43,690,041
RAC: 42,170
Message 6041 - Posted: 7 Apr 2020, 15:46:42 UTC - in response to Message 6040.

You can download the linux version from here:
https://p-numbers.net/mfakto_linux_x86_64.zip


Great, I will setup this as soon as possible.

Profile rebirther
Volunteer moderator
Project administrator
Project developer
Project tester
Project scientist
Avatar
Send message
Joined: 2 Jan 13
Posts: 7479
Credit: 43,690,041
RAC: 42,170
Message 6042 - Posted: 7 Apr 2020, 17:48:05 UTC

The new linux app is up. Lets see how its working.

Profile rebirther
Volunteer moderator
Project administrator
Project developer
Project tester
Project scientist
Avatar
Send message
Joined: 2 Jan 13
Posts: 7479
Credit: 43,690,041
RAC: 42,170
Message 6043 - Posted: 7 Apr 2020, 17:54:10 UTC - in response to Message 6040.

You can download the linux version from here:
https://p-numbers.net/mfakto_linux_x86_64.zip


I can see the same error:
ERROR: unknown option '--device'

DeleteNull
Volunteer developer
Volunteer tester
Send message
Joined: 29 Nov 14
Posts: 83
Credit: 374,914,522
RAC: 4,661
Message 6044 - Posted: 7 Apr 2020, 18:05:49 UTC - in response to Message 6043.
Last modified: 7 Apr 2020, 18:26:56 UTC

I will try an app_config.xml
With this app_config.xml I have no more device error:

<app_config>
<app>
<name>GPU72</name>
<max_concurrent>1</max_concurrent>
</app>
<app_version>
<app_name>GPU72</app_name>
<plan_class>opencl_ati_101</plan_class>
<cmdline>-d 11</cmdline>
</app_version>
</app_config>

...but Radeon 5500 XT is not compatible with this software (like AP27 in PrimeGrid)

dannyridel
Avatar
Send message
Joined: 21 Jul 19
Posts: 63
Credit: 15,355,619
RAC: 74,346
Message 6046 - Posted: 8 Apr 2020, 0:36:29 UTC - in response to Message 6044.

I will try an app_config.xml
With this app_config.xml I have no more device error:

<app_config>
<app>
<name>GPU72</name>
<max_concurrent>1</max_concurrent>
</app>
<app_version>
<app_name>GPU72</app_name>
<plan_class>opencl_ati_101</plan_class>
<cmdline>-d 11</cmdline>
</app_version>
</app_config>

...but Radeon 5500 XT is not compatible with this software (like AP27 in PrimeGrid)


Do you mean it's not recognized or it does not run?
Because even though my vega 8 isn't recognized it still runs.

Previous · 1 · 2 · 3 · 4 · 5 · 6 . . . 7 · Next
Post to thread

Message boards : Number crunching : Trial Factoring tests


Main page · Your account · Message boards


Copyright © 2014-2024 BOINC Confederation / rebirther