elective-stereophonic
elective-stereophonic
NxtMint Java minter  
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Nxt Client: Nxt 1.11.15

Pages: 1 2 [3] 4 5 ... 20  All

Author Topic: NxtMint Java minter  (Read 50899 times)

ScripterRon

  • Hero Member
  • *****
  • Karma: +75/-2
  • Offline Offline
  • Posts: 523
    • View Profile
Re: NxtMint Java minter
« Reply #40 on: January 17, 2015, 05:04:17 am »

I am on Linux 64bit. CPU hashing works. Now I am trying to get the AMD started. Got the AMD SDK and aparapi. But I get this:

11:36:01 SEVERE OpenCLLoader.<clinit>: Check your environment. Failed to load aparapi native library aparapi_x86_64 or possibly failed to locate opencl native library (opencl.dll/opencl.so). Ensure that both are in your PATH (windows) or in LD_LIBRARY_PATH (linux).

Seems something is not in the right folder. Can you give a hint which file needs to be where?
Are the files in one of the directories specified by the LD_LIBRARY_PATH environment variable?  I don't have a Linux desktop system to try this out on.  You could also try setting the Java library path to point to the directory containing the aparapi and opencl library files.  This is done by specifying -Djava.library.path=<library-directory> on the Java command line when you start NxtMint.
Logged

ScripterRon

  • Hero Member
  • *****
  • Karma: +75/-2
  • Offline Offline
  • Posts: 523
    • View Profile
Re: NxtMint Java minter
« Reply #41 on: January 17, 2015, 05:08:54 am »

BTW, could the log show how many hashes have been calculated as that in the original CPU mint.exe ?
Sure - the worker hash count since the last solution is what is used to compute the hash rate, so I can easily add that to the log line.  In addition, the GUI display contains the total number of hashes performed by the worker that found the solution.
Logged

jasemoney

  • Newbie
  • *
  • Karma: +1/-0
  • Offline Offline
  • Posts: 9
    • View Profile
Re: NxtMint Java minter
« Reply #42 on: January 17, 2015, 05:10:59 am »

path stuff isnt going so well for me, i put aparapi files, opencl.dll, and opencl64.dll like in a bunch of spots. and changed my PATH user variable to the nextmint folder where everything is.
I even changed the run.bat to this:
Quote
java -Xmx256m -jar NxtMint-1.0.0.jar
-Djava.library.path=C:\nxtminter
pause
i suck at this!

Logged

qqNxt

  • Full Member
  • ***
  • Karma: +18/-1
  • Offline Offline
  • Posts: 174
    • View Profile
    • http://www.myfreenxt.com/
Re: NxtMint Java minter
« Reply #43 on: January 17, 2015, 05:18:12 am »

all working now! thanks!

@jasemoney I put aparapi files all in the nxtmint directory. like NxtMint-1.0.0\aparapi_x86.dll
and this for the mint.bat
java -Xmx256m -jar NxtMint-1.0.0.jar

these here
\AppData\Roaming\NxtMint\NxtMint.conf
\AppData\Roaming\NxtMint\logging.properties

hope this helps.

Logged
http://www.myfreenxt.com/
NXT-8PGJ-JWZM-BRN9-59Y3L

Admiral Ackbar

  • Jr. Member
  • **
  • Karma: +3/-0
  • Offline Offline
  • Posts: 28
    • View Profile
Re: NxtMint Java minter
« Reply #44 on: January 17, 2015, 05:22:32 am »

I am on Linux 64bit. CPU hashing works. Now I am trying to get the AMD started. Got the AMD SDK and aparapi. But I get this:

11:36:01 SEVERE OpenCLLoader.<clinit>: Check your environment. Failed to load aparapi native library aparapi_x86_64 or possibly failed to locate opencl native library (opencl.dll/opencl.so). Ensure that both are in your PATH (windows) or in LD_LIBRARY_PATH (linux).

Seems something is not in the right folder. Can you give a hint which file needs to be where?
Are the files in one of the directories specified by the LD_LIBRARY_PATH environment variable?  I don't have a Linux desktop system to try this out on.  You could also try setting the Java library path to point to the directory containing the aparapi and opencl library files.  This is done by specifying -Djava.library.path=<library-directory> on the Java command line when you start NxtMint.


