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
a8f04bcc
Commit
a8f04bcc
authored
Mar 28, 2022
by
Julien Jerphanion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify Minimal Reproducible Example bis
parent
200c7252
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
kdtree.pyx
kdtree.pyx
+8
-6
No files found.
kdtree.pyx
View file @
a8f04bcc
...
...
@@ -23,7 +23,9 @@ cdef extern from "<sys/syscall.h>" nogil:
# TODO (jjerphan): integrate this where needed once the
# compilation problem with Cython has been resolved
cdef
void
prange_workaround
(
# TODO(jjerphan): debug without using any cypclass instances.
cpdef
void
prange_workaround
(
KDTree
tree
,
I_t
n_query
,
I_t
num_threads
,
...
...
@@ -51,11 +53,11 @@ cdef cypclass KDTree:
self
,
):
# Recursively building the tree here
printf
(
"Scheduler: starting
\
n
"
)
cdef
lock
Scheduler
scheduler
=
Scheduler
(
omp_get_max_threads
())
printf
(
"Scheduler: started
\
n
"
)
scheduler
.
finish
()
printf
(
"Scheduler:
finished
\
n
"
)
#
printf("Scheduler: starting\n")
#
cdef lock Scheduler scheduler = Scheduler(omp_get_max_threads())
#
printf("Scheduler: started\n")
#
scheduler.finish()
printf
(
"Scheduler:
None
\
n
"
)
void
query
(
self
,
np
.
ndarray
query_points
,
# IN
...
...
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