Skip to content

Commit 3ebbc93

Browse files
Publish NVTX version 3.3.0 to release-v3 branch
2 parents 2930a52 + 958c2fb commit 3ebbc93

File tree

253 files changed

+11063
-2203
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

253 files changed

+11063
-2203
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ jobs:
353353
cd tests
354354
mkdir build-vs
355355
cd build-vs
356-
set FLAGS=-Wall -wd4191 -wd4255 -wd4355 -wd4365 -wd4514 -wd4668 -wd4710 -wd4711 -wd4820 -wd5039 -wd5045 -wd5220 -WX
356+
set FLAGS=-Wall -wd4191 -wd4255 -wd4355 -wd4365 -wd4514 -wd4668 -wd4710 -wd4711 -wd4820 -wd5039 -wd5045 -wd5220 -WX -Zc:preprocessor
357357
"%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" && "%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_CUDA_COMPILER="%CONDA:\=/%/envs/cuda-env/Library/bin/nvcc.exe" -DCMAKE_C_FLAGS="-O2 %FLAGS%" -DCMAKE_CXX_FLAGS="-O2 %FLAGS%" -DCMAKE_CUDA_FLAGS="%FLAGS% -wd4555 --Wno-deprecated-gpu-targets --Werror all-warnings" && ninja
358358
359359
- name: Run (VS 2022)
@@ -374,7 +374,7 @@ jobs:
374374
cd tests
375375
mkdir build-vs-x86
376376
cd build-vs-x86
377-
set FLAGS=-Wall -wd4191 -wd4255 -wd4355 -wd4365 -wd4514 -wd4668 -wd4710 -wd4711 -wd4820 -wd5039 -wd5045 -wd5220 -WX
377+
set FLAGS=-Wall -wd4191 -wd4255 -wd4355 -wd4365 -wd4514 -wd4668 -wd4710 -wd4711 -wd4820 -wd5039 -wd5045 -wd5220 -WX -Zc:preprocessor
378378
"%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsamd64_x86.bat" && "%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DENABLE_CUDA=False -DCMAKE_C_FLAGS="-O2 %FLAGS%" -DCMAKE_CXX_FLAGS="-O2 %FLAGS%" && ninja
379379
380380
- name: Build (VS 2022 Arm64)
@@ -383,7 +383,7 @@ jobs:
383383
cd tests
384384
mkdir build-vs-arm64
385385
cd build-vs-arm64
386-
set FLAGS=-Wall -wd4191 -wd4255 -wd4355 -wd4365 -wd4514 -wd4668 -wd4710 -wd4711 -wd4746 -wd4820 -wd5039 -wd5045 -wd5220 -WX
386+
set FLAGS=-Wall -wd4191 -wd4255 -wd4355 -wd4365 -wd4514 -wd4668 -wd4710 -wd4711 -wd4746 -wd4820 -wd5039 -wd5045 -wd5220 -WX -Zc:preprocessor
387387
"%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsamd64_arm64.bat" && "%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DENABLE_CUDA=False -DCMAKE_C_FLAGS="-O2 %FLAGS%" -DCMAKE_CXX_FLAGS="-O2 %FLAGS%" && ninja
388388
389389
- name: Build (Clang-CL)
@@ -433,7 +433,7 @@ jobs:
433433
cd tests
434434
mkdir build-vs
435435
cd build-vs
436-
set FLAGS=-Wall -wd4191 -wd4255 -wd4355 -wd4365 -wd4514 -wd4668 -wd4710 -wd4711 -wd4820 -wd5039 -wd5045 -wd5220 -WX
436+
set FLAGS=-Wall -wd4191 -wd4255 -wd4355 -wd4365 -wd4514 -wd4668 -wd4710 -wd4711 -wd4820 -wd5039 -wd5045 -wd5220 -WX -Zc:preprocessor
437437
"%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" && "%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_CUDA_COMPILER="%CONDA:\=/%/envs/cuda-env/Library/bin/nvcc.exe" -DCMAKE_C_FLAGS="-O2 %FLAGS%" -DCMAKE_CXX_FLAGS="-O2 %FLAGS%" -DCMAKE_CUDA_FLAGS="%FLAGS% -wd4555 --Wno-deprecated-gpu-targets --Werror all-warnings" && ninja
438438
439439
- name: Run (VS 2022)
@@ -454,7 +454,7 @@ jobs:
454454
cd tests
455455
mkdir build-vs-x86
456456
cd build-vs-x86
457-
set FLAGS=-Wall -wd4191 -wd4255 -wd4355 -wd4365 -wd4514 -wd4668 -wd4710 -wd4711 -wd4820 -wd5039 -wd5045 -wd5220 -WX
457+
set FLAGS=-Wall -wd4191 -wd4255 -wd4355 -wd4365 -wd4514 -wd4668 -wd4710 -wd4711 -wd4820 -wd5039 -wd5045 -wd5220 -WX -Zc:preprocessor
458458
"%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsamd64_x86.bat" && "%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DENABLE_CUDA=False -DCMAKE_C_FLAGS="-O2 %FLAGS%" -DCMAKE_CXX_FLAGS="-O2 %FLAGS%" && ninja
459459
460460
- name: Build (VS 2022 Arm64)
@@ -463,7 +463,7 @@ jobs:
463463
cd tests
464464
mkdir build-vs-arm64
465465
cd build-vs-arm64
466-
set FLAGS=-Wall -wd4191 -wd4255 -wd4355 -wd4365 -wd4514 -wd4668 -wd4710 -wd4711 -wd4746 -wd4820 -wd5039 -wd5045 -wd5220 -WX
466+
set FLAGS=-Wall -wd4191 -wd4255 -wd4355 -wd4365 -wd4514 -wd4668 -wd4710 -wd4711 -wd4746 -wd4820 -wd5039 -wd5045 -wd5220 -WX -Zc:preprocessor
467467
"%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsamd64_arm64.bat" && "%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DENABLE_CUDA=False -DCMAKE_C_FLAGS="-O2 %FLAGS%" -DCMAKE_CXX_FLAGS="-O2 %FLAGS%" && ninja
468468
469469
- name: Build (Clang-CL)

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ share/python-wheels/
3434
*.egg
3535
MANIFEST
3636
python/nvtx/_lib/**/*.c
37+
python/nvtx/_lib/*.c
3738
python/docs/_build/
39+
docs/python/.buildinfo.bak
40+
.doctrees
3841

3942
### Nsight Systems ###
4043
*.qdrep

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ Normal (non-IMPORTED) targets will be defined when using CPM (CMake Package Mana
196196
CPMAddPackage(
197197
NAME NVTX
198198
GITHUB_REPOSITORY NVIDIA/NVTX
199-
GIT_TAG v3.2.2-c-cpp
199+
GIT_TAG v3.3.0-c-cpp
200200
GIT_SHALLOW TRUE)
201201
202202
add_executable(my_program main.cpp)
@@ -294,7 +294,7 @@ include(path/to/CPM.cmake)
294294
CPMAddPackage(
295295
NAME NVTX
296296
GITHUB_REPOSITORY NVIDIA/NVTX
297-
GIT_TAG v3.2.2-c-cpp
297+
GIT_TAG v3.3.0-c-cpp
298298
GIT_SHALLOW TRUE)
299299
300300
# Example C program

c/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ cmake_minimum_required(VERSION 3.19)
3434
# This allows the same target name to be used for different NVTX versions.
3535

3636
# Project declaration needs to be before the configuration
37-
project(nvtx3 VERSION 3.2.2)
37+
project(nvtx3 VERSION 3.3.0)
3838

3939
# Check if standalone or part of another project:
4040
set(NVTX3_C_ROOT "${CMAKE_CURRENT_SOURCE_DIR}")

c/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,3 +227,13 @@ The NVTX C++ API is a header-only library, implemented as a wrapper over the NVT
227227
- Microsoft Visual C++ (VS 2015 to VS 2022)
228228
- On VS 2017.7 and newer, NVTX enables better error message output
229229
- NVIDIA nvcc (CUDA 7.0 and newer)
230+
231+
### C++ version compatibility notes
232+
233+
Minor versions of NVTX releases may introduce new features into the `nvtx3::v1` namespace.
234+
To use these features, ensure that within each compilation unit, the first inclusion of `nvtx3.hpp` is based at least on this release.
235+
If an older version is included first, the new features will not be available.
236+
237+
### C++ version history
238+
239+
- v3.3: Add `payload_data` wrapper for `nvtxPayloadData_t` in support of extended payloads.

0 commit comments

Comments
 (0)