Author |
Message |
|
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. |
|
|
rebirtherVolunteer moderator Project administrator Project developer Project tester Project scientist
Send message
Joined: 2 Jan 13 Posts: 7479 Credit: 43,687,821 RAC: 42,026 |
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 |
|
|
|
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 |
|
|
|
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. |
|
|
|
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
|
|
|
rebirtherVolunteer moderator Project administrator Project developer Project tester Project scientist
Send message
Joined: 2 Jan 13 Posts: 7479 Credit: 43,687,821 RAC: 42,026 |
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. |
|
|
|
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
|
|
|
|
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
|
|
|
rebirtherVolunteer moderator Project administrator Project developer Project tester Project scientist
Send message
Joined: 2 Jan 13 Posts: 7479 Credit: 43,687,821 RAC: 42,026 |
Thats interesting so -d 00 is working, if someone can test it on linux opencl that would be very helpful. |
|
|
|
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? |
|
|
rebirtherVolunteer moderator Project administrator Project developer Project tester Project scientist
Send message
Joined: 2 Jan 13 Posts: 7479 Credit: 43,687,821 RAC: 42,026 |
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 |
|
|
DeleteNullVolunteer developer Volunteer tester Send message
Joined: 29 Nov 14 Posts: 83 Credit: 374,914,522 RAC: 4,661 |
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! |
|
|
rebirtherVolunteer moderator Project administrator Project developer Project tester Project scientist
Send message
Joined: 2 Jan 13 Posts: 7479 Credit: 43,687,821 RAC: 42,026 |
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. |
|
|
rebirtherVolunteer moderator Project administrator Project developer Project tester Project scientist
Send message
Joined: 2 Jan 13 Posts: 7479 Credit: 43,687,821 RAC: 42,026 |
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. |
|
|
DeleteNullVolunteer developer Volunteer tester Send message
Joined: 29 Nov 14 Posts: 83 Credit: 374,914,522 RAC: 4,661 |
You can download the linux version from here:
https://p-numbers.net/mfakto_linux_x86_64.zip |
|
|
rebirtherVolunteer moderator Project administrator Project developer Project tester Project scientist
Send message
Joined: 2 Jan 13 Posts: 7479 Credit: 43,687,821 RAC: 42,026 |
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. |
|
|
rebirtherVolunteer moderator Project administrator Project developer Project tester Project scientist
Send message
Joined: 2 Jan 13 Posts: 7479 Credit: 43,687,821 RAC: 42,026 |
The new linux app is up. Lets see how its working. |
|
|
rebirtherVolunteer moderator Project administrator Project developer Project tester Project scientist
Send message
Joined: 2 Jan 13 Posts: 7479 Credit: 43,687,821 RAC: 42,026 |
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' |
|
|
DeleteNullVolunteer developer Volunteer tester Send message
Joined: 29 Nov 14 Posts: 83 Credit: 374,914,522 RAC: 4,661 |
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) |
|
|
|
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. |
|
|