GPU并行编程C/C ++ [英] GPU parallel programming C/C++

查看:129
本文介绍了GPU并行编程C/C ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想学习C/C ++中的gpu并行编程.我应该使用什么库和编译器.如果它们是开源的,那就太好了. 注意:我在openmp和mpi上有一些练习.尽管它仅用于cpu并行编程.

I want to learn gpu parallel programming in C/C++. What Library and compiler should I use. If they are opensource, that would be nice. note: I have some practice with openmp and mpi. Though it is only for cpu parallel programming.

推荐答案

我取决于您的GPU.

OpenCL

它是开源的,可在Nvidia和AMD卡上使用.

It is open source and works on Nvidia and AMD cards.

https://www.khronos.org/opencl/

CUDA

专有的NVidia解决方案,用于并行编程.针对他们的卡进行了优化.

Propriety NVidia solution for parallel programming. Optimized for their cards.

http://www.nvidia.com/object/cuda_home_new.html

这篇关于GPU并行编程C/C ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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