CUDA Runtime API - Nvidia

3y ago
67 Views
3 Downloads
3.21 MB
553 Pages
Last View : 1d ago
Last Download : 3m ago
Upload by : Gia Hauser
Transcription

CUDA Runtime APIAPI Reference ManualvRelease Version July 2019

Table of ContentsChapter 1. Difference between the driver and runtime APIs.1Chapter 2. API synchronization behavior.3Chapter 3. Stream synchronization behavior. 5Chapter 4. Graph object thread safety.7Chapter 5. Modules. 85.1. Device Management.9cudaChooseDevice. 9cudaDeviceGetAttribute. 10cudaDeviceGetByPCIBusId. 15cudaDeviceGetCacheConfig.16cudaDeviceGetLimit. 17cudaDeviceGetNvSciSyncAttributes. 18cudaDeviceGetP2PAttribute. 19cudaDeviceGetPCIBusId. idth. aDeviceSetLimit. 26cudaDeviceSetSharedMemConfig. 28cudaDeviceSynchronize. ceFlags.31cudaGetDeviceProperties. cudaIpcGetMemHandle. 40cudaIpcOpenEventHandle.41cudaIpcOpenMemHandle. 42cudaSetDevice. 43cudaSetDeviceFlags.44cudaSetValidDevices. 465.2. Thread Management [DEPRECATED]. 47CUDA Runtime APIvRelease Version ii

cudaThreadExit. 47cudaThreadGetCacheConfig.48cudaThreadGetLimit. 49cudaThreadSetCacheConfig. 50cudaThreadSetLimit.51cudaThreadSynchronize. 525.3. Error 3cudaGetLastError. 54cudaPeekAtLastError. 555.4. Stream Management. 56cudaStreamCallback t. 56cudaCtxResetPersistingL2Cache. 56cudaStreamAddCallback. 57cudaStreamAttachMemAsync. 58cudaStreamBeginCapture. 61cudaStreamCopyAttributes. 62cudaStreamCreate.62cudaStreamCreateWithFlags. 63cudaStreamCreateWithPriority. 64cudaStreamDestroy. 65cudaStreamEndCapture. o.68cudaStreamGetFlags. 69cudaStreamGetPriority. 70cudaStreamIsCapturing.71cudaStreamQuery. 72cudaStreamSetAttribute. 73cudaStreamSynchronize.73cudaStreamWaitEvent. 74cudaThreadExchangeStreamCaptureMode.755.5. Event Management. 77cudaEventCreate. 77cudaEventCreateWithFlags. 78cudaEventDestroy. 79cudaEventElapsedTime.80CUDA Runtime APIvRelease Version iii

cudaEventQuery. 81cudaEventRecord. 845.6. External Resource Interoperability. 85cudaDestroyExternalMemory. 85cudaDestroyExternalSemaphore. 86cudaExternalMemoryGetMappedBuffer. 87cudaExternalMemoryGetMappedMipmappedArray. aphore. 93cudaSignalExternalSemaphoresAsync. 96cudaWaitExternalSemaphoresAsync. 985.7. Execution Control.100cudaFuncGetAttributes. 100cudaFuncSetAttribute. onfig.103cudaGetParameterBuffer. 105cudaGetParameterBufferV2. 106cudaLaunchCooperativeKernel. aunchHostFunc. 111cudaLaunchKernel.112cudaSetDoubleForDevice. 114cudaSetDoubleForHost.1145.8. lock. 116cudaOccupancyMaxActiveBlocksPerMultiprocessor. thFlags.1185.9. Memory Management. 119cudaArrayGetInfo. aFreeArray.122cudaFreeHost. 123cudaFreeMipmappedArray. 124cudaGetMipmappedArrayLevel. 125CUDA Runtime APIvRelease Version iv

ostAlloc. loc. Array. 139cudaMallocHost.141cudaMallocManaged. cudaMemAdvise. 148cudaMemcpy. 152cudaMemcpy2D. 153cudaMemcpy2DArrayToArray. 155cudaMemcpy2DAsync. sync. . 163cudaMemcpy3D. 165cudaMemcpy3DAsync. 167cudaMemcpy3DPeer. 170cudaMemcpy3DPeerAsync. 171cudaMemcpyAsync.172cudaMemcpyFromSymbol. 173cudaMemcpyFromSymbolAsync. mcpyToSymbol. 178cudaMemcpyToSymbolAsync. 180cudaMemGetInfo. 181cudaMemPrefetchAsync. 182cudaMemRangeGetAttribute. 184CUDA Runtime APIvRelease Version v

cudaMemRangeGetAttributes. 186cudaMemset.

vRelease Version July 2019 CUDA Runtime API API Reference Manual

Related Documents:

CUDA Toolkit Major Components www.nvidia.com NVIDIA CUDA Toolkit 10.0.153 RN-06722-001 _v10.0 2 ‣ cudadevrt (CUDA Device Runtime) ‣ cudart (CUDA Runtime) ‣ cufft (Fast Fourier Transform [FFT]) ‣ cupti (Profiling Tools Interface) ‣ curand (Random Number Generation) ‣ cusolver (Dense and Sparse Direct Linear Solvers and Eigen Solvers) ‣ cusparse (Sparse Matrix)

NVIDIA CUDA C Getting Started Guide for Microsoft Windows DU-05349-001_v03 1 INTRODUCTION NVIDIA CUDATM is a general purpose parallel computing architecture introduced by NVIDIA. It includes the CUDA Instruction Set Architecture (ISA) and the parallel compute engine in the GPU. To program to the CUDA architecture, developers can use

www.nvidia.com NVIDIA CUDA Installation Guide for Microsoft Windows DU-05349-001_v10.2 1 Chapter 1. INTRODUCTION CUDA is a parallel computing platform and programming model invented by NVIDIA. It enables dramatic increases in computing performance by harnessing the power of the

www.nvidia.com CUDA Debugger DU-05227-042 _v5.5 3 Chapter 2. RELEASE NOTES 5.5 Release Kernel Launch Stack Two new commands, info cuda launch stack and info cuda launch children, are introduced to display the kernel launch stack and the children k

vRelease Version January 2022 CUDA Runtime API API Reference Manual

NVIDIA CUDA Getting Started Guide for Linux DU-05347-001_v6.5 1 Chapter 1. INTRODUCTION CUDA is a parallel computing platform and programming model invented by NVIDIA. It enables dramatic increases in computing performance by harnessing the power of the graphics processing unit (GP

CUDA-GDB runs on Linux and Mac OS X, 32-bit and 64-bit. CUDA-GDB is based on GDB 7.6 on both Linux and Mac OS X. 1.2. Supported Features CUDA-GDB is designed to present the user with a seamless debugging environment that allows simultaneous debugging of both GPU and CPU code within the same application.

Tourism is not limited only to activities in the accommodation and hospitality sector, transportation sector and entertainment sector with visitor attractions, such as, theme parks, amusement parks, sports facilities, museums etc., but tourism and its management are closely connected to all major functions, processes and procedures that are practiced in various areas related to tourism as a .