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 : AP26 - AP27 Search : Need Testers new Linux32 SIMD-SSE/SSE2 app

Author Message
Profile mfl0pProject donor
Project administrator
Volunteer developer
Send message
Joined: 5 Apr 09
Posts: 216
ID: 38042
Credit: 840,231,450
RAC: 5,996
Discovered 1 mega primeDiscovered 2 AP26sFound 1 prime in the 2019 Tour de PrimesFound 2 primes in the 2020 Tour de PrimesFound 1 prime in the 2020 Tour de Primes Mountain Stage321 LLR Silver: Earned 100,000 credits (317,098)Cullen LLR Silver: Earned 100,000 credits (314,927)ESP LLR Ruby: Earned 2,000,000 credits (3,689,780)Generalized Cullen/Woodall LLR Amethyst: Earned 1,000,000 credits (1,696,299)PPS LLR Sapphire: Earned 20,000,000 credits (28,432,230)PSP LLR Silver: Earned 100,000 credits (413,594)SoB LLR Jade: Earned 10,000,000 credits (11,581,286)SR5 LLR Gold: Earned 500,000 credits (690,610)SGS LLR Amethyst: Earned 1,000,000 credits (1,086,646)TRP LLR Turquoise: Earned 5,000,000 credits (5,648,504)Woodall LLR Silver: Earned 100,000 credits (218,868)321 Sieve Turquoise: Earned 5,000,000 credits (5,425,049)PPS Sieve Emerald: Earned 50,000,000 credits (57,903,667)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Bronze: Earned 10,000 credits (47,384)TRP Sieve (suspended) Bronze: Earned 10,000 credits (49,560)AP 26/27 Double Gold: Earned 500,000,000 credits (598,740,860)GFN Double Bronze: Earned 100,000,000 credits (123,519,380)PSA Silver: Earned 100,000 credits (456,000)
Message 18171 - Posted: 26 Sep 2009 | 1:28:40 UTC
Last modified: 26 Sep 2009 | 1:30:12 UTC

Anyone with 32 bit Linux x86 CPUs, it would be great if you could test this new application for me:

http://mfl0p.angelfire.com/ap26-x86-sse-sse2-linux

Please test the same as the Linux64 thread method.

This application has been tested to run on kernels 2.4.31 and 2.6 successfully.

The application is similar to the 64bit SIMD application in that it applies SIMD SSE or SSE2 instructions in place of costly division in part of the SITO array lookups.

CPU type and features are checked automatically at runtime for SSE or SSE2 support, and optimized code will be run depending on the test. If the processor supports neither, then the base x86 C code will be selected.

Intel Compiler 11.1 was used during compile, with static linking and -mia32 flag. Therefore, any processor Pentium 1 or better should be able to run the program according to Intel docs: "Generates code that will run on any Pentium or later processor"

You may be thinking, why does the optimized code require SSE instead of MMX? Good question, especially since integers are used in the SIMD code. Intel's Pentium III was the first CPU with SSE. With SSE came the added integer extract function. I tested pure MMX code with a manual vector element extract and it was no faster than the regular C code. The built-in SSE integer element extract function made the MMX code much, much faster.


32bit cpus with SSE2 support, only SSE support, and CPUs without either SSE/SSE2 need to be tested. All tests I have run by manually picking the code path have tested ok so far.

Thanks,
Bryan
____________

Profile mfl0pProject donor
Project administrator
Volunteer developer
Send message
Joined: 5 Apr 09
Posts: 216
ID: 38042
Credit: 840,231,450
RAC: 5,996
Discovered 1 mega primeDiscovered 2 AP26sFound 1 prime in the 2019 Tour de PrimesFound 2 primes in the 2020 Tour de PrimesFound 1 prime in the 2020 Tour de Primes Mountain Stage321 LLR Silver: Earned 100,000 credits (317,098)Cullen LLR Silver: Earned 100,000 credits (314,927)ESP LLR Ruby: Earned 2,000,000 credits (3,689,780)Generalized Cullen/Woodall LLR Amethyst: Earned 1,000,000 credits (1,696,299)PPS LLR Sapphire: Earned 20,000,000 credits (28,432,230)PSP LLR Silver: Earned 100,000 credits (413,594)SoB LLR Jade: Earned 10,000,000 credits (11,581,286)SR5 LLR Gold: Earned 500,000 credits (690,610)SGS LLR Amethyst: Earned 1,000,000 credits (1,086,646)TRP LLR Turquoise: Earned 5,000,000 credits (5,648,504)Woodall LLR Silver: Earned 100,000 credits (218,868)321 Sieve Turquoise: Earned 5,000,000 credits (5,425,049)PPS Sieve Emerald: Earned 50,000,000 credits (57,903,667)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Bronze: Earned 10,000 credits (47,384)TRP Sieve (suspended) Bronze: Earned 10,000 credits (49,560)AP 26/27 Double Gold: Earned 500,000,000 credits (598,740,860)GFN Double Bronze: Earned 100,000,000 credits (123,519,380)PSA Silver: Earned 100,000 credits (456,000)
Message 18172 - Posted: 26 Sep 2009 | 1:41:37 UTC

