Deprecate HIP Markers (#1622)

* Deprecate HIP markers

* Deprecate profiler start/stop
This commit is contained in:
Rahul Garg
2019-11-04 23:02:59 -08:00
committed by Maneesh Gupta
parent cf92fae9e6
commit 54fab7c35c
3 changed files with 8 additions and 2 deletions
+2 -2
View File
@@ -2994,7 +2994,7 @@ hipError_t hipExtLaunchMultiKernelMultiDevice(hipLaunchParams* launchParamsList,
* When using this API, start the profiler with profiling disabled. (--startdisabled)
* @warning : hipProfilerStart API is under development.
*/
hipError_t hipProfilerStart();
hipError_t hipProfilerStart() __attribute__((deprecated("use roctracer/rocTX instead")));
/**
@@ -3002,7 +3002,7 @@ hipError_t hipProfilerStart();
* When using this API, start the profiler with profiling disabled. (--startdisabled)
* @warning : hipProfilerStop API is under development.
*/
hipError_t hipProfilerStop();
hipError_t hipProfilerStop() __attribute__((deprecated("use roctracer/rocTX instead")));
/**
+3
View File
@@ -23,11 +23,14 @@ THE SOFTWARE.
#ifndef HIP_INCLUDE_HIP_HIP_PROFILE_H
#define HIP_INCLUDE_HIP_HIP_PROFILE_H
#warning "HIP Profiling through markers is deprecated, please check roctrace/rocTX support."
#if not defined(ENABLE_HIP_PROFILE)
#define ENABLE_HIP_PROFILE 1
#endif
#if defined(__HIP_PLATFORM_HCC__) and (ENABLE_HIP_PROFILE == 1)
#warning "HIP Markers are deprecated and would be removed soon."
#include <CXLActivityLogger.h>
#define HIP_SCOPED_MARKER(markerName, group) \
amdtScopedMarker __scopedMarker(markerName, group, nullptr);