PrimeGrid
Please visit donation page to help the project cover running costs for this month

Toggle Menu

Join PrimeGrid

Returning Participants

Community

Leader Boards

Results

Other

drummers-lowrise
11) Message boards : Sieving : Cygwin problems @GFN sieving OpenCL app for Windows (Message 116480)
Posted 2011 days ago by walliProject donor
Hi,

I just noticed that when I use the latest "gfnsvocl_w64_2G.exe" app with the current Cygwin + bash on Windows 10 64 bit (1709), there is a problem with CTRL+C. If you restart the app, despite the checkpoint file, you will find some double entries in the result file:

mcw@dagobert /cygdrive/c/Users/mcw/Desktop/sieve $ ls -al insgesamt 144 drwx------+ 1 mcw Kein 0 18. Mrz 15:35 . drwxrwx---+ 1 mcw Kein 0 18. Mrz 16:09 .. -rwx------+ 1 mcw Kein 137216 15. Jan 20:48 ocl_w64_2G.exe mcw@dagobert /cygdrive/c/Users/mcw/Desktop/sieve $ ./ocl_w64_2G.exe 18 91483 91488 B12 GFNSvCUDA+ v0.7.1 (c) 2015 Anand Nair (anand.s.nair AT gmail) OpenCL port by Roman Trunov (stream AT proxyma ru) GFN Sieve for k^262144+1 [k == 2 to 2000000000] Using factor file 'f18_91483P_91488P.txt' Using checkpoint file 'c18_91483P_91488P.txt' Found OCL platform "AMD Accelerated Parallel Processing" by "Advanced Micro Devices, Inc." GPU devices on platform: 0 Found OCL platform "NVIDIA CUDA" by "NVIDIA Corporation" GPU devices on platform: 1 Found OCL platform "Intel(R) OpenCL" by "Intel(R) Corporation" GPU devices on platform: 1 D0: "GeForce GTX 970" D1: "Intel(R) HD Graphics 610" Using 79 bit core. 91483000763856715777 | 821639908^262144+1 91483012664942657537 | 1181562520^262144+1 91483017290328309761 | 1327778384^262144+1 91483017741184008193 | 1725107092^262144+1 91483016963236036609 87381.3/s (91.0P/day) Found 2 ETA 1h18m


<- CTRL+C pressed

mcw@dagobert /cygdrive/c/Users/mcw/Desktop/sieve $ ls -al insgesamt 146 drwx------+ 1 mcw Kein 0 27. Mrz 16:46 . drwxrwx---+ 1 mcw Kein 0 18. Mrz 16:09 .. -rwx------+ 1 mcw Kein 15 27. Mrz 16:46 c18_91483P_91488P.txt -rwx------+ 1 mcw Kein 226 27. Mrz 16:46 f18_91483P_91488P.txt -rwx------+ 1 mcw Kein 137216 15. Jan 20:48 ocl_w64_2G.exe mcw@dagobert /cygdrive/c/Users/mcw/Desktop/sieve $ cat c18_91483P_91488P.txt 174489975727905 mcw@dagobert /cygdrive/c/Users/mcw/Desktop/sieve $ ./ocl_w64_2G.exe 18 91483 91488 B12 GFNSvCUDA+ v0.7.1 (c) 2015 Anand Nair (anand.s.nair AT gmail) OpenCL port by Roman Trunov (stream AT proxyma ru) GFN Sieve for k^262144+1 [k == 2 to 2000000000] Using factor file 'f18_91483P_91488P.txt' Using checkpoint file 'c18_91483P_91488P.txt' Resuming from checkpoint value 91483000394431856641 Found OCL platform "AMD Accelerated Parallel Processing" by "Advanced Micro Devices, Inc." GPU devices on platform: 0 Found OCL platform "NVIDIA CUDA" by "NVIDIA Corporation" GPU devices on platform: 1 Found OCL platform "Intel(R) OpenCL" by "Intel(R) Corporation" GPU devices on platform: 1 D0: "GeForce GTX 970" D1: "Intel(R) HD Graphics 610" Using 79 bit core. 91483000763856715777 | 821639908^262144+1 91483012664942657537 | 1181562520^262144+1 91483017290328309761 | 1327778384^262144+1 91483017741184008193 | 1725107092^262144+1 91483017359941697537 87797.6/s (91.4P/day) Found 3 ETA 1h18m


