Posts by DeleteNull
log in
21) Message boards : Number crunching : mfaktc.exe --perftest for RTX3080/90 cards (Message 6933)
Posted 12 Nov 2020 by DeleteNull
o.k., thanks. With this number the result is:
no factor for M219111587 from 2^70 to 2^71 [mfaktc 0.21 barrett76_mul32_gs]
tf(): total time spent: 19.759s
22) Message boards : Number crunching : mfaktc.exe --perftest for RTX3080/90 cards (Message 6931)
Posted 12 Nov 2020 by DeleteNull
~/mfakt/compile/mfaktc-master> ./mfaktc.exe --perftest
mfaktc v0.21 (64bit built)

Compiletime options
THREADS_PER_BLOCK 256
SIEVE_SIZE_LIMIT 32kiB
SIEVE_SIZE 193154bits
SIEVE_SPLIT 250
MORE_CLASSES enabled

Runtime options
SievePrimes 25000
SievePrimesAdjust 1
SievePrimesMin 5000
SievePrimesMax 100000
NumStreams 3
CPUStreams 3
GridSize 3
GPU Sieving enabled
GPUSievePrimes 82486
GPUSieveSize 64Mi bits
GPUSieveProcessSize 16Ki bits
Checkpoints enabled
CheckpointDelay 30s
WorkFileAddDelay 600s
Stages enabled
StopAfterFactor bitlevel
PrintMode full
V5UserID (none)
ComputerID (none)
AllowSleep no
TimeStampInResults no

CUDA version info
binary compiled for CUDA 11.10
CUDA runtime version 11.10
CUDA driver version 11.10

CUDA device info
name GeForce RTX 3080
compute capability 8.6
max threads per block 1024
max shared memory per MP 102400 byte
number of multiprocessors 68
clock rate (CUDA cores) 1815MHz
memory clock rate: 9501MHz
memory bus width: 320 bit

Automatic parameters
threads per grid 557056
GPUSievePrimes (adjusted) 82486
GPUsieve minimum exponent 1055144

running a simple selftest...
Selftest statistics
number of tests 107
successfull tests 107

selftest PASSED!

ERROR: get_next_assignment(): no valid assignment found in "worktodo.txt"

which value shall worktodo.txt have?
23) Message boards : Number crunching : Trial Factoring tests (Message 6235)
Posted 15 Apr 2020 by DeleteNull
I've patched mfakto, not mfaktc.
So the mapping --device 0 to -d 00 is only implemented for AMD, not NVidia.
(and only linux)
24) Message boards : Number crunching : Trial Factoring tests (Message 6233)
Posted 15 Apr 2020 by DeleteNull
o.k., you can find the updated wrapper.cpp here:
https://p-numbers.net/wrapper.cpp

Works for mfakto (mfaktc), but will not work for LLR.
25) Message boards : Number crunching : Trial Factoring tests (Message 6231)
Posted 15 Apr 2020 by DeleteNull
Do you have the complete wrapper.cpp file?


The new wrapper works as expected.
Task starts with 0%, switches to 100% after one minute.
This is because there is no Mxxxxxx.ckp file in the first 5 minutes.

After 5 minutes it switches to the percentage of the last Mxxxxxx.ckp.
The remaining time increases (because the percentage stays at the old level for 5 minutes)
After 10 minutes is the next update, and then every 5 minutes.

Is this o.k., or shall I implement a smoother calculation of the percentage (a few more steps in the 5 minute interval)?
26) Message boards : Number crunching : Trial Factoring tests (Message 6225)
Posted 15 Apr 2020 by DeleteNull
Theoretical both applicatins can support more than one (different) GPU.
But: BOINC enumerates the GPU with 0, 1, 2, ....
In OpenCl you have platforms, e.g. Intel=0, AMD=1, NVidia=2, and for each platform 1..n devices GPU.

A mapping form 0, 1, 2 to 00, 10, 11 is different for each computer with more than one graphics device.

So there is currently only one mapping --device 0 to d 00. (possible)

Sorry to interject your development process.

Why are you using "--device x" for mfakto and mfaktc ?
Both their guides say to use "-d x"

Q: Does mfakto support multiple GPUs?
A: No, but you can use the -d option to tell an instance to run on a specific
device. Please also read the next question.

Q Does mfaktc support multiple GPUs?
A Yes, with the exception that a single instance of mfaktc can only use one
GPU. For each GPU you want to run mfaktc on you need (at least) one
instance of mfaktc. For each instance of mfaktc you can use the
commandline option "-d <GPU number>" to specify which GPU to use for each
specific mfaktc instance. Please read the next question, too.

I can run a second task on a second GPU but only if I specify "-d x", as soon as I pass "--device x" (or "-device x") on the command line it defaults to the first GPU.

Can you use "-d x" for linux wrapper at least please ?
27) Message boards : Number crunching : Trial Factoring tests (Message 6224)
Posted 15 Apr 2020 by DeleteNull
No issues.
In about an hour an "old" WU is finished, the new WU should use the new wrapper and I can report.

I am not a C/C++ developer. The new method just reads the worktodo.txt with the number and contructs the file name for the checkpoint file of mfaktc/mfakto and calculates the fraction of "work done". This can be used by the method fraction_done() of the (original) wrapper.

If it succeeds I will send you the wrapper.cpp so it can be used for Windows too.
28) Message boards : Number crunching : Trial Factoring tests (Message 6220)
Posted 15 Apr 2020 by DeleteNull
What ending is exe?
The file is named wrapper_26016_7.16_mfakt
It is linux executable (-rwxr-xr-x)

