[arrayfire] 329/408: Splitting sort_by_key across too many files slows down compile times

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Sep 21 19:12:23 UTC 2015


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

ghisvail-guest pushed a commit to branch debian/sid
in repository arrayfire.

commit 398b55c1daa723859e1f0ae27a08101d8e7481c7
Author: Pavan Yalamanchili <pavan at arrayfire.com>
Date:   Mon Aug 24 08:08:59 2015 -0400

    Splitting sort_by_key across too many files slows down compile times
---
 src/backend/opencl/sort_by_key/asc_b8.cpp                | 15 ---------------
 src/backend/opencl/sort_by_key/asc_f32.cpp               | 15 ---------------
 src/backend/opencl/sort_by_key/asc_f64.cpp               | 15 ---------------
 src/backend/opencl/sort_by_key/asc_s32.cpp               | 15 ---------------
 src/backend/opencl/sort_by_key/asc_u32.cpp               | 15 ---------------
 src/backend/opencl/sort_by_key/asc_u8.cpp                | 15 ---------------
 src/backend/opencl/sort_by_key/{desc_b8.cpp => b8.cpp}   |  3 ++-
 src/backend/opencl/sort_by_key/{desc_f32.cpp => f32.cpp} |  3 ++-
 src/backend/opencl/sort_by_key/{desc_f64.cpp => f64.cpp} |  3 ++-
 src/backend/opencl/sort_by_key/{desc_s32.cpp => s32.cpp} |  3 ++-
 src/backend/opencl/sort_by_key/{desc_u32.cpp => u32.cpp} |  3 ++-
 src/backend/opencl/sort_by_key/{desc_u8.cpp => u8.cpp}   |  3 ++-
 12 files changed, 12 insertions(+), 96 deletions(-)

