Mining software...
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

85 lines
2.8 KiB

  1. #!/bin/sh
  2. #mac osx
  3. Run from build!! folder
  4. #from build...
  5. # -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl (or some local folder...)
  6. # May need this for Catalina support!!
  7. cmake -DHWLOC_ENABLE=OFF -DXMR-STAK_COMPILE=generic -DOpenCL_ENABLE=OFF -DCUDA_ENABLE=OFF -DMICROHTTPD_ENABLE=OFF -DOpenSSL_ENABLE=OFF -DCMAKE_BUILD_TYPE=Release ..
  8. make
  9. #sudo apt install nvidia-cuda-toolkit --fix-missing
  10. #sudo apt-get install libmicrohttpd-dev
  11. #sudo apt-get install hwloc
  12. #sudo apt-get install libhwloc-dev # and perhaps hwloc as well...
  13. #AMD Lib
  14. #wget -q -O - http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | sudo apt-key add -
  15. #echo 'deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main' | sudo tee /etc/apt/sources.list.d/rocm.list
  16. # e85a40d1a43453fe37d63aa6899bc96e08f2817a rocm.gpg.key
  17. # sudo apt-get update
  18. # sudo apt install libnuma-dev
  19. # sudo apt install rocm-dkms
  20. # groups
  21. # sudo usermod -a -G video $LOGNAME
  22. #/opt/rocm/bin/rocminfo
  23. #/opt/rocm/opencl/bin/x86_64/clinfo
  24. #echo 'export PATH=$PATH:/opt/rocm/bin:/opt/rocm/profiler/bin:/opt/rocm/opencl/bin/x86_64' |
  25. # sudo tee -a /etc/profile.d/rocm.sh
  26. # or...
  27. #sudo apt update
  28. #sudo apt install rocm-dev
  29. #echo 'SUBSYSTEM=="kfd", KERNEL=="kfd", TAG+="uaccess", GROUP="video"'
  30. #sudo tee /etc/udev/rules.d/70-kfd.rules
  31. # https://developer.nvidia.com/cuda-downloads
  32. #Windows follow...: https://docs.google.com/document/d/1JoplwVyVQDo4ru8prsOD_kbMxeRvaACBiww3sSj1klA/edit
  33. #Windows 10 path
  34. #C:\Users\JP\Desktop\FEDG_BUILD\hwloc\hwloc-win64-build-2.2.0\hwloc-win64-build-2.2.0\lib
  35. # AMD App SDK https://www.softpedia.com/dyn-postdownload.php/4d69fa4aab5c40adc2cb2b3e80b02c66/5e83ac53/28b16/3/2
  36. # https://developer.nvidia.com/cuda-downloads
  37. # https://github.com/fireice-uk/xmr-stak-dep
  38. #
  39. # set CMAKE_PREFIX_PATH=C:\Users\JP\Desktop\FEDG_BUILD\xmr-stak-dep\hwloc;C:\Users\JP\Desktop\FEDG_BUILD\xmr-stak-dep\libmicrohttpd;C:\Users\JP\Desktop\FEDG_BUILD\xmr-stak-dep\openssl
  40. #mkdir ~/fedoragold-xmr-stak/build
  41. #cd build
  42. #make clean
  43. #CUDA does not complile on my DEBIAN for some reason - return to that later...
  44. # windows10 --> cmake -DXMR-STAK_COMPILE=generic -DOpenCL_ENABLE=OFF -DCUDA_ENABLE=OFF -G "Visual Studio 15 2017 Win64" -T v141,host=x64 -DCMAKE_BUILD_TYPE=Release ..
  45. # ...then... cmake --build . --config Release
  46. cmake .. -DXMR-STAK_COMPILE=generic -DCUDA_ENABLE=OFF
  47. make
  48. # optionall add install
  49. #export CC=emcc
  50. #export CXX=em++
  51. #export AR="llvm-ar"
  52. #export NM="llvm-nm"
  53. #export RANLIB="llvm-ranlib"
  54. # source /home/jojapoppa/emsdk/emsdk_env.sh
  55. #cmake -D CMAKE_C_COMPILER=emcc -D CMAKE_CXX_COMPILER=em++ -D --build .
  56. #make VERBOSE=1
  57. #make build-release
  58. #shows cross-compiled asm
  59. #https://idea.popcount.org/2013-07-24-ir-is-better-than-assembly/
  60. #llc fedoragold_daemon
  61. #gcc fedoragold_daemon.s -no-pie -o fedoragold_daemon_e