mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2025-07-01 20:20:29 +08:00
Remove outdated bandwidthTest sample
This commit is contained in:
parent
685709bfc7
commit
7d1730f348
@ -2,6 +2,12 @@
|
|||||||
|
|
||||||
### CUDA 12.9
|
### CUDA 12.9
|
||||||
* Updated toolchain for cross-compilation for Tegra Linux platforms.
|
* Updated toolchain for cross-compilation for Tegra Linux platforms.
|
||||||
|
* Repository has been updated with consistent code formatting across all samples
|
||||||
|
* Many small code tweaks and bug fixes (see commit history for details)
|
||||||
|
* Removed the following outdated samples:
|
||||||
|
* `1_Utilities`
|
||||||
|
* `bandwidthTest` - this sample was out of date and did not produce accurate results. For bandwidth
|
||||||
|
testing of NVIDIA GPU platforms, please refer to [NVBandwidth](https://github.com/NVIDIA/nvbandwidth)
|
||||||
|
|
||||||
### CUDA 12.8
|
### CUDA 12.8
|
||||||
* Updated build system across the repository to CMake. Removed Visual Studio project files and Makefiles.
|
* Updated build system across the repository to CMake. Removed Visual Studio project files and Makefiles.
|
||||||
|
@ -1,18 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "Linux",
|
|
||||||
"includePath": [
|
|
||||||
"${workspaceFolder}/**",
|
|
||||||
"${workspaceFolder}/../../../Common"
|
|
||||||
],
|
|
||||||
"defines": [],
|
|
||||||
"compilerPath": "/usr/local/cuda/bin/nvcc",
|
|
||||||
"cStandard": "gnu17",
|
|
||||||
"cppStandard": "gnu++14",
|
|
||||||
"intelliSenseMode": "linux-gcc-x64",
|
|
||||||
"configurationProvider": "ms-vscode.makefile-tools"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"version": 4
|
|
||||||
}
|
|
@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
"recommendations": [
|
|
||||||
"nvidia.nsight-vscode-edition",
|
|
||||||
"ms-vscode.cpptools",
|
|
||||||
"ms-vscode.makefile-tools"
|
|
||||||
]
|
|
||||||
}
|
|
@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "CUDA C++: Launch",
|
|
||||||
"type": "cuda-gdb",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${workspaceFolder}/bandwidthTest"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
@ -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,30 +0,0 @@
|
|||||||
cmake_minimum_required(VERSION 3.20)
|
|
||||||
|
|
||||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../../cmake/Modules")
|
|
||||||
|
|
||||||
project(bandwidthTest LANGUAGES C CXX CUDA)
|
|
||||||
|
|
||||||
find_package(CUDAToolkit REQUIRED)
|
|
||||||
|
|
||||||
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
|
||||||
|
|
||||||
set(CMAKE_CUDA_ARCHITECTURES 50 52 60 61 70 72 75 80 86 87 89 90 100 101 120)
|
|
||||||
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -Wno-deprecated-gpu-targets")
|
|
||||||
if(ENABLE_CUDA_DEBUG)
|
|
||||||
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -G") # enable cuda-gdb (may significantly affect performance on some targets)
|
|
||||||
else()
|
|
||||||
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -lineinfo") # add line information to all builds for debug tools (exclusive to -G option)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# Include directories and libraries
|
|
||||||
include_directories(../../../Common)
|
|
||||||
|
|
||||||
# Source file
|
|
||||||
# Add target for bandwidthTest
|
|
||||||
add_executable(bandwidthTest bandwidthTest.cu)
|
|
||||||
|
|
||||||
target_compile_options(bandwidthTest PRIVATE $<$<COMPILE_LANGUAGE:CUDA>:--extended-lambda>)
|
|
||||||
|
|
||||||
target_compile_features(bandwidthTest PRIVATE cxx_std_17 cuda_std_17)
|
|
||||||
|
|
||||||
set_target_properties(bandwidthTest PROPERTIES CUDA_SEPARABLE_COMPILATION ON)
|
|
@ -1,32 +0,0 @@
|
|||||||
# bandwidthTest - Bandwidth Test
|
|
||||||
|
|
||||||
## Description
|
|
||||||
|
|
||||||
This is a simple test program to measure the memcopy bandwidth of the GPU and memcpy bandwidth across PCI-e. This test application is capable of measuring device to device copy bandwidth, host to device copy bandwidth for pageable and page-locked memory, and device to host copy bandwidth for pageable and page-locked memory.
|
|
||||||
|
|
||||||
## Key Concepts
|
|
||||||
|
|
||||||
CUDA Streams and Events, Performance Strategies
|
|
||||||
|
|
||||||
## Supported SM Architectures
|
|
||||||
|
|
||||||
[SM 5.0 ](https://developer.nvidia.com/cuda-gpus) [SM 5.2 ](https://developer.nvidia.com/cuda-gpus) [SM 5.3 ](https://developer.nvidia.com/cuda-gpus) [SM 6.0 ](https://developer.nvidia.com/cuda-gpus) [SM 6.1 ](https://developer.nvidia.com/cuda-gpus) [SM 7.0 ](https://developer.nvidia.com/cuda-gpus) [SM 7.2 ](https://developer.nvidia.com/cuda-gpus) [SM 7.5 ](https://developer.nvidia.com/cuda-gpus) [SM 8.0 ](https://developer.nvidia.com/cuda-gpus) [SM 8.6 ](https://developer.nvidia.com/cuda-gpus) [SM 8.7 ](https://developer.nvidia.com/cuda-gpus) [SM 8.9 ](https://developer.nvidia.com/cuda-gpus) [SM 9.0 ](https://developer.nvidia.com/cuda-gpus)
|
|
||||||
|
|
||||||
## Supported OSes
|
|
||||||
|
|
||||||
Linux, Windows
|
|
||||||
|
|
||||||
## Supported CPU Architecture
|
|
||||||
|
|
||||||
x86_64, armv7l
|
|
||||||
|
|
||||||
## CUDA APIs involved
|
|
||||||
|
|
||||||
### [CUDA Runtime API](http://docs.nvidia.com/cuda/cuda-runtime-api/index.html)
|
|
||||||
cudaHostAlloc, cudaMemcpy, cudaMalloc, cudaMemcpyAsync, cudaFree, cudaGetErrorString, cudaMallocHost, cudaSetDevice, cudaGetDeviceProperties, cudaDeviceSynchronize, cudaEventRecord, cudaFreeHost, cudaEventDestroy, cudaEventElapsedTime, cudaGetDeviceCount, cudaEventCreate
|
|
||||||
|
|
||||||
## Prerequisites
|
|
||||||
|
|
||||||
Download and install the [CUDA Toolkit 12.5](https://developer.nvidia.com/cuda-downloads) for your corresponding platform.
|
|
||||||
|
|
||||||
## References (for more details)
|
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user