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
fbb97614
Commit
fbb97614
authored
Jul 17, 2024
by
root
Browse files
FORE #define needs are added
parent
ee75f0d0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
include/ck/utility/dbg.hpp
include/ck/utility/dbg.hpp
+6
-8
No files found.
include/ck/utility/dbg.hpp
View file @
fbb97614
...
...
@@ -8,6 +8,9 @@
namespace
ck
{
namespace
dbg
{
#define VAR(v, i) __typeof(i) v=(i)
#define FORE(i, c) for(VAR(i, (c).begin()); i != (c).end(); ++i)
template
<
typename
TH
>
void
_dbg
(
const
char
*
sdbg
,
TH
h
)
{
std
::
cerr
<<
sdbg
<<
"="
<<
h
<<
"
\n
"
;
}
...
...
@@ -19,7 +22,7 @@ void _dbg(const char *sdbg, TH h, TA... t) {
std
::
cerr
<<
"="
<<
h
<<
","
;
_dbg
(
sdbg
+
1
,
t
...);
}
#ifdef LOCAL
#define debug(...) _dbg(#__VA_ARGS__, __VA_ARGS__)
#define debugv(x) \
{ \
...
...
@@ -29,12 +32,7 @@ void _dbg(const char *sdbg, TH h, TA... t) {
std::cerr << "\n"; \
} \
}
#else
#define debug(...) (__VA_ARGS__)
#define debugv(x)
#define std ::cerr if (0) cout
#endif
}
// namespace dbg
}
// namespace ck
}
// namespace ck
i
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