Skip to content

Commit

Permalink
added copyright to all files
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Gieseke committed Oct 24, 2016
1 parent df7a516 commit 00a7f0f
Show file tree
Hide file tree
Showing 67 changed files with 348 additions and 142 deletions.
5 changes: 5 additions & 0 deletions bufferkdtree/__init__.py
@@ -1,3 +1,8 @@
#
# Copyright (C) 2013-2016 Fabian Gieseke <fabian.gieseke@di.ku.dk>
# License: GPL v2
#

"""
bufferkdtree
============
Expand Down
9 changes: 4 additions & 5 deletions bufferkdtree/neighbors/__init__.py
@@ -1,8 +1,7 @@
'''
Created on 15.09.2015
@author: Fabian Gieseke
'''
#
# Copyright (C) 2013-2016 Fabian Gieseke <fabian.gieseke@di.ku.dk>
# License: GPL v2
#

from .base import NearestNeighbors

Expand Down
9 changes: 4 additions & 5 deletions bufferkdtree/neighbors/base.py
@@ -1,8 +1,7 @@
'''
Created on 15.09.2015
@author: Fabian Gieseke
'''
#
# Copyright (C) 2013-2016 Fabian Gieseke <fabian.gieseke@di.ku.dk>
# License: GPL v2
#

import numpy
import warnings
Expand Down
9 changes: 4 additions & 5 deletions bufferkdtree/neighbors/brute/__init__.py
@@ -1,5 +1,4 @@
'''
Created on 15.09.2015
@author: Fabian Gieseke
'''
#
# Copyright (C) 2013-2016 Fabian Gieseke <fabian.gieseke@di.ku.dk>
# License: GPL v2
#
9 changes: 4 additions & 5 deletions bufferkdtree/neighbors/brute/base.py
@@ -1,8 +1,7 @@
'''
Created on 15.09.2015
@author: Fabian Gieseke
'''
#
# Copyright (C) 2013-2016 Fabian Gieseke <fabian.gieseke@di.ku.dk>
# License: GPL v2
#

import os
import math
Expand Down
9 changes: 4 additions & 5 deletions bufferkdtree/neighbors/brute/setup.py
@@ -1,8 +1,7 @@
'''
Created on 15.09.2015
@author: Fabian Gieseke
'''
#
# Copyright (C) 2013-2016 Fabian Gieseke <fabian.gieseke@di.ku.dk>
# License: GPL v2
#

import os
import sys
Expand Down
9 changes: 4 additions & 5 deletions bufferkdtree/neighbors/buffer_kdtree/__init__.py
@@ -1,5 +1,4 @@
'''
Created on 15.09.2015
@author: Fabian Gieseke
'''
#
# Copyright (C) 2013-2016 Fabian Gieseke <fabian.gieseke@di.ku.dk>
# License: GPL v2
#
9 changes: 4 additions & 5 deletions bufferkdtree/neighbors/buffer_kdtree/base.py
@@ -1,8 +1,7 @@
'''
Created on 15.09.2015
@author: Fabian Gieseke
'''
#
# Copyright (C) 2013-2016 Fabian Gieseke <fabian.gieseke@di.ku.dk>
# License: GPL v2
#

from __future__ import division

Expand Down
9 changes: 4 additions & 5 deletions bufferkdtree/neighbors/buffer_kdtree/setup.py
@@ -1,8 +1,7 @@
'''
Created on 15.09.2015
@author: Fabian Gieseke
'''
#
# Copyright (C) 2013-2016 Fabian Gieseke <fabian.gieseke@di.ku.dk>
# License: GPL v2
#

import os
import sys
Expand Down
9 changes: 4 additions & 5 deletions bufferkdtree/neighbors/kdtree/__init__.py
@@ -1,5 +1,4 @@
'''
Created on 15.09.2015
@author: Fabian Gieseke
'''
#
# Copyright (C) 2013-2016 Fabian Gieseke <fabian.gieseke@di.ku.dk>
# License: GPL v2
#
9 changes: 4 additions & 5 deletions bufferkdtree/neighbors/kdtree/base.py
@@ -1,8 +1,7 @@
'''
Created on 15.09.2015
@author: Fabian Gieseke
'''
#
# Copyright (C) 2013-2016 Fabian Gieseke <fabian.gieseke@di.ku.dk>
# License: GPL v2
#

import math
import warnings
Expand Down
9 changes: 4 additions & 5 deletions bufferkdtree/neighbors/kdtree/setup.py
@@ -1,8 +1,7 @@
'''
Created on 15.09.2015
@author: Fabian Gieseke
'''
#
# Copyright (C) 2013-2016 Fabian Gieseke <fabian.gieseke@di.ku.dk>
# License: GPL v2
#

import os
import sys
Expand Down
9 changes: 4 additions & 5 deletions bufferkdtree/neighbors/util.py
@@ -1,8 +1,7 @@
'''
Created on 18.11.2015
@author: Fabian Gieseke
'''
#
# Copyright (C) 2013-2016 Fabian Gieseke <fabian.gieseke@di.ku.dk>
# License: GPL v2
#

import math
import time
Expand Down
21 changes: 15 additions & 6 deletions bufferkdtree/setup.py
@@ -1,3 +1,8 @@
#
# Copyright (C) 2013-2016 Fabian Gieseke <fabian.gieseke@di.ku.dk>
# License: GPL v2
#

"""
bufferkdtree
============
Expand All @@ -15,18 +20,22 @@
def configuration(parent_package='', top_path=None):

