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
yangql
composable_kernel-1
Commits
2cbabbba
Commit
2cbabbba
authored
Aug 13, 2021
by
Chao Liu
Browse files
use int instead of index_t in kernel wrapper
parent
0834bc76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
15 deletions
+31
-15
composable_kernel/src/kernel_wrapper/convolution_forward_implicit_gemm_v6r1_dlops_nchw_kcyx_nkhw.cpp
...ution_forward_implicit_gemm_v6r1_dlops_nchw_kcyx_nkhw.cpp
+31
-15
No files found.
composable_kernel/src/kernel_wrapper/convolution_forward_implicit_gemm_v6r1_dlops_nchw_kcyx_nkhw.cpp
View file @
2cbabbba
...
@@ -62,23 +62,39 @@ constexpr bool HasMainKBlockLoop = static_cast<bool>(CK_PARAM_HasMainKBloc
...
@@ -62,23 +62,39 @@ constexpr bool HasMainKBlockLoop = static_cast<bool>(CK_PARAM_HasMainKBloc
constexpr
bool
HasDoubleTailKBlockLoop
=
static_cast
<
bool
>
(
CK_PARAM_HasDoubleTailKBlockLoop
);
constexpr
bool
HasDoubleTailKBlockLoop
=
static_cast
<
bool
>
(
CK_PARAM_HasDoubleTailKBlockLoop
);
extern
"C"
__global__
void
extern
"C"
__global__
void
convolution_forward_implicit_gemm_v6r1_dlops_nchw_kcyx_nkhw_prepare
(
in
dex_
t
N
,
convolution_forward_implicit_gemm_v6r1_dlops_nchw_kcyx_nkhw_prepare
(
int
N
_
,
in
dex_
t
C
,
int
C
_
,
in
dex_
t
Hi
,
int
Hi
_
,
in
dex_
t
Wi
,
int
Wi
_
,
in
dex_
t
K
,
int
K
_
,
in
dex_
t
Y
,
int
Y
_
,
in
dex_
t
X
,
int
X
_
,
in
dex_
t
ConvStrideH
,
int
ConvStrideH
_
,
in
dex_
t
ConvStrideW
,
int
ConvStrideW
_
,
in
dex_
t
ConvDilationH
,
int
ConvDilationH
_
,
in
dex_
t
ConvDilationW
,
int
ConvDilationW
_
,
in
dex_
t
InLeftPadH
,
int
InLeftPadH
_
,
in
dex_
t
InLeftPadW
,
int
InLeftPadW
_
,
in
dex_
t
InRightPadH
,
int
InRightPadH
_
,
in
dex_
t
InRightPadW
,
int
InRightPadW
_
,
void
*
p_desc_tuple
)
void
*
p_desc_tuple
)
{
{
index_t
N
=
static_cast
<
index_t
>
(
N_
);
index_t
C
=
static_cast
<
index_t
>
(
C_
);
index_t
Hi
=
static_cast
<
index_t
>
(
Hi_
);
index_t
Wi
=
static_cast
<
index_t
>
(
Wi_
);
index_t
K
=
static_cast
<
index_t
>
(
K_
);
index_t
Y
=
static_cast
<
index_t
>
(
Y_
);
index_t
X
=
static_cast
<
index_t
>
(
X_
);
index_t
ConvStrideH
=
static_cast
<
index_t
>
(
ConvStrideH_
);
index_t
ConvStrideW
=
static_cast
<
index_t
>
(
ConvStrideW_
);
index_t
ConvDilationH
=
static_cast
<
index_t
>
(
ConvDilationH_
);
index_t
ConvDilationW
=
static_cast
<
index_t
>
(
ConvDilationW_
);
index_t
InLeftPadH
=
static_cast
<
index_t
>
(
InLeftPadH_
);
index_t
InLeftPadW
=
static_cast
<
index_t
>
(
InLeftPadW_
);
index_t
InRightPadH
=
static_cast
<
index_t
>
(
InRightPadH_
);
index_t
InRightPadW
=
static_cast
<
index_t
>
(
InRightPadW_
);
constexpr
auto
I0
=
Number
<
0
>
{};
constexpr
auto
I0
=
Number
<
0
>
{};
constexpr
auto
I1
=
Number
<
1
>
{};
constexpr
auto
I1
=
Number
<
1
>
{};
constexpr
auto
I2
=
Number
<
2
>
{};
constexpr
auto
I2
=
Number
<
2
>
{};
...
...
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