Add __ldg

[ROCm/hip commit: 76f2670cef]
此提交包含在:
streamhsa
2016-04-16 21:12:09 +08:00
父節點 69f7b859c2
當前提交 e33cf35ce2
共有 3 個檔案被更改,包括 159 行新增 和 0 行删除
+7
查看文件
@@ -401,6 +401,13 @@ __device__ int __all( int input);
__device__ int __any( int input);
__device__ unsigned long long int __ballot( int input);
// __ldg function
template <typename T>
__device__ __forceinline__ T __ldg( const T * addr)
{
return *addr;
}
// warp shuffle functions
#ifdef __cplusplus