Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
51b4439f
"ml/backend/vscode:/vscode.git/clone" did not exist on "a59f66523561dc195a37b78b454d8cd1b8b1fdd7"
Unverified
Commit
51b4439f
authored
Jan 20, 2022
by
Paul Fultz II
Committed by
GitHub
Jan 20, 2022
Browse files
Add env variable to dump tests to a file (#1041)
parent
0fbbba26
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
test/verify/run_verify.cpp
test/verify/run_verify.cpp
+4
-0
No files found.
test/verify/run_verify.cpp
View file @
51b4439f
...
...
@@ -6,6 +6,7 @@
#include <migraphx/ref/target.hpp>
#include <migraphx/ranges.hpp>
#include <migraphx/generate.hpp>
#include <migraphx/load_save.hpp>
#include <migraphx/verify_args.hpp>
#include <set>
...
...
@@ -15,6 +16,7 @@
MIGRAPHX_DECLARE_ENV_VAR
(
MIGRAPHX_TRACE_TEST_COMPILE
)
MIGRAPHX_DECLARE_ENV_VAR
(
MIGRAPHX_TRACE_TEST
)
MIGRAPHX_DECLARE_ENV_VAR
(
MIGRAPHX_DUMP_TEST
)
// An improved async, that doesn't block
template
<
class
Function
>
...
...
@@ -125,6 +127,8 @@ void run_verify::verify(const std::string& name, const migraphx::program& p) con
using
result_future
=
std
::
future
<
std
::
pair
<
migraphx
::
program
,
std
::
vector
<
migraphx
::
argument
>>>
;
auto_print
::
set_terminate_handler
(
name
);
if
(
migraphx
::
enabled
(
MIGRAPHX_DUMP_TEST
{}))
migraphx
::
save
(
p
,
name
+
".mx"
);
std
::
vector
<
std
::
pair
<
std
::
string
,
result_future
>>
results
;
std
::
vector
<
std
::
string
>
target_names
;
for
(
const
auto
&
tname
:
migraphx
::
get_targets
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment