- 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
Only needed if you do not want to use the included .vcxproj file.
- create a new
CUDA
project. Here v11.4 - 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/$(PlatformName)'
- 'Configuration Properties >> Linker >> Input' in 'Additional Library Directories' add 'glew64.lib'
- 'Configuration Properties >> General' change 'Output Directory' to '$(ProjectDir)bin/win64/$(Configuration)/'
- For Visual Mode go
to:
Project > Properties > Configuration Properties > C/C++ > Preprocessor > Preprocessor Definitions
and addSIMVIZ
- Just open the included CUDA-OpenGL-Basic-Interaction.vcxproj file
- For Visual Mode go
to:
Project > Properties > Configuration Properties > C/C++ > Preprocessor > Preprocessor Definitions
and addSIMVIZ
sudo apt install nvidia-cuda-toolkit
sudo apt-get install freeglut3-dev
sudo apt-get install libglew-dev
sudo apt-get install libglfw3 libglfw3-dev
(???)
Use CMake
mkdir build
to create a build foldercmake ..
or usecmake -DHEADLESS=FALSE -DDEBUG=FALSE ..
seeOptions
see the cuda instalation guide
Change the resolution in interactions.h
.
Headless mode will not visualize the data and therefore does not need the corresponding libraries. Can be used for performance measurement without OpenGL or for using the data otherwise.
Activate by defining HEADLESS
.
For cmake compile with cmake -DHEADLESS=TRUE ..
For Visual Studio go
to: Project > Properties > Configuration Properties > C/C++ > Preprocessor > Preprocessor Definitions
and
remove SIMVIZ
Activate by defining DEBUG
.
For cmake compile with cmake -DEBUG=TRUE ..
For Visual Studio go to: Project > Properties > Configuration Properties > Debugging > Environment
and add DEBUG
Large parts of Code taken from https://www.informit.com/articles/article.aspx?p=2455391&seqNum=2