Yes, I tried them all in one folder and also copied them around like the other cell mates here. No luck.
Can you name the specific files it is looking for? For example I do not have a opencl.so. They are named differently

/opt/AMDAPPSDK-3.0-0-Beta/lib/x86_64/libamdhsasc64.so
/opt/AMDAPPSDK-3.0-0-Beta/lib/x86_64/libamdocl64.so
/opt/AMDAPPSDK-3.0-0-Beta/lib/x86_64/libGLEW.a
/opt/AMDAPPSDK-3.0-0-Beta/lib/x86_64/libGLEW.so
/opt/AMDAPPSDK-3.0-0-Beta/lib/x86_64/libglut.a
/opt/AMDAPPSDK-3.0-0-Beta/lib/x86_64/libglut.so
/opt/AMDAPPSDK-3.0-0-Beta/lib/x86_64/libOpenCL.so
/opt/AMDAPPSDK-3.0-0-Beta/lib/x86_64/libOpenCL.so.1
Logged

jasemoney

  • Newbie
  • *
  • Karma: +1/-0
  • Offline Offline
  • Posts: 9
    • View Profile
Re: NxtMint Java minter
« Reply #45 on: January 17, 2015, 05:55:43 am »

ok so I updated to JDK 8 latest version from Java, workes great  now and now asking for silly .dlls anymore ;)
Logged

manrus

  • Jr. Member
  • **
  • Karma: +5/-6
  • Offline Offline
  • Posts: 53
    • View Profile
Re: NxtMint Java minter
« Reply #46 on: January 17, 2015, 10:21:50 am »

Works fine. Thanks ;)
Logged

achim

  • Hero Member
  • *****
  • Karma: +50/-6
  • Offline Offline
  • Posts: 648
    • View Profile
Re: NxtMint Java minter
« Reply #47 on: January 17, 2015, 10:42:32 am »

if my gpu usage is 99%, my GPU is succesfully calculating hashes, right?

Just wondering because i set units=1 for EGOLD for testing, and I only minted 2 EGOLD in like 10 mintes...

edit: Only 217MH in 8 mintes.
« Last Edit: January 17, 2015, 10:46:48 am by achim »
Logged

manrus

  • Jr. Member
  • **
  • Karma: +5/-6
  • Offline Offline
  • Posts: 53
    • View Profile
Re: NxtMint Java minter
« Reply #48 on: January 17, 2015, 10:46:23 am »

if my gpu usage is 99%, my GPU is succesfully calculating hashes, right?

Just wondering because i set units=1 for EGOLD for testing, and I only minted 2 EGOLD in like 10 mintes...

My gpu 70-80% load. In last 45 min found 20 units egold. [GPU - Intel Iris Pro 5200]

first 10 units found at 4763 MH
second 10 units at 12110 MH
« Last Edit: January 17, 2015, 10:48:53 am by manrus »
Logged

achim

  • Hero Member
  • *****
  • Karma: +50/-6
  • Offline Offline
  • Posts: 648
    • View Profile
Re: NxtMint Java minter
« Reply #49 on: January 17, 2015, 11:03:12 am »

if my gpu usage is 99%, my GPU is succesfully calculating hashes, right?

Just wondering because i set units=1 for EGOLD for testing, and I only minted 2 EGOLD in like 10 mintes...

My gpu 70-80% load. In last 45 min found 20 units egold. [GPU - Intel Iris Pro 5200]

first 10 units found at 4763 MH
second 10 units at 12110 MH

Hmm something looks not right with my minter. You have ca. 6 MH/s, while I'm at 0,45 MH/s
With an AMD 8870M

Although I get no error, GUI comes up and I occasionally mint something
Logged

manrus

  • Jr. Member
  • **
  • Karma: +5/-6
  • Offline Offline
  • Posts: 53
    • View Profile
Re: NxtMint Java minter
« Reply #50 on: January 17, 2015, 11:13:45 am »

