Hello, codeforces!
Do you have modern GPU and CPU and want to calculate something with them, but you don't know how to do it? Dont be upset, because you can read this blog and run your first GPU program on your AMD/Intel/NVIDIA GPU. I will describe installation process and then we will dive into the C++ code. As an example, we will calculate a lot of mazes for Bug Game in parallel. For doing this in simple way, we will use library Boost.Compute, which is a C++ STL-style wrapper over OpenCL library. ...
Installation for Windows
We need to install GCC, Boost and OpenCL. Let's do it with cygwin. Just download it and run.
Install GCC
On the step of choosing packages, select <<View: Full>, type <<Search: gcc>> and click on next packages:
- colorgcc
- gcc-core
- gcc-g++
- libgcc1