For test range 366384 366384 0

Test Computer: Intel Pentium III 1ghz DSL i386 Linux
Primegrid 32bit 1.02 app: 25m 51s
New 32bit SIMD app (SSE): 16m 57s


Test Computer: Intel Core2 Quad Q6600 2.4ghz Debian i386 Linux
Primegrid 32bit 1.02 app: 7m 35s
New 32bit SIMD app (SSE2): 5m 4s


Test Computer: AMD Athlon 64x2 6000+ 3.0ghz Ubuntu x64 Linux
Primegrid 32bit 1.02 app: 6m 8s
New 32bit SIMD app (SSE2): 5m 17s


All results files match.
____________

Scott BrownProject donor
Volunteer moderator
Project administrator
Volunteer tester
Project scientist
Avatar
Send message
Joined: 17 Oct 05
Posts: 2125
ID: 1178
Credit: 8,404,284,720
RAC: 302,801
Discovered the World's First base 116 Generalized Cullen prime!!!Discovered 26 mega primesEliminated 7 conjecture "k"sDiscovered 1 Sophie Germain pairDiscovered 2 Fermat divisors2012 Tour de Primes highest prime count2012 Tour de Primes most Mountain Stage primes2015 Tour de Primes highest prime count2016 Tour de Primes highest prime countFound 23 primes in the 2018 Tour de PrimesFound 1 mega prime in the 2018 Tour de PrimesFound 2 primes in the 2018 Tour de Primes Mountain Stage2019 Tour de Primes highest prime countFound 22 primes in the 2019 Tour de Primes2020 Tour de Primes highest prime scoreFound 21 primes in the 2020 Tour de PrimesFound 4 mega primes in the 2020 Tour de Primes321 LLR Double Bronze: Earned 100,000,000 credits (183,750,610)Cullen LLR Double Bronze: Earned 100,000,000 credits (103,870,990)ESP LLR Double Silver: Earned 200,000,000 credits (203,249,784)Generalized Cullen/Woodall LLR Double Bronze: Earned 100,000,000 credits (109,580,172)PPS LLR Double Gold: Earned 500,000,000 credits (639,556,045)PSP LLR Double Bronze: Earned 100,000,000 credits (126,982,721)SoB LLR Double Bronze: Earned 100,000,000 credits (135,747,083)SR5 LLR Double Silver: Earned 200,000,000 credits (214,194,272)SGS LLR Double Silver: Earned 200,000,000 credits (200,483,433)TPS LLR (retired) Silver: Earned 100,000 credits (235,439)TRP LLR Double Silver: Earned 200,000,000 credits (201,215,056)Woodall LLR Double Bronze: Earned 100,000,000 credits (101,447,725)321 Sieve Double Silver: Earned 200,000,000 credits (235,451,253)Cullen/Woodall Sieve (suspended) Emerald: Earned 50,000,000 credits (83,794,448)Generalized Cullen/Woodall Sieve (suspended) Double Silver: Earned 200,000,000 credits (285,139,652)PPS Sieve Double Ruby: Earned 2,000,000,000 credits (2,663,438,093)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Double Silver: Earned 200,000,000 credits (203,523,358)TRP Sieve (suspended) Double Silver: Earned 200,000,000 credits (201,489,157)AP 26/27 Double Silver: Earned 200,000,000 credits (373,919,390)GFN Double Amethyst: Earned 1,000,000,000 credits (1,878,138,496)PSA Double Silver: Earned 200,000,000 credits (259,058,048)
Message 18174 - Posted: 26 Sep 2009 | 3:42:42 UTC


