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
OpenDAS
TransformerEngine
Commits
34ea55b9
Commit
34ea55b9
authored
Apr 27, 2025
by
wenjh
Browse files
[GemmTests] Fix gemm tests acc failed
Signed-off-by:
wenjh
<
wenjh@sugon.com
>
parent
5749aec6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/cpp/operator/test_cublaslt_gemm.cu
tests/cpp/operator/test_cublaslt_gemm.cu
+2
-2
No files found.
tests/cpp/operator/test_cublaslt_gemm.cu
View file @
34ea55b9
...
@@ -206,7 +206,7 @@ void performTest(bool use_bias, bool use_gelu, const size_t m, const size_t k, c
...
@@ -206,7 +206,7 @@ void performTest(bool use_bias, bool use_gelu, const size_t m, const size_t k, c
if
(
dtype
==
DType
::
kFloat32
)
{
if
(
dtype
==
DType
::
kFloat32
)
{
atol
=
1e-5
;
atol
=
1e-5
;
}
}
compareResults
(
"D"
,
D
,
ref_D
.
get
(),
atol
,
rtol
);
compareResults
(
"D"
,
D
,
ref_D
.
get
(),
true
,
atol
,
rtol
);
if
(
use_gelu
){
if
(
use_gelu
){
auto
[
atol
,
rtol
]
=
getTolerances
(
gelu_type
);
auto
[
atol
,
rtol
]
=
getTolerances
(
gelu_type
);
...
@@ -214,7 +214,7 @@ void performTest(bool use_bias, bool use_gelu, const size_t m, const size_t k, c
...
@@ -214,7 +214,7 @@ void performTest(bool use_bias, bool use_gelu, const size_t m, const size_t k, c
if
(
dtype
==
DType
::
kFloat32
)
{
if
(
dtype
==
DType
::
kFloat32
)
{
atol
=
5e-6
;
atol
=
5e-6
;
}
}
compareResults
(
"gelu"
,
pre_gelu_out
,
ref_pre_gelu_out
.
get
(),
atol
,
rtol
);
compareResults
(
"gelu"
,
pre_gelu_out
,
ref_pre_gelu_out
.
get
(),
true
,
atol
,
rtol
);
}
}
}
}
...
...
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