Pages:
Author

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

sr. member
Activity: 378
Merit: 250
Nice to see some asm here.

I've overlooked some code and maybe there's some little improvement possible,
for example to exchange opcodes like "cmp" with "test",
'cause "test" only sets the flags and is faster in execution than "cmp".
If it's not, i apologize for my comment.

cul8'er.

Could you copy the block(s) of code that you're talking about so we can see a little easier if what you're talking about is possible?
If so, there's an increased possibility of macro-fusion for CPU optimization.
sr. member
Activity: 404
Merit: 251
I've been trying to compile the source using VS2010 with no luck so far.

We provide full source code for VS2010 with CPU and GPU support for 100 BTC.
full member
Activity: 140
Merit: 100
Dear ufasoft,
(SetThreadPriority(THREAD_PRIORITY_IDLE)).
Current version works nice but if I try to use other applications when bitcoin-miner.exe is working then windows freezes for several seconds every minute. This is a big headache for me.
Thank you.
Now CPU threads work on THREAD_PRIORITY_LOWEST. And they don't freeze other applications. But windows freeze because the miner uses GPU, and Thread Priority has no effect on GPU.
I forgot to mention that i use CPU-only mining because my GPU is Radeon 3650 which has no OpenCL support. I understand that thread priority has no effect on GPU. Should i try to use -g no switch with my Radeon 3650?
On the other hand before bitcoin mining i used GIMPS Prime95 client and my system never freezed with it.
I checked base worker thread priority of prime95.exe and bitcoin-miner.exe using sysinternals process explorer. For prime95.exe base thread priority is 1 (i believe this is THREAD_PRIORITY_IDLE). For bitcoin-miner.exe base thread priority is 6 and this leads to user interface responsibility problems.
I would like to change thread priority by myself using your source code. For this it would be nice if you give us some info about compililing windows executable from your sources (what compiler are you using, what prerequisites required, etc).
I've been trying to compile the source using VS2010 with no luck so far.
hero member
Activity: 590
Merit: 500
Is this the best miner for people who can only CPU mine?

certainly for people with intel processors.

for AMD, the 4way RPC miner may be a little better.
full member
Activity: 140
Merit: 110
bitcoinnaire
Is this the best miner for people who can only CPU mine?
legendary
Activity: 3583
Merit: 1094
Think for yourself
Version 0.16 with BFI_INT uploaded.


I just downloaded .16.

With .13 and .14 I got a peak of 5.65 MH/s on my Intel(R) Core(TM)2 Duo CPU T8300 @ 2.40GHz.  With .16 I peak a 5.74 Mhash/s.

Still won't work with my Radeon HD 4670 though.

Thanks for the update.
Sam
member
Activity: 80
Merit: 10
Will you be releasing the source?
sr. member
Activity: 404
Merit: 251
Version 0.16 with BFI_INT uploaded.
sr. member
Activity: 404
Merit: 251
(I have a question about compiling. Do you use an IDE like RADASM? And how to setup JWASM?
I want to compile the source for myself for testing purposes, but it's a little bit complicated, cpp + libraries, etc.
Do i need the vctoolkit?
Please PM. Thank you.)

The project developed under VS2010.
I use JWASM under linux because it is compatible with MASM.
JWASM for linux is singe executable file, just download it.
member
Activity: 112
Merit: 10
Anyway. I've looked into a book called "assembly compact" and the cycles are the same.
(Work on the loops...)

Tested the new miner on four different cpus (older 2cores and latest i7-4core) and the speed looked the same in the first ten seconds. Then the speed went up about 5%.
Great work!

(I have a question about compiling. Do you use an IDE like RADASM? And how to setup JWASM?
I want to compile the source for myself for testing purposes, but it's a little bit complicated, cpp + libraries, etc.
Do i need the vctoolkit?
Please PM. Thank you.)

sr. member
Activity: 404
Merit: 251
what's the difference of the new version?
1. One small optimization for CPU
2. modified for better performance on GPU (especially HD5870).

Next build will have BFI_INT optimization for GPU.


sr. member
Activity: 254
Merit: 250
what's the difference of the new version?
member
Activity: 112
Merit: 10
'cause "test" only sets the flags and is faster in execution than "cmp".
1. CMP only sets Flags.
2. TEST is analog of AND for flags.


1. "cmp" matches the first operand with the second one and fixes the flags accordingly.
Internally the first operand is subtracted from the second operand. (This is why test is faster?!?)
The first operand can be a memvariable or a register. The second operand can be a constant additionally. Both operands have to be equal, unless the second is an 8-bit constant. Also it is to regard that at least one operand is a register.

2. "test" executes a logical AND-conjunction and doesn't save the output, instead it only sets the flags. Both operands must be equal.

Maybe i am wrong, but that's what i've learned.
sr. member
Activity: 404
Merit: 251
'cause "test" only sets the flags and is faster in execution than "cmp".
1. CMP only sets Flags.
2. TEST is analog of AND for flags.
member
Activity: 112
Merit: 10
Nice to see some asm here.

I've overlooked some code and maybe there's some little improvement possible,
for example to exchange opcodes like "cmp" with "test",
'cause "test" only sets the flags and is faster in execution than "cmp".
If it's not, i apologize for my comment.

cul8'er.
Eri
sr. member
Activity: 264
Merit: 250
Random question:  Is there ever going to be a readme or a --help option implemented to show the available options to set in Ufasoft Miner?  It would be nice to have some way of remembering the options after I use another miner with its own.  Please add a --help or readme?

if you run the exe in cmd prompt it loads up all the help text and doesn't instant close Smiley, after which you can set it to run. for me i just made a shortcut and added the info i use to the target field in properties, double click the shortcut and auto starts it :3
sr. member
Activity: 378
Merit: 250
Random question:  Is there ever going to be a readme or a --help option implemented to show the available options to set in Ufasoft Miner?  It would be nice to have some way of remembering the options after I use another miner with its own.  Please add a --help or readme?
legendary
Activity: 3583
Merit: 1094
Think for yourself
Does this miner support the Radeon HD 4670?  I haven't gotten it to work yet.  I there a listing of GPU's that it will support/work with.
Thanks,
Sam
legendary
Activity: 3583
Merit: 1094
Think for yourself
Why u wouldn't release lastest 0.14 source?

Was there a post saying .14 was released?  I didn't see one.

Thanks for the comment so that I now know.

What are the differences between .13 and .14?
Thanks,
Sam
newbie
Activity: 22
Merit: 0
Why u wouldn't release lastest 0.14 source?
Pages:
Jump to: