nvidia build

This commit is contained in:
Chao Liu
2019-09-27 00:15:05 -05:00
parent 00089cd6e5
commit 98a2cfcc84
2 changed files with 11 additions and 4 deletions

View File

@@ -19,8 +19,6 @@ namespace ck {
enum address_space_t
{
generic = 0,
vgpr = 1,
lds = 2,
global = 3
};

View File

@@ -21,8 +21,6 @@ namespace ck {
enum address_space_t
{
generic = 0,
vgpr = generic,
lds = generic,
global = generic
};
@@ -39,6 +37,17 @@ using index_t = int32_t;
using float2_t = float2;
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>
__device__ void fused_multiply_accumulate(T& d, const T& s0, const T& s1)
{