<- CTRL+C pressed

mcw@dagobert /cygdrive/c/Users/mcw/Desktop/sieve $ ls -al insgesamt 146 drwx------+ 1 mcw Kein 0 27. Mrz 16:46 . drwxrwx---+ 1 mcw Kein 0 18. Mrz 16:09 .. -rwx------+ 1 mcw Kein 15 27. Mrz 16:47 c18_91483P_91488P.txt -rwx------+ 1 mcw Kein 401 27. Mrz 16:47 f18_91483P_91488P.txt -rwx------+ 1 mcw Kein 137216 15. Jan 20:48 ocl_w64_2G.exe


And now you see the double entries:

mcw@dagobert /cygdrive/c/Users/mcw/Desktop/sieve $ cat f18_91483P_91488P.txt GFN Sieve for k^262144+1 [k == 2 to 2000000000] 91483000763856715777 | 821639908^262144+1 91483012664942657537 | 1181562520^262144+1 91483017290328309761 | 1327778384^262144+1 91483017741184008193 | 1725107092^262144+1 91483000763856715777 | 821639908^262144+1 91483012664942657537 | 1181562520^262144+1 91483017290328309761 | 1327778384^262144+1 91483017741184008193 | 1725107092^262144+1 mcw@dagobert /cygdrive/c/Users/mcw/Desktop/sieve $


This behaviour does not occur when I use CMD.EXE:

C:\Users\mcw\Desktop\sieve>dir Volume in Laufwerk C: hat keine Bezeichnung. Volumeseriennummer: 645D-122D Verzeichnis von C:\Users\mcw\Desktop\sieve 27.03.2018 17:01 <DIR> . 27.03.2018 17:01 <DIR> .. 15.01.2018 21:48 137.216 ocl_w64_2G.exe 1 Datei(en), 137.216 Bytes 2 Verzeichnis(se), 145.678.970.880 Bytes frei C:\Users\mcw\Desktop\sieve>ocl_w64_2G.exe 18 91483 91488 B12 GFNSvCUDA+ v0.7.1 (c) 2015 Anand Nair (anand.s.nair AT gmail) OpenCL port by Roman Trunov (stream AT proxyma ru) GFN Sieve for k^262144+1 [k == 2 to 2000000000] Using factor file 'f18_91483P_91488P.txt' Using checkpoint file 'c18_91483P_91488P.txt' Found OCL platform "AMD Accelerated Parallel Processing" by "Advanced Micro Devices, Inc." GPU devices on platform: 0 Found OCL platform "NVIDIA CUDA" by "NVIDIA Corporation" GPU devices on platform: 1 Found OCL platform "Intel(R) OpenCL" by "Intel(R) Corporation" GPU devices on platform: 1 D0: "GeForce GTX 970" D1: "Intel(R) HD Graphics 610" Using 79 bit core. 91483000763856715777 | 821639908^262144+1 91483012664942657537 | 1181562520^262144+1 91483017290328309761 | 1327778384^262144+1 91483017741184008193 | 1725107092^262144+1 91483034910712135681 | 35354860^262144+1 91483038856307015681 | 1656806252^262144+1 91483039862987161601 87381.3/s (91.0P/day) Found 6 ETA 1h18m Termination requested 91483043018746888193 87381.3/s (91.0P/day) Found 6 ETA 1h18m


<- CTRL+C pressed

