Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
kdtree
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cython-plus
kdtree
Commits
1ff05f71
Commit
1ff05f71
authored
Mar 28, 2022
by
Julien Jerphanion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DEBUG: Test compilers change
parent
6e15f39f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
kdtree.pyx
kdtree.pyx
+4
-3
setup.py
setup.py
+2
-2
No files found.
kdtree.pyx
View file @
1ff05f71
...
...
@@ -8,7 +8,7 @@ np.import_array()
from
runtime.runtime
cimport
BatchMailBox
,
NullResult
,
Scheduler
,
WaitResult
from
libc.math
cimport
log2
,
fmax
,
fmin
,
fabs
from
libc.stdio
cimport
printf
from
libc.stdlib
cimport
malloc
,
free
from
libc.stdlib
cimport
malloc
,
free
,
exit
from
openmp
cimport
omp_get_max_threads
from
cython.operator
cimport
dereference
as
deref
from
cython.parallel
import
prange
...
...
@@ -539,9 +539,10 @@ cdef void prange_workaround(
printf
(
"i, tid: %d
\
n
"
,
syscall
(
SYS_gettid
))
printf
(
"%d / %d: start
\
n
"
,
i
,
n_query
)
rdist_lower_bound
=
tree
.
min_rdist
(
0
,
_query_points_ptr
+
i
*
n_features
)
tree
.
_query_single_depthfirst
(
0
,
_query_points_ptr
,
i
,
heaps
,
rdist_lower_bound
)
#
tree._query_single_depthfirst(0, _query_points_ptr, i, heaps, rdist_lower_bound)
printf
(
"%d / %d: end
\
n
"
,
i
,
n_query
)
# printf("end prange\n")
printf
(
"end prange
\
n
"
)
exit
(
0
)
cdef
cypclass
KDTree
:
...
...
setup.py
View file @
1ff05f71
from
distutils.core
import
setup
from
distutils.extension
import
Extension
from
setuptools.command.build_ext
import
build_ext
from
setuptools
import
Extension
,
setup
import
numpy
from
Cython.Build
import
cythonize
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment