978e165d33
- https://github.com/ROCm/hip-tests/pull/154 - https://github.com/ROCm/hip-tests/pull/438 - https://github.com/ROCm/hip-tests/pull/425 - https://github.com/ROCm/hip-tests/pull/424 - https://github.com/ROCm/hip-tests/pull/423 - https://github.com/ROCm/hip-tests/pull/365 - https://github.com/ROCm/hip-tests/pull/356 - https://github.com/ROCm/hip-tests/pull/279 - https://github.com/ROCm/hip-tests/pull/274 - https://github.com/ROCm/hip-tests/pull/190 - https://github.com/ROCm/hip-tests/pull/189 - https://github.com/ROCm/hip-tests/pull/188 - https://github.com/ROCm/hip-tests/pull/156 - https://github.com/ROCm/hip-tests/pull/49 - https://github.com/ROCm/hip-tests/pull/439 - https://github.com/ROCm/hip-tests/pull/437 - https://github.com/ROCm/hip-tests/pull/436 - https://github.com/ROCm/hip-tests/pull/435 - https://github.com/ROCm/hip-tests/pull/193 Change-Id: I2529d0baf0f8d47d6215863321720cde2b1a846c
48 라인
1.5 KiB
C++
48 라인
1.5 KiB
C++
#define CATCH_CONFIG_RUNNER
|
|
#include <cmd_options.hh>
|
|
#include <hip_test_common.hh>
|
|
#include <iostream>
|
|
|
|
CmdOptions cmd_options;
|
|
|
|
int main(int argc, char** argv) {
|
|
auto& context = TestContext::get(argc, argv);
|
|
if (context.skipTest()) {
|
|
// CTest uses this regex to figure out if the test has been skipped
|
|
std::cout << "HIP_SKIP_THIS_TEST" << std::endl;
|
|
return 0;
|
|
}
|
|
|
|
Catch::Session session;
|
|
|
|
using namespace Catch::clara;
|
|
// clang-format off
|
|
auto cli = session.cli()
|
|
| Opt(cmd_options.iterations, "iterations")
|
|
["-I"]["--iterations"]
|
|
("Number of iterations used for performance tests (default: 1000)")
|
|
| Opt(cmd_options.warmups, "warmups")
|
|
["-W"]["--warmups"]
|
|
("Number of warmup iterations used for performance tests (default: 100)")
|
|
| Opt(cmd_options.no_display)
|
|
["-S"]["--no-display"]
|
|
("Do not display the output of performance tests")
|
|
| Opt(cmd_options.progress)
|
|
["-P"]["--progress"]
|
|
("Show progress bar when running performance tests")
|
|
| Opt(cmd_options.cg_extended_run, "cg_extened_run")
|
|
["-E"]["--cg-extended-run"]
|
|
("TODO: Description goes here")
|
|
| Opt(cmd_options.cg_iterations, "cg_iterations")
|
|
["-C"]["--cg-iterations"]
|
|
("Number of iterations used for cooperative groups sync tests (default: 5)")
|
|
;
|
|
// clang-format on
|
|
|
|
session.cli(cli);
|
|
|
|
int out = session.run(argc, argv);
|
|
TestContext::get().cleanContext();
|
|
return out;
|
|
}
|