Hmm something looks not right with my minter. You have ca. 6 MH/s, while I'm at 0,45 MH/s
With an AMD 8870M

Although I get no error, GUI comes up and I occasionally mint something

Set intensity lower. Big value make more errors.
Logged

crimi

  • Hero Member
  • *****
  • Karma: +122/-11
  • Offline Offline
  • Posts: 863
    • View Profile
Re: NxtMint Java minter
« Reply #51 on: January 17, 2015, 01:06:51 pm »

Nice work. Much fun.

With r290x it is cutting trough EGOLD like butter. 35-40 MH/s with a little tweaking and cpu mining aswell around 60  MH/s :D Intensity 14 is limit for me... further bluescreen ^^

Sat Jan 17 14:32:23 CET 2015 Units: 20.0 Hashes: 1110 MH
Sat Jan 17 14:32:29 CET 2015 Units: 20.0 Hashes: 227 MH
Sat Jan 17 14:39:05 CET 2015 Units: 20.0 Hashes: 15952 MH
Sat Jan 17 14:41:13 CET 2015 Units: 20.0 Hashes: 5160 MH
Sat Jan 17 14:45:08 CET 2015 Units: 20.0 Hashes: 9473 MH
Sat Jan 17 14:45:33 CET 2015 Units: 20.0 Hashes: 1029 MH
« Last Edit: January 17, 2015, 02:48:31 pm by crimi »
Logged

ScripterRon

  • Hero Member
  • *****
  • Karma: +75/-2
  • Offline Offline
  • Posts: 523
    • View Profile
Re: NxtMint Java minter
« Reply #52 on: January 17, 2015, 02:48:03 pm »

path stuff isnt going so well for me, i put aparapi files, opencl.dll, and opencl64.dll like in a bunch of spots. and changed my PATH user variable to the nextmint folder where everything is.
I even changed the run.bat to this:
Quote
java -Xmx256m -jar NxtMint-1.0.0.jar
-Djava.library.path=C:\nxtminter
pause
i suck at this!
All options must be specified before -jar since anything after that is treated as program arguments.  Try:
    java -Xmx256m -Djava.library.path=C:\nxtminter -jar NxtMint-1.0.0.jar

However, since you are on Windows, it should work if you place runtime libraries in C:\nxtminter and make sure that is the current directory when you start NxtMint (Windows looks in the current directory before searching the PATH).
Logged

ScripterRon

  • Hero Member
  • *****
  • Karma: +75/-2
  • Offline Offline
  • Posts: 523
    • View Profile
Re: NxtMint Java minter
« Reply #53 on: January 17, 2015, 02:55:02 pm »

I am on Linux 64bit. CPU hashing works. Now I am trying to get the AMD started. Got the AMD SDK and aparapi. But I get this:

11:36:01 SEVERE OpenCLLoader.<clinit>: Check your environment. Failed to load aparapi native library aparapi_x86_64 or possibly failed to locate opencl native library (opencl.dll/opencl.so). Ensure that both are in your PATH (windows) or in LD_LIBRARY_PATH (linux).

Seems something is not in the right folder. Can you give a hint which file needs to be where?
Are the files in one of the directories specified by the LD_LIBRARY_PATH environment variable?  I don't have a Linux desktop system to try this out on.  You could also try setting the Java library path to point to the directory containing the aparapi and opencl library files.  This is done by specifying -Djava.library.path=<library-directory> on the Java command line when you start NxtMint.


Yes, I tried them all in one folder and also copied them around like the other cell mates here. No luck.
Can you name the specific files it is looking for? For example I do not have a opencl.so. They are named differently

