added tests to check nvcc runtime api output

Change-Id: Ifdd39b5d0a6a58d20a8e9745e59dd82d50a90e2f


[ROCm/clr commit: 6692ee09d7]
This commit is contained in:
Aditya Atluri
2016-11-19 21:36:28 -06:00
parent b8eda419a8
commit 21470101c7
11 changed files with 87 additions and 2 deletions
@@ -32,7 +32,7 @@ THE SOFTWARE.
#include <limits.h>
#include <hip/hip_runtime.h>
#include <hip/hcc_detail/hip_runtime.h>
//----
//Texture - TODO - likely need to move this to a separate file only included with kernel compilation.
@@ -0,0 +1,13 @@
#ifndef HIP_TEXTURE_H
#define HIP_TEXTURE_H
#if defined(__HIP_PLATFORM_HCC__) && !defined (__HIP_PLATFORM_NVCC__)
#include <hip/hcc_detail/hip_texture.h>
#elif defined(__HIP_PLATFORM_NVCC__) && !defined (__HIP_PLATFORM_HCC__)
#include <hip/nvcc_detail/hip_texture.h>
#else
#error("Must define exactly one of __HIP_PLATFORM_HCC__ or __HIP_PLATFORM_NVCC__");
#endif
#endif
@@ -0,0 +1,6 @@
#ifndef HIP_TEXTURE_H
#define HIP_TEXTURE_H
#include <cuda_texture.h>
#endif