adding major and minor library versions
[ROCm/rocprofiler commit: 6560364df1]
Ta zmiana jest zawarta w:
%! (template.HTML=
Evgeny)złożyło 2018-02-07 09:41:17 -06:00
1 rodzic
4b7e5f51da
złożenie
6960dcd77e
9 plików zmienionych
+107
-53
Żadne pliki nie pasują do Twojego wyszukiwania
@@ -322,6 +322,11 @@ hsa_status_t dispatch_callback(const rocprofiler_callback_data_t* callback_data,
|
||||
return status;
|
||||
}
|
||||
|
||||
static hsa_status_t info_callback(const rocprofiler_info_data_t info, void * arg) {
|
||||
printf(" gpu-agent%d.%s : %s\n", info.agent_idx, info.metric.name, info.metric.description);
|
||||
return HSA_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
// Tool constructor
|
||||
CONSTRUCTOR_API void constructor()
|
||||
{
|
||||
@@ -337,6 +342,11 @@ CONSTRUCTOR_API void constructor()
|
||||
parameters_dict["HSA_VEN_AMD_AQLPROFILE_PARAMETER_NAME_TOKEN_MASK2"] =
|
||||
HSA_VEN_AMD_AQLPROFILE_PARAMETER_NAME_TOKEN_MASK2;
|
||||
|
||||
if (getenv("ROCP_INFO") != NULL) {
|
||||
rocprofiler_iterate_info(NULL, ROCPROFILER_INFO_KIND_METRIC, info_callback, NULL);
|
||||
return;
|
||||
}
|
||||
|
||||
// Set output file
|
||||
result_prefix = getenv("ROCP_OUTPUT_DIR");
|
||||
if (result_prefix != NULL) {
|
||||
|
||||
Reference in new issue
Zablokuj użytkownika