Commit 1ff05f71 authored by Julien Jerphanion's avatar Julien Jerphanion

DEBUG: Test compilers change

parent 6e15f39f
...@@ -8,7 +8,7 @@ np.import_array() ...@@ -8,7 +8,7 @@ np.import_array()
from runtime.runtime cimport BatchMailBox, NullResult, Scheduler, WaitResult from runtime.runtime cimport BatchMailBox, NullResult, Scheduler, WaitResult
from libc.math cimport log2, fmax, fmin, fabs from libc.math cimport log2, fmax, fmin, fabs
from libc.stdio cimport printf 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 openmp cimport omp_get_max_threads
from cython.operator cimport dereference as deref from cython.operator cimport dereference as deref
from cython.parallel import prange from cython.parallel import prange
...@@ -539,9 +539,10 @@ cdef void prange_workaround( ...@@ -539,9 +539,10 @@ cdef void prange_workaround(
printf("i, tid: %d\n", syscall(SYS_gettid)) printf("i, tid: %d\n", syscall(SYS_gettid))
printf("%d / %d: start\n", i, n_query) printf("%d / %d: start\n", i, n_query)
rdist_lower_bound = tree.min_rdist(0, _query_points_ptr + i * n_features) 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("%d / %d: end\n", i, n_query)
# printf("end prange\n") printf("end prange\n")
exit(0)
cdef cypclass KDTree: cdef cypclass KDTree:
......
from distutils.core import setup from setuptools.command.build_ext import build_ext
from distutils.extension import Extension from setuptools import Extension, setup
import numpy import numpy
from Cython.Build import cythonize from Cython.Build import cythonize
......
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