Skip to content
This repository was archived by the owner on May 3, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
150 commits
Select commit Hold shift + click to select a range
d43cd3e
Add some useful things to .gitignore
jcvernaleo Apr 29, 2016
43e6a84
Switch to decred import paths.
jcvernaleo Apr 29, 2016
39550c6
Enable tls and improve config.
jcvernaleo Apr 29, 2016
6a7a59b
Merge pull request #5 from jcvernaleo/jcv_const
jcvernaleo May 5, 2016
b935bbd
Fix it so CTRL-C actually stops miner. (#4)
jcvernaleo May 5, 2016
6b8bb1f
Add -i/--intensity.
jcvernaleo May 6, 2016
55b4c6a
Add support for stratum pools.
jcvernaleo May 5, 2016
c755363
Add -k option to specify cl kernel location.
jcvernaleo Jul 8, 2016
755ae08
reverse diff/hash so new target checking code works when solo mining …
jolan Jul 13, 2016
7931e7d
Add updated blake256 cl code from cgminer.
jcvernaleo Jul 12, 2016
236c1b3
improve compatibility with sgminer and send share acceptance messages…
jolan Jul 19, 2016
398d325
Count correctly when creating lastBlock
jcvernaleo Jul 19, 2016
4165a81
Fix bugs in stratum pool mining.
jolan Jul 18, 2016
2acc93d
Fix stratum mining and intensity
cjepson Jul 22, 2016
10b02a1
Add proxy support for stratum connections.
jcvernaleo Jul 22, 2016
fc62985
Fix solo mining.
cjepson Jul 26, 2016
7c4b076
Add device auto-calibration for kernel work size
cjepson Jul 26, 2016
dc6fdcc
Fix some stratum difficulty bugs
cjepson Jul 27, 2016
1d4c207
Fix GH/s display
cjepson Jul 27, 2016
13658ed
Correctly increment rejected shares (#31)
cjepson Jul 27, 2016
44a4882
Add some build and pool info to readme.
jcvernaleo Jul 27, 2016
5b45938
Bump to v0.2.0
jcvernaleo Jul 27, 2016
1384cdd
Use glide to manage dependancies.
jcvernaleo Jul 27, 2016
4034222
Add all options to sample config.
jcvernaleo Jul 27, 2016
0dac3b1
correct workdata comment (#40)
jolan Jul 28, 2016
325db20
Reconnect to pool if no usable target is provided.
jcvernaleo Jul 28, 2016
f7ad5dc
Create stratum, work, and util packages.
jcvernaleo Jul 29, 2016
c942756
Fix benchmark mode.
jcvernaleo Aug 3, 2016
eef7ec0
Add mutexes to protect various data from races.
jcvernaleo Aug 5, 2016
8c9e667
Fix check for userSetWorkSize. (#51)
chappjc Aug 8, 2016
ac5f94a
Clean up logging.
jcvernaleo Aug 8, 2016
3d96ce3
Reorganize some functions/packages.
jcvernaleo Aug 10, 2016
8e8f392
add device selection/restriction (#54)
jolan Aug 10, 2016
4311a39
Add import that wasn't seen after last rebase.
jcvernaleo Aug 10, 2016
4f2d892
Bump for v0.3.0
jcvernaleo Aug 10, 2016
093470d
fix mining when no device is specified (#59)
jolan Aug 11, 2016
5605c02
add license for OpenCL bindings (#65)
jolan Aug 15, 2016
853bb24
track invalid shares properly (#60)
jolan Aug 22, 2016
65dc987
make the autocalibration/device/intensity/worksize flags consistent (…
jolan Aug 24, 2016
f2ad477
some cleanups to appease go clean/go vet (#69)
jolan Aug 25, 2016
6a68c00
fix build on 32-bit platforms and properly error on too small worksiz…
jolan Aug 26, 2016
d45aa16
properly account for multiple OpenCL platforms (#71)
jolan Aug 29, 2016
ffc266f
Cleanup atomic usage. (#74)
dajohi Aug 31, 2016
321c9a1
Remove erroneous waitgroup Done in Stop (#76)
dajohi Aug 31, 2016
a2dec14
Bump for v0.4.0
jcvernaleo Sep 1, 2016
1fe5f42
Print leading zeros in target difficulty. (#79)
jrick Sep 7, 2016
408e308
Initial support for cuda mining.
jcvernaleo Aug 16, 2016
88d8e7e
Bump for v0.4.1
jcvernaleo Sep 12, 2016
8a315cd
Small optimization for CUDA.
jcvernaleo Sep 13, 2016
5ca393c
adjust various headers so windows builds (#89)
jolan Sep 13, 2016
f823870
add result field so errors are unmarshaled properly (#90)
jolan Sep 13, 2016
2af2dc9
gofmt (#91)
dajohi Sep 13, 2016
364bfc4
move deviceListIndex increment back to the right spot (#93)
jolan Sep 13, 2016
d85fd6f
Clean up some old or incorrect comments.
jcvernaleo Sep 14, 2016
b940a45
fix cgo Go pointers issue (#92)
dajohi Sep 14, 2016
5032c42
Hook up travis (#75)
dajohi Sep 14, 2016
7a61062
use nvml to fetch fan and temperature information (#96)
jolan Sep 14, 2016
67d8c89
Fix the size of data copied from device.
jcvernaleo Sep 14, 2016
ffbad25
implement amdgpu sysfs support to fetch fan and temperature informati…
jolan Sep 16, 2016
868e371
fix using a device on the second OpenCL platform (#102)
jolan Sep 16, 2016
d6ff92c
use a slice of submitIDs instead of a single submitID (#103)
jolan Sep 20, 2016
ddaf07f
Use build flags to only build cuda or opencl versions of gominer.
jcvernaleo Sep 16, 2016
b763491
implement ADL support to fetch fan/temperature information (#106)
jolan Sep 22, 2016
f8e059e
Implement CUDA on windows, Fixes #108
marcopeereboom Sep 21, 2016
c236ba1
Remove some unused and unneeded code
jcvernaleo Sep 22, 2016
e03d7eb
Clean up logging.
jcvernaleo Sep 26, 2016
bb35163
add automatic fan control to maintain a target temperature (#115)
jolan Sep 27, 2016
72bee91
Improve cpu usage with CUDA.
jcvernaleo Sep 27, 2016
c8f35e0
add some default Windows CFLAGS/LDFLAGS and remove unixy code (#117)
jolan Sep 28, 2016
33049de
Update sample config with all new options.
jcvernaleo Sep 29, 2016
5350a8f
add more Windows details and some general improvements (#120)
jolan Sep 29, 2016
8c540b3
Bump for v0.5.0
jcvernaleo Oct 4, 2016
13cecdd
Bump for v0.6.0
jcvernaleo Nov 4, 2016
0b0037a
Updates to goclean.sh
jcvernaleo Nov 22, 2016
64044f2
Bump for v0.7.0
jcvernaleo Dec 16, 2016
d7c6fdd
only initialize device libraries once (#132)
jolan Jan 2, 2017
c86f397
give an example for both path types (#136)
jolan Feb 2, 2017
38c22ec
Switch to standalone upstream CUDA libs.
jcvernaleo Feb 2, 2017
e967abd
Bump for v0.8.0
jcvernaleo Feb 7, 2017
2841619
Handle non-int pool difficulties better.
jcvernaleo Feb 17, 2017
945e224
Add check on json to prevent panic.
jcvernaleo Feb 20, 2017
2ac9e7a
Differentiate dev and release in -V
jcvernaleo Feb 20, 2017
0f039e3
Add go version to version info
jcvernaleo Mar 14, 2017
e7b976b
Some file location updates for Linux (#147)
Baggins800 Mar 24, 2017
6b03e73
fix GOPATH typo (#150)
timthomascode Mar 30, 2017
4613a6e
stratum: include stake version (#153)
jolan Apr 24, 2017
d2503a9
Bump for v1.0.0
jcvernaleo Apr 24, 2017
d01e19d
travis: test against go 1.7 and 1.8
dajohi Jun 8, 2017
38778b2
Swtich to new logging backend.
jcvernaleo Jun 20, 2017
b9636c6
Check valid log level using btclog.
jcvernaleo Jul 13, 2017
e7a32e7
Drop glide, use dep. (#166)
dajohi Sep 29, 2017
47d953e
travis: enable ineffassign (#167)
dajohi Sep 29, 2017
44ea5a2
Implement Remote Status API (#165)
gabrielboliveira Oct 2, 2017
ba9842f
docs: update docs for dep (#168)
dajohi Oct 5, 2017
62d11fb
Update dependencies/imports for repo layout change
teknico Oct 20, 2017
5225f93
Use slog (#179)
dajohi Aug 29, 2018
7739479
Use testnet3 (#180)
dajohi Aug 29, 2018
91b01db
Use new logrotator API (#182)
dajohi Aug 29, 2018
f703453
Require go 1.11+ (#184)
dajohi Feb 12, 2019
a773d69
build: replace travis ci with ci via github actions (#189)
dajohi Feb 9, 2020
0fca758
build: update deps (#191)
dajohi May 16, 2023
3415142
build: update deps (#193)
dajohi Jun 20, 2023
0327aea
Add GPU support for BLAKE3 via OpenCL.
davecgh Sep 6, 2023
8467f2b
miner: Fix possible shutdown deadlock.
matheusd Sep 4, 2023
4bc1b48
cuda: Switch to Blake3.
matheusd Sep 4, 2023
9e1209a
cuda: Perform autocalibration of the grid size.
matheusd Sep 4, 2023
7267317
Switch Windows OpenCL build instructions to msys2.
davecgh Sep 6, 2023
cfac816
Correct a couple of README typos.
davecgh Sep 6, 2023
abdcf69
Add OpenCL AMD/NVIDIA Linux Build Instructions.
davecgh Sep 6, 2023
d725cda
README: Add some configuraiton details.
davecgh Sep 6, 2023
99e749d
README: Fix a few typos.
davecgh Sep 6, 2023
107c435
stratum: Don't reverse Version bytes.
jholdstock Sep 7, 2023
293bbb5
util: Fix RevHash func.
jholdstock Sep 7, 2023
8f2e03c
README: Add user reported hashrates.
davecgh Sep 7, 2023
718d9ff
README: Correct Debian Bookworm build instructions.
davecgh Sep 7, 2023
46e4f80
Setup a signal context and use it. (#207)
dajohi Sep 11, 2023
92c6300
build: blake256 is a direct dependency.
jholdstock Sep 11, 2023
421a994
build: Don't install beignet-dev in CI.
jholdstock Sep 11, 2023
c402662
build: Update CI toolchain.
jholdstock Sep 11, 2023
63d0822
build: Add run_tests.sh.
jholdstock Sep 11, 2023
600f6ea
Move ithOrFirstInt to where it is used.
jholdstock Sep 11, 2023
43e4b27
Format error strings.
jholdstock Sep 11, 2023
5fbb0c3
Consistent string format verbs for errors.
jholdstock Sep 11, 2023
2f75233
Use errors.Is and errors.As.
jholdstock Sep 11, 2023
e5cdae6
Remove unnecessary else branches.
jholdstock Sep 11, 2023
2fcf378
Remove unnecessary zero value allocation.
jholdstock Sep 11, 2023
bd34950
Reduce scope of const, use lower case naming.
jholdstock Sep 11, 2023
91033b3
Capitalize ID in variable names.
jholdstock Sep 11, 2023
33e7ebc
End comments with periods.
jholdstock Sep 11, 2023
bf7e790
Don't use deprecated ioutil package.
jholdstock Sep 11, 2023
b94e857
build: Enable a bunch of new linters.
jholdstock Sep 11, 2023
d0dc351
cuda: Add specific int types to blake3 kernel.
matheusd Sep 6, 2023
83843ad
cuda: Switch to cuda_builder.go instead of Makefile.
matheusd Sep 8, 2023
7e2fb9e
README: Add CUDA building instructions.
matheusd Sep 8, 2023
a069683
README: Grammar nits and add windows prelim. (#211)
davecgh Sep 15, 2023
f6eaef3
Fix build.
jholdstock Sep 16, 2023
9f1c3f0
cuda: Create obj dir in generator script.
matheusd Sep 18, 2023
1c92e04
cuda: Support CUDA toolkit versions older than 10.
matheusd Sep 18, 2023
724ef5b
cuda: Fix device initialization.
matheusd Sep 26, 2023
3df1bec
cuda: Also use GPU arch for intrinsic determination.
matheusd Sep 26, 2023
9b7fd18
cuda: Automatically determine GPU architecture.
matheusd Sep 26, 2023
5bdfb8c
Rework nonces to allow for stratum support.
davecgh Oct 9, 2023
2e7c33a
Correct several stratum/pooled mining issues.
davecgh Oct 10, 2023
c520a0a
pass required channel to newMinerDevs and return devices
dajohi Oct 12, 2023
ec58d6b
Use rpcclient w/ ntfns instead of polling.
dajohi Oct 10, 2023
c504f85
Perform initial getwork when solo mining.
davecgh Oct 12, 2023
9bbf455
version: Support single override and add git hash.
davecgh Oct 10, 2023
2d62142
README: Update for pool support.
davecgh Oct 13, 2023
b01524d
release: Bump for 2.1 release cycle.
davecgh Oct 14, 2023
68791b0
miner: Remove need for dcrd in benchmark mode.
matheusd Jan 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build and Test
on: [push, pull_request]
permissions:
contents: read

jobs:
build:
name: Go CI
runs-on: ubuntu-22.04
strategy:
matrix:
go: ['1.20', '1.21']
steps:
- name: Set up Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe #v4.1.0
with:
go-version: ${{ matrix.go }}
- name: Check out source
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac #v4.0.0
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install -y nvidia-cuda-dev nvidia-cuda-toolkit ocl-icd-opencl-dev opencl-headers nvidia-opencl-dev
- name: Install Linters
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.54.2
- name: Build OpenCL
env:
CL_TARGET_OPENCL_VERSION: "220"
run: go build -tags opencl ./...
- name: Test and Lint
run: ./run_tests.sh
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
*.so

# Folders
.vscode/
_obj
obj/
_test

# Architecture specific extensions/prefixes
Expand All @@ -16,6 +18,9 @@ _test
_cgo_defun.c
_cgo_gotypes.go
_cgo_export.*
*.dll
*.exp
*.lib

_testmain.go

Expand All @@ -24,3 +29,10 @@ _testmain.go
*.prof
clean.sh
kernel/
nvidia/

*~
gominer

vendor/

44 changes: 44 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
run:
deadline: 10m
build-tags:
- opencl

linters:
disable-all: true
enable:
- asciicheck
- bidichk
- bodyclose
- containedctx
- dupword
- durationcheck
- errorlint
- exportloopref
- godot
- gofmt
- goimports
- gosimple
- grouper
- ineffassign
- makezero
- misspell
- nosprintfhostport
- prealloc
- predeclared
- reassign
- rowserrcheck
- revive
- tparallel
- typecheck
- unconvert
- unparam
- unused

linters-settings:
# While every other rule in the revive linter is useful, the var-naming rule
# is a bit too strict for this project because it does not allow underscores
# in names.
revive:
rules:
- name: var-naming
disabled: true
Loading