Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/cuda-samples
/ functions
Functions
2,694 in github.com/NVIDIA/cuda-samples
⨍
Functions
2,694
◇
Types & classes
482
↓ 1 callers
Method
_selectDemo
cpp/5_Domain_Specific/nbody/nbody.cpp:392
↓ 1 callers
Method
_selectDemo
cpp/8_Platform_Specific/Tegra/nbody_opengles/nbody_opengles.cpp:365
↓ 1 callers
Function
_time_call
(fn, *args, **kwargs)
python/2_CoreConcepts/processCheckpoint/processCheckpoint.py:120
↓ 1 callers
Function
_validate_threads_arg
(threads)
python/2_CoreConcepts/reductionMultiBlockCG/reductionMultiBlockCG.py:78
↓ 1 callers
Function
_validate_threads_per_block
(threads_per_block)
python/2_CoreConcepts/reduction/reduction.py:207
↓ 1 callers
Function
add4
cpp/5_Domain_Specific/bilateralFilter/bilateralFilter_cpu.cpp:97
↓ 1 callers
Function
addFileToProgram
cpp/7_libNVVM/ptxgen/ptxgen.c:80
↓ 1 callers
Method
add_down
cpp/2_Concepts_and_Techniques/interval/cuda_interval_rounded_arith.h:61
↓ 1 callers
Method
add_up
cpp/2_Concepts_and_Techniques/interval/cuda_interval_rounded_arith.h:63
↓ 1 callers
Function
adjustGridSize
cpp/5_Domain_Specific/MonteCarloMultiGPU/MonteCarloMultiGPU.cpp:82
↓ 1 callers
Function
adjustProblemSize
Utility function to tweak problem size for small GPUs
cpp/5_Domain_Specific/MonteCarloMultiGPU/MonteCarloMultiGPU.cpp:64
↓ 1 callers
Method
alloc
cpp/5_Domain_Specific/smokeParticles/GpuArray.h:117
↓ 1 callers
Function
asin
cpp/2_Concepts_and_Techniques/interval/boost/numeric/interval/transc.hpp:108
↓ 1 callers
Function
attachShader
Attach shader to a program
cpp/4_CUDA_Libraries/oceanFFT/oceanFFT.cpp:827
↓ 1 callers
Function
autoTest
cpp/5_Domain_Specific/fluidsGL/fluidsGL.cpp:175
↓ 1 callers
Function
autoTest
cpp/8_Platform_Specific/Tegra/fluidsGLES/fluidsGLES.cpp:409
↓ 1 callers
Function
autotuner
cpp/9_CUDA_Tile/tileMatmulAutotuner/matmul_autotuner.cpp:170
↓ 1 callers
Function
average_gradients
Average gradients across all MPI ranks using host-staging Allreduce. Steps: 1. Copy local gradients from GPU to CPU (NumPy). 2. Perf
python/4_DistributedComputing/multiGPUGradientAverage/multiGPUGradientAverage.py:211
↓ 1 callers
Method
backward
Backward pass: compute gradient. For y = x², the derivative is dy/dx = 2x Therefore: grad_x = grad_output * 2x Para
python/3_FrameworkInterop/customPyTorchKernel/customPyTorchKernel.py:191
↓ 1 callers
Function
baseNameWithoutExtension
cpp/9_CUDA_Tile/tileMatmulAutotuner/backend_common.h:161
↓ 1 callers
Method
beginSceneRender
render scene depth to texture (this is to ensure that particle are correctly occluded in the low-resolution render buffer)
cpp/5_Domain_Specific/smokeParticles/SmokeRenderer.cpp:412
↓ 1 callers
Method
beginSingleTimeCommands
cpp/5_Domain_Specific/simpleVulkan/VulkanBaseApp.cpp:195
↓ 1 callers
Method
beginSingleTimeCommands
cpp/5_Domain_Specific/simpleVulkanMMAP/VulkanBaseApp.cpp:189
↓ 1 callers
Function
bench_iters
cpp/9_CUDA_Tile/Benchmark_Common/benchmark.h:57
↓ 1 callers
Function
benchmark
cpp/5_Domain_Specific/recursiveGaussian/recursiveGaussian.cpp:353
↓ 1 callers
Function
benchmarkReduce
cpp/2_Concepts_and_Techniques/reduction/reduction.cpp:247
↓ 1 callers
Function
benchmark_cuda_compute
Benchmark cuda.compute.reduce_into() using cuda.core events.
python/2_CoreConcepts/parallelReduction/parallelReduction.py:246
↓ 1 callers
Function
benchmark_custom
Benchmark custom reduction kernel using cuda.core events.
python/2_CoreConcepts/parallelReduction/parallelReduction.py:204
↓ 1 callers
Function
binomialOptionsCPU
cpp/5_Domain_Specific/binomialOptions/binomialOptions_gold.cpp:85
↓ 1 callers
Function
blit2DImage
cpp/8_Platform_Specific/Tegra/cudaNvSciNvMedia/nvmedia_producer.cpp:185
↓ 1 callers
Function
blit2DImageNonNvSCI
cpp/8_Platform_Specific/Tegra/cudaNvSciNvMedia/nvmedia_producer.cpp:265
↓ 1 callers
Function
blur_image_unified_memory
Blur image on GPU using unified memory with cuda.core. This function demonstrates: 1. Allocate managed memory using ManagedMemoryResourc
python/1_GettingStarted/blurImageUnifiedMemory/blurImageUnifiedMemory.py:115
↓ 1 callers
Function
buffer_to_numpy
Create numpy view of cuda.core Buffer via DLPack.
python/2_CoreConcepts/streamingCopyComputeOverlap/streamingCopyComputeOverlap.py:82
↓ 1 callers
Function
buildKernel
cpp/7_libNVVM/uvmlite/uvmlite.c:200
↓ 1 callers
Function
buildKernel
cpp/7_libNVVM/device-side-launch/dsl.c:191
↓ 1 callers
Function
build_graph
Capture the 3-stage pipeline into a CUDA graph and return it.
python/2_CoreConcepts/cudaGraphs/cudaGraphs.py:109
↓ 1 callers
Function
build_kernel_source
Generate a specialized matmul + epilogue CUDA kernel.
python/2_CoreConcepts/persistentProgramCache/persistentProgramCache.py:143
↓ 1 callers
Function
cache_clear
(cache_dir: Path)
python/2_CoreConcepts/persistentProgramCache/persistentProgramCache.py:152
↓ 1 callers
Method
calcVectors
calculate vectors for half-angle slice rendering
cpp/5_Domain_Specific/smokeParticles/SmokeRenderer.cpp:174
↓ 1 callers
Function
calculateAverageAndStdDev
cpp/6_Performance/UnifiedMemoryPerf/helperFunctions.cpp:165
↓ 1 callers
Function
calculateStdDevBandwidth
cpp/6_Performance/UnifiedMemoryPerf/helperFunctions.cpp:183
↓ 1 callers
Function
ceilDiv
cpp/9_CUDA_Tile/tileMatmulAutotuner/backend_common.h:78
↓ 1 callers
Function
checkCudaCapabilities
General check for CUDA GPU SM Capabilities
Common/helper_cuda.h:964
↓ 1 callers
Function
checkGLErrors
check for OpenGL errors
cpp/5_Domain_Specific/nbody/nbody.cpp:545
↓ 1 callers
Function
check_ipc_support
Return True if this device/platform supports CUDA IPC memory pools.
python/4_DistributedComputing/ipcMemoryPool/ipcMemoryPool.py:81
↓ 1 callers
Function
checkbuf
cpp/2_Concepts_and_Techniques/EGLStream_CUDA_Interop/cuda_consumer.cpp:256
↓ 1 callers
Function
childProcess
cpp/3_CUDA_Features/memMapIPCDrv/memMapIpc.cpp:306
↓ 1 callers
Function
chooseSwapExtent
cpp/5_Domain_Specific/simpleVulkan/VulkanBaseApp.cpp:673
↓ 1 callers
Function
chooseSwapExtent
cpp/5_Domain_Specific/simpleVulkanMMAP/VulkanBaseApp.cpp:666
↓ 1 callers
Function
chooseSwapPresentMode
cpp/5_Domain_Specific/simpleVulkan/VulkanBaseApp.cpp:657
↓ 1 callers
Function
chooseSwapPresentMode
cpp/5_Domain_Specific/simpleVulkanMMAP/VulkanBaseApp.cpp:650
↓ 1 callers
Function
chooseSwapSurfaceFormat
cpp/5_Domain_Specific/simpleVulkan/VulkanBaseApp.cpp:641
↓ 1 callers
Function
chooseSwapSurfaceFormat
cpp/5_Domain_Specific/simpleVulkanMMAP/VulkanBaseApp.cpp:634
↓ 1 callers
Function
cleanUp
cpp/8_Platform_Specific/Tegra/cuDLALayerwiseStatsStandalone/main.cpp:110
↓ 1 callers
Function
cleanUp
cpp/8_Platform_Specific/Tegra/cuDLAStandaloneMode/main.cpp:108
↓ 1 callers
Function
cleanup
cpp/5_Domain_Specific/volumeFiltering/volumeFiltering.cpp:518
↓ 1 callers
Function
cleanup
cpp/5_Domain_Specific/smokeParticles/particleDemo.cpp:170
↓ 1 callers
Function
cleanup
cpp/5_Domain_Specific/volumeRender/volumeRender.cpp:390
↓ 1 callers
Function
cleanup
cpp/5_Domain_Specific/recursiveGaussian/recursiveGaussian.cpp:202
↓ 1 callers
Function
cleanup
cpp/5_Domain_Specific/marchingCubes/marchingCubes.cpp:524
↓ 1 callers
Function
cleanup
cpp/5_Domain_Specific/fluidsGL/fluidsGL.cpp:340
↓ 1 callers
Function
cleanup
cpp/8_Platform_Specific/Tegra/cudaNvSciNvMedia/main.cpp:63
↓ 1 callers
Function
cleanupNvMedia
cpp/8_Platform_Specific/Tegra/cudaNvSciNvMedia/nvmedia_producer.cpp:333
↓ 1 callers
Function
cleanupNvSciBuf
cpp/8_Platform_Specific/Tegra/cudaNvSciNvMedia/nvsci_setup.cpp:142
↓ 1 callers
Function
cleanupNvSciSync
cpp/8_Platform_Specific/Tegra/cudaNvSciNvMedia/nvsci_setup.cpp:149
↓ 1 callers
Function
colorRamp
create a color ramp
cpp/2_Concepts_and_Techniques/particles/particleSystem.cpp:101
↓ 1 callers
Method
compareBin2BinFloat
Common/rendercheck_gl.h:424
↓ 1 callers
Function
compareFiles
Compare input and generated image files
cpp/8_Platform_Specific/Tegra/cudaNvSciBufMultiplanar/cudaNvSciBufMultiplanar.cpp:41
↓ 1 callers
Function
compileASMShader
cpp/2_Concepts_and_Techniques/boxFilter/boxFilter.cpp:340
↓ 1 callers
Function
compileASMShader
cpp/2_Concepts_and_Techniques/imageDenoising/imageDenoisingGL.cpp:347
↓ 1 callers
Function
compileASMShader
cpp/5_Domain_Specific/bicubicTexture/bicubicTexture.cpp:579
↓ 1 callers
Function
compileASMShader
cpp/5_Domain_Specific/bilateralFilter/bilateralFilter.cpp:373
↓ 1 callers
Function
compileFile
cpp/9_CUDA_Tile/tileMatmulAutotuner/matmul_autotuner.cpp:129
↓ 1 callers
Function
compileFileToCUBIN
Common/nvrtc_helper.h:50
↓ 1 callers
Function
compileFileWithNVCC
cpp/9_CUDA_Tile/tileMatmulAutotuner/backend_nvcc.h:40
↓ 1 callers
Function
compileFileWithNVRTC
cpp/9_CUDA_Tile/tileMatmulAutotuner/backend_nvrtc.h:115
↓ 1 callers
Function
compileGLSLprogram
/////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////
cpp/0_Introduction/simpleCUDA2GL/main.cpp:541
↓ 1 callers
Function
compileGLSLprogram
/////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////
cpp/5_Domain_Specific/postProcessGL/main.cpp:824
↓ 1 callers
Function
compileTileIRToCubin
cpp/9_CUDA_Tile/tileMatmulAutotuner/backend_nvrtc.h:51
↓ 1 callers
Function
compile_fill_kernel
(device: Device)
python/2_CoreConcepts/processCheckpoint/processCheckpoint.py:102
↓ 1 callers
Function
compile_kernel
Compile the reduction kernel for the given device.
python/2_CoreConcepts/parallelReduction/parallelReduction.py:114
↓ 1 callers
Function
compile_kernel
Compile a CUDA kernel using cuda.core.Program.
python/2_CoreConcepts/launchConfigTuning/launchConfigTuning.py:115
↓ 1 callers
Function
compile_kernels
(device: Device)
python/2_CoreConcepts/greenContext/greenContext.py:320
↓ 1 callers
Function
compile_or_load_kernel
Compile the generated kernel or load its CUBIN bytes from cache.
python/2_CoreConcepts/persistentProgramCache/persistentProgramCache.py:157
↓ 1 callers
Function
compilerBackendName
cpp/9_CUDA_Tile/tileMatmulAutotuner/backend_common.h:74
↓ 1 callers
Function
computeArch
The libNVVM architecture string for a compute capability, e.g. 10.0 becomes "compute_100".
cpp/7_libNVVM/cuda-c-linking/cuda-c-linking.cpp:91
↓ 1 callers
Function
computeFPS
Calculate the Frames per second and print in the title bar
cpp/2_Concepts_and_Techniques/boxFilter/boxFilter.cpp:144
↓ 1 callers
Function
computeFPS
cpp/2_Concepts_and_Techniques/particles/particles.cpp:233
↓ 1 callers
Function
computeFPS
cpp/2_Concepts_and_Techniques/imageDenoising/imageDenoisingGL.cpp:117
↓ 1 callers
Function
computeFPS
cpp/2_Concepts_and_Techniques/FunctionPointers/FunctionPointers.cpp:108
↓ 1 callers
Function
computeFPS
cpp/0_Introduction/simpleTexture3D/simpleTexture3D.cpp:112
↓ 1 callers
Function
computeFPS
cpp/3_CUDA_Features/bindlessTexture/bindlessTexture.cpp:104
↓ 1 callers
Function
computeFPS
cpp/5_Domain_Specific/volumeFiltering/volumeFiltering.cpp:115
↓ 1 callers
Function
computeFPS
cpp/5_Domain_Specific/Mandelbrot/Mandelbrot.cpp:186
↓ 1 callers
Function
computeFPS
cpp/5_Domain_Specific/volumeRender/volumeRender.cpp:142
↓ 1 callers
Function
computeFPS
cpp/5_Domain_Specific/bicubicTexture/bicubicTexture.cpp:176
↓ 1 callers
Function
computeFPS
cpp/5_Domain_Specific/recursiveGaussian/recursiveGaussian.cpp:135
↓ 1 callers
Function
computeFPS
cpp/5_Domain_Specific/bilateralFilter/bilateralFilter.cpp:144
↓ 1 callers
Function
computeFPS
cpp/5_Domain_Specific/SobelFilter/SobelFilter.cpp:110
↓ 1 callers
Function
computeFPS
cpp/5_Domain_Specific/marchingCubes/marchingCubes.cpp:290
← previous
next →
501–600 of 2,694, ranked by callers