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
Function
loadProgramSource
cpp/7_libNVVM/device-side-launch/dsl.c:71
↓ 1 callers
Function
loadRawFile
Load raw data from disk
cpp/0_Introduction/simpleTexture3D/simpleTexture3D.cpp:262
↓ 1 callers
Function
loadRawFile
Load raw data from disk
cpp/5_Domain_Specific/volumeFiltering/volumeFiltering.cpp:536
↓ 1 callers
Function
loadRawFile
Load raw data from disk
cpp/5_Domain_Specific/volumeRender/volumeRender.cpp:450
↓ 1 callers
Function
loadRawFile
/////////////////////////////////////////////////////////////////////////// Load raw data from disk //////////////////////////////////////////////////
cpp/5_Domain_Specific/marchingCubes/marchingCubes.cpp:311
↓ 1 callers
Function
loadSearchSpace
cpp/9_CUDA_Tile/tileMatmulAutotuner/backend_common.h:222
↓ 1 callers
Function
loadTexture
cpp/5_Domain_Specific/smokeParticles/particleDemo.cpp:783
↓ 1 callers
Method
loadTipsyFile
cpp/5_Domain_Specific/nbody/bodysystemcpu_impl.h:91
↓ 1 callers
Method
loadTipsyFile
cpp/8_Platform_Specific/Tegra/nbody_opengles/bodysystemcpu_impl.h:91
↓ 1 callers
Function
loadVolumeData
cpp/0_Introduction/simpleTexture3D/simpleTexture3D.cpp:328
↓ 1 callers
Function
load_args_config
Load arguments configuration from JSON file
run_tests.py:53
↓ 1 callers
Function
main
()
run_tests.py:173
↓ 1 callers
Function
main
()
python/2_CoreConcepts/persistentProgramCache/persistentProgramCache.py:400
↓ 1 callers
Function
main
()
python/2_CoreConcepts/cudaComputeLambdas/cudaComputeLambdas.py:149
↓ 1 callers
Function
main
()
python/2_CoreConcepts/jitLtoLinking/jitLtoLinking.py:169
↓ 1 callers
Function
main
Main function demonstrating parallel reduction.
python/2_CoreConcepts/parallelReduction/parallelReduction.py:293
↓ 1 callers
Function
main
Complete demonstration of CUDA launch configuration tuning. This sample shows: 1. Device initialization with cuda.core.Device 2. Ker
python/2_CoreConcepts/launchConfigTuning/launchConfigTuning.py:334
↓ 1 callers
Function
main
()
python/2_CoreConcepts/greenContext/greenContext.py:599
↓ 1 callers
Function
main
Entry point.
python/2_CoreConcepts/blockwiseSum/blockwiseSum.py:248
↓ 1 callers
Function
main
()
python/2_CoreConcepts/binarySearch/binarySearch.py:107
↓ 1 callers
Function
main
()
python/2_CoreConcepts/cudaGraphs/cudaGraphs.py:159
↓ 1 callers
Function
main
Entry point. Returns True if benchmark passed.
python/2_CoreConcepts/matrixMulSharedMem/matrixMulSharedMem.py:240
↓ 1 callers
Function
main
Entry point.
python/2_CoreConcepts/pageRank/pageRank.py:357
↓ 1 callers
Function
main
()
python/2_CoreConcepts/tmaTensorMap/tmaTensorMap.py:179
↓ 1 callers
Function
main
Run prefix sum sample. Returns 0 if all tests passed.
python/2_CoreConcepts/prefixSum/prefixSum.py:56
↓ 1 callers
Function
main
Main entry point with argument parsing.
python/2_CoreConcepts/reductionMultiBlockCG/reductionMultiBlockCG.py:390
↓ 1 callers
Function
main
()
python/2_CoreConcepts/memoryResources/memoryResources.py:210
↓ 1 callers
Function
main
Parse CLI, call ``run()``, and exit with validation status.
python/2_CoreConcepts/simpleZeroCopy/simpleZeroCopy.py:225
↓ 1 callers
Function
main
()
python/2_CoreConcepts/processCheckpoint/processCheckpoint.py:192
↓ 1 callers
Function
main
()
python/2_CoreConcepts/parallelHistogram/parallelHistogram.py:103
↓ 1 callers
Function
main
Main entry point with argument parsing.
python/2_CoreConcepts/reduction/reduction.py:420
↓ 1 callers
Function
main
Entry point.
python/2_CoreConcepts/fftSignalAnalysis/fftSignalAnalysis.py:307
↓ 1 callers
Function
main
()
python/2_CoreConcepts/streamingCopyComputeOverlap/streamingCopyComputeOverlap.py:87
↓ 1 callers
Function
main
()
python/1_GettingStarted/systemInfo/systemInfo.py:176
↓ 1 callers
Function
main
Main entry point for the device query sample.
python/1_GettingStarted/deviceQuery/deviceQuery.py:363
↓ 1 callers
Function
main
Complete demonstration of GPU image copying workflow. This example shows: 1. Setting up CUDA device and stream 2. Creating a sample
python/1_GettingStarted/copyImageArraytoGPU/copyImageArraytoGPU.py:170
↓ 1 callers
Function
main
Main entry point for the vector addition sample.
python/1_GettingStarted/vectorAdd/vectorAdd.py:158
↓ 1 callers
Function
main
()
python/1_GettingStarted/numpyVsCupy/numpyVsCupy.py:130
↓ 1 callers
Function
main
Complete demonstration of GPU image blurring with cuda.core. This example shows: 1. Device initialization with cuda.core.Device 2. K
python/1_GettingStarted/blurImageUnifiedMemory/blurImageUnifiedMemory.py:190
↓ 1 callers
Function
main
Main function demonstrating printing from CUDA kernels using both approaches
python/1_GettingStarted/simplePrint/simplePrint.py:246
↓ 1 callers
Function
main
()
python/1_GettingStarted/kernelNsysProfile/kernelNsysProfile.py:308
↓ 1 callers
Function
main
Test the custom square operation.
python/3_FrameworkInterop/customPyTorchKernel/customPyTorchKernel.py:255
↓ 1 callers
Function
main
Test the custom ReLU operation.
python/3_FrameworkInterop/customTensorFlowKernel/customTensorFlowKernel.py:288
↓ 1 callers
Function
main
()
python/4_DistributedComputing/ipcMemoryPool/ipcMemoryPool.py:132
↓ 1 callers
Function
main
Demo: Multi-GPU gradient averaging with MPI (host-staging Allreduce).
python/4_DistributedComputing/multiGPUGradientAverage/multiGPUGradientAverage.py:248
↓ 1 callers
Function
main
Main entry point with argument parsing.
python/4_DistributedComputing/simpleP2P/simpleP2P.py:356
↓ 1 callers
Function
main
cpp/2_Concepts_and_Techniques/particles/shaders.cpp:35
↓ 1 callers
Function
main
point size in world space \n
cpp/5_Domain_Specific/smokeParticles/SmokeShaders.cpp:88
↓ 1 callers
Method
mainLoop
cpp/5_Domain_Specific/simpleVulkan/VulkanBaseApp.cpp:1890
↓ 1 callers
Method
mainLoop
cpp/5_Domain_Specific/simpleVulkanMMAP/VulkanBaseApp.cpp:1778
↓ 1 callers
Function
make_host_inputs
(m: int, n: int, k: int)
python/2_CoreConcepts/persistentProgramCache/persistentProgramCache.py:225
↓ 1 callers
Function
make_random_image
Create a random test image for demonstration. Args: h: Image height in pixels w: Image width in pixels c: Number of
python/1_GettingStarted/copyImageArraytoGPU/copyImageArraytoGPU.py:55
↓ 1 callers
Function
make_test_image
Create a test grayscale image for demonstration.
python/1_GettingStarted/blurImageUnifiedMemory/blurImageUnifiedMemory.py:94
↓ 1 callers
Function
mat4f_Ortho
cpp/8_Platform_Specific/Tegra/fluidsGLES/fluidsGLES.cpp:155
↓ 1 callers
Function
mat4x4_add
cpp/5_Domain_Specific/vulkanImageCUDA/linmath.h:161
↓ 1 callers
Function
mat4x4_add
cpp/5_Domain_Specific/simpleVulkan/linmath.h:162
↓ 1 callers
Function
mat4x4_from_vec3_mul_outer
cpp/5_Domain_Specific/vulkanImageCUDA/linmath.h:225
↓ 1 callers
Function
mat4x4_from_vec3_mul_outer
cpp/5_Domain_Specific/simpleVulkan/linmath.h:226
↓ 1 callers
Function
mat4x4_look_at
cpp/5_Domain_Specific/simpleVulkan/linmath.h:407
↓ 1 callers
Function
mat4x4_perspective
cpp/5_Domain_Specific/simpleVulkan/linmath.h:381
↓ 1 callers
Function
mat4x4_row
cpp/5_Domain_Specific/vulkanImageCUDA/linmath.h:142
↓ 1 callers
Function
mat4x4_row
cpp/5_Domain_Specific/simpleVulkan/linmath.h:143
↓ 1 callers
Function
mat4x4_scale
cpp/5_Domain_Specific/vulkanImageCUDA/linmath.h:173
↓ 1 callers
Function
mat4x4_scale
cpp/5_Domain_Specific/simpleVulkan/linmath.h:174
↓ 1 callers
Function
mat4x4_sub
cpp/5_Domain_Specific/vulkanImageCUDA/linmath.h:167
↓ 1 callers
Function
mat4x4_sub
cpp/5_Domain_Specific/simpleVulkan/linmath.h:168
↓ 1 callers
Function
mat4x4_translate_in_place
cpp/5_Domain_Specific/vulkanImageCUDA/linmath.h:215
↓ 1 callers
Function
mat4x4_translate_in_place
cpp/5_Domain_Specific/simpleVulkan/linmath.h:216
↓ 1 callers
Function
mat_identity
cpp/8_Platform_Specific/Tegra/fluidsGLES/fluidsGLES.cpp:131
↓ 1 callers
Function
mat_identity
cpp/8_Platform_Specific/Tegra/nbody_opengles/render_particles.cpp:36
↓ 1 callers
Function
mat_multiply
cpp/8_Platform_Specific/Tegra/fluidsGLES/fluidsGLES.cpp:139
↓ 1 callers
Function
mat_perspective
cpp/8_Platform_Specific/Tegra/nbody_opengles/render_particles.cpp:73
↓ 1 callers
Function
mat_translate
cpp/8_Platform_Specific/Tegra/nbody_opengles/render_particles.cpp:62
↓ 1 callers
Function
matmul_cpu
CPU reference implementation (FP16 -> FP32).
cpp/9_CUDA_Tile/Benchmark_Common/matmul_benchmark.h:53
↓ 1 callers
Function
max
Common/helper_math.h:68
↓ 1 callers
Function
max4
cpp/2_Concepts_and_Techniques/interval/cuda_interval_lib.h:120
↓ 1 callers
Method
median
cpp/2_Concepts_and_Techniques/interval/cuda_interval_rounded_arith.h:77
↓ 1 callers
Method
median
cpp/2_Concepts_and_Techniques/interval/boost/numeric/interval/rounded_arith.hpp:84
↓ 1 callers
Function
memMapAllocateAndExportMemory
cpp/3_CUDA_Features/memMapIPCDrv/memMapIpc.cpp:149
↓ 1 callers
Function
memMapGetDeviceFunction
cpp/3_CUDA_Features/memMapIPCDrv/memMapIpc.cpp:257
↓ 1 callers
Function
memMapImportAndMapMemory
cpp/3_CUDA_Features/memMapIPCDrv/memMapIpc.cpp:199
↓ 1 callers
Function
memMapUnmapAndFreeMemory
cpp/3_CUDA_Features/memMapIPCDrv/memMapIpc.cpp:238
↓ 1 callers
Function
microseconds_to_cycles
Convert microseconds to SM clock cycles, using the reported GPU clock rate. clock_rate is in kHz, so 1 us = clock_rate_kHz / 1000 cycles.
python/2_CoreConcepts/greenContext/greenContext.py:330
↓ 1 callers
Function
min
cpp/2_Concepts_and_Techniques/eigenvalues/util.h:52
↓ 1 callers
Function
min
Common/helper_math.h:73
↓ 1 callers
Function
min4
cpp/2_Concepts_and_Techniques/interval/cuda_interval_lib.h:118
↓ 1 callers
Function
motion
cpp/8_Platform_Specific/Tegra/fluidsGLES/fluidsGLES.cpp:272
↓ 1 callers
Function
mul
cpp/5_Domain_Specific/bilateralFilter/bilateralFilter_cpu.cpp:86
↓ 1 callers
Method
mult_vec
Quaternion multiplication with cartesian vector v' = q*v*q(star)
cpp/5_Domain_Specific/smokeParticles/nvQuaternion.h:348
↓ 1 callers
Method
mult_vec
Quaternion multiplication with cartesian vector v' = q*v*q(star)
Common/nvQuaternion.h:403
↓ 1 callers
Function
multiSolver
cpp/5_Domain_Specific/MonteCarloMultiGPU/MonteCarloMultiGPU.cpp:137
↓ 1 callers
Function
multiplicative_inverse
cpp/2_Concepts_and_Techniques/interval/boost/numeric/interval/arith2.hpp:96
↓ 1 callers
Function
myrand
very simple von neumann middle-square prng. can't use rand() in -qatest mode because its implementation varies across platforms which makes testing f
cpp/5_Domain_Specific/fluidsGL/fluidsGL.cpp:229
↓ 1 callers
Function
myrand
very simple von neumann middle-square prng. can't use rand() in -qatest mode because its implementation varies across platforms which makes testing f
cpp/8_Platform_Specific/Tegra/fluidsGLES/fluidsGLES.cpp:536
↓ 1 callers
Method
nan
cpp/2_Concepts_and_Techniques/interval/boost/numeric/interval/checking.hpp:44
↓ 1 callers
Function
nextPow2
cpp/2_Concepts_and_Techniques/reduction/reduction.cpp:182
↓ 1 callers
Function
normalize
cpp/5_Domain_Specific/nbody/bodysystem.h:107
↓ 1 callers
Function
normalize
cpp/8_Platform_Specific/Tegra/nbody_opengles/bodysystem.h:107
↓ 1 callers
Function
normalize_exe_name
Normalize executable name across platforms by removing .exe if present
run_tests.py:49
↓ 1 callers
Function
nv12ResizeAndNV12ToBGR
1. resize interlace nv12 to target size 2. convert nv12 to bgr 3 progressive planars */
cpp/5_Domain_Specific/NV12toBGRandResize/resize_convert_main.cpp:251
← previous
next →
901–1,000 of 2,694, ranked by callers