log in |
21)
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. |
22)
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. |
23)
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;
}
|
24)
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 |
25)
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. |
26)
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..... |
27)
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. |
28)
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) |
29)
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. |
30)
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. |
31)
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 |
32)
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. |
33)
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 |
34)
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..... |
35)
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. |
36)
Message boards :
Number crunching :
Trial Factoring tests
(Message 6159)
Posted 13 Apr 2020 by DeleteNull Yes with elf-file. But in the tests before (zip without elf-file) was the same error. Standalone test with wrapper and job.xml succeeded. So I don't know what the problem is. Sofware is o.k., but if the wrapper is started inside BOINC it fails. |
37)
Message boards :
Number crunching :
Trial Factoring tests
(Message 6157)
Posted 13 Apr 2020 by DeleteNull On both of my PC with AMD GPU: error 195 from wrapper, with or without elf-file?! |
38)
Message boards :
Number crunching :
Trial Factoring tests
(Message 6156)
Posted 13 Apr 2020 by DeleteNull I get an error (two): A new attached PC: Download error (checksum fail) Previously attached: The old ZIP (without elf-file) remains, if you replace the file manually the file is deleted (zip error). It seems you have to create a new version, sorry. |
39)
Message boards :
Number crunching :
Trial Factoring tests
(Message 6154)
Posted 13 Apr 2020 by DeleteNull All my "standalone tests" are okay too. I think the problem ist that mfakto-x86_64 starts a child process to compile the mfakto_Kernels.elf file. I seems that this forces the CHILD_FAILED error. Can you include this file: https://p-numbers.net/mfakto_Kernels.elf in the ZIP? (Just for a test) |
40)
Message boards :
Number crunching :
Trial Factoring tests
(Message 6152)
Posted 13 Apr 2020 by DeleteNull Thanks, now I get a new error: process exited with code 195 This is an error from BOINC (wrapper) 195 is CHILD_FAILED, Which means the wrapper failed to start the worker app. |