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
c878fa25
Commit
c878fa25
authored
Jun 07, 2023
by
Alan Turner
Browse files
Remove redundant get_shape and remove ck_gemm from names
parent
aa4343ac
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/targets/gpu/jit/ck_gemm.cpp
src/targets/gpu/jit/ck_gemm.cpp
+1
-1
src/targets/gpu/kernels/include/migraphx/kernels/gemm_batcher.hpp
...ets/gpu/kernels/include/migraphx/kernels/gemm_batcher.hpp
+1
-1
No files found.
src/targets/gpu/jit/ck_gemm.cpp
View file @
c878fa25
...
@@ -265,7 +265,7 @@ struct ck_gemm_compiler : compiler<ck_gemm_compiler>
...
@@ -265,7 +265,7 @@ struct ck_gemm_compiler : compiler<ck_gemm_compiler>
s
=
shape
{
s
.
type
(),
{
m1
,
m2
}};
s
=
shape
{
s
.
type
(),
{
m1
,
m2
}};
}
}
std
::
vector
<
std
::
string
>
names
()
const
{
return
{
"ck_gemm"
,
"gpu::ck_gemm"
};
}
std
::
vector
<
std
::
string
>
names
()
const
{
return
{
"gpu::ck_gemm"
};
}
static
bool
standard_batch
(
const
shape
&
s
)
static
bool
standard_batch
(
const
shape
&
s
)
{
{
...
...
src/targets/gpu/kernels/include/migraphx/kernels/gemm_batcher.hpp
View file @
c878fa25
...
@@ -59,7 +59,7 @@ constexpr auto gemm_batch_slice(Tensor t, T i)
...
@@ -59,7 +59,7 @@ constexpr auto gemm_batch_slice(Tensor t, T i)
{
{
constexpr
auto
batch
=
gemm_get_batches
<
Tensor
>
();
constexpr
auto
batch
=
gemm_get_batches
<
Tensor
>
();
constexpr
auto
matrix
=
gemm_get_matrix
<
Tensor
>
();
constexpr
auto
matrix
=
gemm_get_matrix
<
Tensor
>
();
MIGRAPHX_ASSERT
((
batch
.
index
(
i
)
+
matrix
.
get_shape
().
element_space
())
<=
MIGRAPHX_ASSERT
((
batch
.
index
(
i
)
+
matrix
.
element_space
())
<=
t
.
get_shape
().
element_space
());
t
.
get_shape
().
element_space
());
return
make_tensor_view
(
t
.
data
()
+
batch
.
index
(
i
),
matrix
);
return
make_tensor_view
(
t
.
data
()
+
batch
.
index
(
i
),
matrix
);
}
}
...
...
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