added tests to check nvcc runtime api output

Change-Id: Ifdd39b5d0a6a58d20a8e9745e59dd82d50a90e2f
Tento commit je obsažen v:
Aditya Atluri
2016-11-19 21:36:28 -06:00
rodič 53e771fc75
revize 428041cfc2
11 změnil soubory, kde provedl 87 přidání a 2 odebrání
+1 -1
Zobrazit soubor
@@ -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.
+13
Zobrazit soubor
@@ -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
+6
Zobrazit soubor
@@ -0,0 +1,6 @@
#ifndef HIP_TEXTURE_H
#define HIP_TEXTURE_H
#include <cuda_texture.h>
#endif