-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add Aeon support #67
add Aeon support #67
Conversation
}; | ||
|
||
std::bitset<2> digit; | ||
std::bitset<3> digit; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You misundestood the code above. Please refer to the comment, we are essentially counting in binary with true / false flags.
So:
false false (00) = 0
false true (01) = 1
true false (10) = 2
true true (11) = 3
For bitset of 3 you need to have 8 entries in the table, and count up to 8.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will add some comments to this code part.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I see it now, my bad, this part is ok as-is
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are 8 value in the table if XMR-STAK_CURRENCY=all. Else there are 4 values in the table, and bit 3 is always set to 0.
xmrstak/cli/cli-miner.cpp
Outdated
{ | ||
std::string tmp; | ||
#if defined(CONF_NO_AEON) | ||
tmp = "xmr"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you change xmr to proper currency name - Monero?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I can change it to 'monero'. I used 'xmr' to keep it short but you are right monero could be better.
I hate when that happens too ^^ |
f3e577f
to
777935c
Compare
I changed xmr to monero. The writing of monero is case insensitiv to avoid that we get many support tickets because some are writing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is surely a mistake? You seem to have copied the executor singleton into utility.cpp Can you squash the last two commits to make the review easier?
Could you please point to the code- can't find the singleton in utility.hpp or cpp. |
Yes I will do.
|
I have an RX480 test rig set up, so will do the AMD testing after the squash |
777935c
to
8ce8172
Compare
I rebased and squash the PR. |
@@ -230,10 +245,30 @@ int main(int argc, char *argv[]) | |||
; | |||
configEditor configTpl{}; | |||
configTpl.set(std::string(tpl)); | |||
std::cout<<"Please enter:"<<std::endl; | |||
auto& currency = params::inst().currency; | |||
if(currency.empty()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This if is never executed in my testing. After rm *.txt; ./xmr-stak
the miner goes on to mine aeon without prompting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to make sure checked cmake output -> -- Set miner currency to 'monero' and 'aeon'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well spotted: I inserted two logic bugs during the renaming
- fix with the last commit
xmrstak/cli/cli-miner.cpp
Outdated
tmp = "aeon"; | ||
#endif | ||
while(tmp.compare("xmr") != 0 && tmp.compare("aeon") != 0) | ||
while(xmrstak::strcmp_i(tmp, "monero") && xmrstak::strcmp_i(tmp, "aeon")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is wrong must be !condition
xmrstak/jconf.cpp
Outdated
#ifndef CONF_NO_XMR | ||
currency.compare("xmr") != 0 | ||
#ifndef CONF_NO_MONERO | ||
xmrstak::strcmp_i(currency, "monero") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong must be !condition
- add CMake flag description - announce Monero and Aeon in README.md i add FAQ section
- cli-miner.hpp: - add option `--currency` - add guided start section - config.tpl: add value `currency` - params.hpp: add value to store the selected currency - executor.hpp: add dev pool address
... into a single place
- add compile parameter to support aeon and xmr - update auto suggestion to handle aeon
- add template parameter to kernel to support aeon and xmr - update auto suggestion
- update auto suggestion default and hwloc - extent hash function table to support aeon and xmr within one miner
- rename all `xmr` to `monero` - be insensitive while check for set currency - add function to compate two strings insensitive
- fix that currency selection is not called (in cli-miner.cpp) - fix guard to prevent wrong currency selection if compiled for monero or aeon only
f093258
to
0117ed6
Compare
Ready to merge on my side. |
frome my side also |
bug was introduced with fireice-uk#67 - increase the L3 sanity check to 2GiB - fix usage of byte instead of KB
add Aeon support
bug was introduced with fireice-uk#67 - increase the L3 sanity check to 2GiB - fix usage of byte instead of KB
Add support to mine Aeon and Monero from one miner.
By default the miner is build to support both currencies. It is possible to compile the miner to support Monero or Aeon only.
There is a new command line option
--currency
and a CMake optionXMR-STAK_CURRENCY
added.It was on purpose that the options are named
currency
and the user can choose betweenmonero
andaeon
. From the perspective of a non export users there are only different currencies and it could be complicated for to understand that the algorithm behind differ and one is called cryptonight and the other cryptonight-lite.Review
I have split the changes into logical commits thus each commit can be easily review instead of the hole changes.
Test
Note: I have currently no AMD device available (my test system is dead :-( ) Therefore I tested the OpenCL AMD part only on a NVIDIA card. Could some please test this changes with an AMD device.