cuBNM 0.0.4__tar.gz → 0.0.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cubnm-0.0.4/src/cubnm.egg-info → cubnm-0.0.5}/PKG-INFO +13 -2
- {cubnm-0.0.4 → cubnm-0.0.5}/README.rst +12 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/cubnm/bnm.cuh +1 -19
- {cubnm-0.0.4 → cubnm-0.0.5}/include/cubnm/includes.cuh +2 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/cubnm/models/base.hpp +53 -28
- {cubnm-0.0.4 → cubnm-0.0.5}/include/cubnm/models/boilerplate.hpp +2 -2
- {cubnm-0.0.4 → cubnm-0.0.5}/include/cubnm/models/bw.hpp +1 -1
- {cubnm-0.0.4 → cubnm-0.0.5}/include/cubnm/models/rww.hpp +4 -4
- {cubnm-0.0.4 → cubnm-0.0.5}/pyproject.toml +0 -2
- {cubnm-0.0.4 → cubnm-0.0.5}/setup.py +12 -5
- {cubnm-0.0.4 → cubnm-0.0.5}/src/cubnm/_version.py +3 -3
- {cubnm-0.0.4 → cubnm-0.0.5}/src/cubnm/cli.py +27 -5
- {cubnm-0.0.4 → cubnm-0.0.5}/src/cubnm/cli_parser.py +24 -13
- cubnm-0.0.5/src/cubnm/data/ctx_parc-schaefer-100_desc-bold.txt +100 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/src/cubnm/datasets.py +18 -14
- {cubnm-0.0.4 → cubnm-0.0.5}/src/cubnm/optimize.py +331 -51
- {cubnm-0.0.4 → cubnm-0.0.5}/src/cubnm/sim.py +440 -69
- cubnm-0.0.5/src/cubnm/utils.py +238 -0
- {cubnm-0.0.4 → cubnm-0.0.5/src/cubnm.egg-info}/PKG-INFO +13 -2
- {cubnm-0.0.4 → cubnm-0.0.5}/src/cubnm.egg-info/SOURCES.txt +1 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/src/cubnm.egg-info/requires.txt +0 -1
- {cubnm-0.0.4 → cubnm-0.0.5}/src/ext/bnm.cpp +96 -118
- {cubnm-0.0.4 → cubnm-0.0.5}/src/ext/bnm.cu +563 -549
- {cubnm-0.0.4 → cubnm-0.0.5}/src/ext/core.cpp +49 -35
- {cubnm-0.0.4 → cubnm-0.0.5}/src/ext/models/bw.cpp +2 -2
- {cubnm-0.0.4 → cubnm-0.0.5}/src/ext/models/kuramoto.cpp +2 -2
- {cubnm-0.0.4 → cubnm-0.0.5}/src/ext/models/rww.cpp +68 -71
- {cubnm-0.0.4 → cubnm-0.0.5}/src/ext/models/rww.cu +5 -5
- {cubnm-0.0.4 → cubnm-0.0.5}/src/ext/models/rwwex.cpp +2 -2
- {cubnm-0.0.4 → cubnm-0.0.5}/src/ext/utils.cpp +3 -3
- cubnm-0.0.4/src/cubnm/utils.py +0 -85
- {cubnm-0.0.4 → cubnm-0.0.5}/LICENSE +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/MANIFEST.in +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/cubnm/bnm.hpp +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/cubnm/defines.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/cubnm/fc.cuh +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/cubnm/models/base.cuh +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/cubnm/models/bw.cuh +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/cubnm/models/kuramoto.cuh +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/cubnm/models/kuramoto.hpp +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/cubnm/models/rww.cuh +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/cubnm/models/rww_fic.hpp +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/cubnm/models/rwwex.cuh +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/cubnm/models/rwwex.hpp +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/cubnm/utils.cuh +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/cubnm/utils.hpp +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_blas.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_blas_types.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_block.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_block_char.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_block_complex_double.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_block_complex_float.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_block_complex_long_double.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_block_double.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_block_float.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_block_int.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_block_long.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_block_long_double.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_block_short.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_block_uchar.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_block_uint.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_block_ulong.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_block_ushort.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_bspline.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_bst.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_bst_avl.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_bst_rb.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_bst_types.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_cblas.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_cdf.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_chebyshev.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_check_range.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_combination.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_complex.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_complex_math.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_const.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_const_cgs.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_const_cgsm.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_const_mks.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_const_mksa.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_const_num.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_deriv.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_dft_complex.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_dft_complex_float.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_dht.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_diff.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_eigen.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_errno.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_fft.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_fft_complex.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_fft_complex_float.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_fft_halfcomplex.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_fft_halfcomplex_float.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_fft_real.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_fft_real_float.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_filter.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_fit.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_heapsort.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_histogram.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_histogram2d.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_ieee_utils.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_inline.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_integration.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_interp.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_interp2d.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_linalg.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_machine.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_math.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_matrix.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_matrix_char.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_matrix_complex_double.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_matrix_complex_float.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_matrix_complex_long_double.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_matrix_double.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_matrix_float.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_matrix_int.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_matrix_long.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_matrix_long_double.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_matrix_short.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_matrix_uchar.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_matrix_uint.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_matrix_ulong.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_matrix_ushort.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_message.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_min.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_minmax.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_mode.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_monte.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_monte_miser.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_monte_plain.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_monte_vegas.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_movstat.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_multifit.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_multifit_nlin.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_multifit_nlinear.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_multilarge.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_multilarge_nlinear.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_multimin.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_multiroots.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_multiset.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_nan.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_ntuple.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_odeiv.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_odeiv2.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permutation.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_char.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_complex_double.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_complex_float.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_complex_long_double.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_double.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_float.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_int.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_long.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_long_double.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_matrix.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_matrix_char.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_matrix_complex_double.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_matrix_complex_float.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_matrix_complex_long_double.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_matrix_double.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_matrix_float.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_matrix_int.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_matrix_long.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_matrix_long_double.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_matrix_short.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_matrix_uchar.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_matrix_uint.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_matrix_ulong.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_matrix_ushort.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_short.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_uchar.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_uint.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_ulong.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_ushort.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_vector.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_vector_char.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_vector_complex_double.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_vector_complex_float.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_vector_complex_long_double.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_vector_double.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_vector_float.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_vector_int.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_vector_long.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_vector_long_double.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_vector_short.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_vector_uchar.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_vector_uint.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_vector_ulong.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_permute_vector_ushort.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_poly.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_pow_int.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_precision.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_qrng.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_randist.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_rng.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_roots.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_rstat.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sf.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sf_airy.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sf_bessel.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sf_clausen.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sf_coulomb.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sf_coupling.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sf_dawson.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sf_debye.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sf_dilog.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sf_elementary.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sf_ellint.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sf_elljac.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sf_erf.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sf_exp.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sf_expint.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sf_fermi_dirac.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sf_gamma.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sf_gegenbauer.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sf_hermite.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sf_hyperg.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sf_laguerre.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sf_lambert.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sf_legendre.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sf_log.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sf_mathieu.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sf_pow_int.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sf_psi.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sf_result.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sf_sincos_pi.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sf_synchrotron.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sf_transport.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sf_trig.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sf_zeta.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_siman.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sort.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sort_char.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sort_double.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sort_float.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sort_int.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sort_long.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sort_long_double.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sort_short.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sort_uchar.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sort_uint.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sort_ulong.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sort_ushort.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sort_vector.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sort_vector_char.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sort_vector_double.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sort_vector_float.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sort_vector_int.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sort_vector_long.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sort_vector_long_double.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sort_vector_short.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sort_vector_uchar.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sort_vector_uint.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sort_vector_ulong.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sort_vector_ushort.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_spblas.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_specfunc.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_splinalg.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_spline.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_spline2d.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_spmatrix.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_spmatrix_char.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_spmatrix_complex_double.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_spmatrix_complex_float.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_spmatrix_complex_long_double.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_spmatrix_double.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_spmatrix_float.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_spmatrix_int.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_spmatrix_long.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_spmatrix_long_double.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_spmatrix_short.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_spmatrix_uchar.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_spmatrix_uint.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_spmatrix_ulong.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_spmatrix_ushort.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_statistics.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_statistics_char.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_statistics_double.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_statistics_float.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_statistics_int.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_statistics_long.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_statistics_long_double.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_statistics_short.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_statistics_uchar.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_statistics_uint.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_statistics_ulong.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_statistics_ushort.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sum.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_sys.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_test.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_types.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_vector.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_vector_char.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_vector_complex.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_vector_complex_double.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_vector_complex_float.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_vector_complex_long_double.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_vector_double.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_vector_float.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_vector_int.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_vector_long.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_vector_long_double.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_vector_short.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_vector_uchar.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_vector_uint.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_vector_ulong.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_vector_ushort.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_version.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_wavelet.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/gsl_wavelet2d.h +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/include/gsl/test_source.c +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/setup.cfg +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/src/cubnm/__init__.py +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/src/cubnm/_core.py +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/src/cubnm/_setup_opts.py +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/src/cubnm/data/ctx_parc-aparc_approach-median_mean001_desc-length.txt +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/src/cubnm/data/ctx_parc-aparc_approach-median_mean001_desc-strength.txt +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/src/cubnm/data/ctx_parc-schaefer-100_approach-median_mean001_desc-length.txt +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/src/cubnm/data/ctx_parc-schaefer-100_approach-median_mean001_desc-strength.txt +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/src/cubnm/data/ctx_parc-schaefer-100_desc-fcgradient01_zscore.txt +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/src/cubnm/data/ctx_parc-schaefer-100_desc-gabaa_zscore.txt +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/src/cubnm/data/ctx_parc-schaefer-100_desc-genepc1_zscore.txt +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/src/cubnm/data/ctx_parc-schaefer-100_desc-myelinmap_zscore.txt +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/src/cubnm/data/ctx_parc-schaefer-100_desc-nmda_zscore.txt +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/src/cubnm/data/ctx_parc-schaefer-100_desc-thickness_zscore.txt +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/src/cubnm/data/ctx_parc-schaefer-100_desc-yeo7.txt +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/src/cubnm/data/ctx_parc-schaefer-100_hemi-LR_desc-FCDtril.txt +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/src/cubnm/data/ctx_parc-schaefer-100_hemi-LR_desc-FCtril.txt +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/src/cubnm/data/ctx_parc-schaefer-100_hemi-LR_exc-inter_desc-FCDtril.txt +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/src/cubnm/data/ctx_parc-schaefer-100_hemi-LR_exc-inter_desc-FCtril.txt +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/src/cubnm/data/ctx_parc-schaefer-200_approach-median_mean001_desc-length.txt +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/src/cubnm/data/ctx_parc-schaefer-200_approach-median_mean001_desc-strength.txt +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/src/cubnm/data/ctx_parc-schaefer-400_approach-median_mean001_desc-length.txt +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/src/cubnm/data/ctx_parc-schaefer-400_approach-median_mean001_desc-strength.txt +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/src/cubnm/data/ctx_parc-schaefer-600_approach-median_mean001_desc-length.txt +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/src/cubnm/data/ctx_parc-schaefer-600_approach-median_mean001_desc-strength.txt +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/src/cubnm.egg-info/dependency_links.txt +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/src/cubnm.egg-info/entry_points.txt +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/src/cubnm.egg-info/top_level.txt +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/src/ext/fc.cpp +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/src/ext/fc.cu +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/src/ext/models/base.cpp +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/src/ext/models/bw.cu +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/src/ext/models/kuramoto.cu +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/src/ext/models/rww_fic.cpp +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/src/ext/models/rwwex.cu +0 -0
- {cubnm-0.0.4 → cubnm-0.0.5}/src/ext/utils.cu +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cubnm
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.5
|
|
4
4
|
Summary: A toolbox for biophysical network modeling on GPUs
|
|
5
5
|
Author-email: Amin Saberi <amnsbr@gmail.com>
|
|
6
6
|
License: BSD 3-Clause License
|
|
@@ -47,7 +47,6 @@ Requires-Python: >=3.7
|
|
|
47
47
|
Description-Content-Type: text/x-rst
|
|
48
48
|
License-File: LICENSE
|
|
49
49
|
Requires-Dist: numpy<2,>=1.20
|
|
50
|
-
Requires-Dist: GPUtil==1.4
|
|
51
50
|
Requires-Dist: scipy
|
|
52
51
|
Requires-Dist: pandas
|
|
53
52
|
Requires-Dist: pymoo==0.6
|
|
@@ -58,6 +57,9 @@ Requires-Dist: tabulate
|
|
|
58
57
|
:align: center
|
|
59
58
|
:width: 350px
|
|
60
59
|
|
|
60
|
+
.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.12097797.svg
|
|
61
|
+
:target: https://zenodo.org/doi/10.5281/zenodo.12097797
|
|
62
|
+
|
|
61
63
|
.. image:: https://img.shields.io/pypi/v/cubnm
|
|
62
64
|
:target: https://pypi.org/project/cubnm/
|
|
63
65
|
|
|
@@ -99,6 +101,15 @@ provided optimization algorithms. Regional parameters can be homogeneous or vary
|
|
|
99
101
|
across nodes based on a parameterized combination of fixed maps or independent
|
|
100
102
|
free parameters for each node or group of nodes.
|
|
101
103
|
|
|
104
|
+
GPU parallelization enables massive scaling of the simulations into higher number of
|
|
105
|
+
simulations and nodes. Below you can see how computing time varies
|
|
106
|
+
as a funciton of number of simulations and nodes on GPUs versus CPUs. For example,
|
|
107
|
+
running 2^17 simulations (duration: 60s, nodes: 100) would take 15 days on a single
|
|
108
|
+
CPU core, but only 19 minutes on an A100 GPU:
|
|
109
|
+
|
|
110
|
+
.. image:: https://raw.githubusercontent.com/amnsbr/cubnm/main/docs/_static/scaling.png
|
|
111
|
+
:alt: Scaling plots
|
|
112
|
+
|
|
102
113
|
GPU usage is the primary focus of the toolbox but it also supports running the
|
|
103
114
|
simulations on single or multiple cores of CPU. CPUs will be used if no GPUs are
|
|
104
115
|
detected or if requested by the user.
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
:align: center
|
|
3
3
|
:width: 350px
|
|
4
4
|
|
|
5
|
+
.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.12097797.svg
|
|
6
|
+
:target: https://zenodo.org/doi/10.5281/zenodo.12097797
|
|
7
|
+
|
|
5
8
|
.. image:: https://img.shields.io/pypi/v/cubnm
|
|
6
9
|
:target: https://pypi.org/project/cubnm/
|
|
7
10
|
|
|
@@ -43,6 +46,15 @@ provided optimization algorithms. Regional parameters can be homogeneous or vary
|
|
|
43
46
|
across nodes based on a parameterized combination of fixed maps or independent
|
|
44
47
|
free parameters for each node or group of nodes.
|
|
45
48
|
|
|
49
|
+
GPU parallelization enables massive scaling of the simulations into higher number of
|
|
50
|
+
simulations and nodes. Below you can see how computing time varies
|
|
51
|
+
as a funciton of number of simulations and nodes on GPUs versus CPUs. For example,
|
|
52
|
+
running 2^17 simulations (duration: 60s, nodes: 100) would take 15 days on a single
|
|
53
|
+
CPU core, but only 19 minutes on an A100 GPU:
|
|
54
|
+
|
|
55
|
+
.. image:: https://raw.githubusercontent.com/amnsbr/cubnm/main/docs/_static/scaling.png
|
|
56
|
+
:alt: Scaling plots
|
|
57
|
+
|
|
46
58
|
GPU usage is the primary focus of the toolbox but it also supports running the
|
|
47
59
|
simulations on single or multiple cores of CPU. CPUs will be used if no GPUs are
|
|
48
60
|
detected or if requested by the user.
|
|
@@ -26,24 +26,6 @@ __device__ void global_input_osc(
|
|
|
26
26
|
u_real** conn_state_var_hist, u_real* conn_state_var_1
|
|
27
27
|
);
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
__global__ void bnm(
|
|
31
|
-
Model* model,
|
|
32
|
-
u_real **BOLD,
|
|
33
|
-
u_real ***state_vars_out,
|
|
34
|
-
int **global_out_int,
|
|
35
|
-
bool **global_out_bool,
|
|
36
|
-
int n_vols_remove,
|
|
37
|
-
u_real *SC, u_real **global_params, u_real **regional_params,
|
|
38
|
-
u_real **conn_state_var_hist, int **delay, int max_delay,
|
|
39
|
-
int N_SIMS, int nodes, int BOLD_TR, int time_steps,
|
|
40
|
-
u_real *noise,
|
|
41
|
-
bool extended_output,
|
|
42
|
-
#ifdef NOISE_SEGMENT
|
|
43
|
-
int *shuffled_nodes, int *shuffled_ts,
|
|
44
|
-
int noise_time_steps, int noise_repeats,
|
|
45
|
-
#endif
|
|
46
|
-
int corr_len
|
|
47
|
-
);
|
|
29
|
+
cudaDeviceProp prop;
|
|
48
30
|
|
|
49
31
|
#endif
|
|
@@ -7,7 +7,8 @@ class BaseModel {
|
|
|
7
7
|
public:
|
|
8
8
|
BaseModel(
|
|
9
9
|
int nodes, int N_SIMS, int N_SCs, int BOLD_TR, int states_sampling,
|
|
10
|
-
int time_steps, bool do_delay, int
|
|
10
|
+
int time_steps, bool do_delay, int rand_seed,
|
|
11
|
+
u_real dt, u_real bw_dt
|
|
11
12
|
) : nodes{nodes},
|
|
12
13
|
N_SIMS{N_SIMS},
|
|
13
14
|
N_SCs{N_SCs},
|
|
@@ -15,11 +16,12 @@ public:
|
|
|
15
16
|
states_sampling{states_sampling},
|
|
16
17
|
time_steps{time_steps},
|
|
17
18
|
do_delay{do_delay},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
rand_seed{rand_seed},
|
|
20
|
+
dt{dt}, // in msec
|
|
21
|
+
bw_dt{bw_dt / 1000.0} // input is in msec, but bw_dt is in seconds in the code
|
|
21
22
|
{
|
|
22
23
|
set_bold_states_len();
|
|
24
|
+
set_loop_iters();
|
|
23
25
|
};
|
|
24
26
|
// create virtual destructor and free
|
|
25
27
|
// the memory allocated for the arrays
|
|
@@ -29,7 +31,8 @@ public:
|
|
|
29
31
|
|
|
30
32
|
virtual void update(
|
|
31
33
|
int nodes, int N_SIMS, int N_SCs, int BOLD_TR, int states_sampling,
|
|
32
|
-
int time_steps, bool do_delay, int
|
|
34
|
+
int time_steps, bool do_delay, int rand_seed,
|
|
35
|
+
u_real dt, u_real bw_dt
|
|
33
36
|
) {
|
|
34
37
|
this->nodes = nodes;
|
|
35
38
|
this->N_SIMS = N_SIMS;
|
|
@@ -38,10 +41,11 @@ public:
|
|
|
38
41
|
this->states_sampling = states_sampling;
|
|
39
42
|
this->time_steps = time_steps;
|
|
40
43
|
this->do_delay = do_delay;
|
|
41
|
-
this->window_size = window_size;
|
|
42
|
-
this->window_step = window_step;
|
|
43
44
|
this->rand_seed = rand_seed;
|
|
45
|
+
this->dt = dt; // msec
|
|
46
|
+
this->bw_dt = bw_dt / 1000.0; // input is in msec, but bw_dt is in seconds in the code
|
|
44
47
|
this->set_bold_states_len();
|
|
48
|
+
this->set_loop_iters();
|
|
45
49
|
}
|
|
46
50
|
|
|
47
51
|
virtual void set_bold_states_len() {
|
|
@@ -49,23 +53,33 @@ public:
|
|
|
49
53
|
// and total matrix size
|
|
50
54
|
bold_len = time_steps / BOLD_TR;
|
|
51
55
|
bold_size = bold_len * nodes;
|
|
56
|
+
BOLD_TR_iters = ((u_real)BOLD_TR / 1000.0) / bw_dt;
|
|
52
57
|
// states samples length and
|
|
53
58
|
// total matrix size
|
|
54
59
|
states_len = time_steps / states_sampling;
|
|
55
60
|
states_size = states_len * nodes;
|
|
61
|
+
states_sampling_iters = ((u_real)states_sampling / 1000.0) / bw_dt;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
virtual void set_loop_iters() {
|
|
65
|
+
// TODO: add checks in Python to make sure they are divisible
|
|
66
|
+
bw_it = ((u_real)time_steps / 1000.0) / bw_dt;
|
|
67
|
+
inner_it = (bw_dt * 1000) / dt;
|
|
56
68
|
}
|
|
57
69
|
|
|
58
70
|
virtual void free_cpu();
|
|
59
71
|
|
|
60
|
-
int nodes{}, N_SIMS{}, N_SCs{}, BOLD_TR{}, states_sampling{}, time_steps{},
|
|
61
|
-
|
|
62
|
-
n_window_pairs{}, bold_len{}, bold_size{}, states_len{}, states_size{},
|
|
63
|
-
n_vols_remove{}, n_states_samples_remove{}, corr_len{},
|
|
64
|
-
noise_size{}, noise_repeats{},
|
|
72
|
+
int nodes{0}, N_SIMS{0}, N_SCs{0}, BOLD_TR{0}, states_sampling{0}, time_steps{0},
|
|
73
|
+
rand_seed{0}, n_pairs{0}, n_windows{0},
|
|
74
|
+
n_window_pairs{0}, bold_len{0}, bold_size{0}, states_len{0}, states_size{0},
|
|
75
|
+
n_vols_remove{0}, n_states_samples_remove{0}, corr_len{0},
|
|
76
|
+
noise_size{0}, noise_repeats{0}, max_delay{0},
|
|
65
77
|
last_nodes{0}, last_time_steps{0}, last_rand_seed{0},
|
|
66
|
-
last_noise_time_steps{0}
|
|
78
|
+
last_noise_time_steps{0},
|
|
79
|
+
bw_it{0}, inner_it{0}, BOLD_TR_iters{0}, states_sampling_iters{0};
|
|
67
80
|
// TODO: make some short or size_t
|
|
68
|
-
bool cpu_initialized{false}, modifies_params{false}, do_delay{};
|
|
81
|
+
bool cpu_initialized{false}, modifies_params{false}, do_delay{false}, co_launch{false};
|
|
82
|
+
u_real dt{0.1}, bw_dt{0.001};
|
|
69
83
|
|
|
70
84
|
#ifdef _GPU_ENABLED
|
|
71
85
|
virtual void free_gpu();
|
|
@@ -79,6 +93,7 @@ public:
|
|
|
79
93
|
int *window_starts, *window_ends;
|
|
80
94
|
#ifdef NOISE_SEGMENT
|
|
81
95
|
int *shuffled_nodes, *shuffled_ts;
|
|
96
|
+
int noise_bw_it;
|
|
82
97
|
#endif
|
|
83
98
|
#ifdef _GPU_ENABLED
|
|
84
99
|
u_real **BOLD, **mean_bold, **ssd_bold, **fc_trils, **windows_mean_bold, **windows_ssd_bold,
|
|
@@ -89,19 +104,21 @@ public:
|
|
|
89
104
|
#endif
|
|
90
105
|
|
|
91
106
|
struct Config {
|
|
107
|
+
bool verbose{false}; // print simulation info + progress
|
|
108
|
+
bool do_fc{true};
|
|
109
|
+
bool do_fcd{true};
|
|
92
110
|
int bold_remove_s{30};
|
|
93
111
|
bool exc_interhemispheric{true};
|
|
112
|
+
int window_size{10};
|
|
113
|
+
int window_step{2};
|
|
94
114
|
bool drop_edges{true};
|
|
95
|
-
bool sync_msec{false};
|
|
96
115
|
bool ext_out{true};
|
|
97
116
|
bool states_ts{false};
|
|
98
|
-
|
|
99
|
-
int
|
|
100
|
-
bool verbose{false}; // print simulation info + progress
|
|
101
|
-
int progress_interval{500}; // msec; interval for updating progress
|
|
117
|
+
int noise_time_steps{30000}; // msec
|
|
118
|
+
int progress_interval{500}; // msec; real time interval for updating progress
|
|
102
119
|
bool serial{false};
|
|
103
120
|
};
|
|
104
|
-
|
|
121
|
+
|
|
105
122
|
Config base_conf;
|
|
106
123
|
|
|
107
124
|
void print_config() {
|
|
@@ -112,16 +129,18 @@ public:
|
|
|
112
129
|
std::cout << "states_sampling: " << states_sampling << std::endl;
|
|
113
130
|
std::cout << "time_steps: " << time_steps << std::endl;
|
|
114
131
|
std::cout << "do_delay: " << do_delay << std::endl;
|
|
115
|
-
std::cout << "window_size: " << window_size << std::endl;
|
|
116
|
-
std::cout << "window_step: " << window_step << std::endl;
|
|
117
132
|
std::cout << "rand_seed: " << rand_seed << std::endl;
|
|
118
133
|
std::cout << "exc_interhemispheric: " << base_conf.exc_interhemispheric << std::endl;
|
|
119
|
-
std::cout << "sync_msec: " << base_conf.sync_msec << std::endl;
|
|
120
134
|
std::cout << "verbose: " << base_conf.verbose << std::endl;
|
|
121
135
|
std::cout << "progress_interval: " << base_conf.progress_interval << std::endl;
|
|
122
136
|
std::cout << "bold_remove_s: " << base_conf.bold_remove_s << std::endl;
|
|
123
137
|
std::cout << "drop_edges: " << base_conf.drop_edges << std::endl;
|
|
138
|
+
std::cout << "ext_out: " << base_conf.ext_out << std::endl;
|
|
139
|
+
std::cout << "do_fc: " << base_conf.do_fc << std::endl;
|
|
140
|
+
std::cout << "do_fcd: " << base_conf.do_fcd << std::endl;
|
|
141
|
+
std::cout << "states_ts: " << base_conf.states_ts << std::endl;
|
|
124
142
|
std::cout << "noise_time_steps: " << base_conf.noise_time_steps << std::endl;
|
|
143
|
+
std::cout << "serial: " << base_conf.serial << std::endl;
|
|
125
144
|
}
|
|
126
145
|
|
|
127
146
|
virtual void set_conf(std::map<std::string, std::string> config_map) {
|
|
@@ -250,14 +269,20 @@ protected:
|
|
|
250
269
|
// Note: some of the base_conf members (ext_out, states_ts)
|
|
251
270
|
// are set directly based on arguments passed from Python
|
|
252
271
|
for (const auto& pair : config_map) {
|
|
253
|
-
if (pair.first == "
|
|
254
|
-
this->base_conf.exc_interhemispheric = (bool)std::stoi(pair.second);
|
|
255
|
-
} else if (pair.first == "sync_msec") {
|
|
256
|
-
this->base_conf.sync_msec = (bool)std::stoi(pair.second);
|
|
257
|
-
} else if (pair.first == "verbose") {
|
|
272
|
+
if (pair.first == "verbose") {
|
|
258
273
|
this->base_conf.verbose = (bool)std::stoi(pair.second);
|
|
274
|
+
} else if (pair.first == "do_fc") {
|
|
275
|
+
this->base_conf.do_fc = (bool)std::stoi(pair.second);
|
|
276
|
+
} else if (pair.first == "do_fcd") {
|
|
277
|
+
this->base_conf.do_fcd = (bool)std::stoi(pair.second);
|
|
259
278
|
} else if (pair.first == "bold_remove_s") {
|
|
260
279
|
this->base_conf.bold_remove_s = std::stoi(pair.second);
|
|
280
|
+
} else if (pair.first == "exc_interhemispheric") {
|
|
281
|
+
this->base_conf.exc_interhemispheric = (bool)std::stoi(pair.second);
|
|
282
|
+
} else if (pair.first == "window_size") {
|
|
283
|
+
this->base_conf.window_size = std::stoi(pair.second);
|
|
284
|
+
} else if (pair.first == "window_step") {
|
|
285
|
+
this->base_conf.window_step = std::stoi(pair.second);
|
|
261
286
|
} else if (pair.first == "drop_edges") {
|
|
262
287
|
this->base_conf.drop_edges = (bool)std::stoi(pair.second);
|
|
263
288
|
} else if (pair.first == "noise_time_steps") {
|
|
@@ -91,7 +91,7 @@ See rWWEx model as a simple example, and rWW as a more complex one.
|
|
|
91
91
|
static constexpr bool is_osc = IS_OSC; \
|
|
92
92
|
static Constants mc; \
|
|
93
93
|
Config conf; \
|
|
94
|
-
static void init_constants(); \
|
|
94
|
+
static void init_constants(u_real dt = 0.1); \
|
|
95
95
|
CUDA_CALLABLE_MEMBER void init( \
|
|
96
96
|
u_real* _state_vars, u_real* _intermediate_vars, \
|
|
97
97
|
u_real* _global_params, u_real* _regional_params, \
|
|
@@ -215,7 +215,7 @@ See rWWEx model as a simple example, and rWW as a more complex one.
|
|
|
215
215
|
static constexpr bool has_post_integration = HAS_POST_INT; \
|
|
216
216
|
static Constants mc; \
|
|
217
217
|
Config conf; \
|
|
218
|
-
static void init_constants(); \
|
|
218
|
+
static void init_constants(u_real dt = 0.1); \
|
|
219
219
|
void h_init( \
|
|
220
220
|
u_real* _state_vars, u_real* _intermediate_vars, \
|
|
221
221
|
u_real* _global_params, u_real* _regional_params, \
|
|
@@ -51,15 +51,15 @@ public:
|
|
|
51
51
|
double I_E_ss;
|
|
52
52
|
double S_I_ss;
|
|
53
53
|
double S_E_ss;
|
|
54
|
-
unsigned int I_SAMPLING_START;
|
|
55
|
-
unsigned int I_SAMPLING_END;
|
|
56
|
-
unsigned int I_SAMPLING_DURATION;
|
|
57
|
-
u_real init_delta;
|
|
58
54
|
};
|
|
59
55
|
struct Config {
|
|
60
56
|
bool do_fic{true};
|
|
61
57
|
int max_fic_trials{5};
|
|
62
58
|
bool fic_verbose{false};
|
|
59
|
+
unsigned int I_SAMPLING_START{1000};
|
|
60
|
+
unsigned int I_SAMPLING_END{10000};
|
|
61
|
+
unsigned int I_SAMPLING_DURATION{I_SAMPLING_END - I_SAMPLING_START + 1};
|
|
62
|
+
u_real init_delta{0.02};
|
|
63
63
|
};
|
|
64
64
|
|
|
65
65
|
// second, use the boilerplate macro to include
|
|
@@ -3,7 +3,6 @@ build-backend = "setuptools.build_meta"
|
|
|
3
3
|
requires = [
|
|
4
4
|
"setuptools",
|
|
5
5
|
"numpy<2,>=1.20",
|
|
6
|
-
"GPUtil==1.4",
|
|
7
6
|
"versioneer[toml]"
|
|
8
7
|
]
|
|
9
8
|
|
|
@@ -12,7 +11,6 @@ name = "cubnm"
|
|
|
12
11
|
license = {file = "LICENSE"}
|
|
13
12
|
dependencies = [
|
|
14
13
|
"numpy<2,>=1.20",
|
|
15
|
-
"GPUtil==1.4",
|
|
16
14
|
"scipy",
|
|
17
15
|
"pandas",
|
|
18
16
|
"pymoo==0.6",
|
|
@@ -5,9 +5,7 @@ import subprocess
|
|
|
5
5
|
import os
|
|
6
6
|
import fnmatch
|
|
7
7
|
import sys
|
|
8
|
-
from pathlib import Path
|
|
9
8
|
import numpy as np
|
|
10
|
-
import GPUtil
|
|
11
9
|
import versioneer
|
|
12
10
|
|
|
13
11
|
PROJECT = os.path.abspath(os.path.dirname(__file__))
|
|
@@ -21,8 +19,17 @@ def find_file(file_name, search_path):
|
|
|
21
19
|
|
|
22
20
|
# detect if there are GPUs
|
|
23
21
|
def has_gpus(method='nvcc'):
|
|
24
|
-
if method == '
|
|
25
|
-
|
|
22
|
+
if method == 'nvidia-smi':
|
|
23
|
+
try:
|
|
24
|
+
output = subprocess.check_output(['nvidia-smi', '-L'])
|
|
25
|
+
output = output.decode('utf-8').strip()
|
|
26
|
+
gpu_list = output.split('\n')
|
|
27
|
+
gpu_count = len(gpu_list)
|
|
28
|
+
return gpu_count>0
|
|
29
|
+
except subprocess.CalledProcessError:
|
|
30
|
+
return False
|
|
31
|
+
except FileNotFoundError:
|
|
32
|
+
return False
|
|
26
33
|
elif method == 'nvcc':
|
|
27
34
|
# can be useful for compiling code on a
|
|
28
35
|
# non-GPU system for running it later
|
|
@@ -171,7 +178,7 @@ class build_ext_gsl_cuda(build_ext):
|
|
|
171
178
|
# of bnm extension as it has already been set to g++
|
|
172
179
|
os.environ["CC"] = _CC
|
|
173
180
|
gsl_setup_commands = [
|
|
174
|
-
f"
|
|
181
|
+
f"curl https://mirror.ibcp.fr/pub/gnu/gsl/gsl-2.7.tar.gz -o {gsl_tar}",
|
|
175
182
|
f"cd {gsl_dir} && tar -xf {gsl_tar} &&"
|
|
176
183
|
f"cd {gsl_src} && ./configure --prefix={gsl_build} --enable-shared &&"
|
|
177
184
|
f"make && make install",
|
|
@@ -8,11 +8,11 @@ import json
|
|
|
8
8
|
|
|
9
9
|
version_json = '''
|
|
10
10
|
{
|
|
11
|
-
"date": "2024-
|
|
11
|
+
"date": "2024-10-04T17:24:05+0200",
|
|
12
12
|
"dirty": false,
|
|
13
13
|
"error": null,
|
|
14
|
-
"full-revisionid": "
|
|
15
|
-
"version": "0.0.
|
|
14
|
+
"full-revisionid": "796fad60212de9bcc50304e85257e3175334df0f",
|
|
15
|
+
"version": "0.0.5"
|
|
16
16
|
}
|
|
17
17
|
''' # END VERSION_JSON
|
|
18
18
|
|
|
@@ -13,7 +13,11 @@ def main():
|
|
|
13
13
|
if args.cmd not in ['grid', 'optimize']:
|
|
14
14
|
parser.print_help()
|
|
15
15
|
return
|
|
16
|
-
|
|
16
|
+
|
|
17
|
+
# additional validations
|
|
18
|
+
# make sure either bold, fc or fcd are provided
|
|
19
|
+
if (args.emp_fc_tril is None) and (args.emp_fcd_tril is None) and (args.emp_bold is None):
|
|
20
|
+
parser.error("At least one of the following must be provided: --emp_fc_tril, --emp_fcd_tril, --emp_bold")
|
|
17
21
|
|
|
18
22
|
if not args.no_print_args:
|
|
19
23
|
# pretty print the command and its arguments
|
|
@@ -32,10 +36,18 @@ def main():
|
|
|
32
36
|
del args.no_print_args
|
|
33
37
|
|
|
34
38
|
# additional refinement of arguments
|
|
39
|
+
args.do_fc = not args.no_fc
|
|
40
|
+
args.do_fcd = not args.no_fcd
|
|
35
41
|
args.fcd_drop_edges = not args.fcd_keep_edges
|
|
36
42
|
args.ext_out = not args.no_ext_out
|
|
37
|
-
args.
|
|
38
|
-
|
|
43
|
+
del args.no_fc, args.no_fcd, args.fcd_keep_edges, args.no_ext_out
|
|
44
|
+
|
|
45
|
+
# add +/- to gof terms
|
|
46
|
+
for i, term in enumerate(args.gof_terms):
|
|
47
|
+
if term == 'fc_corr':
|
|
48
|
+
args.gof_terms[i] = '+' + term
|
|
49
|
+
else:
|
|
50
|
+
args.gof_terms[i] = '-' + term
|
|
39
51
|
|
|
40
52
|
# use example input data if requested
|
|
41
53
|
if args.sc == 'example':
|
|
@@ -52,6 +64,10 @@ def main():
|
|
|
52
64
|
'FCD', 'schaefer-100',
|
|
53
65
|
exc_interhemispheric=args.exc_interhemispheric
|
|
54
66
|
)
|
|
67
|
+
if args.emp_bold == 'example':
|
|
68
|
+
args.emp_bold = datasets.load_functional(
|
|
69
|
+
'bold', 'schaefer-100'
|
|
70
|
+
)
|
|
55
71
|
if (args.cmd == 'optimize') and (args.maps == 'example'):
|
|
56
72
|
args.maps = datasets.load_maps(
|
|
57
73
|
['myelinmap', 'fcgradient01'],
|
|
@@ -80,12 +96,13 @@ def run_grid(args):
|
|
|
80
96
|
# Remove extra arguments
|
|
81
97
|
emp_fc_tril = args.emp_fc_tril
|
|
82
98
|
emp_fcd_tril = args.emp_fcd_tril
|
|
83
|
-
|
|
99
|
+
emp_bold = args.emp_bold
|
|
100
|
+
del args.cmd, args.emp_fc_tril, args.emp_fcd_tril, args.emp_bold
|
|
84
101
|
# initialize GridSearch and run it
|
|
85
102
|
gs = optimize.GridSearch(
|
|
86
103
|
**vars(args)
|
|
87
104
|
)
|
|
88
|
-
scores = gs.evaluate(emp_fc_tril, emp_fcd_tril)
|
|
105
|
+
scores = gs.evaluate(emp_fc_tril, emp_fcd_tril, emp_bold)
|
|
89
106
|
# save the grid and scores
|
|
90
107
|
gs.sim_group.save()
|
|
91
108
|
params_scores = pd.concat([gs.param_combs, scores], axis=1)
|
|
@@ -105,6 +122,9 @@ def run_optimize(args):
|
|
|
105
122
|
params=args.params,
|
|
106
123
|
emp_fc_tril=args.emp_fc_tril,
|
|
107
124
|
emp_fcd_tril=args.emp_fcd_tril,
|
|
125
|
+
emp_bold=args.emp_bold,
|
|
126
|
+
do_fc=args.do_fc,
|
|
127
|
+
do_fcd=args.do_fcd,
|
|
108
128
|
het_params=args.het_params,
|
|
109
129
|
maps=args.maps,
|
|
110
130
|
maps_coef_range=args.maps_coef_range,
|
|
@@ -115,6 +135,8 @@ def run_optimize(args):
|
|
|
115
135
|
out_dir=args.out_dir,
|
|
116
136
|
duration=args.duration,
|
|
117
137
|
TR=args.TR,
|
|
138
|
+
dt=args.dt,
|
|
139
|
+
bw_dt=args.bw_dt,
|
|
118
140
|
states_ts=args.states_ts,
|
|
119
141
|
states_sampling=args.states_sampling,
|
|
120
142
|
window_size=args.window_size,
|
|
@@ -79,14 +79,26 @@ def add_shared_arguments(parser):
|
|
|
79
79
|
help='Structural connectivity .txt file or "example" (required)')
|
|
80
80
|
parser.add_argument('--sc_dist', type=str,
|
|
81
81
|
help='Structural connectivity distribution .txt file or "example"')
|
|
82
|
+
parser.add_argument('--dt', type=str, default='0.1',
|
|
83
|
+
help='Neuronal model integration step (msec)')
|
|
84
|
+
parser.add_argument('--bw_dt', type=str, default='1.0',
|
|
85
|
+
help='Balloon-Windkessel model integration step (msec)')
|
|
82
86
|
parser.add_argument('-d', '--out_dir', type=str, default="same",
|
|
83
87
|
help='Output directory')
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
parser.add_argument('--
|
|
87
|
-
|
|
88
|
-
parser.add_argument('--
|
|
89
|
-
|
|
88
|
+
parser.add_argument('--emp_fc_tril', type=str,
|
|
89
|
+
help='Functional connectivity lower triangle as space-separated .txt file or "example"')
|
|
90
|
+
parser.add_argument('--emp_fcd_tril', type=str,
|
|
91
|
+
help='Functional connectivity dynamics lower triangle as space-separated .txt file or "example"')
|
|
92
|
+
parser.add_argument('--emp_bold', type=str,
|
|
93
|
+
help='Cleaned and parcellated BOLD signal as space-separated .txt file or "example"'
|
|
94
|
+
' BOLD signal should be in the shape (nodes, volumes).'
|
|
95
|
+
' Motion outliers should either be excluded (not recommended as it disrupts'
|
|
96
|
+
' the temporal structure) or replaced with zeros.'
|
|
97
|
+
' If provided emp_fc_tril and emp_fcd_tril will be ignored.')
|
|
98
|
+
parser.add_argument('--no_fc', action='store_true',
|
|
99
|
+
help='Do not calculate simulated/empirical FC')
|
|
100
|
+
parser.add_argument('--no_fcd', action='store_true',
|
|
101
|
+
help='Do not calculate simulated/empirical FCD')
|
|
90
102
|
parser.add_argument('--rand_seed', type=int, default=410,
|
|
91
103
|
help='Simulation noise seed')
|
|
92
104
|
parser.add_argument('--noise_segment_length', type=int, default=30,
|
|
@@ -101,22 +113,21 @@ def add_shared_arguments(parser):
|
|
|
101
113
|
choices=['friston2003', 'heinzle2016-3T'],
|
|
102
114
|
help='Balloon Windkessel parameters')
|
|
103
115
|
parser.add_argument('--bold_remove_s', type=int, default=30,
|
|
104
|
-
help='Remove initial n seconds of the simulation from
|
|
105
|
-
' and average of state variables'
|
|
106
|
-
)
|
|
116
|
+
help='Remove initial n seconds of the simulation from FC/FCD calculations'
|
|
117
|
+
' and average of state variables')
|
|
107
118
|
parser.add_argument('--window_size', type=int, default=10,
|
|
108
119
|
help='FCD window size')
|
|
109
120
|
parser.add_argument('--window_step', type=int, default=2,
|
|
110
121
|
help='FCD window step')
|
|
111
|
-
parser.add_argument('--
|
|
112
|
-
help='
|
|
122
|
+
parser.add_argument('--exc_interhemispheric', action='store_true',
|
|
123
|
+
help='Exclude interhemispheric connections in FC/FCD calculations')
|
|
113
124
|
parser.add_argument('--fcd_keep_edges', action='store_true',
|
|
114
125
|
help='Keep edge windows from FCD calculations')
|
|
115
126
|
parser.add_argument('--gof_terms',
|
|
116
127
|
type=lambda s: s.split(','),
|
|
117
|
-
default=["
|
|
128
|
+
default=["fc_corr","fcd_ks"],
|
|
118
129
|
help='Goodness of fit terms (comma separated in quotation marks)'
|
|
119
|
-
' e.g. "
|
|
130
|
+
' e.g. "fc_corr,fcd_ks".'
|
|
120
131
|
)
|
|
121
132
|
parser.add_argument('--force_cpu', action='store_true',
|
|
122
133
|
help='Force CPU')
|