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
f8a6c69c
Unverified
Commit
f8a6c69c
authored
Mar 13, 2023
by
Illia Silin
Committed by
GitHub
Mar 13, 2023
Browse files
Merge branch 'develop' into mi300
parents
56599d67
52f64967
Changes
142
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
test/normalization/test_layernorm2d_fp16.cpp
test/normalization/test_layernorm2d_fp16.cpp
+7
-7
test/normalization/test_layernorm2d_fp32.cpp
test/normalization/test_layernorm2d_fp32.cpp
+7
-7
No files found.
test/normalization/test_layernorm2d_fp16.cpp
View file @
f8a6c69c
...
@@ -12,11 +12,11 @@ template <typename Tuple>
...
@@ -12,11 +12,11 @@ template <typename Tuple>
class
TestLayernorm2d
:
public
::
testing
::
Test
class
TestLayernorm2d
:
public
::
testing
::
Test
{
{
protected:
protected:
using
XDataType
=
std
::
tuple_element_t
<
0
,
Tuple
>
;
using
XDataType
=
std
::
tuple_element_t
<
0
,
Tuple
>
;
using
GammaDataType
=
std
::
tuple_element_t
<
1
,
Tuple
>
;
using
GammaDataType
=
std
::
tuple_element_t
<
1
,
Tuple
>
;
using
BetaDataType
=
std
::
tuple_element_t
<
2
,
Tuple
>
;
using
BetaDataType
=
std
::
tuple_element_t
<
2
,
Tuple
>
;
using
Acc
DataType
=
std
::
tuple_element_t
<
3
,
Tuple
>
;
using
Compute
DataType
=
std
::
tuple_element_t
<
3
,
Tuple
>
;
using
YDataType
=
std
::
tuple_element_t
<
4
,
Tuple
>
;
using
YDataType
=
std
::
tuple_element_t
<
4
,
Tuple
>
;
void
Run
()
void
Run
()
{
{
...
@@ -29,7 +29,7 @@ class TestLayernorm2d : public ::testing::Test
...
@@ -29,7 +29,7 @@ class TestLayernorm2d : public ::testing::Test
bool
success
=
ck
::
profiler
::
profile_layernorm_impl
<
XDataType
,
bool
success
=
ck
::
profiler
::
profile_layernorm_impl
<
XDataType
,
GammaDataType
,
GammaDataType
,
BetaDataType
,
BetaDataType
,
Acc
DataType
,
Compute
DataType
,
YDataType
,
YDataType
,
2
>
(
true
,
2
,
false
,
false
,
length
);
2
>
(
true
,
2
,
false
,
false
,
length
);
EXPECT_TRUE
(
success
);
EXPECT_TRUE
(
success
);
...
@@ -38,7 +38,7 @@ class TestLayernorm2d : public ::testing::Test
...
@@ -38,7 +38,7 @@ class TestLayernorm2d : public ::testing::Test
};
};
using
KernelTypes
=
::
testing
::
Types
<
using
KernelTypes
=
::
testing
::
Types
<
// XDataType, GammaDataType, BetaDataType,
Acc
DataType, YDataType>
// XDataType, GammaDataType, BetaDataType,
Compute
DataType, YDataType>
std
::
tuple
<
F16
,
F16
,
F16
,
F32
,
F16
>>
;
std
::
tuple
<
F16
,
F16
,
F16
,
F32
,
F16
>>
;
TYPED_TEST_SUITE
(
TestLayernorm2d
,
KernelTypes
);
TYPED_TEST_SUITE
(
TestLayernorm2d
,
KernelTypes
);
...
...
test/normalization/test_layernorm2d_fp32.cpp
View file @
f8a6c69c
...
@@ -12,11 +12,11 @@ template <typename Tuple>
...
@@ -12,11 +12,11 @@ template <typename Tuple>
class
TestLayernorm2d
:
public
::
testing
::
Test
class
TestLayernorm2d
:
public
::
testing
::
Test
{
{
protected:
protected:
using
XDataType
=
std
::
tuple_element_t
<
0
,
Tuple
>
;
using
XDataType
=
std
::
tuple_element_t
<
0
,
Tuple
>
;
using
GammaDataType
=
std
::
tuple_element_t
<
1
,
Tuple
>
;
using
GammaDataType
=
std
::
tuple_element_t
<
1
,
Tuple
>
;
using
BetaDataType
=
std
::
tuple_element_t
<
2
,
Tuple
>
;
using
BetaDataType
=
std
::
tuple_element_t
<
2
,
Tuple
>
;
using
Acc
DataType
=
std
::
tuple_element_t
<
3
,
Tuple
>
;
using
Compute
DataType
=
std
::
tuple_element_t
<
3
,
Tuple
>
;
using
YDataType
=
std
::
tuple_element_t
<
4
,
Tuple
>
;
using
YDataType
=
std
::
tuple_element_t
<
4
,
Tuple
>
;
void
Run
()
void
Run
()
{
{
...
@@ -29,7 +29,7 @@ class TestLayernorm2d : public ::testing::Test
...
@@ -29,7 +29,7 @@ class TestLayernorm2d : public ::testing::Test
bool
success
=
ck
::
profiler
::
profile_layernorm_impl
<
XDataType
,
bool
success
=
ck
::
profiler
::
profile_layernorm_impl
<
XDataType
,
GammaDataType
,
GammaDataType
,
BetaDataType
,
BetaDataType
,
Acc
DataType
,
Compute
DataType
,
YDataType
,
YDataType
,
2
>
(
true
,
2
,
false
,
false
,
length
);
2
>
(
true
,
2
,
false
,
false
,
length
);
EXPECT_TRUE
(
success
);
EXPECT_TRUE
(
success
);
...
@@ -38,7 +38,7 @@ class TestLayernorm2d : public ::testing::Test
...
@@ -38,7 +38,7 @@ class TestLayernorm2d : public ::testing::Test
};
};
using
KernelTypes
=
::
testing
::
Types
<
using
KernelTypes
=
::
testing
::
Types
<
// XDataType, GammaDataType, BetaDataType,
Acc
DataType, YDataType>
// XDataType, GammaDataType, BetaDataType,
Compute
DataType, YDataType>
std
::
tuple
<
F32
,
F32
,
F32
,
F32
,
F32
>>
;
std
::
tuple
<
F32
,
F32
,
F32
,
F32
,
F32
>>
;
TYPED_TEST_SUITE
(
TestLayernorm2d
,
KernelTypes
);
TYPED_TEST_SUITE
(
TestLayernorm2d
,
KernelTypes
);
...
...
Prev
1
…
4
5
6
7
8
Next
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