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

Advanced search

Message boards : Generalized Fermat Prime Search : All of my GFN19 and above are being marked invalid, could use another set of eyes here.

Author Message
rromanchuk
Send message
Joined: 23 Feb 20
Posts: 2
ID: 1241330
Credit: 638,102
RAC: 12
321 LLR Bronze: Earned 10,000 credits (45,385)ESP LLR Bronze: Earned 10,000 credits (32,357)Generalized Cullen/Woodall LLR Bronze: Earned 10,000 credits (12,264)PPS LLR Silver: Earned 100,000 credits (103,927)PPS Sieve Bronze: Earned 10,000 credits (13,484)AP 26/27 Silver: Earned 100,000 credits (165,763)GFN Silver: Earned 100,000 credits (251,672)
Message 138374 - Posted: 27 Feb 2020 | 5:30:56 UTC

Can AMD folks out there do a quick look at some of these failures.

GPU
Running on platform 'Apple', device 'AMD Radeon Pro Vega 56 Compute Engine', vendor 'AMD', version 'OpenCL 1.2 ' and driver '1.2 (Jan 13 2020 20:12:46)'.
56 computeUnits @ 1250MHz, memSize=8176MB, cacheSize=0kB, cacheLineSize=0B, localMemSize=64kB, maxWorkGroupSize=256.

http://www.primegrid.com/result.php?resultid=1070729960

I can see the process is failing to renice the process priority, not sure how that would be responsible for producing invalid results?

Example stderr

<core_client_version>7.14.2</core_client_version> <![CDATA[ <stderr_txt> geneferocl 3.3.3-2 (Apple-x86/OpenCL/64-bit) Copyright 2001-2018, Yves Gallot Copyright 2009, Mark Rodenkirch, David Underbakke Copyright 2010-2012, Shoichiro Yamada, Ken Brazier Copyright 2011-2014, Michael Goetz, Ronald Schneider Copyright 2011-2018, Iain Bethune Genefer is free source code, under the MIT license. Command line: geneferocl_macintel_3.3.3-2 -boinc -q 3452136^524288+1 --device 0 Normal priority change failed (needs superuser privileges. Checking available transform implementations... OCL transform is past its b limit. OCL4 transform is past its b limit. A benchmark is needed to determine best transform, testing available transform implementations... Testing OCL2 transform... Running on platform 'Apple', device 'AMD Radeon Pro Vega 56 Compute Engine', vendor 'AMD', version 'OpenCL 1.2 ' and driver '1.2 (Jan 13 2020 20:12:46)'. 56 computeUnits @ 1250MHz, memSize=8176MB, cacheSize=0kB, cacheLineSize=0B, localMemSize=64kB, maxWorkGroupSize=256. Testing OCL3 transform... Testing OCL5 transform... Benchmarks completed (2.287 seconds). Using OCL5 transform Starting initialization... Initialization complete (1.856 seconds). Testing 3452136^524288+1... Estimated time for 3452136^524288+1 is 1:41:00 3452136^524288+1 is complete. (3427842 digits) (err = 0.0000) (time = 1:44:55) 14:21:30 14:21:30 (4603): called boinc_finish </stderr_txt> ]]>

Profile Chooka
Send message
Joined: 15 May 18
Posts: 109
ID: 1014486
Credit: 98,066,927
RAC: 478
Found 1 prime in the 2019 Tour de PrimesFound 5 primes in the 2020 Tour de Primes321 LLR Gold: Earned 500,000 credits (729,188)Cullen LLR Gold: Earned 500,000 credits (536,353)ESP LLR Gold: Earned 500,000 credits (521,539)Generalized Cullen/Woodall LLR Gold: Earned 500,000 credits (519,336)PPS LLR Turquoise: Earned 5,000,000 credits (6,650,617)PSP LLR Gold: Earned 500,000 credits (545,010)SoB LLR Gold: Earned 500,000 credits (784,120)SR5 LLR Ruby: Earned 2,000,000 credits (2,081,611)SGS LLR Amethyst: Earned 1,000,000 credits (1,408,150)TRP LLR Gold: Earned 500,000 credits (526,734)Woodall LLR Gold: Earned 500,000 credits (539,481)321 Sieve Gold: Earned 500,000 credits (590,369)Generalized Cullen/Woodall Sieve (suspended) Turquoise: Earned 5,000,000 credits (6,057,633)PPS Sieve Emerald: Earned 50,000,000 credits (57,296,887)AP 26/27 Ruby: Earned 2,000,000 credits (2,919,046)GFN Jade: Earned 10,000,000 credits (16,360,852)
Message 138376 - Posted: 27 Feb 2020 | 6:36:34 UTC

I don't have the answer but I have Vega 56 GPU's. I'm happy to run a few GFN 21 tasks after TdP if it helps solve your issue.

Lets see what others come up with first.
____________

Profile Michael GoetzProject donor
Honorary cruncher
Avatar
Send message
Joined: 21 Jan 10
Posts: 13213
ID: 53948
Credit: 218,265,066
RAC: 12,106
The "Shut up already!" badge:  This loud mouth has mansplained on the forums over 10 thousand times!  Sheesh!!!Discovered the World's First GFN-19 prime!!!Discovered 1 mega primeFound 1 prime in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de PrimesFound 1 prime in the 2020 Tour de Primes321 LLR Ruby: Earned 2,000,000 credits (2,822,730)Cullen LLR Ruby: Earned 2,000,000 credits (2,005,249)ESP LLR Turquoise: Earned 5,000,000 credits (5,009,577)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,145,754)PPS LLR Jade: Earned 10,000,000 credits (12,843,762)PSP LLR Turquoise: Earned 5,000,000 credits (5,197,957)SoB LLR Sapphire: Earned 20,000,000 credits (34,291,181)SR5 LLR Jade: Earned 10,000,000 credits (10,004,590)SGS LLR Ruby: Earned 2,000,000 credits (2,276,011)TRP LLR Ruby: Earned 2,000,000 credits (2,737,347)Woodall LLR Ruby: Earned 2,000,000 credits (2,195,123)321 Sieve Turquoise: Earned 5,000,000 credits (9,403,130)Cullen/Woodall Sieve (suspended) Ruby: Earned 2,000,000 credits (4,170,256)Generalized Cullen/Woodall Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,059,304)PPS Sieve Sapphire: Earned 20,000,000 credits (20,114,159)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,035,522)TRP Sieve (suspended) Ruby: Earned 2,000,000 credits (2,051,121)AP 26/27 Jade: Earned 10,000,000 credits (10,114,260)GFN Emerald: Earned 50,000,000 credits (72,383,585)PSA Jade: Earned 10,000,000 credits (12,404,447)
Message 138377 - Posted: 27 Feb 2020 | 7:08:48 UTC

Everything below GFN-19 runs OCL 2, and that works.

GFN-19 runs OCL5 and that fails.
DYFL runs OCL5 and that fails.

GFN-20 runs OCL4, and it fails too.

GFN-21 and GFN-22 run OCL, but there's no tasks in those projects on your computer.

I suspect one of two things are causing this: either a bug in Apple's video driver (we've seen similar behavior in the past), or some sort of other issue preventing larger tasks from running.