diff --git a/src/backend/opencl/sort_by_key/asc_b8.cpp b/src/backend/opencl/sort_by_key/asc_b8.cpp
deleted file mode 100644
index 013911c..0000000
--- a/src/backend/opencl/sort_by_key/asc_b8.cpp
+++ /dev/null
@@ -1,15 +0,0 @@
-/*******************************************************
- * Copyright (c,true) 2014, ArrayFire
- * All rights reserved.
- *
- * This file is distributed under 3-clause BSD license.
- * The complete license agreement can be obtained at:
- * http://arrayfire.com/licenses/BSD-3-Clause
- ********************************************************/
-
-#include "impl.hpp"
-
-namespace opencl
-{
-    INSTANTIATE1(char,true)
-}
diff --git a/src/backend/opencl/sort_by_key/asc_f32.cpp b/src/backend/opencl/sort_by_key/asc_f32.cpp
deleted file mode 100644
index 8918ada..0000000
--- a/src/backend/opencl/sort_by_key/asc_f32.cpp
+++ /dev/null
@@ -1,15 +0,0 @@
-/*******************************************************
- * Copyright (c,true) 2014, ArrayFire
- * All rights reserved.
- *
- * This file is distributed under 3-clause BSD license.
- * The complete license agreement can be obtained at:
- * http://arrayfire.com/licenses/BSD-3-Clause
- ********************************************************/
-
-#include "impl.hpp"
-
-namespace opencl
-{
-    INSTANTIATE1(float,true)
-}
diff --git a/src/backend/opencl/sort_by_key/asc_f64.cpp b/src/backend/opencl/sort_by_key/asc_f64.cpp
deleted file mode 100644
index 52160c5..0000000
--- a/src/backend/opencl/sort_by_key/asc_f64.cpp
+++ /dev/null
@@ -1,15 +0,0 @@
-/*******************************************************
- * Copyright (c,true) 2014, ArrayFire
- * All rights reserved.
- *
- * This file is distributed under 3-clause BSD license.
- * The complete license agreement can be obtained at:
- * http://arrayfire.com/licenses/BSD-3-Clause
- ********************************************************/
-
-#include "impl.hpp"
-
-namespace opencl
-{
-    INSTANTIATE1(double,true)
-}
diff --git a/src/backend/opencl/sort_by_key/asc_s32.cpp b/src/backend/opencl/sort_by_key/asc_s32.cpp
deleted file mode 100644
index d6e9508..0000000
--- a/src/backend/opencl/sort_by_key/asc_s32.cpp
+++ /dev/null
@@ -1,15 +0,0 @@
-/*******************************************************
- * Copyright (c,true) 2014, ArrayFire
- * All rights reserved.
- *
- * This file is distributed under 3-clause BSD license.
- * The complete license agreement can be obtained at:
- * http://arrayfire.com/licenses/BSD-3-Clause
- ********************************************************/
-
-#include "impl.hpp"
-
-namespace opencl
-{
-    INSTANTIATE1(int,true)
-}
diff --git a/src/backend/opencl/sort_by_key/asc_u32.cpp b/src/backend/opencl/sort_by_key/asc_u32.cpp
deleted file mode 100644
index b797af8..0000000
--- a/src/backend/opencl/sort_by_key/asc_u32.cpp
+++ /dev/null
@@ -1,15 +0,0 @@
-/*******************************************************
- * Copyright (c,true) 2014, ArrayFire
- * All rights reserved.
- *
- * This file is distributed under 3-clause BSD license.
- * The complete license agreement can be obtained at:
- * http://arrayfire.com/licenses/BSD-3-Clause
- ********************************************************/
-
-#include "impl.hpp"
-
-namespace opencl
-{
-    INSTANTIATE1(uint,true)
-}
diff --git a/src/backend/opencl/sort_by_key/asc_u8.cpp b/src/backend/opencl/sort_by_key/asc_u8.cpp
deleted file mode 100644
index 32eed6a..0000000
--- a/src/backend/opencl/sort_by_key/asc_u8.cpp
+++ /dev/null
@@ -1,15 +0,0 @@
-/*******************************************************
- * Copyright (c,true) 2014, ArrayFire
- * All rights reserved.
- *
- * This file is distributed under 3-clause BSD license.
- * The complete license agreement can be obtained at:
- * http://arrayfire.com/licenses/BSD-3-Clause
- ********************************************************/
-
-#include "impl.hpp"
-
-namespace opencl
-{
-    INSTANTIATE1(uchar,true)
-}
diff --git a/src/backend/opencl/sort_by_key/desc_b8.cpp b/src/backend/opencl/sort_by_key/b8.cpp
similarity index 85%
rename from src/backend/opencl/sort_by_key/desc_b8.cpp
rename to src/backend/opencl/sort_by_key/b8.cpp
index 1383de4..118d20d 100644
--- a/src/backend/opencl/sort_by_key/desc_b8.cpp
+++ b/src/backend/opencl/sort_by_key/b8.cpp
@@ -1,5 +1,5 @@
 /*******************************************************
- * Copyright (c,false) 2014, ArrayFire
+ * Copyright (c) 2014, ArrayFire
  * All rights reserved.
  *
  * This file is distributed under 3-clause BSD license.
@@ -11,5 +11,6 @@
 
 namespace opencl
 {
+    INSTANTIATE1(char,true)
     INSTANTIATE1(char,false)
 }
diff --git a/src/backend/opencl/sort_by_key/desc_f32.cpp b/src/backend/opencl/sort_by_key/f32.cpp
similarity index 85%
rename from src/backend/opencl/sort_by_key/desc_f32.cpp
rename to src/backend/opencl/sort_by_key/f32.cpp
index 6610a64..a7baf48 100644
--- a/src/backend/opencl/sort_by_key/desc_f32.cpp
+++ b/src/backend/opencl/sort_by_key/f32.cpp
@@ -1,5 +1,5 @@
 /*******************************************************
- * Copyright (c,false) 2014, ArrayFire
+ * Copyright (c) 2014, ArrayFire
  * All rights reserved.
  *
  * This file is distributed under 3-clause BSD license.
@@ -11,5 +11,6 @@
 
 namespace opencl
 {
+    INSTANTIATE1(float,true)
     INSTANTIATE1(float,false)
 }
diff --git a/src/backend/opencl/sort_by_key/desc_f64.cpp b/src/backend/opencl/sort_by_key/f64.cpp
similarity index 85%
rename from src/backend/opencl/sort_by_key/desc_f64.cpp
rename to src/backend/opencl/sort_by_key/f64.cpp
index 2d77793..6971c90 100644
--- a/src/backend/opencl/sort_by_key/desc_f64.cpp
+++ b/src/backend/opencl/sort_by_key/f64.cpp
@@ -1,5 +1,5 @@
 /*******************************************************
- * Copyright (c,false) 2014, ArrayFire
+ * Copyright (c) 2014, ArrayFire
  * All rights reserved.
  *
  * This file is distributed under 3-clause BSD license.
@@ -11,5 +11,6 @@
 
 namespace opencl
 {
+    INSTANTIATE1(double,true)
     INSTANTIATE1(double,false)
 }
diff --git a/src/backend/opencl/sort_by_key/desc_s32.cpp b/src/backend/opencl/sort_by_key/s32.cpp
similarity index 86%
rename from src/backend/opencl/sort_by_key/desc_s32.cpp
rename to src/backend/opencl/sort_by_key/s32.cpp
index 05b1847..9fed1a5 100644
--- a/src/backend/opencl/sort_by_key/desc_s32.cpp
+++ b/src/backend/opencl/sort_by_key/s32.cpp
@@ -1,5 +1,5 @@
 /*******************************************************
- * Copyright (c,false) 2014, ArrayFire
+ * Copyright (c) 2014, ArrayFire
  * All rights reserved.
  *
  * This file is distributed under 3-clause BSD license.
@@ -11,5 +11,6 @@
 
 namespace opencl
 {
+    INSTANTIATE1(int,true)
     INSTANTIATE1(int,false)
 }
diff --git a/src/backend/opencl/sort_by_key/desc_u32.cpp b/src/backend/opencl/sort_by_key/u32.cpp
similarity index 85%
rename from src/backend/opencl/sort_by_key/desc_u32.cpp
rename to src/backend/opencl/sort_by_key/u32.cpp
index 18456b3..c2e3e62 100644
--- a/src/backend/opencl/sort_by_key/desc_u32.cpp
+++ b/src/backend/opencl/sort_by_key/u32.cpp
@@ -1,5 +1,5 @@
 /*******************************************************
- * Copyright (c,false) 2014, ArrayFire
+ * Copyright (c) 2014, ArrayFire
  * All rights reserved.
  *
  * This file is distributed under 3-clause BSD license.
@@ -11,5 +11,6 @@
 
 namespace opencl
 {
+    INSTANTIATE1(uint,true)
     INSTANTIATE1(uint,false)
 }
diff --git a/src/backend/opencl/sort_by_key/desc_u8.cpp b/src/backend/opencl/sort_by_key/u8.cpp
similarity index 85%
rename from src/backend/opencl/sort_by_key/desc_u8.cpp
rename to src/backend/opencl/sort_by_key/u8.cpp
index f40214f..2dfb4c3 100644
--- a/src/backend/opencl/sort_by_key/desc_u8.cpp
+++ b/src/backend/opencl/sort_by_key/u8.cpp
@@ -1,5 +1,5 @@
 /*******************************************************
- * Copyright (c,false) 2014, ArrayFire
+ * Copyright (c) 2014, ArrayFire
  * All rights reserved.
  *
  * This file is distributed under 3-clause BSD license.
@@ -11,5 +11,6 @@
 
 namespace opencl
 {
+    INSTANTIATE1(uchar,true)
     INSTANTIATE1(uchar,false)
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git



More information about the debian-science-commits mailing list