The setup for Windows is very similar, but you also need to provide the C compilers that are required for both Go and CUDA. This setup is outlined in the following steps:
- Install a GCC environment; the easiest way to do this on Windows is to install MSYS2. You can download MSYS2 from https://www.msys2.org/.
- After installing MSYS2, update your installation with the following commands:
pacman -Syu
- Restart MSYS2 and run the following again:
pacman -Su
- Install the GCC package as follows:
pacman -S mingw-w64-x86_64-toolchain
- Install Visual Studio 2017 to get a compiler compatible with CUDA. At the time of writing, you can download this from https://visualstudio.microsoft.com/downloads/. The Community Edition works fine; if you have ...