I'll ask the devs to take a look, but I'm not sure there's anything they can do.

____________
My lucky number is 75898524288+1
(I am NOT an administrator anymore, so please don't PM me with questions. I can't help.)

Yves Gallot
Volunteer developer
Project scientist
Send message
Joined: 19 Aug 12
Posts: 553
ID: 164101
Credit: 304,715,793
RAC: 0
GFN Double Silver: Earned 200,000,000 credits (304,715,793)
Message 138379 - Posted: 27 Feb 2020 | 8:55:35 UTC
Last modified: 27 Feb 2020 | 8:57:30 UTC

The cause of the problem is AMD driver on Apple computers.
The same code runs with AMD GPUs on Windows and Linux. It also works on macOS with Nvidia GPUs.

OCL3, OCL4 and OCL5 fail but OCL and OCL2 do not.

Mark Rodenkirch and I are working on this problem but until now we don't understand: a large part of the code of OCL4 and OCL2 is identical except that OCL2 is more complex than OCL4 (3 primes vs 2 primes). Why the complex code is OK and the simple one is NOK?

In the meantime, one solution is to force OCL2 transform with the command line argument "-x OCL2".

rogue
Volunteer developer
Avatar
Send message
Joined: 8 Sep 07
Posts: 1194
ID: 12001
Credit: 18,565,548
RAC: 0
PPS LLR Bronze: Earned 10,000 credits (31,229)PSA Jade: Earned 10,000,000 credits (18,533,435)
Message 138383 - Posted: 27 Feb 2020 | 14:09:11 UTC - in response to Message 138379.

The cause of the problem is AMD driver on Apple computers.
The same code runs with AMD GPUs on Windows and Linux. It also works on macOS with Nvidia GPUs.

OCL3, OCL4 and OCL5 fail but OCL and OCL2 do not.

Mark Rodenkirch and I are working on this problem but until now we don't understand: a large part of the code of OCL4 and OCL2 is identical except that OCL2 is more complex than OCL4 (3 primes vs 2 primes). Why the complex code is OK and the simple one is NOK?

