Pages:
Author

Topic: Ufasoft Miner - Windows/Linux, x86/x64, SSE2/OpenCL, Open Source - page 46. (Read 631037 times)

member
Activity: 70
Merit: 10
No, ROTR is cyclic right shift. There are no such operation in C language.
_rotr intrinsic function available on GCC 4.5 for Intel x86/x64 platform.

For those of you on Linux encountering this problem, configure with CC=gcc-4.5 and CXX=g++-4.5

For example,
CC=gcc-4.5 CXX=g++-4.5 ./configure ...[rest goes here]...

You will need to install gcc and g++ 4.5 for this to work, and you should be able to confirm the right gcc used in compile output scrolling by.
newbie
Activity: 23
Merit: 0
_rotr is a "shift-right" bit operation
Just change "_rotr(v,n)" to "v >> n"
and there you are.

No, ROTR is cyclic right shift. There are no such operation in C language.
_rotr intrinsic function available on GCC 4.5 for Intel x86/x64 platform.
newbie
Activity: 5
Merit: 0
_rotr is a "shift-right" bit operation
Just change "_rotr(v,n)" to "v >> n"
and there you are.
sr. member
Activity: 404
Merit: 251
Cant compile version 0.8
Code:
JWasm v2.05, Mar  2 2011, Masm-compatible assembler.
Portions Copyright (c) 1992-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.

