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
38e5c863
".github/git@developer.sourcefind.cn:hehl2/torchaudio.git" did not exist on "9135b544f343007025db7db007ecd13666de896b"
Commit
38e5c863
authored
Oct 19, 2022
by
umangyadav
Browse files
logging
parent
6878ea29
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
src/program.cpp
src/program.cpp
+1
-1
src/targets/gpu/include/migraphx/gpu/context.hpp
src/targets/gpu/include/migraphx/gpu/context.hpp
+2
-2
test/gpu/context_serialize.cpp
test/gpu/context_serialize.cpp
+1
-1
No files found.
src/program.cpp
View file @
38e5c863
...
@@ -633,7 +633,7 @@ void program::from_value(const value& v)
...
@@ -633,7 +633,7 @@ void program::from_value(const value& v)
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
())
{
{
std
::
c
log
<<
"MIGraphX version mismatch, consider recompiling model with environment "
std
::
c
err
<<
"MIGraphX version mismatch, consider recompiling model with environment "
"variable MIOPEN_FIND_ENFORCE=3 to re-tune the model "
"variable MIOPEN_FIND_ENFORCE=3 to re-tune the model "
<<
std
::
endl
;
<<
std
::
endl
;
}
}
...
...
src/targets/gpu/include/migraphx/gpu/context.hpp
View file @
38e5c863
...
@@ -291,7 +291,7 @@ struct context
...
@@ -291,7 +291,7 @@ struct context
std
::
string
current_miopen_version
=
get_miopen_version
();
std
::
string
current_miopen_version
=
get_miopen_version
();
if
(
n_cu_count
!=
current_cu_count
||
v_gfx_arch
!=
current_gfx_arch
)
if
(
n_cu_count
!=
current_cu_count
||
v_gfx_arch
!=
current_gfx_arch
)
{
{
std
::
c
log
<<
"MIGraphX model was compiled for gfx_arch: "
<<
v_gfx_arch
std
::
c
err
<<
"MIGraphX model was compiled for gfx_arch: "
<<
v_gfx_arch
<<
" with number of CUs="
<<
n_cu_count
<<
" with number of CUs="
<<
n_cu_count
<<
", but current device has gfx_arch: "
<<
current_gfx_arch
<<
", but current device has gfx_arch: "
<<
current_gfx_arch
<<
" with number of CUs="
<<
current_cu_count
<<
" with number of CUs="
<<
current_cu_count
...
@@ -301,7 +301,7 @@ struct context
...
@@ -301,7 +301,7 @@ struct context
}
}
if
(
current_miopen_version
!=
v_miopen_version
)
if
(
current_miopen_version
!=
v_miopen_version
)
{
{
std
::
c
log
<<
"MIGraphX model was compiled with MIOpen version : "
std
::
c
err
<<
"MIGraphX model was compiled with MIOpen version : "
<<
v_miopen_version
<<
v_miopen_version
<<
", but this machine has MIOpen version: "
<<
current_miopen_version
<<
", but this machine has MIOpen version: "
<<
current_miopen_version
<<
", Performance may suffer.\
<<
", Performance may suffer.\
...
...
test/gpu/context_serialize.cpp
View file @
38e5c863
...
@@ -33,7 +33,7 @@ TEST_CASE(gpu_context_serialize)
...
@@ -33,7 +33,7 @@ TEST_CASE(gpu_context_serialize)
migraphx
::
context
ctx
=
migraphx
::
gpu
::
context
{
0
,
3
};
migraphx
::
context
ctx
=
migraphx
::
gpu
::
context
{
0
,
3
};
auto
v
=
ctx
.
to_value
();
auto
v
=
ctx
.
to_value
();
EXPECT
(
v
.
size
()
==
2
);
EXPECT
(
v
.
size
()
==
5
);
EXPECT
(
v
.
contains
(
"events"
));
EXPECT
(
v
.
contains
(
"events"
));
EXPECT
(
v
.
at
(
"events"
).
without_key
().
to
<
std
::
size_t
>
()
==
0
);
EXPECT
(
v
.
at
(
"events"
).
without_key
().
to
<
std
::
size_t
>
()
==
0
);
...
...
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