C:\Users\mcw\Desktop\sieve>dir Volume in Laufwerk C: hat keine Bezeichnung. Volumeseriennummer: 645D-122D Verzeichnis von C:\Users\mcw\Desktop\sieve 27.03.2018 17:02 <DIR> . 27.03.2018 17:02 <DIR> .. 27.03.2018 17:03 15 c18_91483P_91488P.txt 27.03.2018 17:02 312 f18_91483P_91488P.txt 15.01.2018 21:48 137.216 ocl_w64_2G.exe 3 Datei(en), 137.543 Bytes 2 Verzeichnis(se), 145.679.269.888 Bytes frei C:\Users\mcw\Desktop\sieve>type c18_91483P_91488P.txt 174490057027335 C:\Users\mcw\Desktop\sieve>type f18_91483P_91488P.txt GFN Sieve for k^262144+1 [k == 2 to 2000000000] 91483000763856715777 | 821639908^262144+1 91483012664942657537 | 1181562520^262144+1 91483017290328309761 | 1327778384^262144+1 91483017741184008193 | 1725107092^262144+1 91483034910712135681 | 35354860^262144+1 91483038856307015681 | 1656806252^262144+1 C:\Users\mcw\Desktop\sieve>ocl_w64_2G.exe 18 91483 91488 B12 GFNSvCUDA+ v0.7.1 (c) 2015 Anand Nair (anand.s.nair AT gmail) OpenCL port by Roman Trunov (stream AT proxyma ru) GFN Sieve for k^262144+1 [k == 2 to 2000000000] Using factor file 'f18_91483P_91488P.txt' Using checkpoint file 'c18_91483P_91488P.txt' Resuming from checkpoint value 91483043018747412481 Found OCL platform "AMD Accelerated Parallel Processing" by "Advanced Micro Devices, Inc." GPU devices on platform: 0 Found OCL platform "NVIDIA CUDA" by "NVIDIA Corporation" GPU devices on platform: 1 Found OCL platform "Intel(R) OpenCL" by "Intel(R) Corporation" GPU devices on platform: 1 D0: "GeForce GTX 970" D1: "Intel(R) HD Graphics 610" Using 79 bit core. 91483046085517639681 | 1101324452^262144+1 91483048858065829889 | 1230460700^262144+1 91483050224393912321 | 1493028414^262144+1 91483055143844315137 | 1769064358^262144+1 91483058338980167681 | 477873178^262144+1 91483056042833084417 86946.6/s (90.5P/day) Found 4 ETA 1h18m Termination requested


<- CTRL+C pressed

C:\Users\mcw\Desktop\sieve>type f18_91483P_91488P.txt GFN Sieve for k^262144+1 [k == 2 to 2000000000] 91483000763856715777 | 821639908^262144+1 91483012664942657537 | 1181562520^262144+1 91483017290328309761 | 1327778384^262144+1 91483017741184008193 | 1725107092^262144+1 91483034910712135681 | 35354860^262144+1 91483038856307015681 | 1656806252^262144+1 91483046085517639681 | 1101324452^262144+1 91483048858065829889 | 1230460700^262144+1 91483050224393912321 | 1493028414^262144+1 91483055143844315137 | 1769064358^262144+1 91483058338980167681 | 477873178^262144+1 C:\Users\mcw\Desktop\sieve>ocl_w64_2G.exe 18 91483 91488 B12 GFNSvCUDA+ v0.7.1 (c) 2015 Anand Nair (anand.s.nair AT gmail) OpenCL port by Roman Trunov (stream AT proxyma ru) GFN Sieve for k^262144+1 [k == 2 to 2000000000] Using factor file 'f18_91483P_91488P.txt' Using checkpoint file 'c18_91483P_91488P.txt' Resuming from checkpoint value 91483058805401452545 Found OCL platform "AMD Accelerated Parallel Processing" by "Advanced Micro Devices, Inc." GPU devices on platform: 0 Found OCL platform "NVIDIA CUDA" by "NVIDIA Corporation" GPU devices on platform: 1 Found OCL platform "Intel(R) OpenCL" by "Intel(R) Corporation" GPU devices on platform: 1 D0: "GeForce GTX 970" D1: "Intel(R) HD Graphics 610" Using 79 bit core. 91483064750573617153 | 1356201550^262144+1 91483082985882255361 | 1498244334^262144+1 91483084423112949761 | 479758486^262144+1 91483084930536701953 | 1780915770^262144+1 91483084871849476097 86487.6/s (90.0P/day) Found 3 ETA 1h18m Termination requested


<- CTRL+C pressed