jwasm(1) : Error A2209: Syntax error: ELF
jwasm(9) : Error A2209: Syntax error: 
jwasm(10) : Error A2209: Syntax error: 
jwasm(11) : Error A2209: Syntax error: 
jwasm(14) : Error A2209: Syntax error: �4
jwasm(17) : Error A2209: Syntax error: e
jwasm(22) : Error A2209: Syntax error: 4
jwasm(24) : Error A2209: Syntax error: 
jwasm(25) : Error A2209: Syntax error: (
[/quote]

By some way you are compiling ELF-file (.o) instead of .asm. It is stange. Please look at generated Makefile
full member
Activity: 154
Merit: 100
Thanks I was looking for this, but it will help even more if you tell me how you made it print that info. I tried bitcoin-miner /? with no luck.
Code:
bitcoin-miner -h

And are you supposed to use Crtl-C to quit? That's all I could find that worked.

Anyway I tried deepbit on my puny desktop and got 0.01 btc in 24 hours, woooo!  6.25 MHash/s

Experiment officially over.
member
Activity: 308
Merit: 10
Yeah, I have a lot of idle CPUs. Well, they aren't idle anymore. Smiley

If only it had been this easy to deploy distributed miners a year ago. I'd have an obscene amount of BTC...
legendary
Activity: 3080
Merit: 1080
Thanks so much for this. Improved my hash rate by at least 50% across all my miners. Glad someone's still working on optimizing code for us slow (and cheapass) miners Smiley

I think I just passed 400Mhash/s...

Whoa, nice! You must have a tons of CPU miners running to get that kind of performance!

member
Activity: 308
Merit: 10
Thanks so much for this. Improved my hash rate by at least 50% across all my miners. Glad someone's still working on optimizing code for us slow (and cheapass) miners Smiley

I think I just passed 400Mhash/s...
legendary
Activity: 2058
Merit: 1452
Cant compile version 0.8
Code:
JWasm v2.05, Mar  2 2011, Masm-compatible assembler.
Portions Copyright (c) 1992-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.

jwasm(1) : Error A2209: Syntax error: ELF
jwasm(9) : Error A2209: Syntax error: 
jwasm(10) : Error A2209: Syntax error: 
jwasm(11) : Error A2209: Syntax error: 
jwasm(14) : Error A2209: Syntax error: �4
jwasm(17) : Error A2209: Syntax error: e
jwasm(22) : Error A2209: Syntax error: 4
jwasm(24) : Error A2209: Syntax error: 
jwasm(25) : Error A2209: Syntax error: (
jwasm(26) : Error A2209: Syntax error:
jwasm(27) : Error A2209: Syntax error: 
jwasm(28) : Error A2209: Syntax error: 
jwasm(31) : Error A2209: Syntax error: 4
jwasm(34) : Error A2209: Syntax error: 4
jwasm(38) : Error A2097: Backquote missing: `
jwasm(41) : Error A2097: Backquote missing: `
jwasm(44) : Error A2209: Syntax error:
jwasm(51) : Error A2209: Syntax error: 
jwasm(55) : Error A2209: Syntax error: 
jwasm(58) : Error A2209: Syntax error: �
jwasm(62) : Error A2209: Syntax error: ��
jwasm(63) : Error A2209: Syntax error: ��
jwasm(64) : Error A2209: Syntax error:
jwasm(68) : Error A2209: Syntax error: 
jwasm(70) : Error A2209: Syntax error: 
jwasm(74) : Error A2209: Syntax error: �
jwasm(76) : Error A2097: Backquote missing: `
jwasm(80) : Error A2209: Syntax error: ^.
jwasm(82) : Error A2209: Syntax error: �%
jwasm(83) : Error A2209: Syntax error: 
jwasm(87) : Error A2209: Syntax error: 
jwasm(197) : Error A2209: Syntax error: ��
jwasm(206) : Error A2209: Syntax error: JWASM
jwasm(208) : Error A2209: Syntax error: ��t
jwasm(209) : Error A2209: Syntax error: ��
jwasm(212) : Error A2209: Syntax error: ��v
jwasm(214) : Error A2209: Syntax error: �8
jwasm(216) : Error A2209: Syntax error: �
jwasm(219) : Error A2209: Syntax error: ��h
jwasm(220) : Error A2209: Syntax error: ��SQV����1��$1�1�����h
jwasm(221) : Error A2209: Syntax error: �…�u������
jwasm(224) : Error A2209: Syntax error: ��h
jwasm(225) : Error A2209: Syntax error: ���
jwasm(228) : Error A2209: Syntax error: ��h
jwasm(229) : Error A2209: Syntax error: �Y3
jwasm(230) : Error A2209: Syntax error: �����lf
jwasm(231) : Error A2209: Syntax error: ��tC4
jwasm(232) : Error A2209: Syntax error: �d�
jwasm(233) : Error A2209: Syntax error: 
jwasm(235) : Error A2209: Syntax error: ������g
jwasm(236) : Error A2209: Syntax error: �<$
jwasm(236) : Error A2113: Too many errors
jwasm: 236 lines, 1 passes, 0 ms, 0 warnings, 51 errors
sha256sse.asm(48) : Error A2091: Language type must be specified
sha256sse.asm(314) : Error A2142: Unmatched block nesting: CalcSha256Sse
sha256sse.asm: 316 lines, 1 passes, 0 ms, 0 warnings, 2 errors
make: *** [sha256sse.o] Error 1

looks like a ton of misencoded unicode characters
full member
Activity: 193
Merit: 100
Cant compile version 0.8
Code:
JWasm v2.05, Mar  2 2011, Masm-compatible assembler.
Portions Copyright (c) 1992-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.

jwasm(1) : Error A2209: Syntax error: ELF
jwasm(9) : Error A2209: Syntax error: 
jwasm(10) : Error A2209: Syntax error: 
jwasm(11) : Error A2209: Syntax error: 
jwasm(14) : Error A2209: Syntax error: �4
jwasm(17) : Error A2209: Syntax error: e
jwasm(22) : Error A2209: Syntax error: 4
jwasm(24) : Error A2209: Syntax error: 
jwasm(25) : Error A2209: Syntax error: (
jwasm(26) : Error A2209: Syntax error:
jwasm(27) : Error A2209: Syntax error: 
jwasm(28) : Error A2209: Syntax error: 
jwasm(31) : Error A2209: Syntax error: 4
jwasm(34) : Error A2209: Syntax error: 4
jwasm(38) : Error A2097: Backquote missing: `
jwasm(41) : Error A2097: Backquote missing: `
jwasm(44) : Error A2209: Syntax error:
jwasm(51) : Error A2209: Syntax error: 
jwasm(55) : Error A2209: Syntax error: 
jwasm(58) : Error A2209: Syntax error: �
jwasm(62) : Error A2209: Syntax error: ��
jwasm(63) : Error A2209: Syntax error: ��
jwasm(64) : Error A2209: Syntax error:
jwasm(68) : Error A2209: Syntax error: 
jwasm(70) : Error A2209: Syntax error: 
jwasm(74) : Error A2209: Syntax error: �
jwasm(76) : Error A2097: Backquote missing: `
jwasm(80) : Error A2209: Syntax error: ^.
jwasm(82) : Error A2209: Syntax error: �%
jwasm(83) : Error A2209: Syntax error: 
jwasm(87) : Error A2209: Syntax error: 
jwasm(197) : Error A2209: Syntax error: ��
jwasm(206) : Error A2209: Syntax error: JWASM
jwasm(208) : Error A2209: Syntax error: ��t
jwasm(209) : Error A2209: Syntax error: ��
jwasm(212) : Error A2209: Syntax error: ��v
jwasm(214) : Error A2209: Syntax error: �8
jwasm(216) : Error A2209: Syntax error: �
jwasm(219) : Error A2209: Syntax error: ��h
jwasm(220) : Error A2209: Syntax error: ��SQV����1��$1�1�����h
jwasm(221) : Error A2209: Syntax error: �…�u������
jwasm(224) : Error A2209: Syntax error: ��h
jwasm(225) : Error A2209: Syntax error: ���
jwasm(228) : Error A2209: Syntax error: ��h
jwasm(229) : Error A2209: Syntax error: �Y3
jwasm(230) : Error A2209: Syntax error: �����lf
jwasm(231) : Error A2209: Syntax error: ��tC4
jwasm(232) : Error A2209: Syntax error: �d�
jwasm(233) : Error A2209: Syntax error: 
jwasm(235) : Error A2209: Syntax error: ������g
jwasm(236) : Error A2209: Syntax error: �<$
jwasm(236) : Error A2113: Too many errors
jwasm: 236 lines, 1 passes, 0 ms, 0 warnings, 51 errors
sha256sse.asm(48) : Error A2091: Language type must be specified
sha256sse.asm(314) : Error A2142: Unmatched block nesting: CalcSha256Sse
sha256sse.asm: 316 lines, 1 passes, 0 ms, 0 warnings, 2 errors
make: *** [sha256sse.o] Error 1
hero member
Activity: 1330
Merit: 502
Vave.com - Crypto Casino
Maybe you whould be better in focusing on APUs?? so the miner can work both on CPU and integrated gpu at the same time?
full member
Activity: 193
Merit: 100
Yes, some improvement for CPU can be made only for:
1. x64 because it has more registers.
2. CPUs with AVX
Nice! So Sandy Bridge CPUs should provider better performance..assuming that your miner will be updated to support AVX.

Bad news for Everyone:
Intel AVX Extensions don't promote "vector integer" operations to 256-bit registers. They doubled performance only for Floating Point operations. So AVX practically useless for Mining.
Some improvement can be made by using higher 128-bit part of YMM registers as additional register space only.

What about Bulldozer? AMD plans to move floating point to the integrated GPU anyway, maybe Bulldozer has better integer performance?
sr. member
Activity: 404
Merit: 251
Yes, some improvement for CPU can be made only for:
1. x64 because it has more registers.
2. CPUs with AVX
Nice! So Sandy Bridge CPUs should provider better performance..assuming that your miner will be updated to support AVX.

Bad news for Everyone:
Intel AVX Extensions don't promote "vector integer" operations to 256-bit registers. They doubled performance only for Floating Point operations. So AVX practically useless for Mining.
Some improvement can be made by using higher 128-bit part of YMM registers as additional register space only.
sr. member
Activity: 404
Merit: 251
Thanks I was looking for this, but it will help even more if you tell me how you made it print that info. I tried bitcoin-miner /? with no luck.
Code:
bitcoin-miner -h
full member
Activity: 154
Merit: 100
This will help some people



Thanks I was looking for this, but it will help even more if you tell me how you made it print that info. I tried bitcoin-miner /? with no luck.

Are there actual docs for this program (besides this thread)?
newbie
Activity: 17
Merit: 0
Version 0.7 released.
Supports Long polling Protocol
Some bugs fixed

Just tried to compile this on Linux x86-64.
It dumps a ton of warning and fails with the following errors:

Code:
el/inc/../libext/ext-fw.h:924: error: cast from ‘void*’ to ‘int’ loses precision
bitcoin-sha256.h:52: error: ‘_rotr’ was not declared in this scope

I have the same error

Code:
In file included from bitcoin-miner.cpp:33:
bitcoin-sha256.h: In function ‘Ext::UInt32 Rotr32(Ext::UInt32, int)’:
bitcoin-sha256.h:50: error: ‘_rotr’ was not declared in this scope
make: *** [bitcoin-miner.o] Error 1
sr. member
Activity: 404
Merit: 251
Just tried to compile this on Linux x86-64.
Not tested on x64 yet.
I will have time for it on next week.

BTW:
Version 0.8 released. Added support of Failover extension
hero member
Activity: 590
Merit: 500
Version 0.7 released.
Supports Long polling Protocol
Some bugs fixed

ah, finally!  Much thanks
sr. member
Activity: 404
Merit: 251
Version 0.7 released.
Supports Long polling Protocol
Some bugs fixed
Pages:
Jump to: