Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Server CPU and GPU With LAMP

I am trying to figure out more about the hardware that can be utilized when running a php application or even a c++ compiled php app using HipHop. I would like to setup a microserver and use the GPU to help the CPU process requests...

Anyone?

like image 381
GregL83 Avatar asked Apr 12 '11 14:04

GregL83


1 Answers

PHP alone does not have the ability to leverage the GPU. This was recently discussed on the php internals developer list.

Keep in mind that GPUs excel at certain types of workloads, while they're not that great for others. PHP wouldn't be able to really take advantage of GPU acceleration because the work it performs isn't really the best kind for a GPU.

If you really want to play with HipHop and random high performance stuff, you might want to begin following Open Parallel. They've been working with an Intel technology called Threading Building Blocks and have been integrating it into HipHop by adding new functions that can call callbacks asynchronously, with outstanding results. There was a great deal of interest when they introduced their work to the HipHop group.

However, there is no sign whatsoever of CUDA support, or really any GPU support at all in HipHop. To be honest, HipHop is not the right solution for the majority of PHP users. If you are trying to squeeze performance out of code, you should be profiling it.

like image 110
Charles Avatar answered Sep 20 '22 02:09

Charles