Skip to content

Commit 37d2e1f

Browse files
authored
Fix nvtx.h deprecation warning (#73104)
1 parent e964106 commit 37d2e1f

File tree

1 file changed

+3
-0
lines changed
  • paddle/phi/backends/dynload

1 file changed

+3
-0
lines changed

paddle/phi/backends/dynload/nvtx.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ limitations under the License. */
1414
#pragma once
1515
#ifndef _WIN32
1616
#include <cuda.h>
17+
#ifndef NVTX_SUPPRESS_V2_DEPRECATION_WARNING
18+
#define NVTX_SUPPRESS_V2_DEPRECATION_WARNING
19+
#endif
1720
#include <nvToolsExt.h>
1821

1922
#include <mutex> // NOLINT

0 commit comments

Comments
 (0)