diff --git a/projects/hip/include/hcc_detail/hip_runtime.h b/projects/hip/include/hcc_detail/hip_runtime.h index 9f88017215..003ededca0 100644 --- a/projects/hip/include/hcc_detail/hip_runtime.h +++ b/projects/hip/include/hcc_detail/hip_runtime.h @@ -401,13 +401,6 @@ __device__ int __all( int input); __device__ int __any( int input); __device__ unsigned long long int __ballot( int input); -// __ldg function -template -__device__ __forceinline__ T __ldg( const T * addr) -{ - return *addr; -} - // warp shuffle functions #ifdef __cplusplus @@ -431,7 +424,7 @@ __device__ float __shfl_xor(float input, int lane_mask, int width); #endif __host__ __device__ int min(int arg1, int arg2); -__host__ __device__ int max(int arg1, int arg2); +__host__ __device__ int max(int arg1, int arg2); //TODO - add a couple fast math operations here, the set here will grow : __device__ float __cosf(float x); @@ -522,8 +515,8 @@ do {\ lp.cf = &cf; \ hipStream_t trueStream = (ihipPreLaunchKernel(_stream, &lp.av)); \ if (HIP_TRACE_API) {\ - fprintf(stderr, KGRN "<