teknohog
|
|
November 10, 2010, 07:36:42 PM |
|
Try running with -f 30; this will lag your desktop, but will reduce the overhead caused by OpenCL itself. You can go down to -f 2 safely if needed, it just slows down X.
58 Mhash/s at -f 2 after 15 minutes. May I suggest that you calculate the hash rate over an interval of a few seconds, rather than the entire running time? This would make testing much more convenient. Also, I am interested in a little justification for the "should be faster" part, especially if the OpenCL kernel remains unchanged
|
|
|
|
SmokeTooMuch
Legendary
Offline
Activity: 860
Merit: 1026
|
|
November 10, 2010, 08:12:55 PM |
|
Vector width. I have a 4850, -w 64 -v 2 is the most optimum settings for GPUs like ours. m0mchil's doesn't seem to have a comparable option.
That makes it even slower. Desktop responsiveness stays the same.
|
|
|
|
DiabloD3 (OP)
Legendary
Offline
Activity: 1162
Merit: 1000
DiabloMiner author
|
|
November 10, 2010, 08:39:04 PM |
|
Try running with -f 30; this will lag your desktop, but will reduce the overhead caused by OpenCL itself. You can go down to -f 2 safely if needed, it just slows down X.
58 Mhash/s at -f 2 after 15 minutes. May I suggest that you calculate the hash rate over an interval of a few seconds, rather than the entire running time? This would make testing much more convenient. Also, I am interested in a little justification for the "should be faster" part, especially if the OpenCL kernel remains unchanged I don't wanna do it like m0mchil does because it bounces around too much and gives a false impression of the speed. I probably should reset it after every 30 or 60 seconds or something.
|
|
|
|
DiabloD3 (OP)
Legendary
Offline
Activity: 1162
Merit: 1000
DiabloMiner author
|
|
November 10, 2010, 08:41:17 PM |
|
Vector width. I have a 4850, -w 64 -v 2 is the most optimum settings for GPUs like ours. m0mchil's doesn't seem to have a comparable option.
That makes it even slower. Desktop responsiveness stays the same. Hmm, strange. Should work on yours like it does mine.
|
|
|
|
slush
Legendary
Offline
Activity: 1386
Merit: 1097
|
|
November 10, 2010, 09:18:20 PM |
|
Hi, what I'm doing wrong? C:\Users\myname\xxx>dir Volume in drive C has no label. Volume Serial Number is FCC4-B48E
Directory of C:\Users\myname\xxx
10.11.2010 22:14 <DIR> . 10.11.2010 22:14 <DIR> .. 10.11.2010 22:04 160 DiabloMiner-Linux.sh 10.11.2010 22:04 161 DiabloMiner-OSX.sh 10.11.2010 22:04 162 DiabloMiner-Solaris.sh 10.11.2010 22:04 35 147 LICENSE 10.11.2010 22:04 759 README 10.11.2010 22:14 <DIR> target 5 File(s) 36 389 bytes 3 Dir(s) 1 469 357 600 768 bytes free
C:\Users\myname\xxx>java -cp target/libs/*:target/DiabloMiner-0.0.1-SNAPSHOT.jar -Djava.library.path=target/libs/natives/windows com.diablominer.DiabloMiner.DiabloMiner Exception in thread "main" java.lang.NoClassDefFoundError: com/diablominer/DiabloMiner/DiabloMiner Caused by: java.lang.ClassNotFoundException: com.diablominer.DiabloMiner.DiabloMiner at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) Could not find the main class: com.diablominer.DiabloMiner.DiabloMiner. Program will exit.
|
|
|
|
bagazaga
|
|
November 10, 2010, 10:00:08 PM Last edit: November 10, 2010, 10:41:21 PM by bagazaga |
|
It doesn't work on 64-bit JVM on Vista. # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000000000000, pid=5376, tid=6540 # # JRE version: 6.0_21-b07 # Java VM: Java HotSpot(TM) 64-Bit Server VM (17.0-b17 mixed mode windows-amd64 ) # Problematic frame: # C 0x0000000000000000 # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. #
--------------- T H R E A D ---------------
Current thread (0x000000000103b800): JavaThread "main" [_thread_in_native, id=6540, stack(0x00000000025d0000,0x00000000026d0000)]
siginfo: ExceptionCode=0xc0000005, ExceptionInformation=0x0000000000000008 0x0000000000000000
Registers: EAX=0x00000000081376b0, EBX=0x00000000807dc608, ECX=0x000000000818bf40, EDX=0x0000000000000000 ESP=0x00000000026cf5a8, EBP=0x00000000026cf660, ESI=0x00000000803519a8, EDI=0x0000000002785a13 EIP=0x0000000000000000, EFLAGS=0x0000000000010202
Top of Stack: (sp=0x00000000026cf5a8) 0x00000000026cf5a8: 0000000002791260 0000000002784e90 0x00000000026cf5b8: 0000000000000000 00000000026cf708 0x00000000026cf5c8: 00000000026cf680 000000018000ac90 0x00000000026cf5d8: 0000000000fad930 0000000000962af0 0x00000000026cf5e8: 000000000103c2e8 000000000103c2c8 0x00000000026cf5f8: 000000000103c2c8 00000000fffffffe 0x00000000026cf608: 0000000080319838 00000000026cf650 0x00000000026cf618: 000000008031a6a8 00000000026cf620 0x00000000026cf628: 00000000807dc608 00000000026cf6c0 0x00000000026cf638: 00000000807dca18 0000000000000000 0x00000000026cf648: 00000000807dc608 0000000000000000 0x00000000026cf658: 00000000026cf680 00000000026cf708 0x00000000026cf668: 00000000027859ce 00000000807dc960 0x00000000026cf678: 000000000278e316 0000000000962af0 0x00000000026cf688: 0000000000000000 0000000000fad930 0x00000000026cf698: 00000000026cf708 000000018000ac90
Instructions: (pc=0x0000000000000000) 0xfffffffffffffff0:
Stack: [0x00000000025d0000,0x00000000026d0000], sp=0x00000000026cf5a8, free space=3fd0000000000000000k Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j org.lwjgl.opencl.CL11.nclSetEventCallback(JIJJJ)I+0 j org.lwjgl.opencl.CL11.clSetEventCallback(Lorg/lwjgl/opencl/CLEvent;ILorg/lwjgl/opencl/CLEventCallback;)I+29 j com.diablominer.DiabloMiner.DiabloMiner$DeviceState$ExecutionState.checkExecution()V+1072 j com.diablominer.DiabloMiner.DiabloMiner$DeviceState.<init>(Lcom/diablominer/DiabloMiner/DiabloMiner;Lorg/lwjgl/opencl/CLPlatform;Lorg/lwjgl/opencl/CLDevice;)V+954 j com.diablominer.DiabloMiner.DiabloMiner.execute([Ljava/lang/String;)V+679 j com.diablominer.DiabloMiner.DiabloMiner.main([Ljava/lang/String;)V+10 v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread ) 0x0000000006b0d000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=6468, stack(0x00000000070b0000,0x00000000071b0000)] 0x0000000006b0c800 JavaThread "CompilerThread1" daemon [_thread_blocked, id=6704, stack(0x0000000006fb0000,0x00000000070b0000)] 0x0000000006b0a800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=6604, stack(0x0000000006eb0000,0x0000000006fb0000)] 0x0000000006b01000 JavaThread "Attach Listener" daemon [_thread_blocked, id=6432, stack(0x0000000006db0000,0x0000000006eb0000)] 0x0000000006afc000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2672, stack(0x0000000006cb0000,0x0000000006db0000)] 0x0000000000fa7800 JavaThread "Finalizer" daemon [_thread_blocked, id=7004, stack(0x00000000069b0000,0x0000000006ab0000)] 0x0000000000fa1000 JavaThread "Reference Handler" daemon [_thread_blocked, id=5644, stack(0x00000000068b0000,0x00000000069b0000)] =>0x000000000103b800 JavaThread "main" [_thread_in_native, id=6540, stack(0x00000000025d0000,0x00000000026d0000)]
Other Threads: 0x0000000000f9d000 VMThread [stack: 0x00000000067b0000,0x00000000068b0000] [id=3224] 0x0000000006b18800 WatcherThread [stack: 0x00000000071b0000,0x00000000072b0000] [id=3176]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap PSYoungGen total 38208K, used 9876K [0x00000000da950000, 0x00000000dd3f0000, 0x00000001053f0000) eden space 32768K, 30% used [0x00000000da950000,0x00000000db2f5190,0x00000000dc950000) from space 5440K, 0% used [0x00000000dcea0000,0x00000000dcea0000,0x00000000dd3f0000) to space 5440K, 0% used [0x00000000dc950000,0x00000000dc950000,0x00000000dcea0000) PSOldGen total 87424K, used 0K [0x00000000853f0000, 0x000000008a950000, 0x00000000da950000) object space 87424K, 0% used [0x00000000853f0000,0x00000000853f0000,0x000000008a950000) PSPermGen total 21248K, used 8116K [0x000000007fff0000, 0x00000000814b0000, 0x00000000853f0000) object space 21248K, 38% used [0x000000007fff0000,0x00000000807dd060,0x00000000814b0000)
Dynamic libraries: 0x0000000000400000 - 0x000000000042e000 C:\Windows\system32\java.exe 0x0000000077c80000 - 0x0000000077e06000 C:\Windows\system32\ntdll.dll 0x0000000077b50000 - 0x0000000077c7d000 C:\Windows\system32\kernel32.dll 0x000007feff310000 - 0x000007feff418000 C:\Windows\system32\ADVAPI32.dll 0x000007fefe1d0000 - 0x000007fefe313000 C:\Windows\system32\RPCRT4.dll 0x000000006d7f0000 - 0x000000006dec1000 C:\Program Files\Java\jre6\bin\server\jvm.dll 0x0000000077a80000 - 0x0000000077b4d000 C:\Windows\system32\USER32.dll 0x000007feff2a0000 - 0x000007feff304000 C:\Windows\system32\GDI32.dll 0x000007fef92c0000 - 0x000007fef92f9000 C:\Windows\system32\WINMM.dll 0x000007feffec0000 - 0x000007fefff5c000 C:\Windows\system32\msvcrt.dll 0x000007feff8e0000 - 0x000007feffab8000 C:\Windows\system32\ole32.dll 0x000007feffde0000 - 0x000007feffeb3000 C:\Windows\system32\OLEAUT32.dll 0x0000000075da0000 - 0x0000000075df2000 C:\Windows\system32\OLEACC.dll 0x000007feffdb0000 - 0x000007feffddd000 C:\Windows\system32\IMM32.DLL 0x000007feffca0000 - 0x000007feffda2000 C:\Windows\system32\MSCTF.dll 0x000007fefff90000 - 0x000007fefff9d000 C:\Windows\system32\LPK.DLL 0x000007feff550000 - 0x000007feff5ea000 C:\Windows\system32\USP10.dll 0x000000006d760000 - 0x000000006d76e000 C:\Program Files\Java\jre6\bin\verify.dll 0x000000006d3b0000 - 0x000000006d3d7000 C:\Program Files\Java\jre6\bin\java.dll 0x000000006d310000 - 0x000000006d31a000 C:\Program Files\Java\jre6\bin\hpi.dll 0x0000000077e20000 - 0x0000000077e29000 C:\Windows\system32\PSAPI.DLL 0x000000006d7b0000 - 0x000000006d7c2000 C:\Program Files\Java\jre6\bin\zip.dll 0x0000000180000000 - 0x0000000180050000 C:\Users\mikhail\bitcoin miners\DiabloMiner\target\libs\natives\windows\lwjgl64.dll 0x000007fef37f0000 - 0x000007fef3921000 C:\Windows\system32\OPENGL32.dll 0x000007fef4140000 - 0x000007fef416d000 C:\Windows\system32\GLU32.dll 0x000007fef3de0000 - 0x000007fef3ecf000 C:\Windows\system32\DDRAW.dll 0x000007fef93f0000 - 0x000007fef93f8000 C:\Windows\system32\DCIMAN32.dll 0x000007feffac0000 - 0x000007feffc9c000 C:\Windows\system32\SETUPAPI.dll 0x000007fef84f0000 - 0x000007fef8501000 C:\Windows\system32\dwmapi.dll 0x000007fefd5f0000 - 0x000007fefd5fb000 C:\Windows\system32\VERSION.dll 0x000007fefcd90000 - 0x000007fefcf89000 C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6002.18305_none_1509f852f40ee5cd\COMCTL32.dll 0x000007feff220000 - 0x000007feff293000 C:\Windows\system32\SHLWAPI.dll 0x0000000000960000 - 0x0000000000974000 C:\Windows\system32\OpenCL.dll 0x0000000007980000 - 0x0000000007ff3000 C:\Windows\system32\nvcuda.dll 0x0000000008200000 - 0x0000000008428000 C:\Windows\system32\nvapi64.dll 0x000007fefe320000 - 0x000007fefef73000 C:\Windows\system32\SHELL32.dll 0x000007fefcfe0000 - 0x000007fefd019000 C:\Windows\system32\WINTRUST.dll 0x000007fefd920000 - 0x000007fefda57000 C:\Windows\system32\CRYPT32.dll 0x000007fefdad0000 - 0x000007fefdae9000 C:\Windows\system32\MSASN1.dll 0x000007fefe040000 - 0x000007fefe066000 C:\Windows\system32\USERENV.dll 0x000007fefe020000 - 0x000007fefe03c000 C:\Windows\system32\Secur32.dll 0x000007fefff70000 - 0x000007fefff87000 C:\Windows\system32\imagehlp.dll 0x0000000009a30000 - 0x000000000abfc000 C:\Windows\system32\nvcompiler.dll 0x000007fefa250000 - 0x000007fefa363000 C:\Windows\system32\dbghelp.dll 0x000000006d600000 - 0x000000006d617000 C:\Program Files\Java\jre6\bin\net.dll 0x000007feff5f0000 - 0x000007feff634000 C:\Windows\system32\WS2_32.dll 0x000007fefff60000 - 0x000007fefff67000 C:\Windows\system32\NSI.dll 0x000007fefd5a0000 - 0x000007fefd5ef000 C:\Windows\system32\mswsock.dll 0x000007fefd620000 - 0x000007fefd627000 C:\Windows\System32\wship6.dll 0x000007fefd1e0000 - 0x000007fefd1e7000 C:\Windows\System32\wshtcpip.dll
VM Arguments: jvm_args: -Djava.library.path=target\libs\natives\windows java_command: com.diablominer.DiabloMiner.DiabloMiner --host 127.0.0.1 -u user -p ********** Launcher Type: SUN_STANDARD
Environment Variables: PATH=C:\MinGW\bin\;C:\MinGW\msys\1.0\bin\;C:\MinGW\msys\1.0\sbin\;C:\Program Files (x86)\NVIDIA GPU Computing Toolkit\CUDA\v3.2\bin\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files (x86)\Delphi7SE\bin;C:\Program Files (x86)\Delphi7SE\Projects\BPL;c:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Tesseract-OCR;C:\Program Files (x86)\Tesseract-OCR\training; USERNAME=mikhail OS=Windows_NT PROCESSOR_IDENTIFIER=AMD64 Family 16 Model 2 Stepping 3, AuthenticAMD
--------------- S Y S T E M ---------------
OS: Windows Vista Build 6002 Service Pack 2
CPU:total 4 (4 cores per cpu, 1 threads per core) family 16 model 2 stepping 3, cmov, cx8, fxsr, mmx, sse, sse2, sse3, popcnt, mmxext, 3dnow, 3dnowext, lzcnt, sse4a
Memory: 4k page, physical 8386940k(5533116k free), swap 16991484k(14315276k free)
vm_info: Java HotSpot(TM) 64-Bit Server VM (17.0-b17) for windows-amd64 JRE (1.6.0_21-b07), built on Jul 17 2010 01:05:36 by "java_re" with MS VC++ 8.0 (VS2005)
time: Thu Nov 11 02:56:21 2010 elapsed time: 1 seconds And it doesn't work on 32-bit JVM on 64-bit Vista too: Added GeForce GT 240 (12 CU, 1x vector, local work size of
: Considering profile 'compute_12' for gpu='sm_12' in 'cuModuleLoadDataEx_4'
Exception in thread "main" java.lang.Exception: Failed to build program on GeForce GT 240 at com.diablominer.DiabloMiner.DiabloMiner$DeviceState.<init>(DiabloMiner.java:342) at com.diablominer.DiabloMiner.DiabloMiner.execute(DiabloMiner.java:181) at com.diablominer.DiabloMiner.DiabloMiner.main(DiabloMiner.java:89)
|
|
|
|
DiabloD3 (OP)
Legendary
Offline
Activity: 1162
Merit: 1000
DiabloMiner author
|
|
November 11, 2010, 06:24:53 AM |
|
Hi, what I'm doing wrong? Use the command line I put in the op post. Java on Windows requires you to use \ for path instead of /, and ; instead of : for path separators. No other OS is designed in such a braindead way to require that.
|
|
|
|
DiabloD3 (OP)
Legendary
Offline
Activity: 1162
Merit: 1000
DiabloMiner author
|
|
November 11, 2010, 06:29:04 AM |
|
It doesn't work on 64-bit JVM on Vista.
It does. That error (which only appears on Windows that specific way; on every other OS it is a less scary normal exception) means your Nvidia driver is too out of date; Nvidia is lagging on OpenCL support (I suspect they will be filing for bankruptcy in the next 2-3 years). And it doesn't work on 32-bit JVM on 64-bit Vista too:
I do not recommend using a 32-bit JVM on a 64-bit Windows. Many apps break due to poor design in Windows. That error, however, is more Nvidia-can't-code problems.
|
|
|
|
bagazaga
|
|
November 11, 2010, 08:45:08 AM |
|
Do you plan to release the source code?
|
|
|
|
BitLex
|
|
November 11, 2010, 08:45:26 AM |
|
Hi, what I'm doing wrong? Use the command line I put in the op post. Java on Windows requires you to use \ for path instead of /, and ; instead of : for path separators. No other OS is designed in such a braindead way to require that. still doesnt work for me java version "1.5.0_11" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03) Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing)
C:\Documents and Settings\Administrator\Desktop\bitcoin_stuff\OpenCL\DiabloMiner >java -cp target\libs\*;target\DiabloMiner-0.0.1-SNAPSHOT.jar -Djava.library.pat h=target\libs\natives\windows com.diablominer.DiabloMiner.DiabloMiner -u *** -p *** Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version n umber in .class file at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source)
|
|
|
|
DiabloD3 (OP)
Legendary
Offline
Activity: 1162
Merit: 1000
DiabloMiner author
|
|
November 11, 2010, 09:35:31 AM |
|
Do you plan to release the source code?
See that Github link in the op post?
|
|
|
|
DiabloD3 (OP)
Legendary
Offline
Activity: 1162
Merit: 1000
DiabloMiner author
|
|
November 11, 2010, 09:37:56 AM |
|
still doesnt work for me
There is no reason to still be using Java 5 six years after it came out. Either upgrade to 6, or build your own copy.
|
|
|
|
BitLex
|
|
November 11, 2010, 09:42:56 AM |
|
There is no reason to still be using Java 5 six years after it came out. Either upgrade to 6, or build your own copy.
and i always thought it's best to not change a running system. i rarely use java anyway and had no reason so far to upgrade. if i think about it, that's not even true, i remember that i had to downgrade from 6 to 5 to make some other stuff work.
|
|
|
|
DiabloD3 (OP)
Legendary
Offline
Activity: 1162
Merit: 1000
DiabloMiner author
|
|
November 11, 2010, 09:54:15 AM |
|
There is no reason to still be using Java 5 six years after it came out. Either upgrade to 6, or build your own copy.
and i always thought it's best to not change a running system. i rarely use java anyway and had no reason so far to upgrade. if i think about it, that's not even true, i remember that i had to downgrade from 6 to 5 to make some other stuff work. Yes, but since I'm on 6, I'd have to install 5 to build jars that work on 5, and I'm not going to do that. 6 has performance increases that make it worth using (same way as 7 over 6 when 7 finally ships).
|
|
|
|
bagazaga
|
|
November 11, 2010, 12:10:36 PM |
|
It doesn't work on 64-bit JVM on Vista.
It does. That error (which only appears on Windows that specific way; on every other OS it is a less scary normal exception) means your Nvidia driver is too out of date; Nvidia is lagging on OpenCL support..... Same error with 261.00 driver version.
|
|
|
|
DiabloD3 (OP)
Legendary
Offline
Activity: 1162
Merit: 1000
DiabloMiner author
|
|
November 11, 2010, 12:46:31 PM |
|
I suspect that their Windows driver is broken then. Nvidia is advertising OpenCL 1.1 support in these beta drivers, yet it lacks it. You should just go buy a AMD card instead, you'll get several times more mhash anyhow.
|
|
|
|
slush
Legendary
Offline
Activity: 1386
Merit: 1097
|
|
November 11, 2010, 01:04:17 PM |
|
Looks like 261.00 does not support OpenCL 1.1 yet. I spend two hours to get it running. I'm pretty sure I have 261.00 installed but driver details tell me I have only OpenCL 1.0 installed .
|
|
|
|
DiabloD3 (OP)
Legendary
Offline
Activity: 1162
Merit: 1000
DiabloMiner author
|
|
November 11, 2010, 02:14:39 PM |
|
Looks like 261.00 does not support OpenCL 1.1 yet. I spend two hours to get it running. I'm pretty sure I have 261.00 installed but driver details tell me I have only OpenCL 1.0 installed . Nvidia is out of their minds then. Send a bug report to them demanding OpenCL 1.1 support. AMD has already had it for around 6 months, there is no reason why Nvidia can't. This is absurd.
|
|
|
|
slush
Legendary
Offline
Activity: 1386
Merit: 1097
|
|
November 11, 2010, 06:17:01 PM |
|
I get OpenCL working now. There was error that running DiabloMiner using Remote Desktop cannot detect OpenCL correctly. I think it is completely an error in Windows because it disable many features on remote session. But for program that use OpenCL for non-graphic output it is simply "wtf". When I started program from physical keyboard&mouse, OpenCL detection in DiabloMiner works well.
|
|
|
|
DiabloD3 (OP)
Legendary
Offline
Activity: 1162
Merit: 1000
DiabloMiner author
|
|
November 11, 2010, 06:53:56 PM |
|
Ahh, well I can't help you there. I bet OpenGL apps don't work with Remote Desktop either. Just because its not opening a window doesn't mean my miner isn't using your video card. Same way on Linux, to use OpenCL, you have to have X running.
|
|
|
|
|