使用高级着色器语言进行计算算法
所以,我听说有些人已经找到了使用高级着色器语言在 GPU 上运行程序的方法,我想开始编写自己的在 GPU 而不是 CPU 上运行的程序,但我一直找不到任何东西关于这个问题。
有谁有为 GPU 编写程序的经验或者知道有关该主题的任何文档吗?
谢谢。
So, I heard that some people have figured out ways to run programs on the GPU using High Level Shader Language and I would like to start writing my own programs that run on the GPU rather than my CPU, but I have been unable to find anything on the subject.
Does anyone have any experience with writing programs for the GPU or know of any documentation on the subject?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对于计算来说,CUDA和OpenCL比着色器语言更合适。对于 CUDA,我强烈推荐这本书CUDA by Examples。本书针对的是该编程领域的绝对初学者。
For computation, CUDA and OpenCL are more suitable than shader languages. For CUDA, I highly recommend the book CUDA by Example. The book is aimed at absolute beginners to this area of programming.
我认为开始的最好方法是
从那里开始您应该能够获得足够的动力来学习其余的内容。
一旦你学习了 CUDA,那么 OpenCL 和其他技术就变得轻而易举了。
我建议使用 CUDA,因为它是最广泛支持和测试的一种。
The best way I think to start is to
From there you should be able to gain enough momentum to learn the rest.
Once you learn CUDA then OpenCL and other are a breeze.
I am suggesting CUDA because is the one most widely supported and tested.