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
e599b939
Commit
e599b939
authored
Oct 08, 2023
by
Artur Wojcik
Browse files
incorporate review feedback
parent
03b03f48
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
8 deletions
+8
-8
src/driver/main.cpp
src/driver/main.cpp
+0
-1
src/include/migraphx/config.hpp
src/include/migraphx/config.hpp
+0
-3
src/include/migraphx/instruction_ref.hpp
src/include/migraphx/instruction_ref.hpp
+4
-0
test/include/test.hpp
test/include/test.hpp
+3
-1
test/promote_literals_test.cpp
test/promote_literals_test.cpp
+0
-1
test/verify/run_verify.cpp
test/verify/run_verify.cpp
+1
-2
No files found.
src/driver/main.cpp
View file @
e599b939
...
@@ -39,7 +39,6 @@
...
@@ -39,7 +39,6 @@
#include <migraphx/json.hpp>
#include <migraphx/json.hpp>
#include <migraphx/version.h>
#include <migraphx/version.h>
#include <migraphx/instruction.hpp>
#include <migraphx/dead_code_elimination.hpp>
#include <migraphx/dead_code_elimination.hpp>
#include <migraphx/eliminate_identity.hpp>
#include <migraphx/eliminate_identity.hpp>
#include <migraphx/eliminate_pad.hpp>
#include <migraphx/eliminate_pad.hpp>
...
...
src/include/migraphx/config.hpp
View file @
e599b939
...
@@ -25,10 +25,7 @@
...
@@ -25,10 +25,7 @@
#define MIGRAPHX_GUARD_CONFIG_HPP
#define MIGRAPHX_GUARD_CONFIG_HPP
#include <migraphx/export.h>
#include <migraphx/export.h>
#if defined(_MSC_VER) && !defined(__clang__)
#include <ciso646>
#include <ciso646>
#endif
#if !defined(MIGRAPHX_USE_CLANG_TIDY) && !defined(DOXYGEN)
#if !defined(MIGRAPHX_USE_CLANG_TIDY) && !defined(DOXYGEN)
...
...
src/include/migraphx/instruction_ref.hpp
View file @
e599b939
...
@@ -65,4 +65,8 @@ struct equal_to<migraphx::instruction_ref> // NOLINT
...
@@ -65,4 +65,8 @@ struct equal_to<migraphx::instruction_ref> // NOLINT
}
// namespace std
}
// namespace std
#ifdef _MSC_VER
#include <migraphx/instruction.hpp>
#endif
#endif
#endif
test/include/test.hpp
View file @
e599b939
...
@@ -333,12 +333,14 @@ enum class color
...
@@ -333,12 +333,14 @@ enum class color
bg_blue
=
44
,
bg_blue
=
44
,
bg_default
=
49
bg_default
=
49
};
};
inline
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
[[
maybe_unused
]]
const
color
&
c
)
inline
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
color
&
c
)
{
{
#ifndef _WIN32
#ifndef _WIN32
static
const
bool
use_color
=
isatty
(
STDOUT_FILENO
)
!=
0
;
static
const
bool
use_color
=
isatty
(
STDOUT_FILENO
)
!=
0
;
if
(
use_color
)
if
(
use_color
)
return
os
<<
"
\033
["
<<
static_cast
<
std
::
size_t
>
(
c
)
<<
"m"
;
return
os
<<
"
\033
["
<<
static_cast
<
std
::
size_t
>
(
c
)
<<
"m"
;
#else
(
void
)
c
;
#endif
#endif
return
os
;
return
os
;
}
}
...
...
test/promote_literals_test.cpp
View file @
e599b939
...
@@ -26,7 +26,6 @@
...
@@ -26,7 +26,6 @@
#include <migraphx/program.hpp>
#include <migraphx/program.hpp>
#include <migraphx/dead_code_elimination.hpp>
#include <migraphx/dead_code_elimination.hpp>
#include <migraphx/eliminate_common_subexpression.hpp>
#include <migraphx/eliminate_common_subexpression.hpp>
#include <migraphx/instruction.hpp>
#include <migraphx/pass_manager.hpp>
#include <migraphx/pass_manager.hpp>
#include <migraphx/make_op.hpp>
#include <migraphx/make_op.hpp>
#include <migraphx/serialize.hpp>
#include <migraphx/serialize.hpp>
...
...
test/verify/run_verify.cpp
View file @
e599b939
...
@@ -44,8 +44,7 @@ MIGRAPHX_DECLARE_ENV_VAR(MIGRAPHX_DUMP_TEST)
...
@@ -44,8 +44,7 @@ MIGRAPHX_DECLARE_ENV_VAR(MIGRAPHX_DUMP_TEST)
// An improved async, that doesn't block
// An improved async, that doesn't block
template
<
class
Function
>
template
<
class
Function
>
std
::
future
<
typename
std
::
invoke_result_t
<
Function
>>
detach_async
(
Function
&&
f
,
std
::
future
<
std
::
invoke_result_t
<
Function
>>
detach_async
(
Function
&&
f
,
bool
parallel
=
true
)
bool
parallel
=
true
)
{
{
if
(
parallel
)
if
(
parallel
)
{
{
...
...
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