Improve readability. (#628)

[ROCm/rocprofiler-compute commit: 3294c495f5]
This commit is contained in:
xuchen-amd
2025-03-25 17:49:42 -04:00
committed by GitHub
parent 796241206d
commit a851c977c7
3 changed files with 22 additions and 25 deletions
@@ -157,10 +157,6 @@ class RocProfCompute:
arch = self.__mspec.gpu_arch
# NB: This checker is a bit redundent. We already check this in specs module
if arch not in self.__supported_archs.keys():
console_error("%s is an unsupported SoC" % arch)
soc_module = importlib.import_module("rocprof_compute_soc.soc_" + arch)
soc_class = getattr(soc_module, arch + "_soc")
self.__soc[arch] = soc_class(self.__args, self.__mspec)
@@ -186,7 +182,7 @@ class RocProfCompute:
sys.exit(0)
parser.print_help(sys.stderr)
console_error(
"rocprof-compute requires you pass a valid mode. Detected None."
"rocprof-compute requires you to pass a valid mode. Detected None."
)
elif self.__args.mode == "profile":