Print short hipLaunchKernel correctly.
Change-Id: I6ca03d7c707cd03d6982199830213953d5855f17
[ROCm/hip commit: 024d9ab090]
This commit is contained in:
@@ -16,3 +16,6 @@ done
|
|||||||
# real_sym=$(c++filt $(c++filt $mangled_sym | cut -d: -f3 | sed 's/_functor//g') | cut -d\( -f1 | cut -d" " -f2)
|
# real_sym=$(c++filt $(c++filt $mangled_sym | cut -d: -f3 | sed 's/_functor//g') | cut -d\( -f1 | cut -d" " -f2)
|
||||||
# sed -i "s/$mangled_sym/$real_sym/g" $1
|
# sed -i "s/$mangled_sym/$real_sym/g" $1
|
||||||
#done
|
#done
|
||||||
|
#
|
||||||
|
#sed -e "s/^/_/g; s/_EC_/$/g" < test.txt | c++filt
|
||||||
|
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ int HIP_LAUNCH_BLOCKING = 0;
|
|||||||
int HIP_PRINT_ENV = 0;
|
int HIP_PRINT_ENV = 0;
|
||||||
int HIP_TRACE_API= 0;
|
int HIP_TRACE_API= 0;
|
||||||
std::string HIP_TRACE_API_COLOR("green");
|
std::string HIP_TRACE_API_COLOR("green");
|
||||||
int HIP_PROFILE_API= 0;S
|
int HIP_PROFILE_API= 0;
|
||||||
|
|
||||||
// TODO - DB_START/STOP need more testing.
|
// TODO - DB_START/STOP need more testing.
|
||||||
std::string HIP_DB_START_API;
|
std::string HIP_DB_START_API;
|
||||||
@@ -1478,11 +1478,11 @@ void ihipPrintKernelLaunch(const char *kernelName, const grid_launch_parm *lp, c
|
|||||||
<< " " << *stream;
|
<< " " << *stream;
|
||||||
|
|
||||||
if (HIP_PROFILE_API == 0x1) {
|
if (HIP_PROFILE_API == 0x1) {
|
||||||
MARKER_BEGIN(os.str().c_str(), "HIP");
|
|
||||||
} else if (HIP_PROFILE_API == 0x2) {
|
|
||||||
std::string shortAtpString("hipLaunchKernel:");
|
std::string shortAtpString("hipLaunchKernel:");
|
||||||
shortAtpString += kernelName;
|
shortAtpString += kernelName;
|
||||||
MARKER_BEGIN(shortAtpString.c_str(), "HIP");
|
MARKER_BEGIN(shortAtpString.c_str(), "HIP");
|
||||||
|
} else if (HIP_PROFILE_API == 0x2) {
|
||||||
|
MARKER_BEGIN(os.str().c_str(), "HIP");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (COMPILE_HIP_DB && HIP_TRACE_API) {
|
if (COMPILE_HIP_DB && HIP_TRACE_API) {
|
||||||
|
|||||||
Reference in New Issue
Block a user