dmarcuse / turbokrist Goto Github PK
View Code? Open in Web Editor NEWThe first-ever GPU accelerated Krist miner - using Java and OpenCL.
License: GNU General Public License v3.0
The first-ever GPU accelerated Krist miner - using Java and OpenCL.
License: GNU General Public License v3.0
After struggling to build turbokrist (due to a folly of my own), I finally got it to build. I followed the instructions, and everything was going fine until I tried to actually mine. Despite confirming that the address I was putting was correct, I kept getting that error despite trying new/different addresses.
The command I used, and the output, is as follows:
C:\Users\Moondancer\Krist\turbokrist\turbokrist-cli\build\libs>java -jar turbokrist-cli.jar -a --host kzwow91ylm -w 1072069736:4096 Exception in thread "main" org.json.JSONException: JSONObject["address"] not found. at org.json.JSONObject.get(JSONObject.java:471) at org.json.JSONObject.getJSONObject(JSONObject.java:636) at me.lignum.jkrist.Krist.getAddress(Krist.java:80) at me.apemanzilla.krist.turbokrist.MinerOptions.(MinerOptions.java:31) at me.apemanzilla.krist.turbokrist.cli.Launcher.main(Launcher.java:108)
This has happened to me once so far, and since there were no other issues mentioned about this, I've decided to leave this here.
Screenshot of Problem
Java itself had crashed, and there was no debug information to be found.
I've used your program in the past for a while, but for some reason my windows 10 doesnt really like your program. it keeps saying i dont have OpenCL installed.(and if you where wondering, yes. i have the latest NVIDIA drivers installed, same with JDK and JRE)
if you need a screenshot of the error log:
https://i.gyazo.com/d1a648d1cc17b3d7fa16ff9e93b4a7fa.png
and if you need the full compiling output:
com.nativelibs4java.opencl.CLBuildException: Compilation failure : (devices: [Iris Pro (Apple)])
<program source>:68:6: error: no previous prototype for function 'digest'
void digest(byte* data, uint inputLen, byte* hash) {
^
<program source>:165:6: error: no previous prototype for function 'hashToLong'
long hashToLong(byte* hash) {
^
<program source>:170:6: error: no previous prototype for function 'longToHex'
void longToHex(long in, byte* hex, int offset) {
^
<program source>:243:9: error: comparison of integers of different signs: 'int' and 'unsigned long'
if (id < sizeof(K)) {
~~ ^ ~~~~~~~~~
Occurs during the :test
phase of the build.
I tried everything for a week, no success to make it run
Windows 10 64 bit
Intel HD Graphics 530
Nvidia GTX 1080
latest java
latest SDK java
latest nvidia drivers
got CUDA
this is the error I get all the time:
Gets stuck on 33% when building
Improve the periodic status messages to include average hashrate and blocks per minute.
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':compileJava'.
> Configuration with name 'default' not found.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 4.895 secs
If you need the total stack trace please tell me, it's quite a bit.
no main manifest attribute, in turbokrist.jar
Seeing as this bug has persisted from the original version of the Java portion of the code, I'd imagine it's a bug with the OpenCL mining kernel.
I'm having some trouble getting the miner to run. Whenever I start it, it just gets stuck on "Starting miner...". This only seems to happen on the krist_2.0 branch as of today, as it worked fine yesterday (same commit, though?).
This is the full command line I'm using:
java -jar turbokrist-cli.jar -h kre3w0i79j -w -13198598:2097152 -a
I'm running this on Xubuntu 15.10.
In some cases block changes will not be detected. The miners should be restarted automatically after a short delay if this occurs.
:KristAPI:processResources UP-TO-DATE
:KristAPI:classes
:KristAPI:jar
:compileJava
warning: [options] bootstrap class path not set in conjunction with -source 1.6
1 warning
:processResources
:classes
:jar
:assemble
:compileTestJava
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all dependencies for configuration ':testCompile'.
> Could not resolve junit:junit:4.12.
Required by:
:turbokrist:unspecified
> Could not resolve junit:junit:4.12.
> Could not parse Ivy file file:/C:/Users/justy/.gradle/caches/modules-2/metadata-2.16/descriptors/junit/junit/4.12/4471c3b2f5ea2d40ffaa8b3948cdbacd/ivy.xml
> Content is not allowed in prolog.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 36.953 secs```
I use it a bit and errors sometimes.
Logs are attached.
I am not English.
i get about 268.44MH/s when im running in $((2**28))
(sorry for posting it here, but i cant find another way to message this to you on GitHub)
Not sure if it's a bug or I'm being silly...
:test
me.apemanzilla.jclminer.tests.TestCLHashing > testHashing_digest FAILED
java.lang.ExceptionInInitializerError
Caused by: com.nativelibs4java.opencl.CLException
java.lang.NullPointerException
me.apemanzilla.jclminer.tests.TestCLConstants > testConstant_K FAILED
java.lang.NoClassDefFoundError
java.lang.NullPointerException
me.apemanzilla.jclminer.tests.TestCLMacros > testMacro_PAD FAILED
java.lang.NoClassDefFoundError
java.lang.NullPointerException
me.apemanzilla.jclminer.tests.TestCLMacros > testMacro_RR FAILED
java.lang.NoClassDefFoundError
java.lang.NullPointerException
me.apemanzilla.jclminer.tests.TestCLMining > testMining_hashToLong FAILED
java.lang.NoClassDefFoundError
java.lang.NullPointerException
Dunno if this is intended, but it doesn't build the CLI, which is a problem.
Unless you're supposed to build it manually, in which case I get this:
Circular dependency between the following tasks:
:classes
\--- :compileJava
\--- :jar
\--- :classes (*)
(*) - details omitted (listed previously)
I'm running turbokrist on Ubuntu 16.04, my laptop has a GT650m that is capable of about 33-35MH/s.
The startup command I'm using is java -jar turbokrist-cli.jar -h kmdni3p1au -a -w 069500862:131072
. Oracle Java 8u101 is installed from the Webupd8 PPA.
When run from the command line, turbokrist will peg one core of my i7 3630QM to 100% and have two other cores hover around 25-30%. I get the full 33-35MH/s that I expect.
However, if the above Java command is put into a bash script called miner.sh, and run from the Linux terminal with ./miner.sh, only one CPU core is used. The rest remain idle, I hear an awful coil whine sound emanating from my laptop, and my hash rate drops to about 12-15MH/s.
This may be a Java bug and not related to turbokrist, but I run fairly heavy Minecraft servers on this machine regularly and they have no core locks or performance issues when running from a bash script instead of the terminal.
Description
Ran gradlew.bat build
on Windows 10 and did not get build/libs/turbokrist-cli.jar
got build/libs/turbokrist.jar
which did not work with the Mining wiki page.
Expected Behavior
Running gradlew.bat build
produces build/libs/turbokrist-cli.jar
as described in the Building page of the wiki
Steps to reproduce
Follow instructions on the wiki.
Other Information
Off topic, you may want to look at this: https://help.github.com/articles/creating-an-issue-template-for-your-repository/
Description
Turbokrist stops mining if it has submitted too many rejected solutions too quickly, encountering an HTTP 429: Too Many Requests
Expected Behavior
After encountering the HTTP error, Turbokrist should have either waited for the Retry-After response header's duration and keep mining or fully crash so that a script may restart it.
Steps to reproduce
Other Information
Ubuntu 16.04.2 64-bit, GeForce GTX 950M: Driver 378.13
I discovered that krist.ceriat.net returns a pair of headers, X-Ratelimit-Remaining and X-Ratelimit-Limit, that can be used to check rates and halt requests in a timeout period. Rates seem to be per minute.
Error Report / Screenshot / Other Media
Aaaaaaaaaaaa.......... it just won't work. OpenCL won't work with Java.
0 LD-Server ~/turbokrist ./gradlew build
:JKrist:compileJava UP-TO-DATE
:JKrist:processResources UP-TO-DATE
:JKrist:classes UP-TO-DATE
:JKrist:jar UP-TO-DATE
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:jar UP-TO-DATE
:assemble UP-TO-DATE
:compileTestJava UP-TO-DATE
:processTestResources UP-TO-DATE
:testClasses UP-TO-DATE
:test
me.apemanzilla.jclminer.tests.TestCLConstants > testConstant_K FAILED
java.lang.ExceptionInInitializerError
Caused by: com.nativelibs4java.opencl.CLException
java.lang.NullPointerException
me.apemanzilla.jclminer.tests.TestCLHashing > testHashing_digest FAILED
java.lang.NoClassDefFoundError
java.lang.NullPointerException
me.apemanzilla.jclminer.tests.TestCLMacros > testMacro_PAD FAILED
java.lang.NoClassDefFoundError
java.lang.NullPointerException
me.apemanzilla.jclminer.tests.TestCLMacros > testMacro_RR FAILED
java.lang.NoClassDefFoundError
java.lang.NullPointerException
me.apemanzilla.jclminer.tests.TestCLMining > testMining_hashToLong FAILED
java.lang.NoClassDefFoundError
java.lang.NullPointerException
5 tests completed, 5 failed
:test FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':test'.
> There were failing tests. See the report at: file:///home/logandark/turbokrist/build/reports/tests/index.html
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 3.356 secs
I have no idea how java development works. Can't you just provide a prebuilt jar?
I have attempted building this on windows 10 and ubuntu 14 and i have had no luck. the build fails just because of this tools.jar. This is a build failgue and i can't do a thing. I don't know how i got the error i just get it.
C:\Users\X\OneDrive\Documenten\GitHub\turbokrist>gradlew build
:JKrist:compileJava FAILED
FAILURE: Build failed with an exception.
Could not find tools.jar
BUILD FAILED
Total time: 6.004 secs
Before you close this as a duplicate of #9, my issue is different.
My CPU and GPUs support OpenCL:
Device Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz supports OpenCL 1.2
Device Iris Pro supports OpenCL 1.2
Device AMD Radeon R9 M370X Compute Engine supports OpenCL 1.2
So, let's try to build turbokrist:
0 LoganDark ~ git clone --recursive https://github.com/apemanzilla/turbokrist
Cloning into 'turbokrist'...
remote: Counting objects: 579, done.
remote: Total 579 (delta 0), reused 0 (delta 0), pack-reused 579
Receiving objects: 100% (579/579), 132.06 KiB | 0 bytes/s, done.
Resolving deltas: 100% (176/176), done.
Checking connectivity... done.
Submodule 'JKrist' (https://github.com/Lignumm/JKrist) registered for path 'JKrist'
Cloning into '/Users/LoganDark/turbokrist/JKrist'...
cdSubmodule path 'JKrist': checked out 'f0f77f0e1b51e60f2c87d3889d8a760e71725315'
0 LoganDark ~ cd turbokrist
0 LoganDark ~/turbokrist ./gradlew build
Download https://repo1.maven.org/maven2/org/json/json/20160212/json-20160212.pom
Download https://repo1.maven.org/maven2/org/sonatype/oss/oss-parent/9/oss-parent-9.pom
Download https://repo1.maven.org/maven2/org/json/json/20160212/json-20160212.jar
:JKrist:compileJava
warning: [options] bootstrap class path not set in conjunction with -source 1.7
1 warning
:JKrist:processResources UP-TO-DATE
:JKrist:classes
:JKrist:jar
:compileJava
warning: [options] bootstrap class path not set in conjunction with -source 1.6
1 warning
:processResources
:classes
:jar
:assemble
:compileTestJava
warning: [options] bootstrap class path not set in conjunction with -source 1.6
1 warning
:processTestResources
:testClasses
:test
me.apemanzilla.jclminer.tests.TestCLConstants > testConstant_K FAILED
org.bridj.SignalError
java.lang.NullPointerException
me.apemanzilla.jclminer.tests.TestCLMacros > testMacro_PAD FAILED
java.lang.NoClassDefFoundError
java.lang.NullPointerException
me.apemanzilla.jclminer.tests.TestCLMacros > testMacro_RR FAILED
java.lang.NoClassDefFoundError
java.lang.NullPointerException
me.apemanzilla.jclminer.tests.TestCLHashing > testHashing_digest FAILED
java.lang.NoClassDefFoundError
java.lang.NullPointerException
me.apemanzilla.jclminer.tests.TestCLMining > testMining_hashToLong FAILED
java.lang.NoClassDefFoundError
java.lang.NullPointerException
5 tests completed, 5 failed
:test FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':test'.
> There were failing tests. See the report at: file:///Users/LoganDark/turbokrist/build/reports/tests/index.html
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 19.574 secs
It compiles/builds fine. It's the tests that fail.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.