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
1f2cfceb
"test/git@developer.sourcefind.cn:OpenDAS/vision.git" did not exist on "240210c91b4e88f031ed87cddc3ec3ba43684021"
Commit
1f2cfceb
authored
Jun 19, 2019
by
Chao Liu
Browse files
fixed amd build
parent
21f7e9f1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
10 deletions
+8
-10
composable_kernel/include/utility/common_header.hpp
composable_kernel/include/utility/common_header.hpp
+5
-1
composable_kernel/include/utility/config_amd.hpp.in
composable_kernel/include/utility/config_amd.hpp.in
+0
-4
composable_kernel/include/utility/integral_constant.hpp
composable_kernel/include/utility/integral_constant.hpp
+2
-5
composable_kernel/include/utility/math.hpp
composable_kernel/include/utility/math.hpp
+1
-0
No files found.
composable_kernel/include/utility/common_header.hpp
View file @
1f2cfceb
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
#define CK_COMMON_HEADER_HPP
#define CK_COMMON_HEADER_HPP
#include "config.hpp"
#include "config.hpp"
#include "utility.hpp"
#include "integral_constant.hpp"
#include "integral_constant.hpp"
#include "math.hpp"
#include "math.hpp"
#include "utility.hpp"
#include "vector_type.hpp"
#include "vector_type.hpp"
#include "Sequence.hpp"
#include "Sequence.hpp"
#include "Array.hpp"
#include "Array.hpp"
...
@@ -12,4 +12,8 @@
...
@@ -12,4 +12,8 @@
#include "functional2.hpp"
#include "functional2.hpp"
#include "functional3.hpp"
#include "functional3.hpp"
#if CK_USE_AMD_INLINE_ASM
#include "amd_inline_asm.hpp"
#endif
#endif
#endif
composable_kernel/include/utility/config_amd.hpp.in
View file @
1f2cfceb
...
@@ -18,10 +18,6 @@ typedef float float4_t __attribute__((ext_vector_type(4)));
...
@@ -18,10 +18,6 @@ typedef float float4_t __attribute__((ext_vector_type(4)));
using index_t = uint32_t;
using index_t = uint32_t;
__device__ index_t get_thread_local_1d_id() { return threadIdx.x; }
__device__ index_t get_block_1d_id() { return blockIdx.x; }
__device__ void fused_multiply_accumulate(float& d, const float& s0, const float& s1)
__device__ void fused_multiply_accumulate(float& d, const float& s0, const float& s1)
{
{
d += s0 * s1;
d += s0 * s1;
...
...
composable_kernel/include/utility/integral_constant.hpp
View file @
1f2cfceb
...
@@ -8,12 +8,9 @@ struct integral_constant
...
@@ -8,12 +8,9 @@ struct integral_constant
{
{
static
constexpr
T
value
=
v
;
static
constexpr
T
value
=
v
;
typedef
T
value_type
;
typedef
T
value_type
;
typedef
integral_constant
type
;
// using injected-class-name
typedef
integral_constant
type
;
__host__
__device__
constexpr
operator
value_type
()
const
noexcept
{
return
value
;
}
__host__
__device__
constexpr
operator
value_type
()
const
noexcept
{
return
value
;
}
__host__
__device__
constexpr
value_type
operator
()()
const
noexcept
__host__
__device__
constexpr
value_type
operator
()()
const
noexcept
{
return
value
;
}
{
return
value
;
}
// since c++14
};
};
template
<
class
T
,
T
X
,
T
Y
>
template
<
class
T
,
T
X
,
T
Y
>
...
...
composable_kernel/include/utility/math.hpp
View file @
1f2cfceb
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
#define CK_MATH_HPP
#define CK_MATH_HPP
#include "config.hpp"
#include "config.hpp"
#include "integral_constant.hpp"
namespace
ck
{
namespace
ck
{
namespace
math
{
namespace
math
{
...
...
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