MCPcopy Create free account
hub / github.com/NVIDIA/cuda-samples / cleanup

Function cleanup

cpp/3_CUDA_Features/bindlessTexture/bindlessTexture.cpp:221–230  ·  view source on GitHub ↗

Global cleanup function Shared by both GL and non-GL code paths

Source from the content-addressed store, hash-verified

219// Global cleanup function
220// Shared by both GL and non-GL code paths
221void cleanup()
222{
223 sdkDeleteTimer(&timer);
224
225 // unregister this buffer object from CUDA C
226 if (cuda_pbo_resource) {
227 cudaGraphicsUnregisterResource(cuda_pbo_resource);
228 glDeleteBuffers(1, &pbo);
229 }
230}
231
232void cleanup_all()
233{

Callers 2

cleanup_allFunction · 0.70
mainFunction · 0.70

Calls 1

sdkDeleteTimerFunction · 0.85

Tested by

no test coverage detected