In the meantime, one solution is to force OCL2 transform with the command line argument "-x OCL2".


I'm going to away from my iMac for about three weeks starting on Sunday due to work travel, so I hope to spend some time on this before I leave.

rromanchuk
Send message
Joined: 23 Feb 20
Posts: 2
ID: 1241330
Credit: 638,102
RAC: 12
321 LLR Bronze: Earned 10,000 credits (45,385)ESP LLR Bronze: Earned 10,000 credits (32,357)Generalized Cullen/Woodall LLR Bronze: Earned 10,000 credits (12,264)PPS LLR Silver: Earned 100,000 credits (103,927)PPS Sieve Bronze: Earned 10,000 credits (13,484)AP 26/27 Silver: Earned 100,000 credits (165,763)GFN Silver: Earned 100,000 credits (251,672)
Message 138394 - Posted: 27 Feb 2020 | 19:47:37 UTC - in response to Message 138383.
Last modified: 27 Feb 2020 | 19:48:05 UTC

Starting a GFN-21 for a sanity test. Looks like it correctly selected OCL here. One thing to keep in mind is that it looks like there was a driver update with the Jan 2020 build Catalina (10.15.3 (19D76))

geneferocl 3.3.3-2 (Apple-x86/OpenCL/64-bit) Copyright 2001-2018, Yves Gallot Copyright 2009, Mark Rodenkirch, David Underbakke Copyright 2010-2012, Shoichiro Yamada, Ken Brazier Copyright 2011-2014, Michael Goetz, Ronald Schneider Copyright 2011-2018, Iain Bethune Genefer is free source code, under the MIT license. Command line: geneferocl_macintel_3.3.3-2 -boinc -q 555658^2097152+1 --device 0 Normal priority change failed (needs superuser privileges. Checking available transform implementations... A benchmark is needed to determine best transform, testing available transform implementations... Testing OCL transform... Running on platform 'Apple', device 'AMD Radeon Pro Vega 56 Compute Engine', vendor 'AMD', version 'OpenCL 1.2 ' and driver '1.2 (Jan 13 2020 20:12:46)'. 56 computeUnits @ 1250MHz, memSize=8176MB, cacheSize=0kB, cacheLineSize=0B, localMemSize=64kB, maxWorkGroupSize=256. Testing OCL2 transform... Testing OCL3 transform... Testing OCL4 transform... Testing OCL5 transform... Benchmarks completed (13.685 seconds). Using OCL transform Starting initialization... Initialization complete (23.125 seconds). Testing 555658^2097152+1... Estimated time for 555658^2097152+1 is 15:40:00

rogue
Volunteer developer
Avatar
Send message
Joined: 8 Sep 07
Posts: 1194
ID: 12001
Credit: 18,565,548
RAC: 0
PPS LLR Bronze: Earned 10,000 credits (31,229)PSA Jade: Earned 10,000,000 credits (18,533,435)
Message 138471 - Posted: 29 Feb 2020 | 21:11:22 UTC - in response to Message 138394.

I suggest that if you are running on a Mac with AMD that you run geneferocl options 3 and 4 (primality and residue tests) for each ocl variant. If you have issues with any variants, then it tells me that you have a potentially buggy driver. If anyone can run both on their Mac with AMD and have zero issues with any variant, please let me know.

Yves and I have narrowed down the cause and can get ocl4 transforms working, but more code changes will be necessary.

I'm also working with Apple because this really appears to be an issue with Apple's AMD OpenCL driver.

Matt
Send message
Joined: 15 May 20
Posts: 1
ID: 1261295
Credit: 1,011,701
RAC: 38,637
PPS Sieve Gold: Earned 500,000 credits (509,021)AP 26/27 Silver: Earned 100,000 credits (137,462)GFN Silver: Earned 100,000 credits (364,663)
Message 140381 - Posted: 21 May 2020 | 17:54:05 UTC - in response to Message 138471.

Replying to this as it seems to be potentially linked to an issue I'm having. I'm new to crunching and to PrimeGrid and one of my devices is my MacBook Pro. Had two "successful, marked invalid" results today on the MacBook.

They can be found here and here.

It only seems to happen on Genefer tasks. Just waiting for the first one to finish on my iMac to see if it has the same issue with them.

Post to thread

Message boards : Generalized Fermat Prime Search : All of my GFN19 and above are being marked invalid, could use another set of eyes here.

[Return to PrimeGrid main page]
DNS Powered by DNSEXIT.COM
Copyright © 2005 - 2020 Rytis Slatkevičius (contact) and PrimeGrid community. Server load 2.26, 2.69, 2.95
Generated 31 May 2020 | 7:01:31 UTC