Pages:
Author

Topic: LTC miner optimizations for PowerPC (Power Mac) and Cell/BE (PlayStation 3) (Read 12140 times)

newbie
Activity: 2
Merit: 0
Hello .. please help to optimize ps3 ... I already managed to mine ... and mine to 1.46 Khas / s but by there I read that they managed to optimize it to an average of 30 Khas / s someone could help me please ..
hero member
Activity: 780
Merit: 501
Does anyone know if these optimization were ever backported into pooler's CPU miner?
I have a few G5's sitting around doing nothing.
newbie
Activity: 9
Merit: 0
It works!  Thank you meti, thank you ssvb.  One final question though.  I don't see any improvement over Pooler's CPUMiner, I'm still getting ~1.45 khash/sec on each processor.  I was thinking I would get a lot more than that seeing how they are 2.0GHz G5 processors.  Does the fact that I did this over many days with the computer being either off or booted in OS X make any difference?  Would deleting everything in the cpuminer folder and starting from scratch do anything?

Mike

Edit: I fixed it.  I guess i first tried using -mcpuG5 because they are G5s but -mcpuG4 is giving me ~3.80 khash/sec!
newbie
Activity: 9
Merit: 0
Thank you for the reply, I tried both of your suggestions and they worked but I am still getting the same error....

Edit:I guess I was in a hurry, it was asking me to select which libcurl I wanted to install.  Now I just need to figure out how to use it....

Mike
newbie
Activity: 39
Merit: 0
In debian you can try "apt-get install build-essential libtool libltdl-dev automake" (I hope I did not forget something in this list). The autogen.sh script needs autotools installed to generate the configure script. This stuff is often already installed on the computers used for software development, but may be indeed missing on some systems.

edit: hmm, actually based on the error message, the autotools might be already fine. Try "apt-get install libcurl-dev" to see if this resolves the curl related issues.
newbie
Activity: 9
Merit: 0
Thanks, I'm new to compiling so I overlooked that the first time.

Anyway, I've tried compiling it on both Mac OS X 10.5.8 and Debian Linux (whatever one is for my PPC G5) and I get stuck with

./configure: line 5010: syntax error near unexpected token 'LIBCURL_CHECK_CONFIG'
./configure: line 5010: 'LIBCURL_CHECK_CONFIG(, 7.10.1, ,'

Any idea how to fix this?

Mike
newbie
Activity: 28
Merit: 0
It's still there... haven't you read the first post?
https://github.com/ssvb/cpuminer

Code:
$ git clone git://github.com/ssvb/cpuminer.git
$ cd cpuminer
$ export CFLAGS="-O3 -mcpu=G4 -maltivec -fstrict-aliasing"
$ ./autogen.sh && ./configure && make
newbie
Activity: 9
Merit: 0
Sorry to revive such an old post but where can I find the Cell/PPC optimized miner?  Will it run on OS X 10.5.8?

Thanks,
Mike
newbie
Activity: 39
Merit: 0
I look forward to the performance numbers!  The previously much talked about miner (if it even exists) showed only marginal per-watt performance over CPUs.
There are better forum threads for speculating about the alleged performance numbers. The GPU miner is going to be released with full sources included when/if I get something ready. No other comments for now.
legendary
Activity: 1484
Merit: 1005
Finally i can post here Smiley Nice work ssvb to make miner for PS3, i hope we can tweak it together to make it even better Smiley
Just GPU miners are a bit more hot topic at the moment. During the last weekend I was busy installing a new graphics card and then doing some OpenCL coding with it. But I'm going to revisit Cell/BE code after I get my GPU miner up and running Wink

I look forward to the performance numbers!  The previously much talked about miner (if it even exists) showed only marginal per-watt performance over CPUs.
newbie
Activity: 39
Merit: 0
Finally i can post here Smiley Nice work ssvb to make miner for PS3, i hope we can tweak it together to make it even better Smiley
Sure, more improvements for PS3 miner are definitely possible. I have pushed some of my old unfinished code which implements parts of scrypt in SPU assembly (~5.4 khash/s -> 5.9 khash/s improvement per SPE core) to github. This is only an optimization for the first big loop, handling the second big loop in a similar way is expected to provide about the same speedup. This is just better instructions scheduling and keeping all data in registers avoiding unnecessary spills. Your improvements are focusing on a different aspect - better data layout for less scattered writes and more unrolling to completely eliminate any stray stalls waiting for DMA completion (up to ~6.1 khash/s per SPE core). Combining both optimizations should provide quite good results, maybe even changing to handle 10 hashes at once (5+5) would be beneficial for the second loop. The theoretical peak performance per SPU core, based on counting 128-bit vector ADD/ROL/XOR operations is ~7.35 khash/s (an optimistic estimate, not even taking negligible SHA256 part and other overhead into account). Which means that we are already at >80% of the theoretical peak performance.

