Skip to content

Commit b4bc400

Browse files
committed
rocm: move load_rocp_sym to rocp2_init_environment
1 parent c083631 commit b4bc400

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/components/rocm/roc_profiler_v2.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,19 +83,14 @@ int
8383
rocp2_init_environment(void)
8484
{
8585
rocm_prof_mode = ROCM_PROFILE_SAMPLING_MODE;
86-
return PAPI_OK;
86+
return load_rocp_sym();
8787
}
8888

8989
int
9090
rocp2_init(void)
9191
{
9292
int papi_errno;
9393

94-
papi_errno = load_rocp_sym();
95-
if (papi_errno != PAPI_OK) {
96-
goto fn_fail;
97-
}
98-
9994
rocprofiler_status_t rocp_errno = rocp_init();
10095
if (rocp_errno != ROCPROFILER_STATUS_SUCCESS) {
10196
papi_errno = PAPI_EMISC;

0 commit comments

Comments
 (0)