Unable to get the app to run on a Pentium 4 (Prescott) 3.2 running Ubuntu 9.04 kernel 2.6.28-14-generic. Command line returns a "no such file or directory" message. I am using the command line from the 64-bit thread with the app name changed to match the 32-bit app that was downloaded to the desktop.

Been a while since I played in Linux...just getting my feet wet again with this box, so this could be entirely user issues. Any ideas?


____________
141941*2^4299438-1 is prime!


Profile mfl0pProject donor
Project administrator
Volunteer developer
Send message
Joined: 5 Apr 09
Posts: 216
ID: 38042
Credit: 840,231,450
RAC: 5,996
Discovered 1 mega primeDiscovered 2 AP26sFound 1 prime in the 2019 Tour de PrimesFound 2 primes in the 2020 Tour de PrimesFound 1 prime in the 2020 Tour de Primes Mountain Stage321 LLR Silver: Earned 100,000 credits (317,098)Cullen LLR Silver: Earned 100,000 credits (314,927)ESP LLR Ruby: Earned 2,000,000 credits (3,689,780)Generalized Cullen/Woodall LLR Amethyst: Earned 1,000,000 credits (1,696,299)PPS LLR Sapphire: Earned 20,000,000 credits (28,432,230)PSP LLR Silver: Earned 100,000 credits (413,594)SoB LLR Jade: Earned 10,000,000 credits (11,581,286)SR5 LLR Gold: Earned 500,000 credits (690,610)SGS LLR Amethyst: Earned 1,000,000 credits (1,086,646)TRP LLR Turquoise: Earned 5,000,000 credits (5,648,504)Woodall LLR Silver: Earned 100,000 credits (218,868)321 Sieve Turquoise: Earned 5,000,000 credits (5,425,049)PPS Sieve Emerald: Earned 50,000,000 credits (57,903,667)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Bronze: Earned 10,000 credits (47,384)TRP Sieve (suspended) Bronze: Earned 10,000 credits (49,560)AP 26/27 Double Gold: Earned 500,000,000 credits (598,740,860)GFN Double Bronze: Earned 100,000,000 credits (123,519,380)PSA Silver: Earned 100,000 credits (456,000)
Message 18175 - Posted: 26 Sep 2009 | 4:25:02 UTC - in response to Message 18174.

Sounds like you need to add execute ability to the file for the user.

Typing the following in the download directory:
ls -l

Should give something like this:
-rw-r--r-- 1 administrator administrator 2211360 2009-09-26 00:20 ap26-x86-sse-sse2-linux

So we have read and write ability. Now add execute, Ex:
chmod +x ap26-x86-sse-sse2

Now, ls -l gives:
-rwxr-xr-x 1 administrator administrator 2211360 2009-09-26 00:20 ap26-x86-sse-sse2-linux

And you can run the file:
time ./ap26-x86-sse-sse2-linux 366384 366384 0

Hope this helps


Unable to get the app to run on a Pentium 4 (Prescott) 3.2 running Ubuntu 9.04 kernel 2.6.28-14-generic. Command line returns a "no such file or directory" message. I am using the command line from the 64-bit thread with the app name changed to match the 32-bit app that was downloaded to the desktop.

Been a while since I played in Linux...just getting my feet wet again with this box, so this could be entirely user issues. Any ideas?



____________

