mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2026-11-18 01:48:16 +08:00
Compare commits
166 Commits
v12.9
...
sync/v13.3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
99686e0c71 | ||
|
|
aeab82ff30 | ||
|
|
a4526d5229 | ||
|
|
f69622b6b6 | ||
|
|
722c5dd069 | ||
|
|
e32d17e67e | ||
|
|
5cf83b5a98 | ||
|
|
191900a7b4 | ||
|
|
338df69d0f | ||
|
|
9b7a6f907a | ||
|
|
5bbae96fd3 | ||
|
|
ce9407c240 | ||
|
|
cdedff42d2 | ||
|
|
6c4d183ba3 | ||
|
|
af49216f0c | ||
|
|
17113ea87e | ||
|
|
70fcdd353f | ||
|
|
5b2dd19a21 | ||
|
|
37dcb9b61d | ||
|
|
1bc6774795 | ||
|
|
4f735616ba | ||
|
|
4ff552244d | ||
|
|
df6edf644e | ||
|
|
85231cd1b6 | ||
|
|
46a782fb44 | ||
|
|
d5dedb24d6 | ||
|
|
9600b04a3c | ||
|
|
4eae2ccc04 | ||
|
|
d759a16c4b | ||
|
|
b8191f860a | ||
|
|
547f65851f | ||
|
|
9df0ef6411 | ||
|
|
1411d243a6 | ||
|
|
57e870596c | ||
|
|
fd6707ccaa | ||
|
|
cf01c5bb28 | ||
|
|
1165d53ddf | ||
|
|
8c324afd63 | ||
|
|
0fae54dcd6 | ||
|
|
320c7e6392 | ||
|
|
22fafb0a7c | ||
|
|
cccbf2c284 | ||
|
|
69186dc51e | ||
|
|
d298bf3e6f | ||
|
|
27c7e19849 | ||
|
|
7c190dde53 | ||
|
|
5e9d44634b | ||
|
|
b0a2f2049f | ||
|
|
3e6d1858af | ||
|
|
12b046a80e | ||
|
|
036638b713 | ||
|
|
9d703d090b | ||
|
|
cbc075ef59 | ||
|
|
6e23a98575 | ||
|
|
5fc7a4c897 | ||
|
|
3f1c509650 | ||
|
|
fbc40da311 | ||
|
|
1b36fefcd5 | ||
|
|
13c2fd9717 | ||
|
|
775d1b4dd3 | ||
|
|
a5267b83a5 | ||
|
|
2ab16e6d15 | ||
|
|
903c840a8c | ||
|
|
24e7c5b428 | ||
|
|
b38ed29c95 | ||
|
|
4a631c9fd6 | ||
|
|
98afcd6515 | ||
|
|
eb8891b839 | ||
|
|
688fff15b2 | ||
|
|
555353b4b5 | ||
|
|
1a35902577 | ||
|
|
8013610840 | ||
|
|
2369d4c649 | ||
|
|
8433f89993 | ||
|
|
a9a4db666f | ||
|
|
87d03ef003 | ||
|
|
7c8fccc0d4 | ||
|
|
45314d7ff8 | ||
|
|
2f0a55d7dc | ||
|
|
0d61031846 | ||
|
|
225f84d433 | ||
|
|
e674cc36fe | ||
|
|
a47b422205 | ||
|
|
ce28796d6c | ||
|
|
9424c15848 | ||
|
|
9075c50a3d | ||
|
|
de5fa98e6e | ||
|
|
6c9e9d3cd2 | ||
|
|
7f5390cec3 | ||
|
|
5f6d46dfea | ||
|
|
49307463b5 | ||
|
|
859debae1b | ||
|
|
9c0d5aaae6 | ||
|
|
74a9a08887 | ||
|
|
0d08748ffa | ||
|
|
c1166d3298 | ||
|
|
27f47634a0 | ||
|
|
40d297dfe7 | ||
|
|
f19d33ddbc | ||
|
|
20b90b5063 | ||
|
|
8a9e2c830c | ||
|
|
61225e22f0 | ||
|
|
bf25251720 | ||
|
|
f47f06f077 | ||
|
|
0c78a3e0de | ||
|
|
5a1f5008ed | ||
|
|
8219570c15 | ||
|
|
5ce8b512ea | ||
|
|
fc88988f23 | ||
|
|
adacf1cffd | ||
|
|
3e631f467a | ||
|
|
1141dd7af4 | ||
|
|
da3b7a2b3c | ||
|
|
5987a9e9fa | ||
|
|
107f3f537f | ||
|
|
c1b03b9f81 | ||
|
|
ee0ee417c9 | ||
|
|
ebc1078379 | ||
|
|
2861e78272 | ||
|
|
494d598f86 | ||
|
|
c6208f5897 | ||
|
|
8f33cc6094 | ||
|
|
2ec9cf394a | ||
|
|
770e433a9e | ||
|
|
dd1a11f648 | ||
|
|
c6af90553e | ||
|
|
7989d1fcc8 | ||
|
|
611008fa86 | ||
|
|
bf628887f1 | ||
|
|
f288b2e261 | ||
|
|
330dd8472f | ||
|
|
b530f1cf42 | ||
|
|
b63fd83b6c | ||
|
|
8ee551c99a | ||
|
|
148014e709 | ||
|
|
f2645c5df8 | ||
|
|
9ac81370fa | ||
|
|
93cafa8fe9 | ||
|
|
1627e96677 | ||
|
|
7e90d36120 | ||
|
|
9e50fdc01f | ||
|
|
2c0b36a967 | ||
|
|
83397dc811 | ||
|
|
640b566412 | ||
|
|
da24673a9f | ||
|
|
bded2585a4 | ||
|
|
5384563c57 | ||
|
|
01a62e2bc0 | ||
|
|
02fdb070ad | ||
|
|
278f4adbd2 | ||
|
|
d00076a7c1 | ||
|
|
4672b8ba2b | ||
|
|
56e669e2e4 | ||
|
|
a1b5a6f6e3 | ||
|
|
a4fba501a6 | ||
|
|
89789bd848 | ||
|
|
8f6b189dae | ||
|
|
69522dd5b7 | ||
|
|
eddc6fd7e1 | ||
|
|
7ceb3122fc | ||
|
|
62781dc15e | ||
|
|
3f97ef1288 | ||
|
|
408c9f69a8 | ||
|
|
5df07f114e | ||
|
|
541e9fc3f5 | ||
|
|
b6f3b7add9 |
5
.gitignore
vendored
5
.gitignore
vendored
@@ -1,6 +1,11 @@
|
|||||||
build
|
build
|
||||||
|
build-*/
|
||||||
|
test-results*/
|
||||||
.vs
|
.vs
|
||||||
.clangd
|
.clangd
|
||||||
test
|
test
|
||||||
settings.json
|
settings.json
|
||||||
launch.json
|
launch.json
|
||||||
|
__pycache__/
|
||||||
|
*.py[co]
|
||||||
|
.pytest_cache/
|
||||||
|
|||||||
@@ -104,3 +104,13 @@ repos:
|
|||||||
Common/.*
|
Common/.*
|
||||||
)
|
)
|
||||||
args: ["-fallback-style=none", "-style=file", "-i"]
|
args: ["-fallback-style=none", "-style=file", "-i"]
|
||||||
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
|
rev: v0.8.4
|
||||||
|
hooks:
|
||||||
|
- id: ruff
|
||||||
|
name: ruff lint
|
||||||
|
args: [--fix]
|
||||||
|
files: ^python/.*\.py$
|
||||||
|
- id: ruff-format
|
||||||
|
name: ruff format
|
||||||
|
files: ^python/.*\.py$
|
||||||
|
|||||||
102
CHANGELOG.md
102
CHANGELOG.md
@@ -1,5 +1,107 @@
|
|||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
|
### CUDA 13.3
|
||||||
|
* Added **CUDA Tile C++** samples under `cpp/9_CUDA_Tile`.
|
||||||
|
* Added a set of **CCCL 3.3 feature samples** under `cpp/4_CUDA_Libraries/`, each built against CCCL fetched via CPM (pinned to v3.3.3, with an optional `CCCL_SOURCE_DIR` override):
|
||||||
|
* `cubDeviceFind` - `cub::DeviceFind::FindIf`, `LowerBound`, and `UpperBound` device-wide search algorithms.
|
||||||
|
* `cubDeviceSegmentedScan` - `cub::DeviceSegmentedScan::ExclusiveSegmentedSum` and `InclusiveSegmentedScan` with a custom binary operator.
|
||||||
|
* `cubDeviceTransform` - N-to-M `cub::DeviceTransform::Transform` where the op returns a `cuda::std::tuple`.
|
||||||
|
* `libcuxxRandom` - `cuda::pcg64` and `cuda::std::philox4x32` engines driving the uniform, normal, Poisson, and Bernoulli distributions from `<cuda/std/random>`.
|
||||||
|
* `libcuxxMdspan` - DLPack <-> `cuda::std::mdspan` bridging via `cuda::to_device_mdspan` / `cuda::to_dlpack_tensor`, plus `cuda::shared_memory_mdspan` for multi-dimensional views of shared memory.
|
||||||
|
* Added **cuda.compute 1.0 Python samples** under `python/2_CoreConcepts/`:
|
||||||
|
* `cudaComputeLambdas` - Python lambdas / regular callables driving `reduce_into`, `unary_transform`, and `inclusive_scan` in `cuda.compute` (from the `cuda-cccl` package).
|
||||||
|
* `binarySearch` - parallel `cuda.compute.upper_bound` / `lower_bound`, verified against `numpy.searchsorted`.
|
||||||
|
|
||||||
|
|
||||||
|
### CUDA 13.2 (update)
|
||||||
|
* Added **CUDA Python samples** under `python/`. These scripts use [CUDA Python](https://nvidia.github.io/cuda-python/) (including `cuda.core`) and are organized like the C++ tree: `1_GettingStarted`, `2_CoreConcepts`, `3_FrameworkInterop`, and `4_DistributedComputing`, plus shared helpers in `python/Utilities`. Each sample includes a `README.md` and `requirements.txt`. They are **not** built by the root CMake project; install dependencies with `pip install -r requirements.txt` in the sample directory, then run the corresponding `.py` file as documented in that sample’s README.
|
||||||
|
* Renamed top-level `Samples` directory to `cpp` to accommodate Python samples alongside existing C++ samples; updated path references in `CMakeLists.txt`, `README.md`, and `Common` headers accordingly.
|
||||||
|
|
||||||
|
### CUDA 13.2
|
||||||
|
* Added the MSVC compile flag `-Xcompiler=/Zc:preprocessor` in CMakeLists.txt to comply with CUDA13.2 CCCL. Previously, using the traditional preprocessor triggered the warning “MSVC/cl.exe with traditional preprocessor is used…”, which now leads to a build error.
|
||||||
|
|
||||||
|
### CUDA 13.1
|
||||||
|
* Minor bug fixes and enhancements, no structural or functional changes
|
||||||
|
|
||||||
|
### CUDA 13.0
|
||||||
|
* Updated the samples using the cudaDeviceProp fields which are deprecated and removed in CUDA 13.0, replacing the fields with the equivalents in "cudaDeviceGetAttribute":
|
||||||
|
* Deprecated "cudaDeviceProp" fields
|
||||||
|
`int clockRate; // - Replaced with "cudaDevAttrClockRate"`
|
||||||
|
`int deviceOverlap; // - Replaced with "cudaDevAttrGpuOverlap */`
|
||||||
|
`int kernelExecTimeoutEnabled; // - Replaced with "cudaDevAttrKernelExecTimeout`
|
||||||
|
`int computeMode; // - Replaced with "cudaDevAttrComputeMode" */`
|
||||||
|
`int memoryClockRate; // - Replaced with "cudaDevAttrMemoryClockRate"`
|
||||||
|
`int cooperativeMultiDeviceLaunch; // - Deprecated, cudaLaunchCooperativeKernelMultiDevice is deprecated.`
|
||||||
|
* `0_Introduction`
|
||||||
|
* `UnifiedMemoryStreams`
|
||||||
|
* `simpleHyperQ`
|
||||||
|
* `simpleIPC`
|
||||||
|
* `simpleMultiCopy`
|
||||||
|
* `systemWideAtomics`
|
||||||
|
* `1_Utilitie`
|
||||||
|
* `deviceQuery`
|
||||||
|
* `2_Concepts_and_Techniques`
|
||||||
|
* `streamOrderedAllocationIPC`
|
||||||
|
* `4_CUDA_Libraries`
|
||||||
|
* `simpleCUBLASXT`
|
||||||
|
* `5_Domain_Specific`
|
||||||
|
* `simpleVulkan`
|
||||||
|
* `vulkanImageCUDA`
|
||||||
|
* Updated the samples using the CUDA driver API "cuCtxCreate" with adding the parameter "CUctxCreateParams" as "cuCtxCreate" is updated to "cuCtxCreate_v4" by default in CUDA 13.0:
|
||||||
|
* `Common`
|
||||||
|
* `nvrtc_helper.h`
|
||||||
|
* `0_Introduction`
|
||||||
|
* `UnifiedMemoryStreams`
|
||||||
|
* `matrixMulDrv`
|
||||||
|
* `simpleTextureDrv`
|
||||||
|
* `vectorAddDrv`
|
||||||
|
* `vectorAddMMAP`
|
||||||
|
* `2_Concepts_and_Techniques`
|
||||||
|
* `EGLStream_CUDA_CrossGPU`
|
||||||
|
* `EGLStream_CUDA_Interop`
|
||||||
|
* `threadMigration`
|
||||||
|
* `3_CUDA_Features`
|
||||||
|
* `graphMemoryFootprint`
|
||||||
|
* `memMapIPCDrv`
|
||||||
|
* `4_CUDA_Libraries`
|
||||||
|
* `jitLto`
|
||||||
|
* `7_libNVVM`
|
||||||
|
* `cuda-c-linking`
|
||||||
|
* `device-side-launch`
|
||||||
|
* `simple`
|
||||||
|
* `uvmlite`
|
||||||
|
* `8_Platform_Specific/Tegra`
|
||||||
|
* `EGLSync_CUDAEvent_Interop`
|
||||||
|
* Updated the sample using CUDA API "cudaGraphAddNode"/"cudaStreamGetCaptureInfo" with adding "cudaGraphEdgeData" pointer parameter as they are updated to "cudaGraphAddNode_v2"/"cudaStreamGetCaptureInfo_v3" by default in CUDA 13.0:
|
||||||
|
* `3_CUDA_Features`
|
||||||
|
* `graphConditionalNodes`
|
||||||
|
* Updated the samples using CUDA API "cudaMemAdvise"/"cudaMemPrefetchAsync" with changing the parameter "int device" to "cudaMemLocation location" as they are updated to "cudaMemAdvise_v2"/"cudaMemPrefetchAsyn_v2" by default in CUDA 13.0.
|
||||||
|
* `4_CUDA_Libraries`
|
||||||
|
* `conjugateGradientMultiDeviceCG`
|
||||||
|
* `6_Performance`
|
||||||
|
* `UnifiedMemoryPerf`
|
||||||
|
* Replaced "thrust::identity<uint>()" with "cuda::std::identity()" as it is deprecated in CUDA 13.0.
|
||||||
|
* `2_Concepts_and_Techniques`
|
||||||
|
* `segmentationTreeThrust`
|
||||||
|
* Updated the the headers file and samples for CUFFT error codes update.
|
||||||
|
* Deprecated CUFFT errors:
|
||||||
|
* `CUFFT_INCOMPLETE_PARAMETER_LIST`
|
||||||
|
* `CUFFT_PARSE_ERROR`
|
||||||
|
* `CUFFT_LICENSE_ERROR`
|
||||||
|
* New added CUFFT errors:
|
||||||
|
* `CUFFT_MISSING_DEPENDENCY`
|
||||||
|
* `CUFFT_NVRTC_FAILURE`
|
||||||
|
* `CUFFT_NVJITLINK_FAILURE`
|
||||||
|
* `CUFFT_NVSHMEM_FAILURE`
|
||||||
|
* Header files and samples that are related with this change:
|
||||||
|
* `Common/helper_cuda.h`
|
||||||
|
* `4_CUDA_Libraries`
|
||||||
|
* `simpleCUFFT`
|
||||||
|
* `simpleCUFFT_2d_MGPU`
|
||||||
|
* `simpleCUFFT_MGPU`
|
||||||
|
* `simpleCUFFT_callback`
|
||||||
|
* Updated toolchain for cross-compilation for Tegra QNX platforms.
|
||||||
|
|
||||||
### CUDA 12.9
|
### CUDA 12.9
|
||||||
* Updated toolchain for cross-compilation for Tegra Linux platforms.
|
* Updated toolchain for cross-compilation for Tegra Linux platforms.
|
||||||
* Added `run_tests.py` utility to exercise all samples. See README.md for details
|
* Added `run_tests.py` utility to exercise all samples. See README.md for details
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
cmake_minimum_required(VERSION 3.20)
|
cmake_minimum_required(VERSION 3.20)
|
||||||
|
|
||||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../../cmake/Modules")
|
|
||||||
|
|
||||||
project(cuda-samples LANGUAGES C CXX CUDA)
|
project(cuda-samples LANGUAGES C CXX CUDA)
|
||||||
|
|
||||||
find_package(CUDAToolkit REQUIRED)
|
find_package(CUDAToolkit REQUIRED)
|
||||||
@@ -14,7 +12,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|||||||
set(CMAKE_CUDA_STANDARD 17)
|
set(CMAKE_CUDA_STANDARD 17)
|
||||||
set(CMAKE_CUDA_STANDARD_REQUIRED ON)
|
set(CMAKE_CUDA_STANDARD_REQUIRED ON)
|
||||||
|
|
||||||
set(CMAKE_CUDA_ARCHITECTURES 50 52 60 61 70 72 75 80 86 87 89 90 100 101 120)
|
set(CMAKE_CUDA_ARCHITECTURES 75 80 86 87 89 90 100 110 120)
|
||||||
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -Wno-deprecated-gpu-targets")
|
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -Wno-deprecated-gpu-targets")
|
||||||
if(ENABLE_CUDA_DEBUG)
|
if(ENABLE_CUDA_DEBUG)
|
||||||
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -G") # enable cuda-gdb (may significantly affect performance on some targets)
|
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -G") # enable cuda-gdb (may significantly affect performance on some targets)
|
||||||
@@ -24,4 +22,12 @@ endif()
|
|||||||
|
|
||||||
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} --extended-lambda")
|
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} --extended-lambda")
|
||||||
|
|
||||||
add_subdirectory(Samples)
|
# Add MSVC-specific flags for standard-conforming preprocessor (required for CCCL)
|
||||||
|
if(MSVC)
|
||||||
|
add_compile_options($<$<COMPILE_LANGUAGE:CUDA>:-Xcompiler=/Zc:preprocessor>)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Include installation configuration before processing samples
|
||||||
|
include(cmake/InstallSamples.cmake)
|
||||||
|
|
||||||
|
add_subdirectory(cpp)
|
||||||
|
|||||||
@@ -138,26 +138,29 @@ static const char *_cudaGetErrorEnum(cufftResult error) {
|
|||||||
case CUFFT_UNALIGNED_DATA:
|
case CUFFT_UNALIGNED_DATA:
|
||||||
return "CUFFT_UNALIGNED_DATA";
|
return "CUFFT_UNALIGNED_DATA";
|
||||||
|
|
||||||
case CUFFT_INCOMPLETE_PARAMETER_LIST:
|
|
||||||
return "CUFFT_INCOMPLETE_PARAMETER_LIST";
|
|
||||||
|
|
||||||
case CUFFT_INVALID_DEVICE:
|
case CUFFT_INVALID_DEVICE:
|
||||||
return "CUFFT_INVALID_DEVICE";
|
return "CUFFT_INVALID_DEVICE";
|
||||||
|
|
||||||
case CUFFT_PARSE_ERROR:
|
|
||||||
return "CUFFT_PARSE_ERROR";
|
|
||||||
|
|
||||||
case CUFFT_NO_WORKSPACE:
|
case CUFFT_NO_WORKSPACE:
|
||||||
return "CUFFT_NO_WORKSPACE";
|
return "CUFFT_NO_WORKSPACE";
|
||||||
|
|
||||||
case CUFFT_NOT_IMPLEMENTED:
|
case CUFFT_NOT_IMPLEMENTED:
|
||||||
return "CUFFT_NOT_IMPLEMENTED";
|
return "CUFFT_NOT_IMPLEMENTED";
|
||||||
|
|
||||||
case CUFFT_LICENSE_ERROR:
|
|
||||||
return "CUFFT_LICENSE_ERROR";
|
|
||||||
|
|
||||||
case CUFFT_NOT_SUPPORTED:
|
case CUFFT_NOT_SUPPORTED:
|
||||||
return "CUFFT_NOT_SUPPORTED";
|
return "CUFFT_NOT_SUPPORTED";
|
||||||
|
|
||||||
|
case CUFFT_MISSING_DEPENDENCY:
|
||||||
|
return "CUFFT_MISSING_DEPENDENCY";
|
||||||
|
|
||||||
|
case CUFFT_NVRTC_FAILURE:
|
||||||
|
return "CUFFT_NVRTC_FAILURE";
|
||||||
|
|
||||||
|
case CUFFT_NVJITLINK_FAILURE:
|
||||||
|
return "CUFFT_NVJITLINK_FAILURE";
|
||||||
|
|
||||||
|
case CUFFT_NVSHMEM_FAILURE:
|
||||||
|
return "CUFFT_NVSHMEM_FAILURE";
|
||||||
}
|
}
|
||||||
|
|
||||||
return "<unknown>";
|
return "<unknown>";
|
||||||
@@ -670,7 +673,10 @@ inline int _ConvertSMVer2Cores(int major, int minor) {
|
|||||||
{0x90, 128},
|
{0x90, 128},
|
||||||
{0xa0, 128},
|
{0xa0, 128},
|
||||||
{0xa1, 128},
|
{0xa1, 128},
|
||||||
|
{0xa3, 128},
|
||||||
|
{0xb0, 128},
|
||||||
{0xc0, 128},
|
{0xc0, 128},
|
||||||
|
{0xc1, 128},
|
||||||
{-1, -1}};
|
{-1, -1}};
|
||||||
|
|
||||||
int index = 0;
|
int index = 0;
|
||||||
@@ -722,7 +728,10 @@ inline const char* _ConvertSMVer2ArchName(int major, int minor) {
|
|||||||
{0x90, "Hopper"},
|
{0x90, "Hopper"},
|
||||||
{0xa0, "Blackwell"},
|
{0xa0, "Blackwell"},
|
||||||
{0xa1, "Blackwell"},
|
{0xa1, "Blackwell"},
|
||||||
|
{0xa3, "Blackwell"},
|
||||||
|
{0xb0, "Blackwell"},
|
||||||
{0xc0, "Blackwell"},
|
{0xc0, "Blackwell"},
|
||||||
|
{0xc1, "Blackwell"},
|
||||||
{-1, "Graphics Device"}};
|
{-1, "Graphics Device"}};
|
||||||
|
|
||||||
int index = 0;
|
int index = 0;
|
||||||
|
|||||||
@@ -118,7 +118,10 @@ inline int _ConvertSMVer2CoresDRV(int major, int minor) {
|
|||||||
{0x90, 128},
|
{0x90, 128},
|
||||||
{0xa0, 128},
|
{0xa0, 128},
|
||||||
{0xa1, 128},
|
{0xa1, 128},
|
||||||
|
{0xa3, 128},
|
||||||
|
{0xb0, 128},
|
||||||
{0xc0, 128},
|
{0xc0, 128},
|
||||||
|
{0xc1, 128},
|
||||||
{-1, -1}};
|
{-1, -1}};
|
||||||
|
|
||||||
int index = 0;
|
int index = 0;
|
||||||
|
|||||||
@@ -185,25 +185,30 @@ int ipcCreateSocket(ipcHandle *&handle, const char *name,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
unlink(name);
|
char path_name[50];
|
||||||
bzero(&servaddr, sizeof(servaddr));
|
|
||||||
|
// Create unique name for the socket with path if SOCK_FOLDER is set.
|
||||||
|
sprintf(path_name, "%s/%u", getSocketFolder().c_str(), getpid());
|
||||||
|
|
||||||
|
unlink(path_name);
|
||||||
|
memset(&servaddr, 0, sizeof(servaddr));
|
||||||
servaddr.sun_family = AF_UNIX;
|
servaddr.sun_family = AF_UNIX;
|
||||||
|
|
||||||
size_t len = strlen(name);
|
size_t len = strlen(path_name);
|
||||||
if (len > (sizeof(servaddr.sun_path) - 1)) {
|
if (len > (sizeof(servaddr.sun_path) - 1)) {
|
||||||
perror("IPC failure: Cannot bind provided name to socket. Name too large");
|
perror("IPC failure: Cannot bind provided name to socket. Name too large");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
strncpy(servaddr.sun_path, name, len);
|
strncpy(servaddr.sun_path, path_name, len);
|
||||||
|
|
||||||
if (bind(server_fd, (struct sockaddr *)&servaddr, SUN_LEN(&servaddr)) < 0) {
|
if (bind(server_fd, (struct sockaddr *)&servaddr, SUN_LEN(&servaddr)) < 0) {
|
||||||
perror("IPC failure: Binding socket failed");
|
perror("IPC failure: Binding socket failed");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
handle->socketName = new char[strlen(name) + 1];
|
handle->socketName = new char[strlen(path_name) + 1];
|
||||||
strcpy(handle->socketName, name);
|
strcpy(handle->socketName, path_name);
|
||||||
handle->socket = server_fd;
|
handle->socket = server_fd;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -220,12 +225,12 @@ int ipcOpenSocket(ipcHandle *&handle) {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
bzero(&cliaddr, sizeof(cliaddr));
|
memset(&cliaddr, 0, sizeof(cliaddr));
|
||||||
cliaddr.sun_family = AF_UNIX;
|
cliaddr.sun_family = AF_UNIX;
|
||||||
char temp[10];
|
char temp[50];
|
||||||
|
|
||||||
// Create unique name for the socket.
|
// Create unique name for the socket with path if SOCK_FOLDER is set.
|
||||||
sprintf(temp, "%u", getpid());
|
sprintf(temp, "%s/%u", getSocketFolder().c_str(), getpid());
|
||||||
|
|
||||||
strcpy(cliaddr.sun_path, temp);
|
strcpy(cliaddr.sun_path, temp);
|
||||||
if (bind(sock, (struct sockaddr *)&cliaddr, sizeof(cliaddr)) < 0) {
|
if (bind(sock, (struct sockaddr *)&cliaddr, sizeof(cliaddr)) < 0) {
|
||||||
@@ -326,7 +331,7 @@ int ipcSendDataToServer(ipcHandle *handle, const char *serverName,
|
|||||||
ssize_t sendResult;
|
ssize_t sendResult;
|
||||||
struct sockaddr_un serveraddr;
|
struct sockaddr_un serveraddr;
|
||||||
|
|
||||||
bzero(&serveraddr, sizeof(serveraddr));
|
memset(&serveraddr, 0, sizeof(serveraddr));
|
||||||
serveraddr.sun_family = AF_UNIX;
|
serveraddr.sun_family = AF_UNIX;
|
||||||
strncpy(serveraddr.sun_path, serverName, sizeof(serveraddr.sun_path) - 1);
|
strncpy(serveraddr.sun_path, serverName, sizeof(serveraddr.sun_path) - 1);
|
||||||
|
|
||||||
@@ -359,10 +364,10 @@ int ipcSendShareableHandle(ipcHandle *handle,
|
|||||||
socklen_t len = sizeof(cliaddr);
|
socklen_t len = sizeof(cliaddr);
|
||||||
|
|
||||||
// Construct client address to send this SHareable handle to
|
// Construct client address to send this SHareable handle to
|
||||||
bzero(&cliaddr, sizeof(cliaddr));
|
memset(&cliaddr, 0, sizeof(cliaddr));
|
||||||
cliaddr.sun_family = AF_UNIX;
|
cliaddr.sun_family = AF_UNIX;
|
||||||
char temp[10];
|
char temp[20];
|
||||||
sprintf(temp, "%u", process);
|
sprintf(temp, "%s/%u", getSocketFolder().c_str(), process);
|
||||||
strcpy(cliaddr.sun_path, temp);
|
strcpy(cliaddr.sun_path, temp);
|
||||||
len = sizeof(cliaddr);
|
len = sizeof(cliaddr);
|
||||||
|
|
||||||
|
|||||||
@@ -54,6 +54,27 @@
|
|||||||
#endif
|
#endif
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
// The Unix domain sockets creating folder on QNX has been restricted to qnx6-mounted directories since QNX SDP 8.0.3.
|
||||||
|
#if defined(__QNX__)
|
||||||
|
#include <string>
|
||||||
|
inline std::string getSocketFolder() {
|
||||||
|
return "/storage";
|
||||||
|
}
|
||||||
|
// Simple filesystem compatibility for GCC 8.x
|
||||||
|
#elif defined(__GNUC__) && __GNUC__ < 9
|
||||||
|
#include <cstdlib>
|
||||||
|
#include <string>
|
||||||
|
inline std::string getSocketFolder() {
|
||||||
|
const char* tmpdir = std::getenv("TMPDIR");
|
||||||
|
return tmpdir ? std::string(tmpdir) : "/tmp";
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
#include <filesystem>
|
||||||
|
inline std::string getSocketFolder() {
|
||||||
|
return std::filesystem::temp_directory_path().string();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct sharedMemoryInfo_st {
|
typedef struct sharedMemoryInfo_st {
|
||||||
void *addr;
|
void *addr;
|
||||||
size_t size;
|
size_t size;
|
||||||
|
|||||||
@@ -400,9 +400,9 @@ int getInputDir(std::string &input_dir, const char *executable_path) {
|
|||||||
std::string pathname = "";
|
std::string pathname = "";
|
||||||
const char *searchPath[] = {
|
const char *searchPath[] = {
|
||||||
"./images",
|
"./images",
|
||||||
"../../../../Samples/4_CUDA_Libraries/<executable_name>/images",
|
"../../../../cpp/4_CUDA_Libraries/<executable_name>/images",
|
||||||
"../../../Samples/4_CUDA_Libraries/<executable_name>/images",
|
"../../../cpp/4_CUDA_Libraries/<executable_name>/images",
|
||||||
"../../Samples/4_CUDA_Libraries/<executable_name>/images"};
|
"../../cpp/4_CUDA_Libraries/<executable_name>/images"};
|
||||||
|
|
||||||
for (unsigned int i = 0; i < sizeof(searchPath) / sizeof(char *); ++i) {
|
for (unsigned int i = 0; i < sizeof(searchPath) / sizeof(char *); ++i) {
|
||||||
std::string pathname(searchPath[i]);
|
std::string pathname(searchPath[i]);
|
||||||
|
|||||||
@@ -288,73 +288,79 @@ inline char *sdkFindFilePath(const char *filename,
|
|||||||
"./", // same dir
|
"./", // same dir
|
||||||
"./data/", // same dir
|
"./data/", // same dir
|
||||||
|
|
||||||
"../../../../Samples/<executable_name>/", // up 4 in tree
|
"../../../../cpp/<executable_name>/", // up 4 in tree
|
||||||
"../../../Samples/<executable_name>/", // up 3 in tree
|
"../../../cpp/<executable_name>/", // up 3 in tree
|
||||||
"../../Samples/<executable_name>/", // up 2 in tree
|
"../../cpp/<executable_name>/", // up 2 in tree
|
||||||
|
|
||||||
"../../../../Samples/<executable_name>/data/", // up 4 in tree
|
"../../../../cpp/<executable_name>/data/", // up 4 in tree
|
||||||
"../../../Samples/<executable_name>/data/", // up 3 in tree
|
"../../../cpp/<executable_name>/data/", // up 3 in tree
|
||||||
"../../Samples/<executable_name>/data/", // up 2 in tree
|
"../../cpp/<executable_name>/data/", // up 2 in tree
|
||||||
|
|
||||||
"../../../../Samples/0_Introduction/<executable_name>/", // up 4 in tree
|
"../../../../cpp/0_Introduction/<executable_name>/", // up 4 in tree
|
||||||
"../../../Samples/0_Introduction/<executable_name>/", // up 3 in tree
|
"../../../cpp/0_Introduction/<executable_name>/", // up 3 in tree
|
||||||
"../../Samples/0_Introduction/<executable_name>/", // up 2 in tree
|
"../../cpp/0_Introduction/<executable_name>/", // up 2 in tree
|
||||||
|
|
||||||
"../../../../Samples/1_Utilities/<executable_name>/", // up 4 in tree
|
"../../../../cpp/1_Utilities/<executable_name>/", // up 4 in tree
|
||||||
"../../../Samples/1_Utilities/<executable_name>/", // up 3 in tree
|
"../../../cpp/1_Utilities/<executable_name>/", // up 3 in tree
|
||||||
"../../Samples/1_Utilities/<executable_name>/", // up 2 in tree
|
"../../cpp/1_Utilities/<executable_name>/", // up 2 in tree
|
||||||
|
|
||||||
"../../../../Samples/2_Concepts_and_Techniques/<executable_name>/", // up 4 in tree
|
"../../../../cpp/2_Concepts_and_Techniques/<executable_name>/", // up 4 in tree
|
||||||
"../../../Samples/2_Concepts_and_Techniques/<executable_name>/", // up 3 in tree
|
"../../../cpp/2_Concepts_and_Techniques/<executable_name>/", // up 3 in tree
|
||||||
"../../Samples/2_Concepts_and_Techniques/<executable_name>/", // up 2 in tree
|
"../../cpp/2_Concepts_and_Techniques/<executable_name>/", // up 2 in tree
|
||||||
|
|
||||||
"../../../../Samples/3_CUDA_Features/<executable_name>/", // up 4 in tree
|
"../../../../cpp/3_CUDA_Features/<executable_name>/", // up 4 in tree
|
||||||
"../../../Samples/3_CUDA_Features/<executable_name>/", // up 3 in tree
|
"../../../cpp/3_CUDA_Features/<executable_name>/", // up 3 in tree
|
||||||
"../../Samples/3_CUDA_Features/<executable_name>/", // up 2 in tree
|
"../../cpp/3_CUDA_Features/<executable_name>/", // up 2 in tree
|
||||||
|
|
||||||
"../../../../Samples/4_CUDA_Libraries/<executable_name>/", // up 4 in tree
|
"../../../../cpp/4_CUDA_Libraries/<executable_name>/", // up 4 in tree
|
||||||
"../../../Samples/4_CUDA_Libraries/<executable_name>/", // up 3 in tree
|
"../../../cpp/4_CUDA_Libraries/<executable_name>/", // up 3 in tree
|
||||||
"../../Samples/4_CUDA_Libraries/<executable_name>/", // up 2 in tree
|
"../../cpp/4_CUDA_Libraries/<executable_name>/", // up 2 in tree
|
||||||
|
|
||||||
"../../../../Samples/5_Domain_Specific/<executable_name>/", // up 4 in tree
|
"../../../../cpp/5_Domain_Specific/<executable_name>/", // up 4 in tree
|
||||||
"../../../Samples/5_Domain_Specific/<executable_name>/", // up 3 in tree
|
"../../../cpp/5_Domain_Specific/<executable_name>/", // up 3 in tree
|
||||||
"../../Samples/5_Domain_Specific/<executable_name>/", // up 2 in tree
|
"../../cpp/5_Domain_Specific/<executable_name>/", // up 2 in tree
|
||||||
|
|
||||||
"../../../../Samples/6_Performance/<executable_name>/", // up 4 in tree
|
"../../../../cpp/6_Performance/<executable_name>/", // up 4 in tree
|
||||||
"../../../Samples/6_Performance/<executable_name>/", // up 3 in tree
|
"../../../cpp/6_Performance/<executable_name>/", // up 3 in tree
|
||||||
"../../Samples/6_Performance/<executable_name>/", // up 2 in tree
|
"../../cpp/6_Performance/<executable_name>/", // up 2 in tree
|
||||||
|
|
||||||
"../../../../Samples/0_Introduction/<executable_name>/data/", // up 4 in tree
|
"../../../../cpp/0_Introduction/<executable_name>/data/", // up 4 in tree
|
||||||
"../../../Samples/0_Introduction/<executable_name>/data/", // up 3 in tree
|
"../../../cpp/0_Introduction/<executable_name>/data/", // up 3 in tree
|
||||||
"../../Samples/0_Introduction/<executable_name>/data/", // up 2 in tree
|
"../../cpp/0_Introduction/<executable_name>/data/", // up 2 in tree
|
||||||
|
|
||||||
"../../../../Samples/1_Utilities/<executable_name>/data/", // up 4 in tree
|
"../../../../cpp/1_Utilities/<executable_name>/data/", // up 4 in tree
|
||||||
"../../../Samples/1_Utilities/<executable_name>/data/", // up 3 in tree
|
"../../../cpp/1_Utilities/<executable_name>/data/", // up 3 in tree
|
||||||
"../../Samples/1_Utilities/<executable_name>/data/", // up 2 in tree
|
"../../cpp/1_Utilities/<executable_name>/data/", // up 2 in tree
|
||||||
|
|
||||||
"../../../../Samples/2_Concepts_and_Techniques/<executable_name>/data/", // up 4 in tree
|
"../../../../cpp/2_Concepts_and_Techniques/<executable_name>/data/", // up 4 in tree
|
||||||
"../../../Samples/2_Concepts_and_Techniques/<executable_name>/data/", // up 3 in tree
|
"../../../cpp/2_Concepts_and_Techniques/<executable_name>/data/", // up 3 in tree
|
||||||
"../../Samples/2_Concepts_and_Techniques/<executable_name>/data/", // up 2 in tree
|
"../../cpp/2_Concepts_and_Techniques/<executable_name>/data/", // up 2 in tree
|
||||||
|
|
||||||
"../../../../Samples/3_CUDA_Features/<executable_name>/data/", // up 4 in tree
|
"../../../../cpp/3_CUDA_Features/<executable_name>/data/", // up 4 in tree
|
||||||
"../../../Samples/3_CUDA_Features/<executable_name>/data/", // up 3 in tree
|
"../../../cpp/3_CUDA_Features/<executable_name>/data/", // up 3 in tree
|
||||||
"../../Samples/3_CUDA_Features/<executable_name>/data/", // up 2 in tree
|
"../../cpp/3_CUDA_Features/<executable_name>/data/", // up 2 in tree
|
||||||
|
|
||||||
"../../../../Samples/4_CUDA_Libraries/<executable_name>/data/", // up 4 in tree
|
"../../../../cpp/4_CUDA_Libraries/<executable_name>/data/", // up 4 in tree
|
||||||
"../../../Samples/4_CUDA_Libraries/<executable_name>/data/", // up 3 in tree
|
"../../../cpp/4_CUDA_Libraries/<executable_name>/data/", // up 3 in tree
|
||||||
"../../Samples/4_CUDA_Libraries/<executable_name>/data/", // up 2 in tree
|
"../../cpp/4_CUDA_Libraries/<executable_name>/data/", // up 2 in tree
|
||||||
|
|
||||||
"../../../../Samples/5_Domain_Specific/<executable_name>/data/", // up 4 in tree
|
"../../../../cpp/5_Domain_Specific/<executable_name>/data/", // up 4 in tree
|
||||||
"../../../Samples/5_Domain_Specific/<executable_name>/data/", // up 3 in tree
|
"../../../cpp/5_Domain_Specific/<executable_name>/data/", // up 3 in tree
|
||||||
"../../Samples/5_Domain_Specific/<executable_name>/data/", // up 2 in tree
|
"../../cpp/5_Domain_Specific/<executable_name>/data/", // up 2 in tree
|
||||||
|
|
||||||
"../../../../Samples/6_Performance/<executable_name>/data/", // up 4 in tree
|
"../../../../cpp/6_Performance/<executable_name>/data/", // up 4 in tree
|
||||||
"../../../Samples/6_Performance/<executable_name>/data/", // up 3 in tree
|
"../../../cpp/6_Performance/<executable_name>/data/", // up 3 in tree
|
||||||
"../../Samples/6_Performance/<executable_name>/data/", // up 2 in tree
|
"../../cpp/6_Performance/<executable_name>/data/", // up 2 in tree
|
||||||
|
|
||||||
"../../../../Common/data/", // up 4 in tree
|
"../../../../Common/data/", // up 4 in tree
|
||||||
"../../../Common/data/", // up 3 in tree
|
"../../../Common/data/", // up 3 in tree
|
||||||
"../../Common/data/" // up 2 in tree
|
"../../Common/data/", // up 2 in tree
|
||||||
|
|
||||||
|
"../../../../cpp/9_CUDA_Tile/<executable_name>/", // up 4 in tree
|
||||||
|
"../../../cpp/9_CUDA_Tile/<executable_name>/", // up 3 in tree
|
||||||
|
"../../cpp/9_CUDA_Tile/<executable_name>/", // up 2 in tree
|
||||||
|
"../cpp/9_CUDA_Tile/<executable_name>/", // up 1 in tree
|
||||||
|
"./cpp/9_CUDA_Tile/<executable_name>/" // up 0 in tree
|
||||||
};
|
};
|
||||||
|
|
||||||
// Extract the executable name
|
// Extract the executable name
|
||||||
|
|||||||
@@ -187,6 +187,7 @@ CUmodule loadCUBIN(char *cubin, int argc, char **argv) {
|
|||||||
CUcontext context;
|
CUcontext context;
|
||||||
int major = 0, minor = 0;
|
int major = 0, minor = 0;
|
||||||
char deviceName[256];
|
char deviceName[256];
|
||||||
|
CUctxCreateParams ctxCreateParams = {};
|
||||||
|
|
||||||
// Picks the best CUDA device available
|
// Picks the best CUDA device available
|
||||||
CUdevice cuDevice = findCudaDeviceDRV(argc, (const char **)argv);
|
CUdevice cuDevice = findCudaDeviceDRV(argc, (const char **)argv);
|
||||||
@@ -200,7 +201,7 @@ CUmodule loadCUBIN(char *cubin, int argc, char **argv) {
|
|||||||
printf("> GPU Device has SM %d.%d compute capability\n", major, minor);
|
printf("> GPU Device has SM %d.%d compute capability\n", major, minor);
|
||||||
|
|
||||||
checkCudaErrors(cuInit(0));
|
checkCudaErrors(cuInit(0));
|
||||||
checkCudaErrors(cuCtxCreate(&context, 0, cuDevice));
|
checkCudaErrors(cuCtxCreate(&context, &ctxCreateParams, 0, cuDevice));
|
||||||
|
|
||||||
checkCudaErrors(cuModuleLoadData(&module, cubin));
|
checkCudaErrors(cuModuleLoadData(&module, cubin));
|
||||||
free(cubin);
|
free(cubin);
|
||||||
|
|||||||
216
README.md
216
README.md
@@ -1,6 +1,6 @@
|
|||||||
# CUDA Samples
|
# CUDA Samples
|
||||||
|
|
||||||
Samples for CUDA Developers which demonstrates features in CUDA Toolkit. This version supports [CUDA Toolkit 12.9](https://developer.nvidia.com/cuda-downloads).
|
Samples for CUDA Developers which demonstrates features in CUDA Toolkit. This version supports [CUDA Toolkit 13.3](https://developer.nvidia.com/cuda-downloads).
|
||||||
|
|
||||||
## Release Notes
|
## Release Notes
|
||||||
|
|
||||||
@@ -115,29 +115,175 @@ make -j$(nproc)
|
|||||||
```
|
```
|
||||||
Transfer the built binaries to the Tegra device and execute them there.
|
Transfer the built binaries to the Tegra device and execute them there.
|
||||||
|
|
||||||
### Building for Automotive Linux Platforms
|
|
||||||
|
|
||||||
These platforms require additional information to be passed to CMake on the command line to ensure proper resolution of all necessary include and library files.
|
### Cross Building for Automotive Linux Platforms from the DriveOS Docker containers
|
||||||
Instead of being in the default location, `/usr/local/cuda/include` or `/usr/local/cuda/lib64`, you must point to architecture-specific paths:
|
|
||||||
|
|
||||||
`/usr/local/cuda/<ARCH>/targets/aarch64-linux/lib`
|
To build CUDA samples to the target platform from the DriveOS Docker containers, use the following instructions.
|
||||||
and
|
|
||||||
`/usr/local/cuda/<ARCH>/include`
|
|
||||||
|
|
||||||
An example build might look like this:
|
Mount the target Root Filesystem (RFS) in the container so that the CUDA cmake process has the correct paths to CUDA and other system libraries required to build the samples.
|
||||||
|
|
||||||
|
Create a temporary directory, `<temp>` is any temporary directory of your choosing, for example, you can use `/drive/temp`:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ mkdir /drive/<temp>
|
||||||
|
```
|
||||||
|
|
||||||
|
Mount the filesystem by running the following command:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ mount /drive/drive-linux/filesystem/targetfs-images/dev_nsr_desktop_ubuntu-24.04_thor_rfs.img /drive/temp
|
||||||
|
```
|
||||||
|
|
||||||
|
Configure the project by running the following cmake command:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ mkdir build && cd build
|
||||||
|
$ cmake .. -DBUILD_TEGRA=True \
|
||||||
|
-DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc \
|
||||||
|
-DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/toolchain-aarch64-linux.cmake \
|
||||||
|
-DTARGET_FS=/drive/temp \
|
||||||
|
-DCMAKE_LIBRARY_PATH=/drive/temp/usr/local/cuda-13.1/thor/lib64/ \
|
||||||
|
-DCMAKE_INCLUDE_PATH=/drive/temp/usr/local/cuda-13.1/thor/include/
|
||||||
|
```
|
||||||
|
|
||||||
|
Please note that the following libraries are not pre-installed in the DriveOS dev-nsr target filesystem:
|
||||||
|
* libdrm-dev
|
||||||
|
* Vulkan
|
||||||
|
|
||||||
|
This causes the cmake command to throw errors related to the missing files, and as a result, the related samples will not build in later steps. This issue will be addressed in a future DriveOS release.
|
||||||
|
|
||||||
|
To build the samples with ignore the error mentioned above, you can use `--ignore-errors`/`--keep-going` or comment out the comment out the corresponding `add_subdirectory` command in the CMakeLists.txt in the parent folder for the samples requiring Vulkan and libdrm_dev:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ make -j$(nproc) --ignore-errors # or --keep-going
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
# In cpp/5_Domain_Specific/CMakeList.txt
|
||||||
|
# add_subdirectory(simpleGL)
|
||||||
|
# add_subdirectory(simpleVulkan)
|
||||||
|
# add_subdirectory(simpleVulkanMMAP)
|
||||||
|
|
||||||
|
# In cpp/8_Platform_Specific/Tegra/CMakeList.txt
|
||||||
|
# add_subdirectory(simpleGLES_EGLOutput)
|
||||||
|
```
|
||||||
|
|
||||||
|
### QNX
|
||||||
|
|
||||||
|
Cross-compilation for QNX with CMake is supported in the CUDA 13.0 samples release and newer. An example build for
|
||||||
|
the Tegra Thor QNX platform might look like this:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ mkdir build
|
$ mkdir build
|
||||||
$ cd build
|
$ cd build
|
||||||
|
|
||||||
$ cmake -DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc -DCMAKE_LIBRARY_PATH=/usr/local/cuda/orin/lib64/ -DCMAKE_INCLUDE_PATH=/usr/local/cuda/orin/include -DBUILD_TEGRA=True ..
|
QNX_HOST=/path/to/qnx/host \
|
||||||
|
QNX_TARGET=/path/to/qnx/target \
|
||||||
|
cmake .. \
|
||||||
|
-DBUILD_TEGRA=True \
|
||||||
|
-DCMAKE_CUDA_COMPILER=/usr/local/cuda-13.3/bin/nvcc \
|
||||||
|
-DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/toolchain-aarch64-qnx.cmake \
|
||||||
|
-DCMAKE_LIBRARY_PATH=/usr/local/cuda-13.3/thor/targets/aarch64-qnx/lib/stubs/ \
|
||||||
|
-DCMAKE_INCLUDE_PATH=/usr/local/cuda-13.3/thor/targets/aarch64-qnx/include/
|
||||||
```
|
```
|
||||||
|
|
||||||
### QNX
|
### Forward Compatibility
|
||||||
|
|
||||||
Note that in the current branch sample cross-compilation for QNX is not fully validated. This placeholder will be updated in the
|
To build samples with new CUDA Toolkit(CUDA 13.0 or later) and UMD(Version 580 or later) and old KMD(Version 550 or earlier),you need to set the `CMAKE_PREFIX_PATH` for using new driver library, the command might like this:
|
||||||
near future with QNX cross-compilation instructions. In the meantime, if you want to cross-compile for QNX please check out one
|
|
||||||
of the previous tags prior to the CMake build system transition in 12.8.
|
```
|
||||||
|
cmake -DCMAKE_PREFIX_PATH=/usr/local/cuda/lib64/stubs/ ..
|
||||||
|
```
|
||||||
|
|
||||||
|
## CUDA Python samples
|
||||||
|
|
||||||
|
The repository includes **Python** examples under the [`python/`](./python) directory. **These samples are cuda.core–focused:** they use [CUDA Python](https://nvidia.github.io/cuda-python/), with [`cuda.core`](https://nvidia.github.io/cuda-python/cuda-core/latest/) for devices, programs, launches, and memory, alongside NumPy, CuPy, or framework interop where each sample notes.
|
||||||
|
|
||||||
|
**Layout (same themes as the C++ samples):**
|
||||||
|
|
||||||
|
| Directory | Contents |
|
||||||
|
|-----------|----------|
|
||||||
|
| `python/1_GettingStarted/` | Introductory scripts (e.g. `vectorAdd`, `deviceQuery`, `systemInfo`, image blur with unified memory, NumPy vs CuPy). |
|
||||||
|
| `python/2_CoreConcepts/` | Algorithms and techniques (e.g. reductions, histograms, FFT, stream overlap, `memoryResources`, `cudaGraphs`, `jitLtoLinking`, `tmaTensorMap`). |
|
||||||
|
| `python/3_FrameworkInterop/` | Integration with PyTorch and TensorFlow. |
|
||||||
|
| `python/4_DistributedComputing/` | Multi-GPU, peer-to-peer, and IPC patterns (`ipcMemoryPool`). |
|
||||||
|
| `python/Utilities/` | Shared helpers imported by some samples. |
|
||||||
|
|
||||||
|
**How to run:** The top-level CMake build does **not** compile these samples. For each sample, use a Python 3.10+ environment with a matching [CUDA Toolkit](https://developer.nvidia.com/cuda-downloads) (the samples target CUDA 13.x and document exact package pins in `requirements.txt`):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd python/<category>/<sampleName>
|
||||||
|
pip install -r requirements.txt
|
||||||
|
python <sampleScript>.py
|
||||||
|
```
|
||||||
|
|
||||||
|
Use each sample’s `README.md` for prerequisites, CLI options, and expected output.
|
||||||
|
|
||||||
|
## Install Samples
|
||||||
|
|
||||||
|
### Installation Path Structure
|
||||||
|
|
||||||
|
The installation system automatically organizes samples into a structured directory layout based on:
|
||||||
|
- **Target Architecture**: ${CMAKE_SYSTEM_PROCESSOR}, e.g. `x64`, `aarch64`, `amd64`, etc.
|
||||||
|
- **Target OS**: `linux`, `windows`, `darwin`, `qnx`
|
||||||
|
- **Build Type**: `release`, `debug`, etc.
|
||||||
|
|
||||||
|
The default installation path is: `build/bin/${TARGET_ARCH}/${TARGET_OS}/${BUILD_TYPE}`
|
||||||
|
|
||||||
|
**Examples:**
|
||||||
|
- Linux x86_64 Release: `build/bin/x64/linux/release`
|
||||||
|
- Linux aarch64 Release: `build/bin/aarch64/linux/release`
|
||||||
|
- Windows amd64 Release: `build/bin/amd64/windows/release`
|
||||||
|
|
||||||
|
### Customizing Installation Paths
|
||||||
|
|
||||||
|
You can customize the installation location using CMake variables during the configuration step:
|
||||||
|
|
||||||
|
- `CMAKE_INSTALL_PREFIX`: Changes the root installation directory (default: `build/bin`)
|
||||||
|
```
|
||||||
|
cmake -DCMAKE_INSTALL_PREFIX=/custom/path ..
|
||||||
|
```
|
||||||
|
This will install to: `/custom/path/${TARGET_ARCH}/${TARGET_OS}/${BUILD_TYPE}`
|
||||||
|
|
||||||
|
- `CUDA_SAMPLES_INSTALL_DIR`: Specifies the exact final installation directory (overrides the structured path)
|
||||||
|
```
|
||||||
|
cmake -DCUDA_SAMPLES_INSTALL_DIR=/exact/install/path ..
|
||||||
|
```
|
||||||
|
|
||||||
|
### Install Samples on Linux
|
||||||
|
|
||||||
|
**Prerequisites:** You must first configure the project with CMake as described in the [Building CUDA Samples - Linux](#linux) or [Building]section.
|
||||||
|
|
||||||
|
After configuring and building, install the samples:
|
||||||
|
|
||||||
|
```
|
||||||
|
cd build/
|
||||||
|
make install
|
||||||
|
```
|
||||||
|
|
||||||
|
### Install Samples on Windows
|
||||||
|
|
||||||
|
**Prerequisites:** You must first configure the project with CMake as described in the [Building CUDA Samples - Windows](#windows) section.
|
||||||
|
|
||||||
|
#### Using Command Line
|
||||||
|
|
||||||
|
After configuring with CMake, build and install from the `x64 Native Tools Command Prompt for VS`:
|
||||||
|
|
||||||
|
```cmd
|
||||||
|
cd build
|
||||||
|
cmake --build . --config Release
|
||||||
|
cmake --install . --config Release
|
||||||
|
```
|
||||||
|
|
||||||
|
**Note:** Replace `Release` with `Debug` if you want to install debug builds. For multi-configuration generators (like Visual Studio), the `--config` flag determines which build type to install.
|
||||||
|
|
||||||
|
#### Using Visual Studio IDE
|
||||||
|
|
||||||
|
Alternatively, open the generated solution file `CUDA_Samples.sln` in Visual Studio:
|
||||||
|
1. Select the desired configuration (`Release` or `Debug`)
|
||||||
|
2. Build the solution (F7 or Build > Build Solution)
|
||||||
|
3. Right-click on the `INSTALL` target under `CMakePredefinedTargets` in Solution Explorer
|
||||||
|
4. Select "Build"
|
||||||
|
|
||||||
## Running All Samples as Tests
|
## Running All Samples as Tests
|
||||||
|
|
||||||
@@ -150,7 +296,7 @@ the following command line arguments:
|
|||||||
|
|
||||||
| Switch | Purpose | Example |
|
| Switch | Purpose | Example |
|
||||||
| ---------- | -------------------------------------------------------------------------------------------------------------- | ----------------------- |
|
| ---------- | -------------------------------------------------------------------------------------------------------------- | ----------------------- |
|
||||||
| --dir | Specify the root directory to search for executables (recursively) | --dir ./build/Samples |
|
| --dir | Specify the root directory to search for executables (recursively) | --dir ./build/cpp |
|
||||||
| --config | JSON configuration file for executable arguments | --config test_args.json |
|
| --config | JSON configuration file for executable arguments | --config test_args.json |
|
||||||
| --output | Output directory for test results (stdout saved to .txt files - directory will be created if it doesn't exist) | --output ./test |
|
| --output | Output directory for test results (stdout saved to .txt files - directory will be created if it doesn't exist) | --output ./test |
|
||||||
| --args | Global arguments to pass to all executables (not currently used) | --args arg_1 arg_2 ... |
|
| --args | Global arguments to pass to all executables (not currently used) | --args arg_1 arg_2 ... |
|
||||||
@@ -275,7 +421,7 @@ make -j$(nproc)
|
|||||||
Now, return to the samples root directory and run the test script:
|
Now, return to the samples root directory and run the test script:
|
||||||
```bash
|
```bash
|
||||||
cd ..
|
cd ..
|
||||||
python3 run_tests.py --output ./test --dir ./build/Samples --config test_args.json
|
python3 run_tests.py --output ./test --dir ./build/cpp --config test_args.json
|
||||||
```
|
```
|
||||||
|
|
||||||
If all applications run successfully, you will see something similar to this (the specific number of samples will depend on your build type
|
If all applications run successfully, you will see something similar to this (the specific number of samples will depend on your build type
|
||||||
@@ -303,30 +449,36 @@ incorrectly on your system.
|
|||||||
|
|
||||||
## Samples list
|
## Samples list
|
||||||
|
|
||||||
### [0. Introduction](./Samples/0_Introduction/README.md)
|
### [0. Introduction](./cpp/0_Introduction/README.md)
|
||||||
Basic CUDA samples for beginners that illustrate key concepts with using CUDA and CUDA runtime APIs.
|
Basic CUDA samples for beginners that illustrate key concepts with using CUDA and CUDA runtime APIs.
|
||||||
|
|
||||||
### [1. Utilities](./Samples/1_Utilities/README.md)
|
### [1. Utilities](./cpp/1_Utilities/README.md)
|
||||||
Utility samples that demonstrate how to query device capabilities and measure GPU/CPU bandwidth.
|
Utility samples that demonstrate how to query device capabilities and measure GPU/CPU bandwidth.
|
||||||
|
|
||||||
### [2. Concepts and Techniques](./Samples/2_Concepts_and_Techniques/README.md)
|
### [2. Concepts and Techniques](./cpp/2_Concepts_and_Techniques/README.md)
|
||||||
Samples that demonstrate CUDA related concepts and common problem solving techniques.
|
Samples that demonstrate CUDA related concepts and common problem solving techniques.
|
||||||
|
|
||||||
### [3. CUDA Features](./Samples/3_CUDA_Features/README.md)
|
### [3. CUDA Features](./cpp/3_CUDA_Features/README.md)
|
||||||
Samples that demonstrate CUDA Features (Cooperative Groups, CUDA Dynamic Parallelism, CUDA Graphs etc).
|
Samples that demonstrate CUDA Features (Cooperative Groups, CUDA Dynamic Parallelism, CUDA Graphs etc).
|
||||||
|
|
||||||
### [4. CUDA Libraries](./Samples/4_CUDA_Libraries/README.md)
|
### [4. CUDA Libraries](./cpp/4_CUDA_Libraries/README.md)
|
||||||
Samples that demonstrate how to use CUDA platform libraries (NPP, NVJPEG, NVGRAPH cuBLAS, cuFFT, cuSPARSE, cuSOLVER and cuRAND).
|
Samples that demonstrate how to use CUDA platform libraries (NPP, NVJPEG, NVGRAPH cuBLAS, cuFFT, cuSPARSE, cuSOLVER and cuRAND).
|
||||||
|
|
||||||
### [5. Domain Specific](./Samples/5_Domain_Specific/README.md)
|
### [5. Domain Specific](./cpp/5_Domain_Specific/README.md)
|
||||||
Samples that are specific to domain (Graphics, Finance, Image Processing).
|
Samples that are specific to domain (Graphics, Finance, Image Processing).
|
||||||
|
|
||||||
### [6. Performance](./Samples/6_Performance/README.md)
|
### [6. Performance](./cpp/6_Performance/README.md)
|
||||||
Samples that demonstrate performance optimization.
|
Samples that demonstrate performance optimization.
|
||||||
|
|
||||||
### [7. libNVVM](./Samples/7_libNVVM/README.md)
|
### [7. libNVVM](./cpp/7_libNVVM/README.md)
|
||||||
Samples that demonstrate the use of libNVVVM and NVVM IR.
|
Samples that demonstrate the use of libNVVVM and NVVM IR.
|
||||||
|
|
||||||
|
### [8. Platform Specific](./cpp/8_Platform_Specific/Tegra/README.md)
|
||||||
|
Samples that are specific to certain platforms (Tegra, cuDLA, NvMedia, NvSci, OpenGL ES).
|
||||||
|
|
||||||
|
### [9. CUDA Tile](./cpp/9_CUDA_Tile/README.md)
|
||||||
|
Samples that demonstrate how to use CUDA Tile C++.
|
||||||
|
|
||||||
## Dependencies
|
## Dependencies
|
||||||
|
|
||||||
Some CUDA Samples rely on third-party applications and/or libraries, or features provided by the CUDA Toolkit and Driver, to either build or execute. These dependencies are listed below.
|
Some CUDA Samples rely on third-party applications and/or libraries, or features provided by the CUDA Toolkit and Driver, to either build or execute. These dependencies are listed below.
|
||||||
@@ -369,18 +521,27 @@ OpenGL is a graphics library used for 2D and 3D rendering. On systems which supp
|
|||||||
|
|
||||||
OpenGL ES is an embedded systems graphics library used for 2D and 3D rendering. On systems which support OpenGL ES, NVIDIA's OpenGL ES implementation is provided with the CUDA Driver.
|
OpenGL ES is an embedded systems graphics library used for 2D and 3D rendering. On systems which support OpenGL ES, NVIDIA's OpenGL ES implementation is provided with the CUDA Driver.
|
||||||
|
|
||||||
|
#### Freeglut
|
||||||
|
|
||||||
|
Freeglut is an open-source software library that serves as a replacement for the original OpenGL Utility Toolkit (GLUT). Its primary purpose is to make it easier for developers to create and manage windows containing OpenGL contexts, as well as handle input from devices like the mouse, keyboard, and joystick, across a wide range of platforms. To set up Freeglut on a Windowson on ARM system, you need to download the source from [Freeglut website](https://freeglut.sourceforge.net/), build freeglut on your system, and copy the freeglut.lib into the folder `./Common/lib/x64` and copy the freeglut.dll file into the `./bin/win64/${BUILD_TYPE}` execution folder.
|
||||||
|
|
||||||
#### Vulkan
|
#### Vulkan
|
||||||
|
|
||||||
Vulkan is a low-overhead, cross-platform 3D graphics and compute API. Vulkan targets high-performance realtime 3D graphics applications such as video games and interactive media across all platforms. On systems which support Vulkan, NVIDIA's Vulkan implementation is provided with the CUDA Driver. For building and running Vulkan applications one needs to install the [Vulkan SDK](https://www.lunarg.com/vulkan-sdk/).
|
Vulkan is a low-overhead, cross-platform 3D graphics and compute API. Vulkan targets high-performance realtime 3D graphics applications such as video games and interactive media across all platforms. On systems which support Vulkan, NVIDIA's Vulkan implementation is provided with the CUDA Driver. For building and running Vulkan applications one needs to install the [Vulkan SDK](https://www.lunarg.com/vulkan-sdk/).
|
||||||
|
|
||||||
|
#### GLEW
|
||||||
|
|
||||||
|
GLEW (OpenGL Extension Wrangler Library) is a cross-platform, open-source C/C++ library designed to simplify the process of using modern OpenGL features and extensions. Its main function is to dynamically load OpenGL function pointers at runtime, allowing developers to access both core OpenGL functions and additional features provided by hardware vendors, known as extensions. To set up GLEW on a Windows on ARM system, you need to download the source from [GLEW website](https://glew.sourceforge.net/), build GLEW on your system, and copy the glew32.lib into the folder `./Common/lib/x64` and the glew32.dll into the `./bin/win64/${BUILD_TYPE}` execution folder.
|
||||||
|
|
||||||
#### GLFW
|
#### GLFW
|
||||||
|
|
||||||
GLFW is a lightweight, open-source library designed for managing OpenGL, OpenGL ES, and Vulkan contexts. It simplifies the process of creating and managing windows, handling user input (keyboard, mouse, and joystick), and working with multiple monitors in a cross-platform manner.
|
GLFW is a lightweight, open-source library designed for managing OpenGL, OpenGL ES, and Vulkan contexts. It simplifies the process of creating and managing windows, handling user input (keyboard, mouse, and joystick), and working with multiple monitors in a cross-platform manner.
|
||||||
|
|
||||||
To set up GLFW on a Windows system, Download the pre-built binaries from [GLFW website](https://www.glfw.org/download.html) and extract the zip file into the folder, pass the GLFW include header folder as `-DGLFW_INCLUDE_DIR` and lib folder as `-DGLFW_LIB_DIR` for cmake configuring.
|
To set up GLFW on a Windows system, Download the pre-built binaries from [GLFW website](https://www.glfw.org/download.html) and extract the zip file into the folder, pass the GLFW include header folder as `-DGLFW_INCLUDE_DIR` and lib folder as `-DGLFW_LIB_DIR` for cmake configuring.
|
||||||
|
|
||||||
#### OpenMP
|
#### OpenMP
|
||||||
|
|
||||||
OpenMP is an API for multiprocessing programming. OpenMP can be installed using your Linux distribution's package manager system. It usually comes preinstalled with GCC. It can also be found at the [OpenMP website](http://openmp.org/). For compilers such as clang, `libomp.so` and other components for LLVM must be installed separated. You will also need to set additional flags in your CMake configuration files, such as: `-DOpenMP_CXX_FLAGS="-fopenmp=libomp" -DOpenMP_CXX_LIB_NAMES="omp" -DOpenMP_omp_LIBRARY="/path/to/libomp.so"`.
|
OpenMP is an API for multiprocessing programming. OpenMP can be installed using your Linux distribution's package manager system. It usually comes preinstalled with GCC. It can also be found at the [OpenMP website](http://openmp.org/). For compilers such as clang, make sure OpenMP is enabled when building LLVM by including `openmp` in `LLVM_ENABLE_PROJECTS`. If you use clang (from an installed prefix or directly from an LLVM build tree) with OpenMP enabled, set CMAKE_CXX_COMPILER and CMAKE_CUDA_HOST_COMPILER to that clang++ and let CMake detect OpenMP; extra OpenMP_* CMake variables are usually not needed. When using clang++ directly from an LLVM build tree, you may need to copy the generated `omp.h` into the `include/` directory under the path reported by `clang++ --print-resource-dir` before building the samples. When using an installed clang with OpenMP, if you see libomp.so: cannot open shared object file at runtime, add the directory that contains libomp.so to LD_LIBRARY_PATH (or configure it via ld.so.conf.d) so the dynamic linker can locate the OpenMP runtime.
|
||||||
|
|
||||||
#### Screen
|
#### Screen
|
||||||
|
|
||||||
@@ -470,6 +631,11 @@ NVJPEG library provides high-performance, GPU accelerated JPEG decoding function
|
|||||||
|
|
||||||
NVRTC (CUDA RunTime Compilation) is a runtime compilation library for CUDA C++.
|
NVRTC (CUDA RunTime Compilation) is a runtime compilation library for CUDA C++.
|
||||||
|
|
||||||
|
#### NVJITLINK
|
||||||
|
|
||||||
|
NVJITLINK is a CUDA runtime library that links multiple GPU device code objects at runtime and enables just‑in‑time link‑time optimization (JIT LTO).
|
||||||
|
It can take device code from tools such as NVCC and NVRTC, link and optimize it on the fly, and produce the final GPU binary.For more details, see: https://docs.nvidia.com/cuda/nvjitlink/index.html
|
||||||
|
|
||||||
#### Stream Priorities
|
#### Stream Priorities
|
||||||
|
|
||||||
Stream Priorities allows the creation of streams with specified priorities. Stream Priorities is only available on GPUs with SM architecture of 3.5 or above.
|
Stream Priorities allows the creation of streams with specified priorities. Stream Priorities is only available on GPUs with SM architecture of 3.5 or above.
|
||||||
@@ -502,7 +668,7 @@ Answers to frequently asked questions about CUDA can be found at http://develope
|
|||||||
|
|
||||||
## References
|
## References
|
||||||
|
|
||||||
* [CUDA Programming Guide](http://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html)
|
* [CUDA Programming Guide](https://docs.nvidia.com/cuda/cuda-programming-guide/index.html)
|
||||||
* [Accelerated Computing Blog](https://developer.nvidia.com/blog/?tags=accelerated-computing)
|
* [Accelerated Computing Blog](https://developer.nvidia.com/blog/?tags=accelerated-computing)
|
||||||
|
|
||||||
## Attributions
|
## Attributions
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/UnifiedMemoryStreams"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/asyncAPI"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
10
Samples/0_Introduction/clock/.vscode/launch.json
vendored
10
Samples/0_Introduction/clock/.vscode/launch.json
vendored
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/clock"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
15
Samples/0_Introduction/clock/.vscode/tasks.json
vendored
15
Samples/0_Introduction/clock/.vscode/tasks.json
vendored
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/clock_nvrtc"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/cudaOpenMP"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/fp16ScalarProduct"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/matrixMul"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/matrixMulDrv"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/matrixMulDynlinkJIT"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/matrixMul_nvrtc"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/mergeSort"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/simpleAWBarrier"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/simpleAssert"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/simpleAssert_nvrtc"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/simpleAtomicIntrinsics"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/simpleAtomicIntrinsics_nvrtc"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/simpleAttributes"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/simpleCUDA2GL"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/simpleCallback"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/simpleCooperativeGroups"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/simpleCubemapTexture"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/simpleDrvRuntime"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/simpleHyperQ"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/simpleIPC"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/simpleLayeredTexture"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/simpleMPI"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/simpleMultiCopy"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/simpleMultiGPU"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/simpleOccupancy"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/simpleP2P"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/simplePitchLinearTexture"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/simplePrintf"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/simpleStreams"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/simpleSurfaceWrite"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/simpleTemplates"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/simpleTexture"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/simpleTexture3D"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/simpleTextureDrv"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/simpleVoteIntrinsics"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/simpleZeroCopy"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/systemWideAtomics"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/template"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/vectorAdd"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/vectorAddDrv"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "sample",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "make dbg=1",
|
|
||||||
"problemMatcher": ["$nvcc"],
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user