From 3a25eeca87f7c877315f67619528b8d0c7b6de2d Mon Sep 17 00:00:00 2001 From: pensun Date: Wed, 20 Apr 2016 09:57:55 -0500 Subject: [PATCH] update API trace information for hipLaunchKernel [ROCm/hip commit: 883a3fe831fae46a917a67b3290c63241ed018e2] --- projects/hip/include/hcc_detail/hip_runtime.h | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) 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 "<