Scott BrownProject donor
Volunteer moderator
Project administrator
Volunteer tester
Project scientist
Avatar
Send message
Joined: 17 Oct 05
Posts: 2125
ID: 1178
Credit: 8,404,284,720
RAC: 302,801
Discovered the World's First base 116 Generalized Cullen prime!!!Discovered 26 mega primesEliminated 7 conjecture "k"sDiscovered 1 Sophie Germain pairDiscovered 2 Fermat divisors2012 Tour de Primes highest prime count2012 Tour de Primes most Mountain Stage primes2015 Tour de Primes highest prime count2016 Tour de Primes highest prime countFound 23 primes in the 2018 Tour de PrimesFound 1 mega prime in the 2018 Tour de PrimesFound 2 primes in the 2018 Tour de Primes Mountain Stage2019 Tour de Primes highest prime countFound 22 primes in the 2019 Tour de Primes2020 Tour de Primes highest prime scoreFound 21 primes in the 2020 Tour de PrimesFound 4 mega primes in the 2020 Tour de Primes321 LLR Double Bronze: Earned 100,000,000 credits (183,750,610)Cullen LLR Double Bronze: Earned 100,000,000 credits (103,870,990)ESP LLR Double Silver: Earned 200,000,000 credits (203,249,784)Generalized Cullen/Woodall LLR Double Bronze: Earned 100,000,000 credits (109,580,172)PPS LLR Double Gold: Earned 500,000,000 credits (639,556,045)PSP LLR Double Bronze: Earned 100,000,000 credits (126,982,721)SoB LLR Double Bronze: Earned 100,000,000 credits (135,747,083)SR5 LLR Double Silver: Earned 200,000,000 credits (214,194,272)SGS LLR Double Silver: Earned 200,000,000 credits (200,483,433)TPS LLR (retired) Silver: Earned 100,000 credits (235,439)TRP LLR Double Silver: Earned 200,000,000 credits (201,215,056)Woodall LLR Double Bronze: Earned 100,000,000 credits (101,447,725)321 Sieve Double Silver: Earned 200,000,000 credits (235,451,253)Cullen/Woodall Sieve (suspended) Emerald: Earned 50,000,000 credits (83,794,448)Generalized Cullen/Woodall Sieve (suspended) Double Silver: Earned 200,000,000 credits (285,139,652)PPS Sieve Double Ruby: Earned 2,000,000,000 credits (2,663,438,093)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Double Silver: Earned 200,000,000 credits (203,523,358)TRP Sieve (suspended) Double Silver: Earned 200,000,000 credits (201,489,157)AP 26/27 Double Silver: Earned 200,000,000 credits (373,919,390)GFN Double Amethyst: Earned 1,000,000,000 credits (1,878,138,496)PSA Double Silver: Earned 200,000,000 credits (259,058,048)
Message 18176 - Posted: 26 Sep 2009 | 5:13:17 UTC

Thanks Bryan for the help!


Test Computer: Pentium 4 Prescott 3.2ghz (HT) Ubuntu 9.04
Primegrid 32bit 1.02 app: 11m 58s
New 32bit SIMD app (SSE2): 8m 12s


All results files match.



____________
141941*2^4299438-1 is prime!


vasmProject donor
Volunteer tester
Avatar
Send message
Joined: 6 Dec 08
Posts: 47
ID: 32604
Credit: 990,892
RAC: 0
321 LLR Bronze: Earned 10,000 credits (10,190)Cullen LLR Bronze: Earned 10,000 credits (23,978)PPS LLR Bronze: Earned 10,000 credits (50,765)PSP LLR Bronze: Earned 10,000 credits (11,013)SoB LLR Bronze: Earned 10,000 credits (16,508)SR5 LLR Bronze: Earned 10,000 credits (10,703)SGS LLR Bronze: Earned 10,000 credits (10,005)TRP LLR Bronze: Earned 10,000 credits (10,303)Woodall LLR Bronze: Earned 10,000 credits (11,537)321 Sieve Bronze: Earned 10,000 credits (21,060)Cullen/Woodall Sieve (suspended) Bronze: Earned 10,000 credits (22,668)PPS Sieve Silver: Earned 100,000 credits (260,686)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Bronze: Earned 10,000 credits (40,185)TRP Sieve (suspended) Bronze: Earned 10,000 credits (21,280)AP 26/27 Silver: Earned 100,000 credits (149,718)GFN Bronze: Earned 10,000 credits (45,568)PSA Silver: Earned 100,000 credits (271,875)
Message 18200 - Posted: 28 Sep 2009 | 0:17:53 UTC

Test Computer: Pentium M750 1.86GHz Ubuntu 8.10 32bit
Primegrid 32bit 1.02 app: 12m 59s
New 32bit SIMD app (SSE2): 10m 27s

Results files match.

