From 88ab582f3d0152166ca8714cc3b9ee5b2e87bfbc Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sat, 28 Dec 2013 11:29:33 +0000 Subject: [PATCH] Add dotfiles for cgminer and AMDSDK for crypto mining --- shell/_main.sh | 2 ++ shell/amdsdk.sh | 9 +++++++++ shell/cgminer.sh | 7 +++++++ 3 files changed, 18 insertions(+) create mode 100644 shell/amdsdk.sh create mode 100644 shell/cgminer.sh diff --git a/shell/_main.sh b/shell/_main.sh index 7876821..077ab5d 100644 --- a/shell/_main.sh +++ b/shell/_main.sh @@ -31,9 +31,11 @@ source "$DOTSHELL/nodejs.sh" source "$DOTSHELL/python.sh" source "$DOTSHELL/ruby.sh" source "$DOTSHELL/sbcl.sh" +source "$DOTSHELL/amdsdk.sh" # Applications source "$DOTSHELL/rtorrent.sh" +source "$DOTSHELL/cgminer.sh" # Services source "$DOTSHELL/services.sh" diff --git a/shell/amdsdk.sh b/shell/amdsdk.sh new file mode 100644 index 0000000..ca2cd0f --- /dev/null +++ b/shell/amdsdk.sh @@ -0,0 +1,9 @@ +if [ -d "/opt/AMDAPP" ]; then + export AMDAPPSDKROOT="/opt/AMDAPP" + export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"/opt/AMDAPP/lib/x86_64":"/opt/AMDAPP/lib/x86" + + export DISPLAY=:0 + export GPU_MAX_ALLOC_PERCENT=100 + export GPU_USE_SYNC_OBJECTS=1 + # export XAUTHORITY=/.Xauthority +fi diff --git a/shell/cgminer.sh b/shell/cgminer.sh new file mode 100644 index 0000000..4eca8a2 --- /dev/null +++ b/shell/cgminer.sh @@ -0,0 +1,7 @@ +# +# cgminer +# + +if [ -d "/opt/cgminer/bin" ]; then + path_prepend "/opt/cgminer/bin" +fi