OpenAcc for Windows - windows

Using Visual Studio I am able to build and execute C++ code that uses CUDA on my workstation equipped with a geforce gtx 560 ti GPU. I have also downloaded the OpenACC toolkit from NVIDIA Developer website, and I want to install it for my Windows OS. However, I keep reading that I need a linux based OS to install, but that the PGI compiler is supported by Windows. Is it possible to install the OpenAcc for Windows and build/execute in Visual Studio?

PGI supports C and Fortran on Windows, Linux and MacOSX. C++ is available on Linux. The Portland Visual Fortran (PVF) product is a VS plugin. The C compiler is available via the command line. OpenACC is supported in both C and Fortran on Windows.

I've never tried it with Visual Studio, but I have downloaded the PGI compiler for Windows and built an OpenACC code using their trial license. They sell a product called PGI Visual Fortran which does integrate with VS, so I would expect that you can do the same with the C and C++ compilers.

Related

How can install intel OpenCL integrations with visual studio?

I have tried and installed every possible combination of Intel SDK toolkits and Visual Studio (2017/19/21) in the hope that the OpenCL integrations (project templates, compiler, and header and libraries) would be added as described here:
https://www.intel.com/content/www/us/en/developer/articles/guide/quick-getting-started-guide-for-opencl-sdk-integration-in-iss-2019.html
It is not quite clear to me what toolkit is currently needed, the links to the Intel OpenCL SDK does not give a download link, but if found elsewehre it installs some version of an Intel System Studio. If trying to download the OpenCL tools I'm redirected to an Intel oneAPI for IoT which does not set up the bindings, and the Base oneAPI does not do it either.
Any help or ideas here would be appreciated?

Borland c++ 5.02 for win8 64bit

I am to start c++ however I'm stalled in the first step
Mine is 64 bit but I can't find borland c++ for my version
Does it exist?
What should I do?
Borland 1 C++ 5.02 is a legacy 32-bit IDE. It can run on 64-bit Windows that have WOW64 installed, but it cannot produce 64-bit executables.
1. Borland is not in the developer tools business anymore, they sold their tools to Embarcadero years ago.
If you want an IDE that is a successor to Borland C++ 5.02, look at Embarcadero's free Community Edition IDE, or even just its updated free C++ command-line compiler.
Or, there are plenty of other 3rd party C++ compilers available (Gcc, Clang, MinGW, Visual Studio community edition, etc).

What CUDA version for VS2017 and GTX 870M?

I want to develop a program using CUDA but I am getting lost by install instructions on NVidia's site.
So here is what I have:
Windows 10 laptop with a NVidia GPU GeForce GTX 870M
(both OS and GPU driver are up to date)
Visual Studio 2017, Version 15.8 (also up to date) _MS_VER=1915
On this webpage, I found out that my GPU is CUDA enabled (good news) with "Compute capability" 3.0. What does it mean?
I know that CUDA versions are sensitive to the version of Visual Studio used, so
my question is simple:
what version of CUDA should I download and install? and can I build and run programs with my version of Visual Studio?
As far as I know, no version of the CUDA Toolkit currently supports Visual Studio 15.8. The latest CUDA 9.2 supposedly supports up to Visual Studio 15.6. Note that the issue of Visual Studio support really only concerns the NVCC compiler and Visual Studio Integration. There's nothing preventing you from, e.g., using the CUDA Driver API with whatever compiler you wish (including the latest version of VS).
One way around these issues used to be to put your CUDA code into a separate static library, build that with the VS 2015 compilers, and link it to the main project which could be built using VS 2017.
Make sure you have selected the VC++ 2015.3 v14.00 (v140) toolset for desktop package in Visual Studio Installer:
You can then switch the toolset to use for each project in Project Properties > General:
Unfortunately, I've recently encountered some issues with linking binaries built with VS 2015 to binaries built with the VS 2017 15.8 compilers, so that path might no longer work (seemed to be related to the new "Just My Code Debugging" feature). But then, binary compatibility across compiler versions was never really something to rely on in the first placeā€¦
Another solution would be to downgrade your Visual Studio to 15.6.
The compute capability of a device basically tells you what generation of GPU architecture you're dealing with and which features you can rely on. Or in the words of the CUDA Programming Guide:
The compute capability of a device is represented by a version number, also sometimes called its "SM version". This version number identifies the features supported by the GPU hardware and is used by applications at runtime to determine which hardware features and/or instructions are available on the present GPU.
More details on individual compute capabilities/architectures can be found, e.g., here.

QT Visual Studio Tools Embedded compile and debug

Is it possible to use "Qt Visual Studio Tools" with a Raspberry Pi or other embedded Device to compile and debug applications.
Maybe in combination with VS Linux Support?
I know with QT it's possible but you need the arm compiler on the host system.
VS Linux Support as far as i understand compiles on the slave system.

Can I compile and run cuda program in windows 7 without visual studio?

Currently I am new to CUDA I have NVIDIA tesla c2075 card I install CUDA toolkit for windows. Now I don't have visual studio. I want to run and test CUDA programs without using visual studio.
The only officially supported compiler for use with CUDA on windows is cl.exe, the compiler that ships with visual studio. It also comes with the express (free) versions of visual studio. Is there a reason you don't want to do this?
You can also get the tools and set up a command-line compile environment using the Microsoft Windows SDK.

Resources