/opt/AMDAPPSDK-3.0-0-Beta/lib/x86_64/libamdhsasc64.so
/opt/AMDAPPSDK-3.0-0-Beta/lib/x86_64/libamdocl64.so
/opt/AMDAPPSDK-3.0-0-Beta/lib/x86_64/libGLEW.a
/opt/AMDAPPSDK-3.0-0-Beta/lib/x86_64/libGLEW.so
/opt/AMDAPPSDK-3.0-0-Beta/lib/x86_64/libglut.a
/opt/AMDAPPSDK-3.0-0-Beta/lib/x86_64/libglut.so
/opt/AMDAPPSDK-3.0-0-Beta/lib/x86_64/libOpenCL.so
/opt/AMDAPPSDK-3.0-0-Beta/lib/x86_64/libOpenCL.so.1
I'm guessing it wants libOpenCL.so, but you should copy all the files in lib/x86_64.  Did you try setting the Java library path?
    java -Xmx256m -Djava.library.path="/opt/AMDAPPSDK-3.0-0-Beta/lib/X86_64:<directory containing libaparapi_x86_64.so> -jar NxtMint-1.0.0.jar

I don't have a Linux system to test this on.
Logged

Admiral Ackbar

  • Jr. Member
  • **
  • Karma: +3/-0
  • Offline Offline
  • Posts: 28
    • View Profile
Re: NxtMint Java minter
« Reply #54 on: January 17, 2015, 02:55:58 pm »

I am on Linux 64bit. CPU hashing works. Now I am trying to get the AMD started. Got the AMD SDK and aparapi. But I get this:

11:36:01 SEVERE OpenCLLoader.<clinit>: Check your environment. Failed to load aparapi native library aparapi_x86_64 or possibly failed to locate opencl native library (opencl.dll/opencl.so). Ensure that both are in your PATH (windows) or in LD_LIBRARY_PATH (linux).

Seems something is not in the right folder. Can you give a hint which file needs to be where?
Are the files in one of the directories specified by the LD_LIBRARY_PATH environment variable?  I don't have a Linux desktop system to try this out on.  You could also try setting the Java library path to point to the directory containing the aparapi and opencl library files.  This is done by specifying -Djava.library.path=<library-directory> on the Java command line when you start NxtMint.


I got it to work somehow by pushing every possible file into every possible folder.
It starts now without error message for the GPU but I don't think it works correctly. It appears to still run on CPU (which is set to 0 threads). The CPU usage is high. No speed improvement visible.
In a mixed mode (CPU and GPU) the worker with the highest number (presumably the GPU) gets less and less hashes the more CPU cores I activate.
Any idea how to check the GPU is crunching?


edit: oops, our posts just criss crossed

2nd edit: I threw everything in the OpenCl installation and started it successfully with java -Xmx256m -Djava.library.path=/blablabla.../AMDAPPSDK-3.0-0-Beta/lib -jar NxtMint-1.0.0.jar
« Last Edit: January 17, 2015, 03:02:00 pm by Admiral Ackbar »
Logged

ScripterRon

  • Hero Member
  • *****
  • Karma: +75/-2
  • Offline Offline
  • Posts: 523
    • View Profile
Re: NxtMint Java minter
« Reply #55 on: January 17, 2015, 02:59:02 pm »

if my gpu usage is 99%, my GPU is succesfully calculating hashes, right?

Just wondering because i set units=1 for EGOLD for testing, and I only minted 2 EGOLD in like 10 mintes...

edit: Only 217MH in 8 mintes.
The hash count for a solution is just the number of hashes done by the worker that found the solution.  The log file displays the hash rate for each worker every minute (make sure you created logging.properties in the application data directory so the debug messages are logged).
« Last Edit: January 17, 2015, 03:16:30 pm by ScripterRon »
Logged

ScripterRon

  • Hero Member
  • *****
  • Karma: +75/-2
  • Offline Offline
  • Posts: 523
    • View Profile
Re: NxtMint Java minter
« Reply #56 on: January 17, 2015, 03:02:48 pm »

Nice work. Much fun.

With r290x it is cutting trough EGOLD like butter. 35-40 MH/s with a little tweaking and cpu mining aswell around 60  MH/s :D Intensity 14 is limit for me... further bluescreen ^^

