I learned OpenCL and practiced some example.
The performance is great.
the test case is http://code.google.com/p/neoe-vm/wiki/NeoeVmBenchmarkEx1
Java Single Thread cost 1unit time
Java Multi-Thread(100000 threads) cost 2x time.
Java Multi-Thread(32 threads) cost 0.36x time.
OpenCl CPU-mode cost 0.36x time(almost the same as using thread).
OpenCl GPU-mode cost 0.08x time (12.5x faster, I expected better but still great because its impossible without a GPU)
Video card is GTX560, maybe Ati card will have better result(though I didnot have one to test with).
CPU is intel E5462.
OpenCl language is like C language, so porting program to opencl should be easy, If the program has a parallel mode.
No comments:
Post a Comment