Skip to content

Commit 348ca81

Browse files
committed
rocp_sdk: enable delayed initialization
Revert the specific change in commit 258caab that removed delayed initialization from the rocp_sdk component. This functionality is convenient for tools and applications which use PAPI internally. These changes have been tested on the AMD MI250X architecture.
1 parent c827d2c commit 348ca81

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/rocp_sdk/rocp_sdk.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ rocp_sdk_init_component(int cid)
147147
return papi_errno;
148148
}
149149

150-
// This component needs to be fully initialized from the beginning,
151-
// because interleaving hip calls and PAPI calls leads to errors.
152-
return check_n_initialize();
150+
sprintf(_rocp_sdk_vector.cmp_info.disabled_reason, "Not initialized. Access component events to initialize it.");
151+
_rocp_sdk_vector.cmp_info.disabled = PAPI_EDELAY_INIT;
152+
return PAPI_EDELAY_INIT;
153153
}
154154

155155
int

0 commit comments

Comments
 (0)