![]() |
|
|
#452 |
|
Oct 2011
7×97 Posts |
I like the V5UserID item, with something like that it seems an easy step to be able to either have the spider send results like P95 does, or possibly even incorporate it into the program.
|
|
|
|
|
|
#453 | |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
2×67×73 Posts |
Quote:
This also means GPU72 will be able to be extended to determine which computer sent the results as well. |
|
|
|
|
|
|
#454 | |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
2·67·73 Posts |
Quote:
One creator/writer; one reader/deleter. The spider wakes up and checks "worktodo.txt" to see if any more work is needed. If not, it goes back to sleep. If more work is needed, it next checks to see if "worktodo.add" already exists. If it does, it again goes to back to sleep. If it doesn't, it attempts to get new work and places it into a file like "worktodo.adt". The last step is to move (rename) "worktodo.adt" to "worktodo.add", and goes back to sleep. No race conditions; no locks. For people like Dubslow who like to order new work with old, file locking is very useful. For most people, workdodo.add functionality is fine and sane. |
|
|
|
|
|
|
#455 | |||||
|
Nov 2010
Germany
3·199 Posts |
Quote:
I guess, this github diff should be close to what you want to look at. Quote:
![]() Quote:
![]() Quote:
Quote:
|
|||||
|
|
|
|
|
#456 | |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
722110 Posts |
Quote:
Code:
bill@Gravemind:~/mfaktc-0.18/src∰∂ ls checkpoint.c mfaktc.c selftest-data.c tf_72bit.h tf_debug.h checkpoint.h my_intrinsics.h sieve.c tf_96bit.cu timer.c compatibility.h my_types.h sieve.h tf_96bit.h timer.h Makefile params.h signal_handler.c tf_barrett96.cu timeval.h Makefile.win read_config.c signal_handler.h tf_barrett96.h Makefile.win32 read_config.h tf_72bit.cu tf_common.cu |
|
|
|
|
|
|
#457 | ||
|
Nov 2010
Germany
10010101012 Posts |
Quote:
I was referring to a conceptual difference between OpenCL and CUDA: In CUDA, you compile the device code right into your binary, enabling shared header files, for instance. In the .cu files you can (and usually will) have CPU code and GPU code mixed on function level. Using OpenCL, you usually provide the GPU source code to the GPU-compiler at runtime of the binary. If you want to share header files between the binary and the GPU code, you need to ship them, for example. For this reason I needed a different source file structure for mfakto, making merges between mfakto and mfaktc more difficult. This is, what I wanted to say, no more, no less .
|
||
|
|
|
|
|
#458 |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
160658 Posts |
|
|
|
|
|
|
#459 |
|
Nov 2010
Germany
3·199 Posts |
You compile and link the stuff that runs on the CPU and drives the GPU. However, as OpenCL's claim is to run on a wide variety of devices, it is impractical to have pre-compiled device-code for all possible platforms. Rather, the device vendors ship the compiler in their drivers, and the GPU-code is compiled at runtime. During the build of mfakto, the OpenCL files are not touched. You can easily modify them before starting mfakto, and your changes will be compiled and executed. An approach somewhere between Java and shell scripts
.
|
|
|
|
|
|
#460 | |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
160658 Posts |
Quote:
(Still, the compilers can't be capable of too much optimization, otherwise you'd have to wait five minutes between when you start the program and when it starts running, especially for more complex code.)
|
|
|
|
|
|
|
#461 |
|
Romulan Interpreter
Jun 2011
Thailand
3×3,221 Posts |
Which includes - certainly, not potentially - the NV GPUs too, they are all OpenCL-able, at least at theoretical level...
|
|
|
|
|
|
#462 | |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
11100001101012 Posts |
http://www.mersenneforum.org/showpos...&postcount=336
Quote:
![]() "No plan survives contact with the enemy." |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| gpuOwL: an OpenCL program for Mersenne primality testing | preda | GpuOwl | 2719 | 2021-08-05 22:43 |
| mfaktc: a CUDA program for Mersenne prefactoring | TheJudger | GPU Computing | 3497 | 2021-06-05 12:27 |
| LL with OpenCL | msft | GPU Computing | 433 | 2019-06-23 21:11 |
| OpenCL for FPGAs | TObject | GPU Computing | 2 | 2013-10-12 21:09 |
| Program to TF Mersenne numbers with more than 1 sextillion digits? | Stargate38 | Factoring | 24 | 2011-11-03 00:34 |