from numpy.distutils.misc_util import Configuration

try:
kdtree_only = strtobool(os.environ['BUFFERKDTREE_KDTREE_ONLY'])
except:
kdtree_only = False

config = Configuration('bufferkdtree', parent_package, top_path)
config.add_subpackage('neighbors', subpackage_path='neighbors')
config.add_subpackage('neighbors/kdtree', subpackage_path='neighbors/kdtree')
if kdtree_only == False:

if strtobool(os.environ['BUFFERKDTREE_KDTREE_ONLY']) == False:
config.add_subpackage('neighbors/brute', subpackage_path='neighbors/brute')
config.add_subpackage('neighbors/buffer_kdtree', subpackage_path='neighbors/buffer_kdtree')
else:
print("\n\n--------------------------------------------------\n" +
"--------------------- WARNING --------------------\n" +
"--------------------------------------------------\n" +
"Only compiling k-d tree implementation (CPU) since\n" +
"environment variable 'BUFFERKDTREE_KDTREE_ONLY' is\nset to " +
"'%s'\n" % str(os.environ['BUFFERKDTREE_KDTREE_ONLY']) +
"--------------------------------------------------\n\n")
config.add_subpackage('tests')
config.add_subpackage('util')

Expand Down
4 changes: 4 additions & 0 deletions bufferkdtree/src/include/float.h
@@ -1,5 +1,9 @@
/*
* float.h
*
* Copyright (C) 2013-2016 Fabian Gieseke <fabian.gieseke@di.ku.dk>
* License: GPL v2
*
*/
#ifndef INCLUDE_FLOAT_H_
#define INCLUDE_FLOAT_H_
Expand Down
6 changes: 4 additions & 2 deletions bufferkdtree/src/include/opencl.h
@@ -1,8 +1,10 @@
/*
* opencl.h
*
* Created on: 18.08.2014
* Author: Fabian Gieseke
* Copyright (C) 2013-2016 Fabian Gieseke <fabian.gieseke@di.ku.dk>
* 2013 Justin Heinermann <justin.heinermann@uni-oldenburg.de>
* License: GPL v2
*
*/

#ifndef INCLUDE_OPENCL_H_
Expand Down
4 changes: 4 additions & 0 deletions bufferkdtree/src/include/timing.h
@@ -1,5 +1,9 @@
/*
* timing.h
*
* Copyright (C) 2013-2016 Fabian Gieseke <fabian.gieseke@di.ku.dk>
* License: GPL v2
*
*/
#ifndef INCLUDE_TIMING_H_
#define INCLUDE_TIMING_H_
Expand Down
5 changes: 5 additions & 0 deletions bufferkdtree/src/include/util.h
@@ -1,5 +1,10 @@
/*
* util.h
*
* Copyright (C) 2013-2016 Fabian Gieseke <fabian.gieseke@di.ku.dk>
* 1976 Niklaus Wirth
* License: GPL v2
*
*/
#ifndef INCLUDE_UTIL_H_
#define INCLUDE_UTIL_H_
Expand Down
6 changes: 5 additions & 1 deletion bufferkdtree/src/neighbors/brute/base.c
@@ -1,5 +1,9 @@
/*
/*
* brute.c
*
* Copyright (C) 2013-2016 Fabian Gieseke <fabian.gieseke@di.ku.dk>
* License: GPL v2
*
*/
#include "include/base.h"
#include "include/util.h"
Expand Down
6 changes: 5 additions & 1 deletion bufferkdtree/src/neighbors/brute/cpu.c
@@ -1,5 +1,9 @@
/*
/*
* cpu.c
*
* Copyright (C) 2013-2016 Fabian Gieseke <fabian.gieseke@di.ku.dk>
* License: GPL v2
*
*/

#include "include/cpu.h"
Expand Down
6 changes: 5 additions & 1 deletion bufferkdtree/src/neighbors/brute/gpu_opencl.c
@@ -1,5 +1,9 @@
/*
/*
* gpu_opencl.c
*
* Copyright (C) 2013-2016 Fabian Gieseke <fabian.gieseke@di.ku.dk>
* License: GPL v2
*
*/