Just GPU miners are a bit more hot topic at the moment. During the last weekend I was busy installing a new graphics card and then doing some OpenCL coding with it. But I'm going to revisit Cell/BE code after I get my GPU miner up and running Wink
member
Activity: 60
Merit: 10
The first feedback and actually a patch for the Cell miner sent to me as a private message: https://github.com/shakt1/cpuminer Smiley
But one problem is that shakti is a newly registered user and has no permissions to post anything here yet.

edit: here is his thread in the Newbies section: https://bitcointalksearch.org/topic/m.753270
If there are more people "on probation" (maybe newcomers from the playstation3 linux community), then it could be a good place for them to post some comments.

Finally i can post here Smiley Nice work ssvb to make miner for PS3, i hope we can tweak it together to make it even better Smiley
newbie
Activity: 39
Merit: 0
The first feedback and actually a patch for the Cell miner sent to me as a private message: https://github.com/shakt1/cpuminer Smiley
But one problem is that shakti is a newly registered user and has no permissions to post anything here yet.

edit: here is his thread in the Newbies section: https://bitcointalksearch.org/topic/m.753270
If there are more people "on probation" (maybe newcomers from the playstation3 linux community), then it could be a good place for them to post some comments.
newbie
Activity: 39
Merit: 0
What kind of hash rate would we get on the xbox 360?
Assuming that it's possible to get linux running on it, one may expect something like 3 * 3.6 khash/s = ~10.8 khash/s hashing power from xbox 360. At least I'm getting ~3.6 khash/s from two threads of one Cell PPE core. And the 3 cores in Xenon processor are supposedly slightly modified versions of the PPE in the Cell processor according to wikipedia.

The current code is using gcc vector extensions for quick prototyping. This makes it possible to reuse significant parts of the same code on Cell PPE (PowerPC Altivec), Cell SPE (has it's own SIMD architecture) and even x86 (SSE2) architectures. But relying on the compiler to do registers allocation and instructions scheduling sacrifices some of the performance. And this can be easily seen if benchmarking against pooler's hand written SSE2 code on x86 Smiley

It should be possible to improve Altivec performance by adding hand written assembly optimizations. But realistically, from the whole PowerPC camp, only PlayStation3 has chances to be really competitive in terms of absolute performance per machine or performance per watt.
sr. member
Activity: 475
Merit: 265
Ooh La La, C'est Zoom!
After messing around with Ubuntu 11.10 that didn't seem to like the nVidia graphics card, even when not using KMS (booting with "nouveau.modestate=0"), I finally just installed a CLI version, booted with "nouveau.modestate=0" and all is well. I installed the "missing" libraries and gcc, and built cpuminer.

I'm seeing ~3.10 - 3.25 kH/s now. This is about equivalent to one thread on my 2.3 GHz Core i5 powered Mac Mini.

Edit: Second machine installed and churning out the same as the first.

- Zed
sr. member
Activity: 475
Merit: 265
Ooh La La, C'est Zoom!
I think pooler's optimized miner is optimized especially for Intel processors. You'll probably have more kh/s with the one from ssvb.

More specifically it is x86 instruction set optimized assembly code something that will never apply to a PPC machine. 

You are both right, re: pooler's optimizations. I was thinking just about the hash rate increases, and not that the optimizations are Intel and now AMD specific. I still have the G5 machines, but have had no time to do anything since I posted that message on 3-Jan. Hopefully I can burn a few cycles this weekend and get the machines running, although the fans on those suckers are fscking loud. Even the two IBM X3650M2s I had running over the holidays weren't as loud as just one of the PowerMac G5s ...

- Zed
newbie
Activity: 28
Merit: 0
Hey Folks,

I have access to a pair of PowerMac G5 machines. I don't know the specific model(s) yet, but I found out that Ubuntu 11.10 will run on them with a little effort.  Smiley  I'll be trying to install a persistent USB build for them and get them running.

Once I have done that, and installed a few libraries and tools, I'll download and try to build pooler's most up-to-date/optimized miner. If that fails, I'll download an run the one mentioned here.

Cheers,

- Zed


I think pooler's optimized miner is optimized especially for Intel processors. You'll probably have more kh/s with the one from ssvb.
sr. member
Activity: 475
Merit: 265
Ooh La La, C'est Zoom!
Hey Folks,

I have access to a pair of PowerMac G5 machines. I don't know the specific model(s) yet, but I found out that Ubuntu 11.10 will run on them with a little effort.  Smiley  I'll be trying to install a persistent USB build for them and get them running.

Once I have done that, and installed a few libraries and tools, I'll download and try to build pooler's most up-to-date/optimized miner. If that fails, I'll download an run the one mentioned here.

Cheers,

- Zed
newbie
Activity: 28
Merit: 0
That was my 2nd thought too Grin
I have One but it isn't the type that can run Linux. Maybe i can find a cheap One at eBay  Wink
I think it would be quite good as it has 3 cores at 3,2ghz.
hero member
Activity: 756
Merit: 500
What kind of hash rate would we get on the xbox 360?
Pages:
Jump to: