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 : Proth Prime Search : Running PPS sieve under Mesa3D 17.3.0rcX

Author Message
Profile matszpk
Send message
Joined: 4 Jun 08
Posts: 22
ID: 23704
Credit: 144,121,740
RAC: 0
321 LLR Bronze: Earned 10,000 credits (21,394)SGS LLR Bronze: Earned 10,000 credits (38,357)Woodall LLR Bronze: Earned 10,000 credits (79,240)Cullen/Woodall Sieve (suspended) Silver: Earned 100,000 credits (102,235)PPS Sieve Double Bronze: Earned 100,000,000 credits (140,628,298)TRP Sieve (suspended) Bronze: Earned 10,000 credits (44,578)GFN Ruby: Earned 2,000,000 credits (3,200,622)
Message 111929 - Posted: 27 Nov 2017 | 16:27:42 UTC
Last modified: 27 Nov 2017 | 16:34:02 UTC

I made small fix for Mesa3D that fixes segfault on PPS Sieve OpenCL application:

file 'gallium/drivers/radeon/r600_pipe_common.c' (at r600_disk_cache_create function):

if (disk_cache_get_function_timestamp(LLVMInitializeAMDGPUTargetInfo, &llvm_timestamp)) { /*res = asprintf(&timestamp_str, "%u_%u", mesa_timestamp, llvm_timestamp);*/ timestamp_str = malloc(100); sprintf(timestamp_str, "%u_%u", mesa_timestamp, llvm_timestamp); }


diff:
diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/gallium/drivers/radeon/r600_pipe_common.c index b77d85901f..40c713a422 100644 --- a/src/gallium/drivers/radeon/r600_pipe_common.c +++ b/src/gallium/drivers/radeon/r600_pipe_common.c @@ -914,7 +914,10 @@ static void r600_disk_cache_create(struct r600_common_screen *rscreen) if (disk_cache_get_function_timestamp(LLVMInitializeAMDGPUTargetInfo, &llvm_timestamp)) { - res = asprintf(&timestamp_str, "%u_%u", + /*res = asprintf(&timestamp_str, "%u_%u", + mesa_timestamp, llvm_timestamp);*/ + timestamp_str = malloc(100); + sprintf(timestamp_str, "%u_%u", mesa_timestamp, llvm_timestamp); }


works good on my RX 480 and RX VEGA (but slower than on propietary AMD OpenCL drivers).

stream
Volunteer developer
Volunteer tester
Send message
Joined: 1 Mar 14
Posts: 567
ID: 301928
Credit: 451,650,562
RAC: 18,922
Discovered 1 mega primeFound 1 prime in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de Primes321 LLR Turquoise: Earned 5,000,000 credits (9,919,609)Cullen LLR Turquoise: Earned 5,000,000 credits (9,934,320)ESP LLR Turquoise: Earned 5,000,000 credits (9,909,084)Generalized Cullen/Woodall LLR Turquoise: Earned 5,000,000 credits (5,921,052)PPS LLR Turquoise: Earned 5,000,000 credits (7,262,900)PSP LLR Turquoise: Earned 5,000,000 credits (5,089,560)SoB LLR Turquoise: Earned 5,000,000 credits (5,824,522)SR5 LLR Turquoise: Earned 5,000,000 credits (5,399,087)SGS LLR Turquoise: Earned 5,000,000 credits (5,393,235)TRP LLR Turquoise: Earned 5,000,000 credits (9,911,706)Woodall LLR Turquoise: Earned 5,000,000 credits (5,011,851)321 Sieve Sapphire: Earned 20,000,000 credits (20,004,228)Generalized Cullen/Woodall Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,047,667)PPS Sieve Sapphire: Earned 20,000,000 credits (20,866,490)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,043,271)TRP Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,015,177)AP 26/27 Sapphire: Earned 20,000,000 credits (20,045,194)GFN Emerald: Earned 50,000,000 credits (50,750,168)PSA Double Silver: Earned 200,000,000 credits (200,301,443)
Message 111936 - Posted: 28 Nov 2017 | 6:21:31 UTC - in response to Message 111929.

All what your patch does is leaving "res" uninitialized. Most probably code below will change behavior due to different (or random) value of "res".

Profile composite
Volunteer tester
Send message
Joined: 16 Feb 10
Posts: 706
ID: 55391
Credit: 559,368,812
RAC: 258,927
Discovered 2 mega primesFound 1 prime in the 2018 Tour de Primes321 LLR Turquoise: Earned 5,000,000 credits (5,090,406)Cullen LLR Gold: Earned 500,000 credits (776,297)ESP LLR Ruby: Earned 2,000,000 credits (3,099,324)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,056,207)PPS LLR Jade: Earned 10,000,000 credits (11,829,675)PSP LLR Ruby: Earned 2,000,000 credits (4,277,918)SoB LLR Sapphire: Earned 20,000,000 credits (20,233,229)SR5 LLR Turquoise: Earned 5,000,000 credits (5,978,312)SGS LLR Ruby: Earned 2,000,000 credits (2,932,365)TRP LLR Turquoise: Earned 5,000,000 credits (7,021,680)Woodall LLR Amethyst: Earned 1,000,000 credits (1,693,614)321 Sieve Jade: Earned 10,000,000 credits (13,079,900)Cullen/Woodall Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,571,178)Generalized Cullen/Woodall Sieve (suspended) Emerald: Earned 50,000,000 credits (50,009,610)PPS Sieve Double Silver: Earned 200,000,000 credits (239,331,508)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Jade: Earned 10,000,000 credits (10,165,888)TRP Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,071,454)AP 26/27 Ruby: Earned 2,000,000 credits (3,325,126)GFN Emerald: Earned 50,000,000 credits (50,062,736)PSA Double Bronze: Earned 100,000,000 credits (102,762,384)
Message 111938 - Posted: 28 Nov 2017 | 7:02:55 UTC