#include "include/gpu_opencl.h"
Expand Down
6 changes: 5 additions & 1 deletion bufferkdtree/src/neighbors/brute/include/base.h
@@ -1,5 +1,9 @@
/*
/*
* brute.h
*
* Copyright (C) 2013-2016 Fabian Gieseke <fabian.gieseke@di.ku.dk>
* License: GPL v2
*
*/
#ifndef BRUTE_INCLUDE_BASE_H_
#define BRUTE_INCLUDE_BASE_H_
Expand Down
6 changes: 5 additions & 1 deletion bufferkdtree/src/neighbors/brute/include/cpu.h
@@ -1,5 +1,9 @@
/*
/*
* cpu.h
*
* Copyright (C) 2013-2016 Fabian Gieseke <fabian.gieseke@di.ku.dk>
* License: GPL v2
*
*/

#ifndef BRUTE_INCLUDE_CPU_H_
Expand Down
6 changes: 5 additions & 1 deletion bufferkdtree/src/neighbors/brute/include/global.h
@@ -1,5 +1,9 @@
/*
/*
* global.h
*
* Copyright (C) 2013-2016 Fabian Gieseke <fabian.gieseke@di.ku.dk>
* License: GPL v2
*
*/
#ifndef BRUTE_INCLUDE_GLOBAL_H_
#define BRUTE_INCLUDE_GLOBAL_H_
Expand Down
6 changes: 5 additions & 1 deletion bufferkdtree/src/neighbors/brute/include/gpu_opencl.h
@@ -1,5 +1,9 @@
/*
/*
* gpu_opencl.h
*
* Copyright (C) 2013-2016 Fabian Gieseke <fabian.gieseke@di.ku.dk>
* License: GPL v2
*
*/
#ifndef BRUTE_INCLUDE_GPU_OPENCL_H_
#define BRUTE_INCLUDE_GPU_OPENCL_H_
Expand Down
6 changes: 5 additions & 1 deletion bufferkdtree/src/neighbors/brute/include/util.h
@@ -1,5 +1,9 @@
/*
/*
* util.h
*
* Copyright (C) 2013-2016 Fabian Gieseke <fabian.gieseke@di.ku.dk>
* License: GPL v2
*
*/
#ifndef BRUTE_INCLUDE_UTIL_H_
#define BRUTE_INCLUDE_UTIL_H_
Expand Down
8 changes: 8 additions & 0 deletions bufferkdtree/src/neighbors/brute/kernels/opencl/brute.cl
@@ -1,3 +1,11 @@
/*
* brute.cl
*
* Copyright (C) 2013-2016 Fabian Gieseke <fabian.gieseke@di.ku.dk>
* License: GPL v2
*
*/

#if USE_DOUBLE > 0
#pragma OPENCL EXTENSION cl_khr_fp64: enable
#define FLOAT_TYPE double
Expand Down
6 changes: 5 additions & 1 deletion bufferkdtree/src/neighbors/brute/util.c
@@ -1,5 +1,9 @@
/*
/*
* util.c
*
* Copyright (C) 2013-2016 Fabian Gieseke <fabian.gieseke@di.ku.dk>
* License: GPL v2
*
*/

#include "include/util.h"
Expand Down
8 changes: 6 additions & 2 deletions bufferkdtree/src/neighbors/buffer_kdtree/base.c
@@ -1,5 +1,9 @@
/*
* bufferkdtree.c
/*
* base.c
*
* Copyright (C) 2013-2016 Fabian Gieseke <fabian.gieseke@di.ku.dk>
* License: GPL v2
*
*/

#include "include/base.h"
Expand Down
6 changes: 5 additions & 1 deletion bufferkdtree/src/neighbors/buffer_kdtree/cpu.c
@@ -1,5 +1,9 @@
/*
/*
* cpu.c
*
* Copyright (C) 2013-2016 Fabian Gieseke <fabian.gieseke@di.ku.dk>
* License: GPL v2
*
*/

#include "include/cpu.h"
Expand Down
10 changes: 8 additions & 2 deletions bufferkdtree/src/neighbors/buffer_kdtree/gpu_opencl.c
@@ -1,5 +1,11 @@
/*
* gpu.c
/*
* gpu_opencl.c
*
* Copyright (C) 2013-2016 Fabian Gieseke <fabian.gieseke@di.ku.dk>
* 2013-2016 Cosmin Oancea <cosmin.oancea@di.ku.dk>
* 2013 Justin Heinermann <justin.heinermann@uni-oldenburg.de>
* License: GPL v2
*
*/

#include "include/gpu_opencl.h"
Expand Down

0 comments on commit 00a7f0f

Please sign in to comment.