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
Commits
5494423f
Commit
5494423f
authored
Dec 13, 2020
by
Jing Zhang
Browse files
add vector store
parent
acdafc67
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
composable_kernel/include/tensor_operation/threadwise_generic_tensor_slice_copy_v2.hpp
...sor_operation/threadwise_generic_tensor_slice_copy_v2.hpp
+13
-2
driver/include/device_convolution_forward_implicit_gemm_v4r4_nchw_kcyx_nkhw.hpp
...convolution_forward_implicit_gemm_v4r4_nchw_kcyx_nkhw.hpp
+1
-1
No files found.
composable_kernel/include/tensor_operation/threadwise_generic_tensor_slice_copy_v2.hpp
View file @
5494423f
...
@@ -140,7 +140,18 @@ struct ThreadwiseGenericTensorSliceCopy_v5
...
@@ -140,7 +140,18 @@ struct ThreadwiseGenericTensorSliceCopy_v5
__device__
static
void
__device__
static
void
run
(
float
*
p_dst
,
const
float
src_data
,
const
DstCoord
dst_coord_begin
)
run
(
float
*
p_dst
,
const
float
src_data
,
const
DstCoord
dst_coord_begin
)
{
{
store_data
<
float
>
(
src_data
,
p_dst
,
dst_coord_begin
.
GetOffset
());
store_data
(
src_data
,
p_dst
,
dst_coord_begin
.
GetOffset
());
}
};
template
<
>
struct
vector_data_store
<
float
,
2
>
{
template
<
typename
DstCoord
>
__device__
static
void
run
(
float
*
p_dst
,
const
float2_t
src_data
,
const
DstCoord
dst_coord_begin
)
{
store_data
(
src_data
,
p_dst
,
dst_coord_begin
.
GetOffset
());
}
}
};
};
...
@@ -185,7 +196,7 @@ struct ThreadwiseGenericTensorSliceCopy_v5
...
@@ -185,7 +196,7 @@ struct ThreadwiseGenericTensorSliceCopy_v5
constexpr
auto
dst_data_per_access
=
Number
<
DstDataPerWrite
>
{};
constexpr
auto
dst_data_per_access
=
Number
<
DstDataPerWrite
>
{};
static_assert
(
DstDataPerWrite
==
1
,
""
);
static_assert
(
DstDataPerWrite
==
1
||
DstDataPerWrite
==
2
,
""
);
constexpr
auto
long_vector_size
=
dst_data_per_access
;
constexpr
auto
long_vector_size
=
dst_data_per_access
;
...
...
driver/include/device_convolution_forward_implicit_gemm_v4r4_nchw_kcyx_nkhw.hpp
View file @
5494423f
...
@@ -184,7 +184,7 @@ void device_convolution_forward_implicit_gemm_v4r4_nchw_kcyx_nkhw(InDesc,
...
@@ -184,7 +184,7 @@ void device_convolution_forward_implicit_gemm_v4r4_nchw_kcyx_nkhw(InDesc,
using
GemmBBlockCopyThreadClusterLengths_GemmK_GemmN
=
Sequence
<
8
,
32
>
;
using
GemmBBlockCopyThreadClusterLengths_GemmK_GemmN
=
Sequence
<
8
,
32
>
;
constexpr
index_t
GemmBBlockCopySrcDataPerRead_GemmN
=
4
;
constexpr
index_t
GemmBBlockCopySrcDataPerRead_GemmN
=
4
;
constexpr
index_t
GemmBBlockCopyDstDataPerWrite_GemmN
=
1
;
constexpr
index_t
GemmBBlockCopyDstDataPerWrite_GemmN
=
2
;
constexpr
index_t
GemmCThreadCopyDstDataPerWrite_GemmN1
=
4
;
constexpr
index_t
GemmCThreadCopyDstDataPerWrite_GemmN1
=
4
;
#elif 0
#elif 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