-
Notifications
You must be signed in to change notification settings - Fork 35
Setup and Compilation
The only requirements for developing with the VUDA library is to have access to a Vulkan compatible system and install the Vulkan SDK. That said, the main tested targets of VUDA are Windows, Linux and Mac OS (through MoltenVK).
To compile a c++17 program (x64) using the VUDA library it is necessary to specify:
- The path to the VUDA header file.
- The path to the Vulkan SDK header files.
- The path to the Vulkan SDK library files and add the additional library dependency.
Each sample accompanying the VUDA library includes a simple Makefile for compilation with g++. Simply set the path to the sample folder and run make
.
Setting up the samples in Visual Studio is straight-forward. Make sure you compile x64 and enable c++17 features. Set the include and libary paths as well as the additional dependency on vulkan-1.lib.
For Xcode (todo).
Flag | Comment |
---|---|
VUDA_STD_LAYER_ENABLED |
Enables the LunarG standard validation layer |
VUDA_DEBUG_ENABLED |
Enables run-time exceptions |
If you are developing on CUDA-capable device, each sample can also be compiled with CUDA. To compile CUDA source code, install the CUDA toolkit.
To compile with CUDA simply type make cuda