Remove temporary files (#223)
* config updates
- remove temporary file when destroyed
- extend parse_numeric_range: support vector, increment, better delimit
- git version info in omnitrace banner
- use OMNITRACE_BASIC_VERBOSE instead of OMNITRACE_VERBOSE
* Fix array-bounds warning in openmp lu.cpp
* Bump version to 1.7.4
* Update run-ci.py
- options to repeat
- until-pass (default: 3)
- until-fail (default: None)
- after-timeout (default: 2)
[ROCm/rocprofiler-systems commit: 2096f1f0c2]
This commit is contained in:
committad av
GitHub
förälder
7f73cf67bb
incheckning
1cdf67257e
@@ -181,6 +181,21 @@ def parse_cdash_args(args):
|
||||
parser.add_argument(
|
||||
"--submit-url", help="CDash submission site", default=SUBMIT_URL, type=str
|
||||
)
|
||||
parser.add_argument(
|
||||
"--repeat-until-pass", help="<N> for --repeat until-pass:<N>", default=3, type=int
|
||||
)
|
||||
parser.add_argument(
|
||||
"--repeat-until-fail",
|
||||
help="<N> for --repeat until-fail:<N>",
|
||||
default=None,
|
||||
type=int,
|
||||
)
|
||||
parser.add_argument(
|
||||
"--repeat-after-timeout",
|
||||
help="<N> for --repeat after-timeout:<N>",
|
||||
default=2,
|
||||
type=int,
|
||||
)
|
||||
|
||||
return parser.parse_args(args)
|
||||
|
||||
@@ -208,6 +223,17 @@ def parse_args(args=None):
|
||||
if cdash_args.coverage:
|
||||
cmake_args += ["-DOMNITRACE_BUILD_CODECOV=ON", "-DOMNITRACE_STRIP_LIBRARIES=OFF"]
|
||||
|
||||
def get_repeat_val(_param):
|
||||
_value = getattr(cdash_args, f"repeat_{_param}".replace("-", "_"))
|
||||
return [f"{_param}:{_value}"] if _value is not None and _value > 1 else []
|
||||
|
||||
repeat_args = (
|
||||
get_repeat_val("until-pass")
|
||||
+ get_repeat_val("until-fail")
|
||||
+ get_repeat_val("after-timeout")
|
||||
)
|
||||
ctest_args += ["--repeat"] + repeat_args if len(repeat_args) > 0 else []
|
||||
|
||||
return [cdash_args, cmake_args, ctest_args]
|
||||
|
||||
|
||||
|
||||
Referens i nytt ärende
Block a user