EPCCed / wee_archlet

Instructions for setting up a Raspberry Pi cluster.
https://epcced.github.io/wee_archlet/
Other
16 stars 5 forks source link

HPL compilation error #5

Open alvarezpj opened 6 years ago

alvarezpj commented 6 years ago

Hi,

there seems to be an issue when compiling HPL benchmark. I get the following:

make[2]: Entering directory '/home/pi/linpack/hpl/testing/ptest/rpi'
mpif77  -o /home/pi/linpack/hpl/bin/rpi/xhpl HPL_pddriver.o         HPL_pdinfo.o           HPL_pdtest.o /home/pi/linpack/hpl/lib/rpi/libhpl.a -lblas /usr/lib/arm-linux-gnueabihf/libmpich.a
/usr/bin/ld: /usr/lib/arm-linux-gnueabihf/libmpich.a(lib_libmpich_la-mpiu_thread_posix.o): undefined reference to symbol 'pthread_create@@GLIBC_2.4'
//lib/arm-linux-gnueabihf/libpthread.so.0: error adding symbols: DSO missing from command line

Any idea on what the undefined reference to symbol 'pthread_create@@GLIBC_2.4 means?

thanks

alvarezpj commented 6 years ago

Well, it seems the solution to this is to replace libmpich.a for libmpich.so in Make.rpi.

MPlib        = $(MPdir)/arm-linux-gnueabihf/libmpich.so
JulietAlphaKilo commented 5 years ago

Hi @alvarezpj thanks for this, sorry it's taken so long to get round to fixing! I'll check this out and update the instructions, as there are a few things that could do with updating :)

JulietAlphaKilo commented 5 years ago

I tested this and was able to recreate your results, so I've included your change in PR #8