From 50ccc9fc63b0db2270880a76beb94e28b4342972 Mon Sep 17 00:00:00 2001 From: Jorghi12 Date: Sat, 26 May 2018 16:22:10 -0400 Subject: [PATCH] Update math_functions.h CUDA also has a function named labs. [ROCm/hip commit: 6e2b9d054794540a83e74d33326a3eda7c039eca] --- projects/hip/include/hip/hcc_detail/math_functions.h | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/hip/include/hip/hcc_detail/math_functions.h b/projects/hip/include/hip/hcc_detail/math_functions.h index e7312f32f2..ea3bd97571 100644 --- a/projects/hip/include/hip/hcc_detail/math_functions.h +++ b/projects/hip/include/hip/hcc_detail/math_functions.h @@ -60,6 +60,7 @@ __device__ int abs(int x); __device__ long long abs(long long x); __device__ double abs(double x); __device__ long int abs(long int x); +__device__ long long int labs(long long int x); __device__ float fabsf(float x); __device__ float fdimf(float x, float y); __device__ float fdividef(float x, float y);