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
composable_kernel_ROCM
Commits
856419e8
Commit
856419e8
authored
May 25, 2023
by
Paul
Browse files
Move another function to cpp file
parent
dd6fd8bb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
20 deletions
+19
-20
library/src/jit_library/include/ck/host/device_gemm_multiple_d.hpp
...rc/jit_library/include/ck/host/device_gemm_multiple_d.hpp
+2
-20
library/src/jit_library/src/device_gemm_multiple_d.cpp
library/src/jit_library/src/device_gemm_multiple_d.cpp
+17
-0
No files found.
library/src/jit_library/include/ck/host/device_gemm_multiple_d.hpp
View file @
856419e8
...
...
@@ -63,27 +63,9 @@ private:
;
public:
auto
GetHeaders
()
const
{
return
ck_headers
();
}
std
::
string
GetIncludeHeader
()
const
;
std
::
string
GetIncludeHeader
()
const
{
return
instance
::
gemm_add_add_fastgelu_instances
{}.
get_include_header
();
}
std
::
vector
<
Solution
>
GetSolutions
(
const
std
::
string
&
arch
)
const
{
std
::
vector
<
Solution
>
solutions
;
const
auto
num_instances
=
GetInstances
(
arch
).
size
();
for
(
auto
i
=
0
;
i
<
num_instances
;
++
i
)
{
solutions
.
push_back
(
MakeSolution
(
i
,
arch
));
}
return
solutions
;
}
std
::
vector
<
Solution
>
GetSolutions
(
const
std
::
string
&
arch
)
const
;
};
}
// namespace device_gemm_multiple_d
...
...
library/src/jit_library/src/device_gemm_multiple_d.cpp
View file @
856419e8
...
...
@@ -136,6 +136,23 @@ Solution Problem::MakeSolution(std::size_t idx, const std::string& arch) const
return
Solution
{
str
,
block_size
,
grid_size
};
}
std
::
string
Problem
::
GetIncludeHeader
()
const
{
return
instance
::
gemm_add_add_fastgelu_instances
{}.
get_include_header
();
}
std
::
vector
<
Solution
>
Problem
::
GetSolutions
(
const
std
::
string
&
arch
)
const
{
std
::
vector
<
Solution
>
solutions
;
const
auto
num_instances
=
GetInstances
(
arch
).
size
();
for
(
auto
i
=
0
;
i
<
num_instances
;
++
i
)
{
solutions
.
push_back
(
MakeSolution
(
i
,
arch
));
}
return
solutions
;
}
}
// namespace device_gemm_multiple_d
}
// namespace host
...
...
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