This C++ example demonstrates a basic libcudf use case and provides a minimal example of building your own application based on libcudf using CMake.
The example source code loads a csv file that contains stock prices from 4 companies spanning across 5 days, computes the average of the closing price for each company and writes the result in csv format.
# Configure project
cmake -S . -B build/
# Build
cmake --build build/ --parallel $PARALLEL_LEVEL
# Execute
build/basic_exampleIf your machine does not come with a pre-built libcudf binary, expect the
first build to take some time, as it would build libcudf on the host machine.
It may be sped up by configuring the proper PARALLEL_LEVEL number.