Skip to content

Commit 90472ff

Browse files
committed
more
1 parent 78bb2df commit 90472ff

File tree

4 files changed

+14
-12
lines changed

4 files changed

+14
-12
lines changed

.github/workflows/r.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ jobs:
1717
#sudo apt-get -y upgrade
1818
sudo apt-get -y install libcurl4-openssl-dev r-base-dev
1919
sudo Rscript -e "install.packages(c('Rcpp', 'tinytest'))"
20-
- name: Test and check R
20+
- name: Check R
21+
run: |
22+
sudo R CMD INSTALL .
23+
sudo Rscript -e 'source(".devel/tinytest.R")'
24+
25+
- name: Check R
2126
run: |
2227
#sudo make r-check
2328
cd .. && sudo R CMD build quitefastmst && sudo R_DEFAULT_INTERNET_TIMEOUT=240 _R_CHECK_CRAN_INCOMING_REMOTE_=FALSE _R_CHECK_FORCE_SUGGESTS_=0 R CMD check `ls -t quitefastmst*.tar.gz | head -1` --as-cran --no-manual

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@ from sources:
6767
CPPFLAGS="-O3 -march=native" pip3 install quitefastmst --force --no-binary="quitefastmst"
6868
```
6969

70-
🚧 TO DO (help needed): How to enable OpenMP support on macOS/Darwin?
71-
72-
🚧 TO DO (help needed): How to enable OpenMP support on Windows?
70+
🚧 TO DO (help needed): How to enable OpenMP support on macOS/Darwin in `setup.py`?
7371

7472

7573

setup.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
quitefastmst Pyhon Package
2+
quitefastmst Python Package
33
"""
44

55
# ############################################################################ #
@@ -77,11 +77,10 @@ def build_extensions(self):
7777
e.extra_link_args += ['-openmp']
7878
elif sys.platform == "darwin": # and 'openmp' in os.getenv('CPPFLAGS', ''):
7979
# https://github.com/scikit-learn/scikit-learn/blob/d640b7fc61ce716af9d113a7c92c953c1ec3e36f/sklearn/_build_utils/openmp_helpers.py
80-
# -fopenmp can't be passed as compile flag when using Apple-clang.
80+
# says: "-fopenmp can't be passed as compile flag when using Apple-clang.
8181
# OpenMP support has to be enabled during preprocessing.
82-
#
8382
# For example, our macOS wheel build jobs use the following environment
84-
# variables to build with Apple-clang and the brew installed "libomp":
83+
# variables to build with Apple-clang and the brew installed "libomp":"
8584
#
8685
# export CPPFLAGS="$CPPFLAGS -Xpreprocessor -fopenmp"
8786
# export CFLAGS="$CFLAGS -I/usr/local/opt/libomp/include"

src/knn_euclid_kdtree.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,29 +181,29 @@ template void Cknn2_euclid_kdtree<float>(
181181
const float* Y, const Py_ssize_t m,
182182
const Py_ssize_t d, const Py_ssize_t k,
183183
float* nn_dist, Py_ssize_t* nn_ind,
184-
Py_ssize_t max_leaf_size=32, bool squared, bool verbose
184+
Py_ssize_t max_leaf_size, bool squared, bool verbose
185185
);
186186

187187
template void Cknn2_euclid_kdtree<double>(
188188
double* X, const Py_ssize_t n,
189189
const double* Y, const Py_ssize_t m,
190190
const Py_ssize_t d, const Py_ssize_t k,
191191
double* nn_dist, Py_ssize_t* nn_ind,
192-
Py_ssize_t max_leaf_size=32, bool squared, bool verbose
192+
Py_ssize_t max_leaf_size, bool squared, bool verbose
193193
);
194194

195195

196196
template void Cknn1_euclid_kdtree<float>(
197197
float* X, const Py_ssize_t n,
198198
const Py_ssize_t d, const Py_ssize_t k,
199199
float* nn_dist, Py_ssize_t* nn_ind,
200-
Py_ssize_t max_leaf_size=32, bool squared, bool verbose
200+
Py_ssize_t max_leaf_size, bool squared, bool verbose
201201
);
202202

203203

204204
template void Cknn1_euclid_kdtree<double>(
205205
double* X, const Py_ssize_t n,
206206
const Py_ssize_t d, const Py_ssize_t k,
207207
double* nn_dist, Py_ssize_t* nn_ind,
208-
Py_ssize_t max_leaf_size=32, bool squared, bool verbose
208+
Py_ssize_t max_leaf_size, bool squared, bool verbose
209209
);

0 commit comments

Comments
 (0)