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