Sat Jan 17 14:32:23 CET 2015 Units: 20.0 Hashes: 1110 MH
Sat Jan 17 14:32:29 CET 2015 Units: 20.0 Hashes: 227 MH
Sat Jan 17 14:39:05 CET 2015 Units: 20.0 Hashes: 15952 MH
Sat Jan 17 14:41:13 CET 2015 Units: 20.0 Hashes: 5160 MH
Sat Jan 17 14:45:08 CET 2015 Units: 20.0 Hashes: 9473 MH
Sat Jan 17 14:45:33 CET 2015 Units: 20.0 Hashes: 1029 MH
Great!  Guess I need to work on a GPU version for Scrypt coins since you are going to corner the EGOLD market :)
Logged

achim

  • Hero Member
  • *****
  • Karma: +50/-6
  • Offline Offline
  • Posts: 648
    • View Profile
Re: NxtMint Java minter
« Reply #57 on: January 17, 2015, 03:04:01 pm »

if my gpu usage is 99%, my GPU is succesfully calculating hashes, right?

Just wondering because i set units=1 for EGOLD for testing, and I only minted 2 EGOLD in like 10 mintes...

edit: Only 217MH in 8 mintes.
The rate is MH/sec and is the average since the last successful minting transaction.  However, 217 MH/s is pretty low.  What graphics card do you have?  NVIDIA is usually slower than AMD for integer operations and the older NVIDIA cards are even slower (4-digit series are older than 3-digit series, which is kind of confusing).

217 MH/s for egold would be pretty nice ;)
it's all good now, I'm crunching along with 18 MH/s, probably set the intensity too high before.
Logged

ScripterRon

  • Hero Member
  • *****
  • Karma: +75/-2
  • Offline Offline
  • Posts: 523
    • View Profile
Re: NxtMint Java minter
« Reply #58 on: January 17, 2015, 03:12:54 pm »

I got it to work somehow by pushing every possible file into every possible folder.
It starts now without error message for the GPU but I don't think it works correctly. It appears to still run on CPU (which is set to 0 threads). The CPU usage is high. No speed improvement visible.
In a mixed mode (CPU and GPU) the worker with the highest number (presumably the GPU) gets less and less hashes the more CPU cores I activate.
Any idea how to check the GPU is crunching?


edit: oops, our posts just criss crossed

2nd edit: I threw everything in the OpenCl installation and started it successfully with java -Xmx256m -Djava.library.path=/blablabla.../AMDAPPSDK-3.0-0-Beta/lib -jar NxtMint-1.0.0.jar
Aparapi and OpenCL need CPU resources to move data to/from GPU memory and to initiate each kernel instance.  So pushing the CPU load up will actually reduce the GPU throughput since OpenCL needs to wait for time on the CPU.  The best method is to start with cpuThreads=0 and then adjust gpuIntensity to get the best GPU rate without errors (GPU throughput will actually decline at some point as the cores become saturated, eventually failling due to lack of resources).  Once you have done this, you can then start to add CPU threads until you notice a degradation in GPU throughput.

As far as the GPU not being used at all, look at the log file.  The GPU worker will fallback to CPU hashing if the GPU fails.  This happens if the OpenCL environment cannot be initialized, GPU resources are not available or become unavailable during hashing (for example, a graphics-intensive program is started while NxtMint is running).  The CPU workers are started first, then the GPU worker is started.  So, if cpuThreads=4, then workers 0-3 are CPU and worker 4 is GPU.
Logged

ScripterRon

  • Hero Member
  • *****
  • Karma: +75/-2
  • Offline Offline
  • Posts: 523
    • View Profile
Re: NxtMint Java minter
« Reply #59 on: January 17, 2015, 03:22:35 pm »

217 MH/s for egold would be pretty nice ;)
it's all good now, I'm crunching along with 18 MH/s, probably set the intensity too high before.
Yep - I misread your append.  Out of curiousity, is that an NVIDIA or an AMD card?  I'd like to get an idea of the differences between the various cards.  Since the GPU kernel program is built just once and then reused for each kernel instance, Java vs native shouldn't be an issue for GPU hashing.  CPU hashing benefits from JIT although a native implementation would certainly be faster (but I don't know what the performance difference actually is).
Logged
Pages: 1 2 [3] 4 5 ... 20  All
 

elective-stereophonic
elective-stereophonic
assembly
assembly