Skip to content

Commit

Permalink
Added example bash file for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
EhssanD committed Jan 15, 2019
1 parent f934e19 commit 4d7f940
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions example.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

export GPU_FORCE_64BIT_PTR=0
export GPU_USE_SYNC_OBJECTS=1
export GPU_MAX_ALLOC_PERCENT=100
export GPU_SINGLE_ALLOC_PERCENT=100
export GPU_MAX_HEAP_SIZE=100

:: Replace the -o, -u, and -p arguments with your own pool, user, and password.
:: All three arguments are required.
./sgminer -k argon2d -o stratum+tcp://server:port -u DKPnTs1s71DtesAvvLMchtsj4gRFxphW55 -p x -g 2 --gpu-platform=1
pause

:: Notes:
:: - Use intensity (-I) combined with threads (-g) to utilize more GPU memory.
:: notice that this value is per thread and regardless of your GPU, you can not allocate more than 4 GB of memory per thread.
:: Increase the number of threads instead to fully utilize the available GPU memory.
:: Note that higher intensities can sometimes lower your hashrate, since it creates more
:: work units at once; after a certain point, the work units take longer to return and
:: this will actually decrease your hashrate.
:: - If you have an integrated GPU, you might have to set the OpenCL platform correctly
:: using --gpu-platform. --gpu-platform=1 usually works here if the default isn't working.

0 comments on commit 4d7f940

Please sign in to comment.