if (num_tables < 1) {
return;
}
-
+
/*
* This could be done at compile time in some way if C++ could support
* designated initializers.
if (num_tables < 1) {
return;
}
-
+
/*
* This could be done at compile time in some way if C++ could support
* designated initializers.
* designated initializers.
*/
lttng_roctx_install_wrappers();
-
+
auto original_roctx_core_table = static_cast<roctxCoreApiTable_t*>(tables[0]);
/* Swap tables. */
(void) lib_version;
/*
- * We only want HIP runtime and HSA tables. If we get something
- * else, there is a bug somewhere.
+ * We only want HIP, HSA or ROC-TX tables. If we get something else, there
+ * is a bug somewhere.
*/
switch (type) {
case ROCPROFILER_HIP_RUNTIME_TABLE:
ROCPROFILER_HSA_TABLE |
ROCPROFILER_MARKER_CORE_TABLE,
nullptr)) {
- die("Trying to register API interception table for HIP runtime: "
- "NOT IMPLEMENTED");
+ die("Trying to register API interception : " "NOT IMPLEMENTED");
}
static auto cfg = rocprofiler_tool_configure_result_t {