This project shows how to integrate CUDA and OpenGL. Generating the Makefile with CMake
After building and running the project (see below). You should see this:
You need to install:
- CUDA SDK
- OpenGL
- CMake 3.0+
To build on windows. Open the command line (or use the cmake gui)
- Check your Visual Studio version and change it if needed on the last step
- The CUDA SDK may be installed as 64bit version. If so, you need to use the
Win64
on the last command, otherwise you can omit it. If you omit it on 64bit versions you won't have access to libraries like: CURand or CUBLAS
mkdir build
cd build
cmake .. -G "Visual Studio 12 2013 Win64"
Open the project in Visual Studio.
This step couldn't be tested, if you test it email me or create an issue saying if it works or not.
mkdir build
cd build
cmake ..
make
- Matheus Faria ([email protected])