From 93a84365abecedb0636372a2ba8b57a00a65e97f Mon Sep 17 00:00:00 2001 From: Aaron Enye Shi Date: Tue, 25 Sep 2018 15:58:36 +0000 Subject: [PATCH] Use trig functions from ocml instead [ROCm/hip commit: 5179a72cda7dfebc45c167755e5d439974f7da92] --- projects/hip/tests/src/deviceLib/hip_trig.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/hip/tests/src/deviceLib/hip_trig.cpp b/projects/hip/tests/src/deviceLib/hip_trig.cpp index 29c24cf5b4..7b076065fa 100644 --- a/projects/hip/tests/src/deviceLib/hip_trig.cpp +++ b/projects/hip/tests/src/deviceLib/hip_trig.cpp @@ -42,10 +42,10 @@ THE SOFTWARE. __global__ void kernel_trig(hipLaunchParm lp, float* In, float* sin_d, float* cos_d, float* tan_d, float* sin_pd, float* cos_pd) { int tid = threadIdx.x + blockIdx.x * blockDim.x; - sin_d[tid] = __sinf(In[tid]); - cos_d[tid] = __cosf(In[tid]); - tan_d[tid] = __tanf(In[tid]); - __sincosf(In[tid], &sin_pd[tid], &cos_pd[tid]); + sin_d[tid] = sinf(In[tid]); + cos_d[tid] = cosf(In[tid]); + tan_d[tid] = tanf(In[tid]); + sincosf(In[tid], &sin_pd[tid], &cos_pd[tid]); } int main() {