Commit a8f04bcc authored by Julien Jerphanion's avatar Julien Jerphanion

Simplify Minimal Reproducible Example bis

parent 200c7252
...@@ -23,7 +23,9 @@ cdef extern from "<sys/syscall.h>" nogil: ...@@ -23,7 +23,9 @@ cdef extern from "<sys/syscall.h>" nogil:
# TODO (jjerphan): integrate this where needed once the # TODO (jjerphan): integrate this where needed once the
# compilation problem with Cython has been resolved # 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, KDTree tree,
I_t n_query, I_t n_query,
I_t num_threads, I_t num_threads,
...@@ -51,11 +53,11 @@ cdef cypclass KDTree: ...@@ -51,11 +53,11 @@ cdef cypclass KDTree:
self, self,
): ):
# Recursively building the tree here # Recursively building the tree here
printf("Scheduler: starting\n") # printf("Scheduler: starting\n")
cdef lock Scheduler scheduler = Scheduler(omp_get_max_threads()) # cdef lock Scheduler scheduler = Scheduler(omp_get_max_threads())
printf("Scheduler: started\n") # printf("Scheduler: started\n")
scheduler.finish() # scheduler.finish()
printf("Scheduler: finished\n") printf("Scheduler: None\n")
void query(self, void query(self,
np.ndarray query_points, # IN np.ndarray query_points, # IN
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment