C proofing hip

[ROCm/hip commit: 91d1974204]
This commit is contained in:
Aditya Atluri
2016-04-07 04:57:31 -05:00
bovenliggende 5f1f0b34d0
commit fc28918100
2 gewijzigde bestanden met toevoegingen van 8 en 1 verwijderingen
@@ -29,8 +29,12 @@ THE SOFTWARE.
#error("This version of HIP requires a newer version of HCC.");
#endif
#if __cplusplus
#include <hc_short_vector.hpp>
using namespace hc::short_vector;
#endif
//-- Signed
// Define char vector types
typedef hc::short_vector::char1 char1;
@@ -108,7 +112,7 @@ typedef hc::short_vector::double2 double2;
typedef hc::short_vector::double3 double3;
typedef hc::short_vector::double4 double4;
/*
///---
// Inline functions for creating vector types from basic types
#define ONE_COMPONENT_ACCESS(T, VT) inline VT make_ ##VT (T x) { VT t; t.x = x; return t; };
@@ -191,3 +195,4 @@ ONE_COMPONENT_ACCESS (double, double1);
TWO_COMPONENT_ACCESS (double, double2);
THREE_COMPONENT_ACCESS(double, double3);
FOUR_COMPONENT_ACCESS (double, double4);
*/
@@ -27,7 +27,9 @@ THE SOFTWARE.
#if defined(__HIP_PLATFORM_HCC__) && !defined (__HIP_PLATFORM_NVCC__)
#if __cplusplus
#include <hcc_detail/hip_vector_types.h>
#endif
#elif defined(__HIP_PLATFORM_NVCC__) && !defined (__HIP_PLATFORM_HCC__)
#include <vector_types.h>
#else