Building a model in Gorgonia with CUDA support that we do a few things first. We need to install Gorgonia's cu interface to CUDA, and then have a model ready to train!
Building a model in Gorgonia with CUDA support
Installing CUDA support for Gorgonia
To make use of CUDA, you need a computer with a GPU made by NVIDIA. Unfortunately, setting up CUDA to work with Gorgonia is a slightly more involved process, as it involves setting up a C compiler environment to work with Go, as well as a C compiler environment that works with CUDA. NVIDIA has kindly ensured that its compiler works with the common toolchain for each platform: Visual Studio on Windows, Clang-LLVM on macOS, and GCC on Linux.
Installing CUDA and ensuring that...