SDK: remove majority of exceptions (#176)
* SDK: remove majority of exceptions - replace with ROCP_FATAL, ROCP_CI_LOG(WARNING), etc. - improve logging of symbolic link - add --readlink and --realpath (hidden options) to rocprofv3 to follow symlinks for preloaded libraries * Add rocprofv3 --rocm-root argument * Fix registration resolved_exists * Fix rocprofv3_avail.py * Update logging for rocprofiler_configure search - relax failure conditions * Misc clang-tidy fixes * Fix merge * Fix merge --------- Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com> Co-authored-by: Bhardwaj, Gopesh <Gopesh.Bhardwaj@amd.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
fd99654433
Коммит
470f347e50
@@ -21,6 +21,7 @@
|
||||
// SOFTWARE.
|
||||
|
||||
#include "lib/rocprofiler-sdk/pc_sampling/utils.hpp"
|
||||
#include "lib/common/logging.hpp"
|
||||
#include "lib/rocprofiler-sdk/pc_sampling/defines.hpp"
|
||||
|
||||
#if ROCPROFILER_SDK_HSA_PC_SAMPLING > 0
|
||||
@@ -49,7 +50,7 @@ get_matching_hsa_pcs_method(rocprofiler_pc_sampling_method_t method)
|
||||
case ROCPROFILER_PC_SAMPLING_METHOD_LAST: break;
|
||||
}
|
||||
|
||||
throw std::runtime_error("Illegal pc sampling method\n");
|
||||
ROCP_FATAL << "Illegal pc sampling method " << method;
|
||||
}
|
||||
|
||||
hsa_ven_amd_pcs_units_t
|
||||
@@ -66,7 +67,7 @@ get_matching_hsa_pcs_units(rocprofiler_pc_sampling_unit_t unit)
|
||||
case ROCPROFILER_PC_SAMPLING_UNIT_LAST: break;
|
||||
}
|
||||
|
||||
throw std::runtime_error("Illegal pc sampling units\n");
|
||||
ROCP_FATAL << "Illegal pc sampling unit " << unit;
|
||||
}
|
||||
} // namespace utils
|
||||
} // namespace pc_sampling
|
||||
|
||||
Ссылка в новой задаче
Block a user