Change the kernel.cu -> MAX_ITERATIONS param to a higher number to get higher definition results. Compile with -DSHOW_ONLY_ITER=TRUE to only show iterations as image.
- Install CUDA toolkit from here. Note: lib has been tested with CUDA 11.04
- Go to 'C:\ProgramData\NVIDIA Corporation\CUDA Samples\v11.4'
- Copy the 'common' folder into this repo
- open the project in Clion as 'Cmake project'
- compile the programm. Note that execution will fail.
- from the 'C:\ProgramData\NVIDIA Corporation\CUDA Samples\v11.4\bin\win64\release' folder copy the 'freeglut.dll' and 'glew64.dll' into the './cmake-build-debug' folder created by clion
- Run the programm again and now it should execute
- From 'C:\ProgramData\NVIDIA Corporation\CUDA Samples\v11.4' copy the 'bin' folder into this repo
- Open the properties of the Solution
- 'Configuration Properties >> C/C++ >> General' in 'AdditionalIncludeDirectories' add ';common/inc'
- 'Configuration Properties >> Linker >> General' in 'Additional Library Directories' add ';common/lib'
- 'Configuration Properties >> Linker >> Input' in 'Additional Library Directories' add 'glew64.lib'
- 'Configuration Properties >> General' change 'Output Directory' to '$(ProjectDir)bin/win64/$(Configuration)/'
- TODO Install ???
- ...
- Use CMake or Make
Large parts of Code taken from https://www.informit.com/articles/article.aspx?p=2455391&seqNum=2