Visual Studion(Visual C ++)中的OpenACC [英] OpenACC in Visual Studion (Visual C++)

查看:211
本文介绍了Visual Studion(Visual C ++)中的OpenACC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是GPU的新手.我想使用OpenACC用C ++编写GPU.我不知道如何将其库添加到Visual Studio 2015中.我在Internet上进行了很多搜索,但是找不到很好的文档来显示该过程.您能帮我解决这个问题吗?

I am very new in GPU. I want to write GPU in C++ by using OpenACC. I don't know how to add its libraries to the visual studio 2015. I've searched a lot in the Internet but couldnt find a good document to show the procedure. Could you please help me to fix it?

谢谢.

推荐答案

Visual Studio不支持OpenACC.您需要在Linux上使用GNU或PGI,在Windows上使用PGI.请注意,PGI在Windows上不支持C ++.因此,您将要用C编写OpenACC代码,并使用"-ta = tesla:nordc"进行编译.接下来,根据对象创建一个库,然后可以从您的Visual Studio内置代码中调用该库.

Visual Studio doesn't support OpenACC. You'll need to either use GNU or PGI on Linux, or PGI on Windows. Note that PGI doesn't support C++ on Windows. Hence, you'll want to write an OpenACC code in C and compile with "-ta=tesla:nordc". Next create a library from the objects which can then be called from your Visual Studio built code.

这篇关于Visual Studion(Visual C ++)中的OpenACC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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