Skip to content

Latest commit

 

History

History
 
 

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

cuVS C and C++ Examples

This template project provides a drop-in sample to either start building a new application with, or using CUVS in an existing CMake project.

First, please refer to our installation docs for the minimum requirements to use cuVS.

Once the minimum requirements are satisfied, this example template application can be built with the provided build.sh script. This is a bash script that calls the appropriate CMake commands, so you can look into it to see the typical CMake based build workflow.

The directories (CUVS_SOURCE/examples/c) or (CUVS_SOURCE/examples/cpp) can be copied directly in order to build a new application with cuVS.

cuVS can be integrated into an existing CMake project by copying the contents in the configure rapids-cmake and configure cuvs sections of the provided CMakeLists.txt into your project, along with cmake/thirdparty/get_cuvs.cmake.

Make sure to link against the appropriate CMake targets. Use cuvs::c_api and cuvs::cuvs to use the C and C++ shared libraries respectively.

target_link_libraries(your_app_target PRIVATE cuvs::cuvs)