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
98a2cfcc
Commit
98a2cfcc
authored
Sep 27, 2019
by
Chao Liu
Browse files
nvidia build
parent
00089cd6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
composable_kernel/include/utility/config_amd.hpp.in
composable_kernel/include/utility/config_amd.hpp.in
+0
-2
composable_kernel/include/utility/config_nvidia.hpp.in
composable_kernel/include/utility/config_nvidia.hpp.in
+11
-2
No files found.
composable_kernel/include/utility/config_amd.hpp.in
View file @
98a2cfcc
...
@@ -19,8 +19,6 @@ namespace ck {
...
@@ -19,8 +19,6 @@ namespace ck {
enum address_space_t
enum address_space_t
{
{
generic = 0,
generic = 0,
vgpr = 1,
lds = 2,
global = 3
global = 3
};
};
...
...
composable_kernel/include/utility/config_nvidia.hpp.in
View file @
98a2cfcc
...
@@ -21,8 +21,6 @@ namespace ck {
...
@@ -21,8 +21,6 @@ namespace ck {
enum address_space_t
enum address_space_t
{
{
generic = 0,
generic = 0,
vgpr = generic,
lds = generic,
global = generic
global = generic
};
};
...
@@ -39,6 +37,17 @@ using index_t = int32_t;
...
@@ -39,6 +37,17 @@ using index_t = int32_t;
using float2_t = float2;
using float2_t = float2;
using float4_t = float4;
using float4_t = float4;
// data type conversion
template <typename T>
struct type_convert
{
template <typename X>
__device__ T operator()(const X& x) const
{
return static_cast<T>(x);
}
};
template <class T>
template <class T>
__device__ void fused_multiply_accumulate(T& d, const T& s0, const T& s1)
__device__ void fused_multiply_accumulate(T& d, const T& s0, const T& s1)
{
{
...
...
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