You are viewing a single comment's thread from:

RE: How to improve Steem mining performance

in #steem9 years ago
...
sudo apt-get remove libgmp-dev
wget -c http://mpir.org/mpir-2.7.2.tar.bz2
tar xjf mpir-2.7.2.tar.bz2
cd mpir
./configure --enable-gmpcompat
make
sudo make install
cd ..

cd steem
cmake ...

By the way, an earlier version of @testz's patch will link libgmp dynamically, don't know if it's fixed.

Sort:  

Here is my quick and dirty patch to link libgmp statically (it's not perfect, but just works):

cd steem
cd libraries/fc
git checkout master
git pull
git remote add abit https://github.com/abitmore/fc.git
git fetch abit
git merge -m "merge abit/libgmp-static" abit/libgmp-static
cd ../..
cmake ...

When building with MPIR are you making tweaks to support it to the Steem source or build commands? Or should it pick it up automatically and work?

EDIT
Can''t reply to your comment, but you say "build commands" are used to tweak Steem build yet your instructions just say"cd steem
cmake ..."

Thats not any change to the source/build!

Looks like some misunderstandings.

By saying "tweaks to build commands", I mean we did some changes to the cmake.xxx config files, so we'll build with libgmp (the steps are listed somewhere below this comment).

Then we remove the libgmp provided bylibgmp-dev package, and build & install our own libgmp from MPIR source. So it will be picked up automatically when building the final binaries.

Any further questions please let me know.

Build commands. Details described above.

Anyone know if anything on this page is still relevant with build 12.x? Specifically on the MPIR support, the above doesnt suggest any changes are needed to steem source to avail of MPIR.. ? I tried it and it made no difference (Haswell CPU).

I just built every new release with MPIR, didn't check if there are still performance improvement though.

Only just?

Coin Marketplace

STEEM 0.15
TRX 0.16
JST 0.028
BTC 67779.88
ETH 2396.01
USDT 1.00
SBD 2.32