cuda.sh 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. wget -c https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.run
  2. wget -c https://developer.download.nvidia.com/compute/cuda/11.1.0/local_installers/cuda_11.1.0_455.23.05_linux.run
  3. chmod +x cuda_11.1.0_455.23.05_linux.run
  4. sudo ./cuda_11.1.0_455.23.05_linux.run
  5. function build_miner {
  6. #gnome-terminal -- htop
  7. cd ~
  8. if [ ! -d miners ];then mkdir miners;else rm -r -f miners ;fi
  9. cd ~/miners
  10. echo ""
  11. git clone https://github.com/tpruvot/ccminer.git && echo ""
  12. git clone https://github.com/tpruvot/cpuminer-multi.git && echo ""
  13. git clone https://github.com/xmrig/xmrig.git && echo ""
  14. git clone https://github.com/xmrig/xmrig-nvidia.git && echo ""
  15. git clone https://github.com/uPlexa/xmrig-upx.git && echo ""
  16. git clone https://github.com/fireice-uk/xmr-stak.git && echo ""
  17. git clone https://github.com/fireice-uk/xmr-stak.git -b xmr-stak-rx xmr-stak-rx && echo ""
  18. cd ~
  19. tar xvfJ miners.tar.xz
  20. rm miners.tar.xz
  21. cd ~/miners
  22. wget -c https://download.open-mpi.org/release/hwloc/v2.8/hwloc-2.8.0.tar.bz2
  23. tar xvfj hwloc-2.8.0.tar.bz2
  24. cd hwloc-2.8.0
  25. ./configure
  26. make -j$(nproc)
  27. sudo make install
  28. sudo ldconfig
  29. cd ..
  30. rm -r hwloc-2.8.0
  31. rm hwloc-2.8.0.tar.bz2
  32. echo ""
  33. cd xmrig
  34. cd build
  35. cmake ..
  36. make -j$(nproc)
  37. cd ~/miners
  38. echo ""
  39. cd xmrig-nvidia
  40. cd build
  41. cmake .. -DCMAKE_C_COMPILER=gcc-8 -DCMAKE_CXX_COMPILER=g++-8
  42. make -j$(nproc)
  43. echo ""
  44. cd ~/miners
  45. cd xmrig-upx
  46. cd build
  47. cmake ..
  48. make -j$(nproc)
  49. echo ""
  50. cd ~/miners
  51. cd xmr-stak
  52. mkdir build
  53. cd build
  54. cmake .. -DCMAKE_C_COMPILER=gcc-8 -DCMAKE_CXX_COMPILER=g++-8
  55. make -j$(nproc)
  56. echo ""
  57. cd ~/miners
  58. cd cpuminer-multi
  59. ./build.sh
  60. if [ $Mode = "AMD" ]
  61. then
  62. cd ~/miners/xmrig-amd
  63. mkdir build
  64. cd build
  65. cmake ..
  66. make -j$(nproc)
  67. cd ~
  68. tar xvfJ gpu-miners.tar.xz
  69. rm gpu-miners.tar.xz
  70. fi
  71. }