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
yangql
composable_kernel-1
Commits
88b77181
Commit
88b77181
authored
Jun 11, 2019
by
Chao Liu
Browse files
rename files, added header guard, added namespace
parent
05e04665
Changes
62
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
5 deletions
+19
-5
src/include/utility.hpp
src/include/utility.hpp
+9
-3
src/include/vector_type.hpp
src/include/vector_type.hpp
+10
-2
No files found.
src/include/
base
.hpp
→
src/include/
utility
.hpp
View file @
88b77181
#pragma once
#ifndef CK_BASE_HPP
#define CK_BASE_HPP
namespace
ck
{
__device__
index_t
get_thread_local_1d_id
()
{
return
threadIdx
.
x
;
}
...
...
@@ -22,7 +25,7 @@ __host__ __device__ constexpr bool is_same_type(X, Y)
return
is_same
<
X
,
Y
>::
value
;
}
namespace
m
od_conv
{
// namespace m
od_conv
namespace
m
ath
{
// namespace m
ath
template
<
class
T
,
T
s
>
struct
scales
{
...
...
@@ -110,4 +113,7 @@ __host__ __device__ constexpr T lcm(T x, Ts... xs)
return
max
(
x
,
xs
...);
}
}
// namespace mod_conv
}
// namespace math
}
// namspace ck
#endif
src/include/vector_type.hpp
View file @
88b77181
#pragma once
#include "config.h"
#ifndef CK_VECTOR_TYPE_HPP
#define CK_VECTOR_TYPE_HPP
#include "config.hpp"
#include "integral_constant.hpp"
namespace
ck
{
template
<
class
T
,
index_t
N
>
struct
vector_type
{
...
...
@@ -184,3 +188,7 @@ struct vector_type<char4, 2>
using MemoryType = int64_t;
};
#endif
}
// namespace ck
#endif
Prev
1
2
3
4
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