View Single Post
Old 2018-04-30, 03:17   #11
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

64638 Posts
Default

The next thing I would try is to use the trunk version of YAFU:

First, rename your current yafu directory to yafu-orig:
Code:
mv ~/Math/yafu ~/Math/yafu-orig
Next, checkout the code/trunk versin of YAFU:
Code:
svn co https://svn.code.sf.net/p/yafu/code/trunk $HOME/Math/yafu
Next, move into the Math/yafu directory and edit the Makefile:

Change:
Code:
else
    OBJ_EXT = .o

    INC += -I../gmp/include
    LIBS += -L../gmp/lib/linux/x86_64

    INC += -I../gmp-ecm/include/linux
    LIBS += -L../gmp-ecm/lib/linux/x86_64
To:
Code:
else
    OBJ_EXT = .o

    INC += -I/usr/local/lib/
    LIBS += -L/usr/local/lib/

    #INC += -I../gmp-ecm/include/linux
    #LIBS += -L../gmp-ecm/lib/linux/x86_64
Next, change the msieve reference:
Code:
#    modify the following line for your particular msieve installation
    
    ifeq ($(MIC),1)
        LIBS += -L../msieve/lib/phi
    else
        LIBS += -L../msieve
    endif
    LIBS += -lmsieve
-L../msieve
Now, save and close Makefile and copy your modified yafu.ini from yafu-orig into yafu, replacing the current one:
Code:
cp ~/Math/yafu-orig/yafu.ini ~/Math/yafu/yafu.ini
Check for sse4_1 and avx2:
Code:
cat /proc/cpuinfo
Next, compile yafu:
Code:
make x86_64 NFS=1 USE_SSE41=1 USE_AVX2=1
depending on the available functions.

And, finally test:
Code:
./yafu "tune"

Last fiddled with by EdH on 2019-09-15 at 15:19
EdH is offline   Reply With Quote