Skip to content

Commit

Permalink
SWDEV-509568: rocprofiler v1 and v2 API deprecation notice (#5)
Browse files Browse the repository at this point in the history
* SWDEV-509568: rocprofiler v1 and v2 API deprecation notice

* correcting typo in warning message
  • Loading branch information
bgopesh authored Feb 5, 2025
1 parent 75280c9 commit 20415ef
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions include/rocprofiler/rocprofiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ THE SOFTWARE.
#endif /* !defined (ROCPROFILER_EXPORTS) */
#endif /* !defined (ROCPROFILER) */

// Deprecation warning for ROCProfiler V1 and V2
#pragma message( \
"Warning: ROCProfiler and ROCTracer are being phased out in favor of the latest version ROCProfiler-SDK. We encourage all users to upgrade to ROCProfiler-SDK library and rocprofv3 tool, to ensure continued support and access to new features.")

#include <stddef.h>
#include <stdint.h>

Expand Down
6 changes: 5 additions & 1 deletion include/rocprofiler/v2/rocprofiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ THE SOFTWARE.
* - gfx1031 (Navy Flounder)
* - gfx1032 (Dimgrey Cavefish)
* - gfx1100 (Navi31)
*
*
* \section known_limitations Known limitations and restrictions
*
* The AMD Profiler API library implementation has the following
Expand Down Expand Up @@ -134,6 +134,10 @@ THE SOFTWARE.
#define ROCPROFILER_EXPORT ROCPROFILER_EXPORT_DECORATOR ROCPROFILER_CALL
#define ROCPROFILER_IMPORT ROCPROFILER_IMPORT_DECORATOR ROCPROFILER_CALL

//Deprecation warning for ROCprofiler V1 and V2
#pragma message( \
"Warning: ROCProfiler and ROCTracer are being phased out in favor of the latest version ROCProfiler-SDK. We encourage all users to upgrade to ROCProfiler-SDK library and rocprofv3 tool, to ensure continued support and access to new features.")

#if !defined(ROCPROFILER)
#if defined(ROCPROFILER_EXPORTS)
#define ROCPROFILER_API ROCPROFILER_EXPORT
Expand Down

0 comments on commit 20415ef

Please sign in to comment.