[libclc] 43/92: Do not include clc_nextafter header globally

Andreas Boll aboll-guest at moszumanska.debian.org
Mon Nov 6 15:11:59 UTC 2017


This is an automated email from the git hooks/post-receive script.

aboll-guest pushed a commit to branch master
in repository libclc.

commit 9251ce4853a592c6c3e5122648f37ed781ddd3ff
Author: Jan Vesely <jan.vesely at rutgers.edu>
Date:   Sun Oct 8 19:33:58 2017 +0000

    Do not include clc_nextafter header globally
    
    Drop unused clc/math/clc_nextafter.h header
    
    Reviewer: Jeroen Ketema
    Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
    
    git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@315190 91177308-0d34-0410-b5e6-96231b3b80d8
---
 amdgpu/lib/math/nextafter.cl             |  1 +
 generic/include/clc/clc.h                |  5 -----
 generic/include/clc/math/clc_nextafter.h | 11 -----------
 generic/include/clc/math/gentype.inc     |  2 ++
 4 files changed, 3 insertions(+), 16 deletions(-)

diff --git a/amdgpu/lib/math/nextafter.cl b/amdgpu/lib/math/nextafter.cl
index 6aee0a0..5b4521d 100644
--- a/amdgpu/lib/math/nextafter.cl
+++ b/amdgpu/lib/math/nextafter.cl
@@ -1,5 +1,6 @@
 #include <clc/clc.h>
 #include "../lib/clcmacro.h"
+#include <math/clc_nextafter.h>
 
 _CLC_DEFINE_BINARY_BUILTIN(float, nextafter, __clc_nextafter, float, float)
 
diff --git a/generic/include/clc/clc.h b/generic/include/clc/clc.h
index adaab90..3701336 100644
--- a/generic/include/clc/clc.h
+++ b/generic/include/clc/clc.h
@@ -264,9 +264,4 @@
 #include <clc/image/image_defines.h>
 #include <clc/image/image.h>
 
-/* libclc internal defintions */
-#ifdef __CLC_INTERNAL
-#include <math/clc_nextafter.h>
-#endif
-
 #pragma OPENCL EXTENSION all : disable
diff --git a/generic/include/clc/math/clc_nextafter.h b/generic/include/clc/math/clc_nextafter.h
deleted file mode 100644
index 81c8f36..0000000
--- a/generic/include/clc/math/clc_nextafter.h
+++ /dev/null
@@ -1,11 +0,0 @@
-#define __CLC_BODY <clc/math/binary_decl.inc>
-
-#define __CLC_FUNCTION nextafter
-#include <clc/math/gentype.inc>
-#undef __CLC_FUNCTION
-
-#define __CLC_FUNCTION __clc_nextafter
-#include <clc/math/gentype.inc>
-#undef __CLC_FUNCTION
-
-#undef __CLC_BODY
diff --git a/generic/include/clc/math/gentype.inc b/generic/include/clc/math/gentype.inc
index e6ffad1..954cd00 100644
--- a/generic/include/clc/math/gentype.inc
+++ b/generic/include/clc/math/gentype.inc
@@ -54,6 +54,8 @@
 
 #ifndef __FLOAT_ONLY
 #ifdef cl_khr_fp64
+#pragma OPENCL EXTENSION cl_khr_fp64 : enable
+
 #define __CLC_SCALAR_GENTYPE double
 #define __CLC_FPSIZE 64
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/libclc.git



More information about the Pkg-opencl-commits mailing list