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
f8ecac8e
Commit
f8ecac8e
authored
May 07, 2022
by
Chao Liu
Browse files
clean up
parent
0381f287
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
include/ck/utility/get_id.hpp
include/ck/utility/get_id.hpp
+2
-1
library/include/ck/library/utility/check_err.hpp
library/include/ck/library/utility/check_err.hpp
+7
-6
No files found.
include/ck/utility/get_id.hpp
View file @
f8ecac8e
...
...
@@ -4,7 +4,8 @@
namespace
ck
{
__host__
__device__
constexpr
index_t
get_warp_size
()
{
// warpSize is defined by HIP
{
// warpSize is defined by HIP
return
warpSize
;
}
...
...
library/include/ck/library/utility/check_err.hpp
View file @
f8ecac8e
#pragma once
#ifndef CHECK_ERR_HPP
#define CHECK_ERR_HPP
#include <algorithm>
#include <cmath>
#include <cstdlib>
...
...
@@ -169,12 +171,9 @@ check_err(const std::vector<T>& out,
for
(
std
::
size_t
i
=
0
;
i
<
ref
.
size
();
++
i
)
{
const
auto
out_v
=
static_cast
<
int64_t
>
(
out
[
i
]);
const
auto
ref_v
=
static_cast
<
int64_t
>
(
ref
[
i
]);
if
(
out_v
!=
ref_v
)
if
(
out
[
i
]
!=
ref
[
i
])
{
std
::
cout
<<
"out["
<<
i
<<
"] != ref["
<<
i
<<
"]: "
<<
out
_v
<<
" != "
<<
ref
_v
std
::
cout
<<
"out["
<<
i
<<
"] != ref["
<<
i
<<
"]: "
<<
out
[
i
]
<<
" != "
<<
ref
[
i
]
<<
std
::
endl
<<
msg
<<
std
::
endl
;
return
false
;
...
...
@@ -192,3 +191,5 @@ std::ostream& operator<<(std::ostream& os, const std::vector<T>& v)
std
::
copy
(
std
::
begin
(
v
),
std
::
end
(
v
),
std
::
ostream_iterator
<
T
>
(
os
,
" "
));
return
os
;
}
#endif
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