Deprecate HIP Markers (#1622)
* Deprecate HIP markers * Deprecate profiler start/stop
This commit is contained in:
committed by
Maneesh Gupta
parent
cf92fae9e6
commit
54fab7c35c
@@ -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")));
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user