Skip to content

Commit

Permalink
Merge pull request #12 from voldien/xmrig-cuda-fix
Browse files Browse the repository at this point in the history
explicitly set the xmrig-cuda loader when using cuda
  • Loading branch information
metal3d authored Sep 29, 2024
2 parents efdea7b + b33cbb6 commit 986e7e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ RUN set -xe; \
rm -rf /var/lib/apt/lists/*
COPY --from=build-runner /xmrig/xmrig /xmrig/xmrig
COPY --from=build-runner /xmrig/src/config.json /xmrig/config.json
COPY --from=build-cuda-plugin /xmrig-cuda/build/libxmrig-cuda.so /usr/lib64/
COPY --from=build-cuda-plugin /xmrig-cuda/build/libxmrig-cuda.so /usr/local/lib/


ENV POOL_USER="44vjAVKLTFc7jxTv5ij1ifCv2YCFe3bpTgcRyR6uKg84iyFhrCesstmWNUppRCrxCsMorTP8QKxMrD3QfgQ41zsqMgPaXY5" \
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ fi
OTHERS_OPTS=$OTHERS_OPTS" -p ${WORKERNAME}"

if [ "${CUDA}" == "true" ]; then
OTHERS_OPTS=$OTHERS_OPTS" --cuda"
OTHERS_OPTS=$OTHERS_OPTS" --cuda --cuda-loader=/usr/local/lib/libxmrig-cuda.so"
jq '.cuda.enabled = true' config.json > config.json.tmp && mv config.json.tmp config.json
jq '.cpu.enabled = false' config.json > config.json.tmp && mv config.json.tmp config.json
fi
Expand Down

0 comments on commit 986e7e8

Please # to comment.