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
77f87d3a
"docs/source/vscode:/vscode.git/clone" did not exist on "6565d9e33eb6f0a49d9824bff7ccc3f4fa5e4110"
Commit
77f87d3a
authored
Sep 12, 2022
by
Po-Yen, Chen
Browse files
Add const to the span<> type arguement
parent
4defb148
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
library/include/ck/library/utility/check_err.hpp
library/include/ck/library/utility/check_err.hpp
+3
-3
No files found.
library/include/ck/library/utility/check_err.hpp
View file @
77f87d3a
...
@@ -109,9 +109,9 @@ check_err(const std::vector<T>& out,
...
@@ -109,9 +109,9 @@ check_err(const std::vector<T>& out,
}
}
template
<
typename
T
>
template
<
typename
T
>
typename
std
::
enable_if
<
std
::
is_same_v
<
std
::
remove_cv_t
<
T
>
,
half_t
>
,
bool
>::
type
typename
std
::
enable_if
<
std
::
is_same_v
<
T
,
half_t
>
,
bool
>::
type
check_err
(
span
<
T
>
out
,
check_err
(
span
<
const
T
>
out
,
span
<
T
>
ref
,
span
<
const
T
>
ref
,
const
std
::
string
&
msg
=
"Error: Incorrect results!"
,
const
std
::
string
&
msg
=
"Error: Incorrect results!"
,
double
rtol
=
1e-3
,
double
rtol
=
1e-3
,
double
atol
=
1e-3
)
double
atol
=
1e-3
)
...
...
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