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
345ff08e
Commit
345ff08e
authored
Oct 31, 2022
by
umangyadav
Browse files
add environment flag for warnings
parent
0d27c2bc
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
30 deletions
+33
-30
src/include/migraphx/program.hpp
src/include/migraphx/program.hpp
+1
-1
src/program.cpp
src/program.cpp
+1
-1
src/targets/gpu/include/migraphx/gpu/convolution.hpp
src/targets/gpu/include/migraphx/gpu/convolution.hpp
+31
-28
No files found.
src/include/migraphx/program.hpp
View file @
345ff08e
...
@@ -46,7 +46,7 @@ inline namespace MIGRAPHX_INLINE_NS {
...
@@ -46,7 +46,7 @@ inline namespace MIGRAPHX_INLINE_NS {
MIGRAPHX_DECLARE_ENV_VAR
(
MIGRAPHX_TRACE_COMPILE
)
MIGRAPHX_DECLARE_ENV_VAR
(
MIGRAPHX_TRACE_COMPILE
)
MIGRAPHX_DECLARE_ENV_VAR
(
MIGRAPHX_TRACE_EVAL
)
MIGRAPHX_DECLARE_ENV_VAR
(
MIGRAPHX_TRACE_EVAL
)
MIGRAPHX_DECLARE_ENV_VAR
(
MIGRAPHX_ENABLE_TUNING_WARNINGS
)
struct
program_impl
;
struct
program_impl
;
struct
marker
;
struct
marker
;
...
...
src/program.cpp
View file @
345ff08e
...
@@ -636,7 +636,7 @@ void program::from_value(const value& v)
...
@@ -636,7 +636,7 @@ void program::from_value(const value& v)
MIGRAPHX_THROW
(
"Warning: Program version mismatch"
);
MIGRAPHX_THROW
(
"Warning: Program version mismatch"
);
}
}
auto
migx_version
=
v
.
at
(
"migraphx_version"
).
to
<
std
::
string
>
();
auto
migx_version
=
v
.
at
(
"migraphx_version"
).
to
<
std
::
string
>
();
if
(
migx_version
!=
get_migraphx_version
())
if
(
migx_version
!=
get_migraphx_version
()
&&
enabled
(
MIGRAPHX_ENABLE_TUNING_WARNINGS
{})
)
{
{
std
::
clog
<<
"MIGraphX version mismatch, Operators may not be compatbile."
<<
std
::
endl
;
std
::
clog
<<
"MIGraphX version mismatch, Operators may not be compatbile."
<<
std
::
endl
;
}
}
...
...
src/targets/gpu/include/migraphx/gpu/convolution.hpp
View file @
345ff08e
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
#ifndef MIGRAPHX_GUARD_RTGLIB_CONVOLUTION_HPP
#ifndef MIGRAPHX_GUARD_RTGLIB_CONVOLUTION_HPP
#define MIGRAPHX_GUARD_RTGLIB_CONVOLUTION_HPP
#define MIGRAPHX_GUARD_RTGLIB_CONVOLUTION_HPP
#include "migraphx/program.hpp"
#include <migraphx/shape.hpp>
#include <migraphx/shape.hpp>
#include <migraphx/generate.hpp>
#include <migraphx/generate.hpp>
#include <migraphx/operation.hpp>
#include <migraphx/operation.hpp>
...
@@ -289,6 +290,7 @@ struct miopen_convolution
...
@@ -289,6 +290,7 @@ struct miopen_convolution
solution_ptr
=
miopen_solution
{
ptr
};
solution_ptr
=
miopen_solution
{
ptr
};
if
(
status
!=
miopenStatusSuccess
)
if
(
status
!=
miopenStatusSuccess
)
MIGRAPHX_THROW
(
"MIOpen "
+
op
.
name
()
+
": loading convolution solution failed"
);
MIGRAPHX_THROW
(
"MIOpen "
+
op
.
name
()
+
": loading convolution solution failed"
);
if
(
enabled
(
MIGRAPHX_ENABLE_TUNING_WARNINGS
{}))
{
if
(
status
==
miopenStatusVersionMismatch
)
if
(
status
==
miopenStatusVersionMismatch
)
{
{
std
::
clog
<<
"MIOpen convolution was compiled with different MIOpen version. "
std
::
clog
<<
"MIOpen convolution was compiled with different MIOpen version. "
...
@@ -320,6 +322,7 @@ struct miopen_convolution
...
@@ -320,6 +322,7 @@ struct miopen_convolution
}
}
}
}
}
}
}
#else
#else
// Use immediate mode API
// Use immediate mode API
{
{
...
...
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