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 ... 8 9 [10] 11 12 ... 20  All

Author Topic: NxtMint Java minter  (Read 50747 times)

Wolf0

  • Jr. Member
  • **
  • Karma: +7/-0
  • Offline Offline
  • Posts: 97
    • View Profile
Re: NxtMint Java minter
« Reply #180 on: January 27, 2015, 11:46:01 am »

Started mining with this - wow, has it been a while since I've done Java...
Logged

ScripterRon

  • Hero Member
  • *****
  • Karma: +75/-2
  • Offline Offline
  • Posts: 523
    • View Profile
Re: NxtMint Java minter
« Reply #181 on: January 27, 2015, 12:07:13 pm »

Started mining with this - wow, has it been a while since I've done Java...
It has become a mix of Java, C and OpenCL.  I'm in the process of replacing Aparapi and writing the hash routines in native OpenCL.  This will let me access the GPU vector facilities which I can't do with Aparapi.

As for performance, modern Java is nearly equal to C++ and I much prefer it for the language and the extensive support routines that are bundled with the runtime.  For CPU-intensive work, C is better (and assembler is even better).
Logged

Wolf0

  • Jr. Member
  • **
  • Karma: +7/-0
  • Offline Offline
  • Posts: 97
    • View Profile
Re: NxtMint Java minter
« Reply #182 on: January 27, 2015, 12:14:29 pm »

Started mining with this - wow, has it been a while since I've done Java...
It has become a mix of Java, C and OpenCL.  I'm in the process of replacing Aparapi and writing the hash routines in native OpenCL.  This will let me access the GPU vector facilities which I can't do with Aparapi.

As for performance, modern Java is nearly equal to C++ and I much prefer it for the language and the extensive support routines that are bundled with the runtime.  For CPU-intensive work, C is better (and assembler is even better).

Aparapi is TERRIBLE at getting Java into OpenCL; I'm working on the same thing.

But first, I'm going to be lazy and see what I can do with this Java.
Logged

794259332

  • Newbie
  • *
  • Karma: +0/-0
  • Offline Offline
  • Posts: 7
    • View Profile
Re: NxtMint Java minter
« Reply #183 on: January 28, 2015, 03:15:27 am »

1.2.0 ver,

error:secret phrase not specified!


but i have specified the phrase in the nxtmint.conf file
Logged

ScripterRon

  • Hero Member
  • *****
  • Karma: +75/-2
  • Offline Offline
  • Posts: 523
    • View Profile
Re: NxtMint Java minter
« Reply #184 on: January 28, 2015, 03:46:51 am »

1.2.0 ver,

error:secret phrase not specified!


but i have specified the phrase in the nxtmint.conf file
What directory did you use for NxtMint.conf?  For Windows, it goes in
    \Users\<your-user-name>\AppData\Roaming\NxtMint\NxtMint.conf
Logged

Taxidermista

  • Newbie
  • *
  • Karma: +0/-0
  • Offline Offline
  • Posts: 6
    • View Profile
Re: NxtMint Java minter
« Reply #185 on: January 28, 2015, 03:00:24 pm »

I can't mint with gpus, only with cpu. This is the error I get:



This is my conf file:



Some help, please.

Logged

qwep4ik

  • Newbie
  • *
  • Karma: +0/-0
  • Offline Offline
  • Posts: 7
    • View Profile
Re: NxtMint Java minter
« Reply #186 on: January 28, 2015, 03:04:35 pm »

I can't mint with gpus, only with cpu. This is the error I get:
gpuDevice=0,8
Logged

Taxidermista

  • Newbie
  • *
  • Karma: +0/-0
  • Offline Offline
  • Posts: 6
    • View Profile
Re: NxtMint Java minter
« Reply #187 on: January 28, 2015, 03:12:00 pm »

I can't mint with gpus, only with cpu. This is the error I get:
gpuDevice=0,8

Sorry, I've just seen previous ScripterRon message about this bug. Thank you for your answer.
Logged

qwep4ik

  • Newbie
  • *
  • Karma: +0/-0
  • Offline Offline
  • Posts: 7
    • View Profile
Re: NxtMint Java minter
« Reply #188 on: January 28, 2015, 04:09:13 pm »

Help me
Logged

ScripterRon

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

Help me
Scrypt requires 128KB per work item.  So 13312 work items (your global size) requires 13312*128KB or 1664MB in the Java heap.  Aparapi requires all buffers to be allocated in the Java heap even if a particular buffer is an adapter work area which is never accessed by the host.

The requirement will go away once I finish rewriting everything to use native OpenCL.  Until then, set your work group count (third parameter for gpuDevice) to a smaller value.  For example, if you want to use a Java Heap of 512MB (-Xmx512) with a local size of 8, then set your group count to 512MB/(8*128KB) = 512.  So gpuDevice=0,8,512.

Note that if you use multiple GPUs, the total Java heap requirement will be the sum of the heap requirement for each adapter.
Logged

qwep4ik

  • Newbie
  • *
  • Karma: +0/-0
  • Offline Offline
  • Posts: 7
    • View Profile
Re: NxtMint Java minter
« Reply #190 on: January 28, 2015, 10:30:02 pm »

Quote from: ScripterRon

The requirement will go away once I finish rewriting everything to use native OpenCL.  Until then, set your work group count (third parameter for gpuDevice) to a smaller value.  For example, if you want to use a Java Heap of 512MB (-Xmx512) with a local size of 8, then set your group count to 512MB/(8*128KB) = 512.  So gpuDevice=0,8,512.
So gpuDevice=0,8,512.and less to do and no results no, not worked
Logged

ScripterRon

  • Hero Member
  • *****
  • Karma: +75/-2
  • Offline Offline
  • Posts: 523
    • View Profile
