View Single Post
Old 2020-11-19, 22:32   #5
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

10110101111002 Posts
Default Mlucas builds for Linux (or for running on WSL on Windows)

How I built Mlucas (v19) in WSL / Ubuntu 18.04 for multiple processor types
(rename the executable between builds to identify the flavor)
Note these are mostly untested.

basic x86-64, & presumably the best bet for Knight's Corner Xeon Phi:
Code:
gcc -c -O3 -DUSE_THREADS ../src/*.c >& build.log
grep error build.log
gcc -o Mlucas *.o -lm -lpthread -lrt
SSE2 such as Xeon x5650, e5645, E5-26xx
Code:
gcc -c -O3 -DUSE_SSE2 -DUSE_THREADS ../src/*.c >& build.log
grep error build.log
gcc -o Mlucas *.o -lm -lpthread -lrt
FMA3 such as i7-7500U, i7-8750H
Code:
gcc -c -O3 -DUSE_AVX2 -mavx2 -DUSE_THREADS ../src/*.c >& build.log
grep error build.log
gcc -o Mlucas *.o -lm -lpthread -lrt
AVX-512 such as (Knights Landing MIC) Xeon Phi 7250
Code:
gcc -c -O3 -DUSE_AVX512 -march=knl -DUSE_THREADS ../src/*.c >& build.log
grep error build.log
gcc -o Mlucas *.o -lm -lpthread -lrt
AVX-512 such as i5-1035G1, i7-1165G7
Code:
gcc -c -O3 -DUSE_AVX512 -march=skylake-avx512 -DUSE_THREADS ../src/*.c >& build.log
grep error build.log
gcc -o Mlucas *.o -lm -lpthread -lrt
The above are for linux multithreaded build/run environments. For Windows single-threaded end use see next post.
https://www.mersenneforum.org/mayer/README.html

Attachments are Mlucas v19 builds intended for Linux and were built on Ubuntu v18.04 running on WSL / Win10 on an i7-8750H.


Top of reference tree: https://www.mersenneforum.org/showpo...22&postcount=1
Attached Files
File Type: gz mlucas-avx512-knl-mt.tar.gz (1.84 MB, 140 views)
File Type: gz mlucas-avx512-skylake-mt.tar.gz (1.82 MB, 141 views)
File Type: gz mlucas-fma3-mt.tar.gz (1.86 MB, 147 views)
File Type: gz mlucas-sse2-mt.tar.gz (1.70 MB, 160 views)
File Type: gz mlucas-x86-mt.tar.gz (1.72 MB, 147 views)

Last fiddled with by kriesel on 2021-08-31 at 23:52 Reason: minor edits
kriesel is online now