Add __hip_pinned_shadow__ for hip-clang and fix texture reference tests (#1200)

[ROCm/clr commit: 3169f3a881]
这个提交包含在:
Yaxun (Sam) Liu 编写, Maneesh Gupta 于 2019-07-03 08:51:59 +00:00 提交
1 父节点 154b861905
当前提交 2c8502f1db
3 个文件已更改
+7

没有与搜索条件相匹配的文件

@@ -72,6 +72,7 @@ THE SOFTWARE.
#define __noinline__ __attribute__((noinline))
#define __forceinline__ inline __attribute__((always_inline))
#define __hip_pinned_shadow__ __attribute__((hip_pinned_shadow))
#else
@@ -32,6 +32,9 @@ THE SOFTWARE.
#define N 512
#if __HIP__
__hip_pinned_shadow__
#endif
texture<float, 1, hipReadModeElementType> tex;
__global__ void kernel(float *out) {
@@ -9,6 +9,9 @@
#include <hip/hip_runtime.h>
#include "test_common.h"
#if __HIP__
__hip_pinned_shadow__
#endif
texture<float, 2, hipReadModeElementType> tex;
__global__ void tex2DKernel(float* outputData,