带有LAMP的服务器CPU和GPU [英] Server CPU and GPU With LAMP

查看:66
本文介绍了带有LAMP的服务器CPU和GPU的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试弄清有关在使用HipHop运行php应用程序或什至是c ++编译的php应用程序时可以利用的硬件的更多信息.我想设置一个微型服务器并使用GPU来帮助CPU处理请求...

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...

有人吗?

推荐答案

仅PHP不能利用GPU.最近在 php内部开发人员列表中对此进行了讨论.

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

请记住,GPU在某些类型的工作负载方面表现出色,而对其他工作负载却不那么出色. PHP无法真正利用GPU加速功能,因为它执行的工作实际上并不是GPU的最佳选择.

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.

如果您真的想玩HipHop和随机的高性能游戏,则可能要开始遵循 Open Parallel .他们一直在使用名为线程化构建块的英特尔技术,并通过添加可以异步调用回调的新功能将其集成到HipHop中.出色的结果.当将他们的工作介绍给HipHop小组时,引起了极大的兴趣. .

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.

但是,没有任何迹象表明对CUDA的支持,或者在HipHop中根本没有任何GPU的支持.老实说,对于大多数PHP用户而言,HipHop不是正确的解决方案.如果您试图从代码中压缩性能,则应该对其进行性能分析.

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.

这篇关于带有LAMP的服务器CPU和GPU的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