The new method is:
double getMfraction() { FILE* f = fopen("worktodo.txt", "r"); if (!f) return 0; char* p; char buf[256]; p = fgets(buf, 256, f); fclose(f); if (p == NULL) return 0; char * qch; qch = strtok(p, "="); qch = strtok(NULL, ","); int len = strlen(qch); char mfile[6+len]; mfile[0] = 'M'; int i; for (i = 0; i < len; i++) { mfile[1+i] = qch[i]; } mfile[1+len] = '.'; mfile[2+len] = 'c'; mfile[3+len] = 'k'; mfile[4+len] = 'p'; mfile[5+len] = '\0'; FILE* ff = fopen(mfile, "r"); if (!ff) return 0; char* pp; pp = fgets(buf, 256, ff); fclose(ff); if (pp == NULL) return 0; char * pch; int count = 0; double all = 0, done = 0, frac = 0; pch = strtok (pp, " "); while (pch != NULL) { count++; if (count == 4) all = atof(pch); if (count == 7) done = atof(pch); pch = strtok (NULL, " "); } if (all > 0) frac = done / all; if (frac < 0) return 0; if (frac > 1) return 1; return frac; }
29) Message boards : Number crunching : Trial Factoring tests (Message 6217)
Posted 15 Apr 2020 by DeleteNull
20:18:30 (19664): BOINC client no longer exists - exiting
20:18:30 (19664): timer handler: client dead, exiting
30) Message boards : Number crunching : Trial Factoring tests (Message 6215)
Posted 15 Apr 2020 by DeleteNull
Does the wrapper work without BOINC?
So I create a test dir and copy the files into it?

And yes...you will get the source.
31) Message boards : Number crunching : Trial Factoring tests (Message 6213)
Posted 15 Apr 2020 by DeleteNull
A new (test) version of the wrapper (mfakto/mfaktc) is here:
https://p-numbers.net/wrapper_26016_7.16_mfakt

The next test can begin.....
32) Message boards : Number crunching : Trial Factoring tests (Message 6200)
Posted 14 Apr 2020 by DeleteNull
Will need another evening. C and characters (strings) are colliding worlds.
33) Message boards : Number crunching : Trial Factoring tests (Message 6174)
Posted 13 Apr 2020 by DeleteNull
The old wrapper code is here


Tomorrow (after work) I will try to implement a method in the wrapper that it can deal with the .ckp file.
The ini file should change from CheckpointDelay=300 to CheckpointDelay=60.
(both: NVidia and AMD)
34) Message boards : Number crunching : Trial Factoring tests (Message 6173)
Posted 13 Apr 2020 by DeleteNull
I added a second PC to this test, and it runs too (had to reset the project).

The good news:
Two tests are running, one with Ubuntu 18.04, the other with Opensuse 15.1.
One with driver 20.10 (Radeon 5500XT), the other with driver 19.50 (R9 380)
One will need about 10 hours, the other will need 27 hours.

The bad news:
You have to wait with 100% until it's finished, or you have to extend the wrapper.
35) Message boards : Number crunching : Trial Factoring tests (Message 6171)
Posted 13 Apr 2020 by DeleteNull
In this case the file M97983883.ckp keeps the checkpoint:

97983883 77 78 4620 mfakto 0.15pre6: 17 0 B624ABF0
97983883 77 78 4620 mfakto 0.15pre6: 45 0 150D244C
97983883 77 78 4620 mfakto 0.15pre6: 72 0 7071D1B7
97983883 77 78 4620 mfakto 0.15pre6: 93 0 48AC81E6
97983883 77 78 4620 mfakto 0.15pre6: 116 0 9EC681F1

So the estimated runtime is 9:50 hours.
But the name M97983883.ckp is different for each test.

...we need a few additional lines of code in the wrapper, so that it can handle the .ckp file.
36) Message boards : Number crunching : Trial Factoring tests (Message 6169)
Posted 13 Apr 2020 by DeleteNull
The checkpoint is generated from mfakto with the name: M97983883.ckp
37) Message boards : Number crunching : Trial Factoring tests (Message 6167)
Posted 13 Apr 2020 by DeleteNull
And it's running!

stderr:
19:07:26 (16398): wrapper (7.16.26016): starting
19:07:26 (16398): wrapper (7.16.26016): starting
19:07:26 (16398): wrapper: running ./mfakto-x64 ()
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [2]
param: 4, val: 0

After one minute it jumped to 100% ?!
The first checkpoint was generated after 300 s.
38) Message boards : Number crunching : Trial Factoring tests (Message 6165)
Posted 13 Apr 2020 by DeleteNull
Oops,

can you try this one:
https://p-numbers.net/wrapper_26016_7.16
39) Message boards : Number crunching : Trial Factoring tests (Message 6163)
Posted 13 Apr 2020 by DeleteNull
No doesn't work:
version `GLIBC_2.29' not found

The PC where I took the wrapper from has a very new linux and this dependency is awful.
I compiled BOINC on Ubuntu 18.04, and this wrapper should be o.k.:
https://p-numbers.net/wrapper_26016

For Linux it's a hard way to deploy software.....
40) Message boards : Number crunching : Trial Factoring tests (Message 6161)
Posted 13 Apr 2020 by DeleteNull
You can download here:
https://p-numbers.net/wrapper

Version information:
wolfgang@i920:~/Downloads/boinc-client_release-7-7.16/samples/wrapper> ./wrapper --version
11:22:17 (26004): wrapper (7.16.26016): starting
7.16.6
11:22:17 (26004): called boinc_finish(0)

If you need a verion from trunk, I can compile it too. It shouldn't differ from this version here.


Previous 20 · Next 20

Main page · Your account · Message boards


Copyright © 2014-2025 BOINC Confederation / rebirther