Re: NxtMint Java minter
« Reply #191 on: January 29, 2015, 12:56:54 am »

So gpuDevice=0,8,512.and less to do and no results no, not worked
What error did you get?  Did you set the Java heap size?  The example I gave requires a 512MB heap.
Logged

ScripterRon

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

I finished writing C99 OpenCL routines for the GPU hash algorithms (SHA-256, Keccak25 and Scrypt).  NxtMint no longer uses Aparapi and instead uses JOCL for the OpenCL Java bindings.  The performance is pretty much unchanged, which is to be expected since the bulk of the work is being done on the graphics card and my initial pass at the OpenCL routines just ported the C code used for CPU hashing (which is almost identical to the C99 code generated by Aparapi).

I then reworked part of the Scrypt algorithm to use the vector facility to do 16 concurrent XOR and ADD operations.  The Scrypt performance for my GT 720 went from 0.0114 MH/s to 0.0275 MH/s.

I'll need to look for more places where concurrent vector operations can be done, since that is really the strength of the graphics card (the scalar performance of a single processing unit is generally worse than a CPU).
Code: [Select]
C:\Work>java -Xmx256m -Djava.library.path="\GitHub\NxtMint\target\jni;\GitHub\NxtMint\package\jni" -jar "\GitHub\NxtMint
\target\NxtMint-1.3.0.jar"
12:25:23 INFO Main.main: Java Nxt Mint Version 1.3.0
12:25:23 INFO Main.main: Application data path: C:\Users\Ronald\Appdata\Roaming\NxtMint
12:25:23 INFO Main.main: Using Nxt node at scripterron.dyndns.biz:7876
12:25:23 INFO Main.main: Minting 5.000000 units of ELEMS for account NXT-XM86-4ZNA-65L5-CDWUE: 0 CPU threads, 10 GPU int
ensity
12:25:23 INFO Nxt.init: API node=scripterron.dyndns.biz, API port=7876
12:25:24 INFO Main.buildGpuList: GPU device 0: GeForce GT 720
  1024MB global memory, 47KB local memory, 2 compute units, Max work group size 1024
12:25:25 INFO HashFunction.<init>: JNI library NxtMint_x86_64 loaded - using native CPU hash routines
12:25:25 INFO GpuScrypt.<init>: GPU 0: Preferred work group size multiple is 32
12:25:25 FINE GpuScrypt.<init>: GPU 0: Local size 16, Global size 2048, Passes 5
12:25:25 INFO MintWorker.run: GPU worker 0 starting on GPU 0
12:25:25 FINE MintWorker.run: Worker 0 starting on counter 54
12:26:26 FINE MintWorker.run: Worker 0: 1.34 MHash, 0.0224 MHash/s
12:27:26 FINE MintWorker.run: Worker 0: 2.68 MHash, 0.0224 MHash/s
Logged

Wolf0

  • Jr. Member
  • **
  • Karma: +7/-0
  • Offline Offline
  • Posts: 97
    • View Profile
Re: NxtMint Java minter
« Reply #193 on: January 29, 2015, 06:41:48 am »

I finished writing C99 OpenCL routines for the GPU hash algorithms (SHA-256, Keccak25 and Scrypt).  NxtMint no longer uses Aparapi and instead uses JOCL for the OpenCL Java bindings.  The performance is pretty much unchanged, which is to be expected since the bulk of the work is being done on the graphics card and my initial pass at the OpenCL routines just ported the C code used for CPU hashing (which is almost identical to the C99 code generated by Aparapi).

I wouldn't bother with Keccak - the only one that matters to me. Also, protip: GCN (7xxx and up) do NOT have hardware vectors.
Logged

Wolf0

  • Jr. Member
  • **
  • Karma: +7/-0
  • Offline Offline
  • Posts: 97
    • View Profile
Re: NxtMint Java minter
« Reply #194 on: January 29, 2015, 08:44:47 pm »

ScripterRon - is the code for the JOCL version on github?
Logged

KL0nLutiy

  • Newbie
  • *
  • Karma: +0/-0
  • Offline Offline
  • Posts: 1
    • View Profile
Re: NxtMint Java minter
« Reply #195 on: January 29, 2015, 09:25:53 pm »

Hello, what the best settings for GTX 750 ti?
Logged

ScripterRon

  • Hero Member
  • *****
  • Karma: +75/-2
  • Offline Offline
  • Posts: 523
    • View Profile
Re: NxtMint Java minter
« Reply #196 on: January 29, 2015, 09:42:15 pm »

ScripterRon - is the code for the JOCL version on github?
Yes, but it isn't stable yet.
Logged

Wolf0

  • Jr. Member
  • **
  • Karma: +7/-0
  • Offline Offline
  • Posts: 97
    • View Profile
Re: NxtMint Java minter
« Reply #197 on: January 29, 2015, 09:47:04 pm »

ScripterRon - is the code for the JOCL version on github?
Yes, but it isn't stable yet.

Got a link? I'd like to take a look at it.
Logged

ScripterRon

  • Hero Member
  • *****
  • Karma: +75/-2
  • Offline Offline
  • Posts: 523
    • View Profile
Re: NxtMint Java minter
« Reply #198 on: January 30, 2015, 01:13:56 am »

Logged

Wolf0

  • Jr. Member
  • **
  • Karma: +7/-0
  • Offline Offline
  • Posts: 97
    • View Profile
Re: NxtMint Java minter
« Reply #199 on: January 30, 2015, 02:01:43 am »

Thanks, checking it out now.
Logged
Pages: 1 ... 8 9 [10] 11 12 ... 20  All
 

elective-stereophonic
elective-stereophonic
assembly
assembly