Tuesday, February 7, 2023

Spacemesh on Centos9

This assumes you got NVIDIA drivers loaded (525), clinfo, opencl all working. Also NVIDIA toolkit 11 installed.

POST

  • git clone https://github.com/spacemeshos/post
  • make install
  • cp /home/srv_spacemesh/post/build/libpost.so /usr/lib64/

GPU-POST first (may not be needed anymore)

  • dnf install libstdc++-static
  • git clone https://github.com/spacemeshos/gpu-post
  • cd gpu-post/
  • git checkout v0.1.28
  • git submodule update --init

vim CMakeLists.txt and comment out

#if(UNIX AND NOT APPLE)
#    set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libstdc++ -static-libgcc -pthread")
#endif()

  • cmake -B build -DSPACEMESHVULKAN=OFF -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-12.1/
  • cmake --build build -j24
  • cp /home/srv_spacemesh/gpu-post/build/src/libgpu-setup.so /usr/lib64/

 Now we can run the benchmarks

  • ./build/test/gpu-setup-test -c -n 100663296 -d 20
  • ./build/test/gpu-setup-test -b -n 2000000

GO-SPACEMESH second

  • git clone https://github.com/spacemeshos/go-spacemesh
  • cd go-spacemesh/
  • git checkout v0.2.21-beta.0
  • make install
  • make build
  • ./build/go-spacemesh version

 SMAPP last

  • git clone https://github.com/spacemeshos/smapp
  • cd smapp/
  • git checkout v0.2.11
  • mkdir node/linux
  • cp ../go-spacemesh/build/go-spacemesh node/linux/
  • export NODE_OPTIONS=--openssl-legacy-provider
  • yarn
  • yarn package-linux
Start the app:   ./release/linux-unpacked/spacemesh_app



 

 


No comments:

Post a Comment