Profile mfl0pProject donor
Project administrator
Volunteer developer
Send message
Joined: 5 Apr 09
Posts: 216
ID: 38042
Credit: 840,231,450
RAC: 5,996
Discovered 1 mega primeDiscovered 2 AP26sFound 1 prime in the 2019 Tour de PrimesFound 2 primes in the 2020 Tour de PrimesFound 1 prime in the 2020 Tour de Primes Mountain Stage321 LLR Silver: Earned 100,000 credits (317,098)Cullen LLR Silver: Earned 100,000 credits (314,927)ESP LLR Ruby: Earned 2,000,000 credits (3,689,780)Generalized Cullen/Woodall LLR Amethyst: Earned 1,000,000 credits (1,696,299)PPS LLR Sapphire: Earned 20,000,000 credits (28,432,230)PSP LLR Silver: Earned 100,000 credits (413,594)SoB LLR Jade: Earned 10,000,000 credits (11,581,286)SR5 LLR Gold: Earned 500,000 credits (690,610)SGS LLR Amethyst: Earned 1,000,000 credits (1,086,646)TRP LLR Turquoise: Earned 5,000,000 credits (5,648,504)Woodall LLR Silver: Earned 100,000 credits (218,868)321 Sieve Turquoise: Earned 5,000,000 credits (5,425,049)PPS Sieve Emerald: Earned 50,000,000 credits (57,903,667)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Bronze: Earned 10,000 credits (47,384)TRP Sieve (suspended) Bronze: Earned 10,000 credits (49,560)AP 26/27 Double Gold: Earned 500,000,000 credits (598,740,860)GFN Double Bronze: Earned 100,000,000 credits (123,519,380)PSA Silver: Earned 100,000 credits (456,000)
Message 18497 - Posted: 10 Oct 2009 | 22:25:48 UTC

For now i've removed the file. I would like to improve the MMX code before this is released, so I can do a Windows 32 bit, too.

Thanks.
____________

Profile mfl0pProject donor
Project administrator
Volunteer developer
Send message
Joined: 5 Apr 09
Posts: 216
ID: 38042
Credit: 840,231,450
RAC: 5,996
Discovered 1 mega primeDiscovered 2 AP26sFound 1 prime in the 2019 Tour de PrimesFound 2 primes in the 2020 Tour de PrimesFound 1 prime in the 2020 Tour de Primes Mountain Stage321 LLR Silver: Earned 100,000 credits (317,098)Cullen LLR Silver: Earned 100,000 credits (314,927)ESP LLR Ruby: Earned 2,000,000 credits (3,689,780)Generalized Cullen/Woodall LLR Amethyst: Earned 1,000,000 credits (1,696,299)PPS LLR Sapphire: Earned 20,000,000 credits (28,432,230)PSP LLR Silver: Earned 100,000 credits (413,594)SoB LLR Jade: Earned 10,000,000 credits (11,581,286)SR5 LLR Gold: Earned 500,000 credits (690,610)SGS LLR Amethyst: Earned 1,000,000 credits (1,086,646)TRP LLR Turquoise: Earned 5,000,000 credits (5,648,504)Woodall LLR Silver: Earned 100,000 credits (218,868)321 Sieve Turquoise: Earned 5,000,000 credits (5,425,049)PPS Sieve Emerald: Earned 50,000,000 credits (57,903,667)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Bronze: Earned 10,000 credits (47,384)TRP Sieve (suspended) Bronze: Earned 10,000 credits (49,560)AP 26/27 Double Gold: Earned 500,000,000 credits (598,740,860)GFN Double Bronze: Earned 100,000,000 credits (123,519,380)PSA Silver: Earned 100,000 credits (456,000)
Message 18517 - Posted: 11 Oct 2009 | 15:08:45 UTC
Last modified: 11 Oct 2009 | 15:09:10 UTC

Ok, 32bit Linux file is back on website with updated source from Win32 app used, new URL:

http://mfl0p.angelfire.com/testing/index.html

I really only need someone to test this on a pre-SSE computer. Thanks to those that have tested this already.

Bryan
____________

Message boards : AP26 - AP27 Search : Need Testers new Linux32 SIMD-SSE/SSE2 app

[Return to PrimeGrid main page]
DNS Powered by DNSEXIT.COM
Copyright © 2005 - 2020 Rytis Slatkevičius (contact) and PrimeGrid community. Server load 0.00, 0.01, 0.00
Generated 2 Dec 2020 | 18:45:36 UTC