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
a8409d7f
Commit
a8409d7f
authored
Jul 12, 2021
by
Khalique Ahmed
Browse files
hardcode compute type
parent
00d5d880
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
src/targets/gpu/gemm_impl.cpp
src/targets/gpu/gemm_impl.cpp
+6
-4
No files found.
src/targets/gpu/gemm_impl.cpp
View file @
a8409d7f
...
...
@@ -65,11 +65,13 @@ void gemm_impl(context& ctx,
output_type
=
rocblas_datatype_i32_r
;
}
auto
compute_type
=
output_type
;
if
(
ctx
.
get_stream
().
get_device_name
()
==
"gfx908"
)
{
if
(
args
[
0
].
get_shape
().
type
()
==
shape
::
half_type
)
if
(
args
[
0
].
get_shape
().
type
()
==
shape
::
half_type
)
compute_type
=
rocblas_datatype_f32_r
;
}
// if(ctx.get_stream().get_device_name() == "gfx908")
// {
// if(args[0].get_shape().type() == shape::half_type)
// compute_type = rocblas_datatype_f32_r;
// }
#if ROCBLAS_VERSION_MAJOR >= 2 && ROCBLAS_VERSION_MINOR >= 38
rocblas_gemm_flags
flag
=
...
...
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