C:\Users\mcw\Desktop\sieve>ocl_w64_2G.exe 18 91483 91488 B12 GFNSvCUDA+ v0.7.1 (c) 2015 Anand Nair (anand.s.nair AT gmail) OpenCL port by Roman Trunov (stream AT proxyma ru) GFN Sieve for k^262144+1 [k == 2 to 2000000000] Using factor file 'f18_91483P_91488P.txt' Using checkpoint file 'c18_91483P_91488P.txt' Resuming from checkpoint value 91483087626457579521 Found OCL platform "AMD Accelerated Parallel Processing" by "Advanced Micro Devices, Inc." GPU devices on platform: 0 Found OCL platform "NVIDIA CUDA" by "NVIDIA Corporation" GPU devices on platform: 1 Found OCL platform "Intel(R) OpenCL" by "Intel(R) Corporation" GPU devices on platform: 1 D0: "GeForce GTX 970" D1: "Intel(R) HD Graphics 610" Using 79 bit core. 91483088936013660161 | 1326652510^262144+1 91483089472017399809 | 1277599416^262144+1 91483091176579399681 86917.8/s (90.5P/day) Found 2 ETA 1h18m Termination requested


<- CTRL+C pressed

C:\Users\mcw\Desktop\sieve>ocl_w64_2G.exe 18 91483 91488 B12 GFNSvCUDA+ v0.7.1 (c) 2015 Anand Nair (anand.s.nair AT gmail) OpenCL port by Roman Trunov (stream AT proxyma ru) GFN Sieve for k^262144+1 [k == 2 to 2000000000] Using factor file 'f18_91483P_91488P.txt' Using checkpoint file 'c18_91483P_91488P.txt' Resuming from checkpoint value 91483091569822138369 Found OCL platform "AMD Accelerated Parallel Processing" by "Advanced Micro Devices, Inc." GPU devices on platform: 0 Found OCL platform "NVIDIA CUDA" by "NVIDIA Corporation" GPU devices on platform: 1 Found OCL platform "Intel(R) OpenCL" by "Intel(R) Corporation" GPU devices on platform: 1 D0: "GeForce GTX 970" D1: "Intel(R) HD Graphics 610" Using 79 bit core. 91483094216605696001 | 1263954208^262144+1 91483097949873897473 | 1676786212^262144+1 91483097973808168961 | 141132714^262144+1 91483098276698259457 86487.6/s (90.0P/day) Found 3 ETA 1h18m Termination requested


<- CTRL+C pressed

C:\Users\mcw\Desktop\sieve>type f18_91483P_91488P.txt GFN Sieve for k^262144+1 [k == 2 to 2000000000] 91483000763856715777 | 821639908^262144+1 91483012664942657537 | 1181562520^262144+1 91483017290328309761 | 1327778384^262144+1 91483017741184008193 | 1725107092^262144+1 91483034910712135681 | 35354860^262144+1 91483038856307015681 | 1656806252^262144+1 91483046085517639681 | 1101324452^262144+1 91483048858065829889 | 1230460700^262144+1 91483050224393912321 | 1493028414^262144+1 91483055143844315137 | 1769064358^262144+1 91483058338980167681 | 477873178^262144+1 91483064750573617153 | 1356201550^262144+1 91483082985882255361 | 1498244334^262144+1 91483084423112949761 | 479758486^262144+1 91483084930536701953 | 1780915770^262144+1 91483088936013660161 | 1326652510^262144+1 91483089472017399809 | 1277599416^262144+1 91483094216605696001 | 1263954208^262144+1 91483097949873897473 | 1676786212^262144+1 91483097973808168961 | 141132714^262144+1 C:\Users\mcw\Desktop\sieve>


As you can see, there are no multiple occurrences of any found factor.

Maybe a cache problem or a different signal handling... I didn't investigate this.

I hope that JimB sorts out the entries with some kind of UNIQUE statement/mechanism before or when pushing the results into the database... just wanted to let you know :-).

//walli
[Return to PrimeGrid main page]
DNS Powered by DNSEXIT.COM
Copyright © 2005 - 2023 Rytis Slatkevičius (contact) and PrimeGrid community. Server load 2.37, 2.53, 2.24
Generated 29 Sep 2023 | 14:01:45 UTC