OpenACC in Visual Studion (Visual C++)

狂风中的少年 提交于 2019-12-14 03:58:06

问题


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?

Thank you in advance.


回答1:


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.



来源:https://stackoverflow.com/questions/44546806/openacc-in-visual-studion-visual-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!