That's not saying that your segfaults won't return. It can be difficult to pinpoint the cause.

I was getting segfaults on GFN at the end of a run when messing with source code, which then continued to happen with normal production binaries. That was pretty jarring until I found that the genefer.dat benchmarks file was for the wrong set of transforms as a result of my experimentation. Once I realized this, the problem was solved trivially by deleting the genefer.dat file and letting the program recreate it from scratch.

Profile matszpk
Send message
Joined: 4 Jun 08
Posts: 22
ID: 23704
Credit: 144,121,740
RAC: 0
321 LLR Bronze: Earned 10,000 credits (21,394)SGS LLR Bronze: Earned 10,000 credits (38,357)Woodall LLR Bronze: Earned 10,000 credits (79,240)Cullen/Woodall Sieve (suspended) Silver: Earned 100,000 credits (102,235)PPS Sieve Double Bronze: Earned 100,000,000 credits (140,628,298)TRP Sieve (suspended) Bronze: Earned 10,000 credits (44,578)GFN Ruby: Earned 2,000,000 credits (3,200,622)
Message 111942 - Posted: 28 Nov 2017 | 11:29:37 UTC - in response to Message 111936.
Last modified: 28 Nov 2017 | 11:39:30 UTC

Oh, no. actually, i was omitting res value. but was initialized, so wrong patch disables disk cache for shaders.
new corrected path (in file 'gallium/drivers/radeon/r600_pipe_common.c' (at r600_disk_cache_create function):

/*res = asprintf(&timestamp_str, "%u_%u", mesa_timestamp, llvm_timestamp);*/ timestamp_str = malloc(100); res = sprintf(timestamp_str, "%u_%u", mesa_timestamp, llvm_timestamp);


patch:

diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/gallium/drivers/radeon/r600_pipe_common.c index b77d85901f..2e83c83754 100644 --- a/src/gallium/drivers/radeon/r600_pipe_common.c +++ b/src/gallium/drivers/radeon/r600_pipe_common.c @@ -914,7 +914,10 @@ static void r600_disk_cache_create(struct r600_common_screen *rscreen) if (disk_cache_get_function_timestamp(LLVMInitializeAMDGPUTargetInfo, &llvm_timestamp)) { - res = asprintf(&timestamp_str, "%u_%u", + /*res = asprintf(&timestamp_str, "%u_%u", + mesa_timestamp, llvm_timestamp);*/ + timestamp_str = malloc(100); + res = sprintf(timestamp_str, "%u_%u", mesa_timestamp, llvm_timestamp); }

Profile matszpk
Send message
Joined: 4 Jun 08
Posts: 22
ID: 23704
Credit: 144,121,740
RAC: 0
321 LLR Bronze: Earned 10,000 credits (21,394)SGS LLR Bronze: Earned 10,000 credits (38,357)Woodall LLR Bronze: Earned 10,000 credits (79,240)Cullen/Woodall Sieve (suspended) Silver: Earned 100,000 credits (102,235)PPS Sieve Double Bronze: Earned 100,000,000 credits (140,628,298)TRP Sieve (suspended) Bronze: Earned 10,000 credits (44,578)GFN Ruby: Earned 2,000,000 credits (3,200,622)
Message 111943 - Posted: 28 Nov 2017 | 12:09:33 UTC

Stupid question: Can I fix my the first post in this thread? Or, can anyone fix that stupid bug in first post? I can't find option edit my first post.

Profile Michael GoetzProject donor
Volunteer moderator
Project administrator
Project scientist
Avatar
Send message
Joined: 21 Jan 10
Posts: 12911
ID: 53948
Credit: 194,845,566
RAC: 205,664
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 Primes321 LLR Ruby: Earned 2,000,000 credits (2,063,182)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 Turquoise: Earned 5,000,000 credits (5,962,946)PSP LLR Ruby: Earned 2,000,000 credits (2,632,269)SoB LLR Sapphire: Earned 20,000,000 credits (34,221,148)SR5 LLR Turquoise: Earned 5,000,000 credits (8,293,415)SGS LLR Ruby: Earned 2,000,000 credits (2,012,222)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 (5,046,112)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,110,788)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,098,088)GFN Emerald: Earned 50,000,000 credits (65,591,694)PSA Jade: Earned 10,000,000 credits (12,404,447)
Message 111947 - Posted: 28 Nov 2017 | 14:55:35 UTC - in response to Message 111943.

Stupid question: Can I fix my the first post in this thread? Or, can anyone fix that stupid bug in first post? I can't find option edit my first post.


You can only edit a post for the first 15 minutes after it's posted. After that just post a new message with revisions.
____________
Please do not PM me with support questions. Ask on the forums instead. Thank you!

My lucky number is 75898524288+1

Message boards : Proth Prime Search : Running PPS sieve under Mesa3D 17.3.0rcX

[Return to PrimeGrid main page]
DNS Powered by DNSEXIT.COM
Copyright © 2005 - 2019 Rytis Slatkevičius (contact) and PrimeGrid community. Server load 3.78, 2.93, 2.38
Generated 14 Oct 2019 | 2:11:16 UTC