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
a83371ca
Unverified
Commit
a83371ca
authored
Jul 07, 2023
by
Artur Wojcik
Committed by
GitHub
Jul 06, 2023
Browse files
fix compilation warnings causing build failures (-Werror) (#1889)
parent
c45b34c3
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
7 deletions
+8
-7
src/include/migraphx/value.hpp
src/include/migraphx/value.hpp
+1
-0
test/api/test_c_op_construct.c
test/api/test_c_op_construct.c
+1
-1
test/eval_test.cpp
test/eval_test.cpp
+4
-4
test/ref_ops_test.cpp
test/ref_ops_test.cpp
+1
-1
test/verify/run_verify.cpp
test/verify/run_verify.cpp
+1
-1
No files found.
src/include/migraphx/value.hpp
View file @
a83371ca
...
...
@@ -32,6 +32,7 @@
#include <algorithm>
#include <cassert>
#include <memory>
#include <cstdint>
#include <sstream>
#include <type_traits>
#include <tuple>
...
...
test/api/test_c_op_construct.c
View file @
a83371ca
...
...
@@ -30,7 +30,7 @@ void expect_equal(const char* x, const char* y)
abort
();
}
int
main
()
int
main
(
void
)
{
char
name
[
1024
];
migraphx_operation_t
op
;
...
...
test/eval_test.cpp
View file @
a83371ca
...
...
@@ -461,7 +461,7 @@ TEST_CASE(eval_context1)
mm
->
add_instruction
(
sum_op
{},
one
,
two
);
p
.
compile
(
t
);
EXPECT
(
is_shared
(
t
.
ctx
,
p
.
get_context
()));
p
.
eval
({}).
back
();
std
::
ignore
=
p
.
eval
({}).
back
();
EXPECT
(
is_shared
(
t
.
ctx
,
p
.
get_context
()));
}
...
...
@@ -476,7 +476,7 @@ TEST_CASE(eval_context2)
mm
->
add_instruction
(
id_ctx_op
{},
one
,
two
);
p
.
compile
(
t
);
EXPECT
(
is_shared
(
t
.
ctx
,
p
.
get_context
()));
p
.
eval
({}).
back
();
std
::
ignore
=
p
.
eval
({}).
back
();
// id_ctx_op will modify the context
EXPECT
(
not
is_shared
(
t
.
ctx
,
p
.
get_context
()));
}
...
...
@@ -494,7 +494,7 @@ TEST_CASE(eval_context3)
// Finalizer will modify the context
EXPECT
(
not
is_shared
(
t
.
ctx
,
p
.
get_context
()));
auto
ctx
=
p
.
get_context
();
p
.
eval
({}).
back
();
std
::
ignore
=
p
.
eval
({}).
back
();
EXPECT
(
is_shared
(
ctx
,
p
.
get_context
()));
EXPECT
(
not
is_shared
(
t
.
ctx
,
p
.
get_context
()));
}
...
...
test/ref_ops_test.cpp
View file @
a83371ca
...
...
@@ -7536,7 +7536,7 @@ TEST_CASE(select_module_not_found_error)
migraphx::parameter_map params;
migraphx::shape input_fixed_shape{migraphx::shape::float_type, {5, 2, 2}};
params["data"] = migraphx::argument(input_fixed_shape, input_data.data());
EXPECT(test::throws([&] { p.eval(params).back(); }));
EXPECT(test::throws([&] {
std::ignore =
p.eval(params).back(); }));
}
TEST_CASE(scatternd_reduction_dyn_test)
...
...
test/verify/run_verify.cpp
View file @
a83371ca
...
...
@@ -49,7 +49,7 @@ std::future<typename std::result_of<Function()>::type> detach_async(Function&& f
{
if
(
parallel
)
{
using
result_type
=
typename
std
::
result
_of
<
Function
()
>::
type
;
using
result_type
=
typename
std
::
invoke_
result
<
Function
>::
type
;
std
::
packaged_task
<
result_type
()
>
task
(
std
::
forward
<
Function
>
(
f
));
auto
fut
=
task
.
get_future
();
std
::
thread
(
std
::
move
(
task
)).
detach
();
...
...
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