Skip to content

Commit

Permalink
Added short aliases for algorithm names: cn, cn-lite and cn-heavy.
Browse files Browse the repository at this point in the history
  • Loading branch information
xmrig committed Apr 7, 2018
1 parent d588079 commit 0915d67
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 64 deletions.
115 changes: 58 additions & 57 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,57 +1,58 @@
# v2.6.0-beta1
- [#476](https://github.com/xmrig/xmrig/issues/476) **Added Cryptonight-Heavy support for Sumokoin and Haven Protocol ASIC resistance fork.**

# v2.5.2
- [#448](https://github.com/xmrig/xmrig/issues/478) Fixed broken reconnect.

# v2.5.1
- [#454](https://github.com/xmrig/xmrig/issues/454) Fixed build with libmicrohttpd version below v0.9.35.
- [#456](https://github.com/xmrig/xmrig/issues/459) Verbose errors related to donation pool was not fully silenced.
- [#459](https://github.com/xmrig/xmrig/issues/459) Fixed regression (version 2.5.0 affected) with connection to **xmr.f2pool.com**.

# v2.5.0
- [#434](https://github.com/xmrig/xmrig/issues/434) **Added support for Monero v7 PoW, scheduled on April 6.**
- Improved automatic configuration, previous may give not usable suggested config.
- Added full IPv6 support.
- Added protocol extension, when use the miner with xmrig-proxy 2.5+ no more need manually specify `nicehash` option.
- [#51](https://github.com/xmrig/xmrig-amd/issues/51) Fixed multiple pools in initial config was saved incorrectly.
- [#123](https://github.com/xmrig/xmrig-proxy/issues/123) Fixed regression (all versions since 2.4 affected) fragmented responses from pool/proxy was parsed incorrectly.

# v2.4.5
- [#49](https://github.com/xmrig/xmrig-amd/issues/49) Fixed, in some cases, pause was cause an infinite loop.
- [#64](https://github.com/xmrig/xmrig-nvidia/issues/64) Fixed compatibility with CUDA 9.1.
- [#84](https://github.com/xmrig/xmrig-nvidia/issues/84) In some cases miner was doesn't write log to stdout.
- Added libmicrohttpd version to --version output.
- Fixed bug in singal handler, in some cases miner wasn't shutdown properly.
- Fixed recent MSVC 2017 version detection.
- Fixed, config file options `cuda-bfactor` and `cuda-bsleep` was ignored.

# v2.4.2
- Added [HTTP API](https://github.com/xmrig/xmrig/wiki/API).
- Added CUDA 9 and Volta GPUs support.
- Added support for set CPU affinity for GPU threads via command line option `--cuda-affinity` and config option `affine_to_cpu`.
- Improved automatic configuration.
- Added comments support in config file.
- libjansson replaced to rapidjson.
- [#11](https://github.com/xmrig/xmrig-nvidia/issues/11#issuecomment-336796627) GPU configuration via command line options now fully supported. Added options `--cuda-devices`, `--cuda-launch`, `--cuda-bfactor` and `--cuda-bsleep`. Options `--bfactor`, `--bsleep`, `--max-gpu-threads` now deprecated.
- [#17](https://github.com/xmrig/xmrig-nvidia/issues/17) Fixed issues with NVML monitoring API.
- [#98](https://github.com/xmrig/xmrig/issues/98) Ignore `keepalive` option with minergate.com and nicehash.com.
- [#101](https://github.com/xmrig/xmrig/issues/101) Fixed MSVC 2017 (15.3) compile time version detection.
- [#108](https://github.com/xmrig/xmrig/issues/108) Silently ignore invalid values for `donate-level` option.
- [#147](https://github.com/xmrig/xmrig/issues/147) Fixed comparability with monero-stratum.
- [#153](https://github.com/xmrig/xmrig/issues/153) Fixed issues with dwarfpool.com.

# v2.3.1
- [#7](https://github.com/xmrig/xmrig-nvidia/issues/7) Fixed crash when try see hashrate reports in some configurations.
- [#8](https://github.com/xmrig/xmrig-nvidia/issues/8) Fixed build without AEON support.

# v2.3.0
- [#5](https://github.com/xmrig/xmrig-nvidia/issues/5) Added AEON (cryptonight-lite) support.
- Added GPU health monitoring: clocks, power, temperature and fan speed via NVML API.
- Added options `bfactor`, `bsleep` and `max-gpu-threads` for change auto configuration result.

# v2.3.0-beta2
- Less aggressive auto-configuration. Solved wrong configuration with some GPUs.

# v2.3.0-beta1
- First public release.
# v2.6.0-beta1
- [#476](https://github.com/xmrig/xmrig/issues/476) **Added Cryptonight-Heavy support for Sumokoin and Haven Protocol ASIC resistance fork.**
- Added short aliases for algorithm names: `cn`, `cn-lite` and `cn-heavy`.

# v2.5.2
- [#448](https://github.com/xmrig/xmrig/issues/478) Fixed broken reconnect.

# v2.5.1
- [#454](https://github.com/xmrig/xmrig/issues/454) Fixed build with libmicrohttpd version below v0.9.35.
- [#456](https://github.com/xmrig/xmrig/issues/459) Verbose errors related to donation pool was not fully silenced.
- [#459](https://github.com/xmrig/xmrig/issues/459) Fixed regression (version 2.5.0 affected) with connection to **xmr.f2pool.com**.

# v2.5.0
- [#434](https://github.com/xmrig/xmrig/issues/434) **Added support for Monero v7 PoW, scheduled on April 6.**
- Improved automatic configuration, previous may give not usable suggested config.
- Added full IPv6 support.
- Added protocol extension, when use the miner with xmrig-proxy 2.5+ no more need manually specify `nicehash` option.
- [#51](https://github.com/xmrig/xmrig-amd/issues/51) Fixed multiple pools in initial config was saved incorrectly.
- [#123](https://github.com/xmrig/xmrig-proxy/issues/123) Fixed regression (all versions since 2.4 affected) fragmented responses from pool/proxy was parsed incorrectly.

# v2.4.5
- [#49](https://github.com/xmrig/xmrig-amd/issues/49) Fixed, in some cases, pause was cause an infinite loop.
- [#64](https://github.com/xmrig/xmrig-nvidia/issues/64) Fixed compatibility with CUDA 9.1.
- [#84](https://github.com/xmrig/xmrig-nvidia/issues/84) In some cases miner was doesn't write log to stdout.
- Added libmicrohttpd version to --version output.
- Fixed bug in singal handler, in some cases miner wasn't shutdown properly.
- Fixed recent MSVC 2017 version detection.
- Fixed, config file options `cuda-bfactor` and `cuda-bsleep` was ignored.

# v2.4.2
- Added [HTTP API](https://github.com/xmrig/xmrig/wiki/API).
- Added CUDA 9 and Volta GPUs support.
- Added support for set CPU affinity for GPU threads via command line option `--cuda-affinity` and config option `affine_to_cpu`.
- Improved automatic configuration.
- Added comments support in config file.
- libjansson replaced to rapidjson.
- [#11](https://github.com/xmrig/xmrig-nvidia/issues/11#issuecomment-336796627) GPU configuration via command line options now fully supported. Added options `--cuda-devices`, `--cuda-launch`, `--cuda-bfactor` and `--cuda-bsleep`. Options `--bfactor`, `--bsleep`, `--max-gpu-threads` now deprecated.
- [#17](https://github.com/xmrig/xmrig-nvidia/issues/17) Fixed issues with NVML monitoring API.
- [#98](https://github.com/xmrig/xmrig/issues/98) Ignore `keepalive` option with minergate.com and nicehash.com.
- [#101](https://github.com/xmrig/xmrig/issues/101) Fixed MSVC 2017 (15.3) compile time version detection.
- [#108](https://github.com/xmrig/xmrig/issues/108) Silently ignore invalid values for `donate-level` option.
- [#147](https://github.com/xmrig/xmrig/issues/147) Fixed comparability with monero-stratum.
- [#153](https://github.com/xmrig/xmrig/issues/153) Fixed issues with dwarfpool.com.

# v2.3.1
- [#7](https://github.com/xmrig/xmrig-nvidia/issues/7) Fixed crash when try see hashrate reports in some configurations.
- [#8](https://github.com/xmrig/xmrig-nvidia/issues/8) Fixed build without AEON support.

# v2.3.0
- [#5](https://github.com/xmrig/xmrig-nvidia/issues/5) Added AEON (cryptonight-lite) support.
- Added GPU health monitoring: clocks, power, temperature and fan speed via NVML API.
- Added options `bfactor`, `bsleep` and `max-gpu-threads` for change auto configuration result.

# v2.3.0-beta2
- Less aggressive auto-configuration. Solved wrong configuration with some GPUs.

# v2.3.0-beta1
- First public release.
16 changes: 15 additions & 1 deletion src/Options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,13 @@ static const char *algoNames[] = {
};


static const char *algoNamesShort[] = {
"cn",
"cn-lite",
"cn-heavy"
};


Options *Options::parse(int argc, char **argv)
{
Options *options = new Options(argc, argv);
Expand Down Expand Up @@ -834,7 +841,14 @@ bool Options::setAlgo(const char *algo)
for (size_t i = 0; i < size; i++) {
if (algoNames[i] && strcasecmp(algo, algoNames[i]) == 0) {
m_algorithm = static_cast<xmrig::Algo>(i);
break;
return true;
}
}

for (size_t i = 0; i < size; i++) {
if (algoNamesShort[i] && strcasecmp(algo, algoNamesShort[i]) == 0) {
m_algorithm = static_cast<xmrig::Algo>(i);
return true;
}
}

Expand Down
12 changes: 6 additions & 6 deletions src/nvidia/cuda_core.cu
Original file line number Diff line number Diff line change
Expand Up @@ -503,18 +503,18 @@ void cryptonight_gpu_hash(nvid_ctx *ctx, xmrig::Algo algo, int variant, uint32_t
case CRYPTONIGHT:
if (variant > 0) {
cryptonight_core_gpu_hash<CRYPTONIGHT_ITER, CRYPTONIGHT_MASK, CRYPTONIGHT_MEMORY / 4, CRYPTONIGHT, 1>(ctx, startNonce);
}
else {
cryptonight_core_gpu_hash<CRYPTONIGHT_ITER, CRYPTONIGHT_MASK, CRYPTONIGHT_MEMORY / 4, CRYPTONIGHT, 0>(ctx, startNonce);
}
else {
cryptonight_core_gpu_hash<CRYPTONIGHT_ITER, CRYPTONIGHT_MASK, CRYPTONIGHT_MEMORY / 4, CRYPTONIGHT, 0>(ctx, startNonce);
}
break;

case CRYPTONIGHT_LITE:
if (variant > 0) {
cryptonight_core_gpu_hash<CRYPTONIGHT_LITE_ITER, CRYPTONIGHT_LITE_MASK, CRYPTONIGHT_LITE_MEMORY / 4, CRYPTONIGHT_LITE, 1>(ctx, startNonce);
}
else {
cryptonight_core_gpu_hash<CRYPTONIGHT_LITE_ITER, CRYPTONIGHT_LITE_MASK, CRYPTONIGHT_LITE_MEMORY / 4, CRYPTONIGHT_LITE, 0>(ctx, startNonce);
}
else {
cryptonight_core_gpu_hash<CRYPTONIGHT_LITE_ITER, CRYPTONIGHT_LITE_MASK, CRYPTONIGHT_LITE_MEMORY / 4, CRYPTONIGHT_LITE, 0>(ctx, startNonce);
}
break;

Expand Down

0 comments on commit 0915d67

Please sign in to comment.