cuBNM 0.0.3__tar.gz → 0.0.4__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.3/src/cubnm.egg-info → cubnm-0.0.4}/PKG-INFO +3 -3
- {cubnm-0.0.3 → cubnm-0.0.4}/README.rst +2 -2
- {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/bnm.cuh +5 -5
- {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/bnm.hpp +1 -1
- {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/defines.h +1 -1
- {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/models/base.hpp +4 -4
- {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/models/boilerplate.hpp +6 -6
- {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/models/kuramoto.cuh +1 -1
- {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/models/rww.cuh +1 -1
- {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/models/rwwex.cuh +1 -1
- {cubnm-0.0.3 → cubnm-0.0.4}/setup.py +2 -2
- {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/_setup_opts.py +2 -2
- {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/_version.py +3 -3
- {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/cli.py +0 -1
- {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/cli_parser.py +0 -15
- {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/sim.py +139 -33
- {cubnm-0.0.3 → cubnm-0.0.4/src/cubnm.egg-info}/PKG-INFO +3 -3
- {cubnm-0.0.3 → cubnm-0.0.4}/src/ext/bnm.cpp +11 -9
- {cubnm-0.0.3 → cubnm-0.0.4}/src/ext/bnm.cu +29 -41
- {cubnm-0.0.3 → cubnm-0.0.4}/src/ext/core.cpp +45 -19
- {cubnm-0.0.3 → cubnm-0.0.4}/src/ext/models/base.cpp +1 -1
- {cubnm-0.0.3 → cubnm-0.0.4}/src/ext/models/rww.cpp +5 -3
- {cubnm-0.0.3 → cubnm-0.0.4}/LICENSE +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/MANIFEST.in +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/fc.cuh +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/includes.cuh +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/models/base.cuh +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/models/bw.cuh +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/models/bw.hpp +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/models/kuramoto.hpp +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/models/rww.hpp +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/models/rww_fic.hpp +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/models/rwwex.hpp +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/utils.cuh +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/utils.hpp +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_blas.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_blas_types.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_block.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_block_char.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_block_complex_double.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_block_complex_float.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_block_complex_long_double.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_block_double.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_block_float.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_block_int.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_block_long.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_block_long_double.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_block_short.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_block_uchar.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_block_uint.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_block_ulong.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_block_ushort.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_bspline.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_bst.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_bst_avl.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_bst_rb.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_bst_types.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_cblas.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_cdf.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_chebyshev.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_check_range.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_combination.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_complex.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_complex_math.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_const.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_const_cgs.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_const_cgsm.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_const_mks.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_const_mksa.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_const_num.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_deriv.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_dft_complex.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_dft_complex_float.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_dht.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_diff.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_eigen.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_errno.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_fft.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_fft_complex.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_fft_complex_float.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_fft_halfcomplex.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_fft_halfcomplex_float.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_fft_real.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_fft_real_float.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_filter.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_fit.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_heapsort.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_histogram.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_histogram2d.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_ieee_utils.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_inline.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_integration.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_interp.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_interp2d.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_linalg.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_machine.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_math.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_matrix.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_matrix_char.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_matrix_complex_double.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_matrix_complex_float.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_matrix_complex_long_double.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_matrix_double.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_matrix_float.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_matrix_int.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_matrix_long.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_matrix_long_double.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_matrix_short.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_matrix_uchar.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_matrix_uint.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_matrix_ulong.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_matrix_ushort.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_message.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_min.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_minmax.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_mode.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_monte.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_monte_miser.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_monte_plain.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_monte_vegas.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_movstat.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_multifit.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_multifit_nlin.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_multifit_nlinear.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_multilarge.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_multilarge_nlinear.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_multimin.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_multiroots.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_multiset.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_nan.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_ntuple.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_odeiv.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_odeiv2.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permutation.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_char.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_complex_double.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_complex_float.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_complex_long_double.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_double.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_float.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_int.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_long.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_long_double.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_matrix.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_matrix_char.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_matrix_complex_double.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_matrix_complex_float.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_matrix_complex_long_double.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_matrix_double.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_matrix_float.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_matrix_int.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_matrix_long.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_matrix_long_double.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_matrix_short.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_matrix_uchar.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_matrix_uint.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_matrix_ulong.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_matrix_ushort.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_short.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_uchar.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_uint.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_ulong.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_ushort.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_vector.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_vector_char.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_vector_complex_double.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_vector_complex_float.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_vector_complex_long_double.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_vector_double.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_vector_float.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_vector_int.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_vector_long.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_vector_long_double.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_vector_short.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_vector_uchar.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_vector_uint.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_vector_ulong.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_vector_ushort.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_poly.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_pow_int.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_precision.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_qrng.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_randist.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_rng.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_roots.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_rstat.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_airy.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_bessel.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_clausen.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_coulomb.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_coupling.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_dawson.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_debye.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_dilog.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_elementary.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_ellint.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_elljac.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_erf.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_exp.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_expint.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_fermi_dirac.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_gamma.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_gegenbauer.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_hermite.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_hyperg.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_laguerre.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_lambert.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_legendre.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_log.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_mathieu.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_pow_int.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_psi.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_result.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_sincos_pi.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_synchrotron.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_transport.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_trig.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_zeta.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_siman.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_char.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_double.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_float.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_int.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_long.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_long_double.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_short.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_uchar.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_uint.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_ulong.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_ushort.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_vector.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_vector_char.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_vector_double.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_vector_float.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_vector_int.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_vector_long.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_vector_long_double.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_vector_short.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_vector_uchar.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_vector_uint.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_vector_ulong.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_vector_ushort.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_spblas.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_specfunc.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_splinalg.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_spline.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_spline2d.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_spmatrix.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_spmatrix_char.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_spmatrix_complex_double.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_spmatrix_complex_float.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_spmatrix_complex_long_double.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_spmatrix_double.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_spmatrix_float.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_spmatrix_int.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_spmatrix_long.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_spmatrix_long_double.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_spmatrix_short.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_spmatrix_uchar.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_spmatrix_uint.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_spmatrix_ulong.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_spmatrix_ushort.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_statistics.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_statistics_char.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_statistics_double.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_statistics_float.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_statistics_int.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_statistics_long.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_statistics_long_double.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_statistics_short.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_statistics_uchar.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_statistics_uint.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_statistics_ulong.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_statistics_ushort.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sum.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sys.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_test.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_types.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_vector.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_vector_char.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_vector_complex.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_vector_complex_double.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_vector_complex_float.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_vector_complex_long_double.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_vector_double.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_vector_float.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_vector_int.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_vector_long.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_vector_long_double.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_vector_short.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_vector_uchar.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_vector_uint.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_vector_ulong.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_vector_ushort.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_version.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_wavelet.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_wavelet2d.h +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/test_source.c +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/pyproject.toml +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/setup.cfg +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/__init__.py +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/_core.py +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-aparc_approach-median_mean001_desc-length.txt +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-aparc_approach-median_mean001_desc-strength.txt +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-100_approach-median_mean001_desc-length.txt +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-100_approach-median_mean001_desc-strength.txt +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-100_desc-fcgradient01_zscore.txt +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-100_desc-gabaa_zscore.txt +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-100_desc-genepc1_zscore.txt +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-100_desc-myelinmap_zscore.txt +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-100_desc-nmda_zscore.txt +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-100_desc-thickness_zscore.txt +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-100_desc-yeo7.txt +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-100_hemi-LR_desc-FCDtril.txt +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-100_hemi-LR_desc-FCtril.txt +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-100_hemi-LR_exc-inter_desc-FCDtril.txt +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-100_hemi-LR_exc-inter_desc-FCtril.txt +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-200_approach-median_mean001_desc-length.txt +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-200_approach-median_mean001_desc-strength.txt +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-400_approach-median_mean001_desc-length.txt +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-400_approach-median_mean001_desc-strength.txt +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-600_approach-median_mean001_desc-length.txt +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-600_approach-median_mean001_desc-strength.txt +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/datasets.py +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/optimize.py +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/utils.py +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm.egg-info/SOURCES.txt +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm.egg-info/dependency_links.txt +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm.egg-info/entry_points.txt +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm.egg-info/requires.txt +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm.egg-info/top_level.txt +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/ext/fc.cpp +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/ext/fc.cu +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/ext/models/bw.cpp +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/ext/models/bw.cu +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/ext/models/kuramoto.cpp +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/ext/models/kuramoto.cu +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/ext/models/rww.cu +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/ext/models/rww_fic.cpp +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/ext/models/rwwex.cpp +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/ext/models/rwwex.cu +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/src/ext/utils.cpp +0 -0
- {cubnm-0.0.3 → cubnm-0.0.4}/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.4
|
|
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
|
|
@@ -55,8 +55,8 @@ Requires-Dist: scikit-optimize==0.9
|
|
|
55
55
|
Requires-Dist: tabulate
|
|
56
56
|
|
|
57
57
|
.. image:: https://raw.githubusercontent.com/amnsbr/cubnm/main/docs/_static/logo_text.png
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
:align: center
|
|
59
|
+
:width: 350px
|
|
60
60
|
|
|
61
61
|
.. image:: https://img.shields.io/pypi/v/cubnm
|
|
62
62
|
:target: https://pypi.org/project/cubnm/
|
|
@@ -5,23 +5,23 @@
|
|
|
5
5
|
typedef void (*GlobalInputKernel)(
|
|
6
6
|
u_real&, int&,
|
|
7
7
|
const int&, const int&, const int&,
|
|
8
|
-
int&, int&, u_real
|
|
8
|
+
const int&, int&, int&, u_real**,
|
|
9
9
|
int**, const bool&, const int&,
|
|
10
10
|
u_real**, u_real*
|
|
11
11
|
);
|
|
12
12
|
|
|
13
13
|
__device__ void global_input_cond(
|
|
14
14
|
u_real& tmp_globalinput, int& k_buff_idx,
|
|
15
|
-
const int& nodes, const int& sim_idx, const int&
|
|
16
|
-
int& k, int& buff_idx, u_real
|
|
15
|
+
const int& nodes, const int& sim_idx, const int& SC_idx,
|
|
16
|
+
const int& j, int& k, int& buff_idx, u_real** SC,
|
|
17
17
|
int** delay, const bool& has_delay, const int& max_delay,
|
|
18
18
|
u_real** conn_state_var_hist, u_real* conn_state_var_1
|
|
19
19
|
);
|
|
20
20
|
|
|
21
21
|
__device__ void global_input_osc(
|
|
22
22
|
u_real& tmp_globalinput, int& k_buff_idx,
|
|
23
|
-
const int& nodes, const int& sim_idx, const int&
|
|
24
|
-
int& k, int& buff_idx, u_real
|
|
23
|
+
const int& nodes, const int& sim_idx, const int& SC_idx,
|
|
24
|
+
const int& j, int& k, int& buff_idx, u_real** SC,
|
|
25
25
|
int** delay, const bool& has_delay, const int& max_delay,
|
|
26
26
|
u_real** conn_state_var_hist, u_real* conn_state_var_1
|
|
27
27
|
);
|
|
@@ -128,13 +128,13 @@ public:
|
|
|
128
128
|
set_base_conf(config_map);
|
|
129
129
|
}
|
|
130
130
|
#ifdef _GPU_ENABLED
|
|
131
|
-
virtual void init_gpu(BWConstants bwc) = 0;
|
|
131
|
+
virtual void init_gpu(BWConstants bwc, bool force_reinit) = 0;
|
|
132
132
|
virtual void run_simulations_gpu(
|
|
133
133
|
double * BOLD_ex_out, double * fc_trils_out, double * fcd_trils_out,
|
|
134
134
|
u_real ** global_params, u_real ** regional_params, u_real * v_list,
|
|
135
135
|
u_real ** SC, int * SC_indices, u_real * SC_dist) = 0;
|
|
136
136
|
#endif
|
|
137
|
-
virtual void init_cpu() = 0;
|
|
137
|
+
virtual void init_cpu(bool force_reinit) = 0;
|
|
138
138
|
virtual void run_simulations_cpu(
|
|
139
139
|
double * BOLD_ex_out, double * fc_trils_out, double * fcd_trils_out,
|
|
140
140
|
u_real ** global_params, u_real ** regional_params, u_real * v_list,
|
|
@@ -281,7 +281,7 @@ extern void _run_simulations_gpu(
|
|
|
281
281
|
);
|
|
282
282
|
|
|
283
283
|
template<typename Model>
|
|
284
|
-
extern void _init_gpu(BaseModel *model, BWConstants bwc);
|
|
284
|
+
extern void _init_gpu(BaseModel *model, BWConstants bwc, bool force_reinit);
|
|
285
285
|
#endif
|
|
286
286
|
|
|
287
287
|
template <typename Model>
|
|
@@ -292,5 +292,5 @@ void _run_simulations_cpu(
|
|
|
292
292
|
);
|
|
293
293
|
|
|
294
294
|
template <typename Model>
|
|
295
|
-
void _init_cpu(BaseModel *m);
|
|
295
|
+
void _init_cpu(BaseModel *m, bool force_reinit);
|
|
296
296
|
#endif
|
|
@@ -123,8 +123,8 @@ See rWWEx model as a simple example, and rWW as a more complex one.
|
|
|
123
123
|
u_real** global_params, u_real** regional_params, \
|
|
124
124
|
u_real* _global_params, u_real* _regional_params, \
|
|
125
125
|
int& sim_idx, const int& nodes, int& j); \
|
|
126
|
-
void init_gpu(BWConstants bwc) override final { \
|
|
127
|
-
_init_gpu<CLASS_NAME>(this, bwc); \
|
|
126
|
+
void init_gpu(BWConstants bwc, bool force_reinit) override final { \
|
|
127
|
+
_init_gpu<CLASS_NAME>(this, bwc, force_reinit); \
|
|
128
128
|
} \
|
|
129
129
|
void run_simulations_gpu( \
|
|
130
130
|
double * BOLD_ex_out, double * fc_trils_out, double * fcd_trils_out, \
|
|
@@ -150,8 +150,8 @@ See rWWEx model as a simple example, and rWW as a more complex one.
|
|
|
150
150
|
u_real* _global_params, u_real* _regional_params, \
|
|
151
151
|
int* _ext_int, bool* _ext_bool, \
|
|
152
152
|
int* _ext_int_shared, bool* _ext_bool_shared) override final; \
|
|
153
|
-
void init_cpu() override final { \
|
|
154
|
-
_init_cpu<CLASS_NAME>(this); \
|
|
153
|
+
void init_cpu(bool force_reinit) override final { \
|
|
154
|
+
_init_cpu<CLASS_NAME>(this, force_reinit); \
|
|
155
155
|
} \
|
|
156
156
|
void run_simulations_cpu( \
|
|
157
157
|
double * BOLD_ex_out, double * fc_trils_out, double * fcd_trils_out, \
|
|
@@ -231,8 +231,8 @@ See rWWEx model as a simple example, and rWW as a more complex one.
|
|
|
231
231
|
u_real* _global_params, u_real* _regional_params, \
|
|
232
232
|
int* _ext_int, bool* _ext_bool, \
|
|
233
233
|
int* _ext_int_shared, bool* _ext_bool_shared) override final; \
|
|
234
|
-
void init_cpu() override final { \
|
|
235
|
-
_init_cpu<CLASS_NAME>(this); \
|
|
234
|
+
void init_cpu(bool force_reinit) override final { \
|
|
235
|
+
_init_cpu<CLASS_NAME>(this, force_reinit); \
|
|
236
236
|
} \
|
|
237
237
|
void run_simulations_cpu( \
|
|
238
238
|
double * BOLD_ex_out, double * fc_trils_out, double * fcd_trils_out, \
|
|
@@ -33,9 +33,9 @@ def has_gpus(method='nvcc'):
|
|
|
33
33
|
return False
|
|
34
34
|
|
|
35
35
|
# specify installation options
|
|
36
|
-
many_nodes = ("
|
|
36
|
+
many_nodes = not ("CUBNM_NO_MANY_NODES" in os.environ)
|
|
37
37
|
max_nodes_reg = os.environ.get("CUBNM_MAX_NODES_REG", 200)
|
|
38
|
-
max_nodes_many = os.environ.get("CUBNM_MAX_NODES_MANY",
|
|
38
|
+
max_nodes_many = os.environ.get("CUBNM_MAX_NODES_MANY", 1024)
|
|
39
39
|
gpu_enabled = has_gpus()
|
|
40
40
|
omp_enabled = not ("CUBNM_NO_OMP" in os.environ)
|
|
41
41
|
noise_segment = not ("CUBNM_NOISE_WHOLE" in os.environ)
|
|
@@ -8,11 +8,11 @@ import json
|
|
|
8
8
|
|
|
9
9
|
version_json = '''
|
|
10
10
|
{
|
|
11
|
-
"date": "2024-
|
|
11
|
+
"date": "2024-09-06T11:50:38+0200",
|
|
12
12
|
"dirty": false,
|
|
13
13
|
"error": null,
|
|
14
|
-
"full-revisionid": "
|
|
15
|
-
"version": "0.0.
|
|
14
|
+
"full-revisionid": "435231e5a687cb0cc788a8a9155d1dd8e093da17",
|
|
15
|
+
"version": "0.0.4"
|
|
16
16
|
}
|
|
17
17
|
''' # END VERSION_JSON
|
|
18
18
|
|
|
@@ -6,7 +6,6 @@ sphinx doesn't require pandas and cubnm
|
|
|
6
6
|
for autogenerating the CLI docs
|
|
7
7
|
"""
|
|
8
8
|
import argparse
|
|
9
|
-
import os
|
|
10
9
|
|
|
11
10
|
def parse_params(param_str):
|
|
12
11
|
"""
|
|
@@ -62,20 +61,6 @@ def parse_maps_coef_range(value):
|
|
|
62
61
|
else:
|
|
63
62
|
return maps_coef_range
|
|
64
63
|
|
|
65
|
-
def get_optimizer(optimizer_str):
|
|
66
|
-
"""
|
|
67
|
-
Gets an Optimizer class based on its name
|
|
68
|
-
|
|
69
|
-
Parameters
|
|
70
|
-
----------
|
|
71
|
-
optimizer_str : :obj:`str`
|
|
72
|
-
|
|
73
|
-
Returns
|
|
74
|
-
-------
|
|
75
|
-
:class:`cubnm.optimize.Optimizer` derived class
|
|
76
|
-
"""
|
|
77
|
-
return getattr(optimize, f'{optimizer_str}Optimizer')
|
|
78
|
-
|
|
79
64
|
def add_shared_arguments(parser):
|
|
80
65
|
# simgroup arguments shared between all commands
|
|
81
66
|
parser.add_argument('-m', '--model', type=str, required=True,
|
|
@@ -13,7 +13,7 @@ from cubnm._setup_opts import (
|
|
|
13
13
|
max_nodes_reg, max_nodes_many,
|
|
14
14
|
noise_segment_flag
|
|
15
15
|
)
|
|
16
|
-
from cubnm import utils
|
|
16
|
+
from cubnm import utils, datasets
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
class SimGroup:
|
|
@@ -58,12 +58,14 @@ class SimGroup:
|
|
|
58
58
|
path to structural connectome strengths (as an unlabled .txt)
|
|
59
59
|
or a numpy array
|
|
60
60
|
Shape: (nodes, nodes)
|
|
61
|
+
If asymmetric, rows are sources and columns are targets.
|
|
61
62
|
sc_dist: :obj:`str` or :obj:`np.ndarray`, optional
|
|
62
63
|
path to structural connectome distances (as an unlabled .txt)
|
|
63
64
|
or a numpy array
|
|
64
65
|
Shape: (nodes, nodes)
|
|
65
66
|
If provided v (velocity) will be a free parameter and there
|
|
66
67
|
will be delay in inter-regional connections
|
|
68
|
+
If asymmetric, rows are sources and columns are targets.
|
|
67
69
|
out_dir: {:obj:`str` or 'same' or None}, optional
|
|
68
70
|
- :obj:`str`: will create a directory in the provided path
|
|
69
71
|
- 'same': will create a directory named based on sc
|
|
@@ -143,6 +145,8 @@ class SimGroup:
|
|
|
143
145
|
- global parameters with shape (N_SIMS,)
|
|
144
146
|
- regional parameters with shape (N_SIMS, nodes)
|
|
145
147
|
- 'v': conduction velocity. Shape: (N_SIMS,)
|
|
148
|
+
Additional attributes will be added after running the simulations.
|
|
149
|
+
See :func:`cubnm.sim.SimGroup._process_out` for details.
|
|
146
150
|
|
|
147
151
|
Notes
|
|
148
152
|
-----
|
|
@@ -153,6 +157,8 @@ class SimGroup:
|
|
|
153
157
|
names of global parameters
|
|
154
158
|
regional_param_names: :obj:`list` of :obj:`str`
|
|
155
159
|
names of regional parameters
|
|
160
|
+
sel_state_var: :obj:`str`
|
|
161
|
+
name of the state variable used in the tests
|
|
156
162
|
n_noise: :obj:`int`
|
|
157
163
|
number of noise elements per node per time point
|
|
158
164
|
(e.g. 2 if there are noise to E and I neuronal populations)
|
|
@@ -222,30 +228,18 @@ class SimGroup:
|
|
|
222
228
|
# determine number of nodes based on sc dimensions
|
|
223
229
|
self.nodes = self.sc.shape[0]
|
|
224
230
|
self.use_cpu = (self.force_cpu | (not gpu_enabled_flag) | (utils.avail_gpus() == 0))
|
|
225
|
-
if
|
|
226
|
-
|
|
231
|
+
max_nodes = max_nodes_many if many_nodes_flag else max_nodes_reg
|
|
232
|
+
if (self.nodes > max_nodes) and (not self.use_cpu) and (not self.serial_nodes):
|
|
233
|
+
if many_nodes_flag:
|
|
234
|
+
raise NotImplementedError(
|
|
235
|
+
"The toolbox cannot run simulations"
|
|
236
|
+
f" with more than {max_nodes_many} nodes on GPU."
|
|
237
|
+
)
|
|
238
|
+
else:
|
|
227
239
|
raise NotImplementedError(
|
|
228
240
|
f"With {self.nodes} nodes in the current installation of the toolbox"
|
|
229
241
|
" simulations will fail. Please reinstall the package from source after"
|
|
230
242
|
" `export CUBNM_MANY_NODES=1`")
|
|
231
|
-
if (not self.use_cpu) and (many_nodes_flag) and (self.nodes > max_nodes_many):
|
|
232
|
-
raise NotImplementedError(
|
|
233
|
-
f"Currently the toolbox cannot support more than {max_nodes_many} nodes."
|
|
234
|
-
)
|
|
235
|
-
print(
|
|
236
|
-
"Given the large number of nodes, nodes will be synced "
|
|
237
|
-
"every 1 msec to reduce the simulation time. To sync nodes "
|
|
238
|
-
"every 0.1 msec set self.sync_msec to False but note that "
|
|
239
|
-
"this will significantly increase the simulation time."
|
|
240
|
-
)
|
|
241
|
-
self.sync_msec = True
|
|
242
|
-
else:
|
|
243
|
-
if (not self.use_cpu) and (many_nodes_flag):
|
|
244
|
-
print(
|
|
245
|
-
"The toolbox is installed with `export CUBNM_MANY_NODES=1` but "
|
|
246
|
-
"the number of nodes is not large. For better performance, "
|
|
247
|
-
"reinstall the package after `unset CUBNM_MANY_NODES`"
|
|
248
|
-
)
|
|
249
243
|
# inter-regional delay will be added to the simulations
|
|
250
244
|
# if SC distance matrix is provided
|
|
251
245
|
self.input_sc_dist = sc_dist
|
|
@@ -495,6 +489,10 @@ class SimGroup:
|
|
|
495
489
|
Notes
|
|
496
490
|
-----
|
|
497
491
|
The simulation outputs are assigned to the following object attributes:
|
|
492
|
+
- init_time: :obj:`float`
|
|
493
|
+
initialization time of the simulations
|
|
494
|
+
- run_time: :obj:`float`
|
|
495
|
+
run time of the simulations
|
|
498
496
|
- sim_bold : :obj:`np.ndarray`
|
|
499
497
|
simulated BOLD time series. Shape: (N_SIMS, duration/TR, nodes)
|
|
500
498
|
- sim_fc_trils : :obj:`np.ndarray`
|
|
@@ -519,9 +517,15 @@ class SimGroup:
|
|
|
519
517
|
"""
|
|
520
518
|
# assign the output to object attributes
|
|
521
519
|
# and reshape them to (N_SIMS, ...)
|
|
522
|
-
# in all cases bold, fc and fcd will be returned
|
|
523
|
-
|
|
524
|
-
|
|
520
|
+
# in all cases init time, run time, bold, fc and fcd will be returned
|
|
521
|
+
(
|
|
522
|
+
self.init_time,
|
|
523
|
+
self.run_time,
|
|
524
|
+
sim_bold,
|
|
525
|
+
sim_fc_trils,
|
|
526
|
+
sim_fcd_trils
|
|
527
|
+
) = out[:5]
|
|
528
|
+
# assign the additional outputs in indices 5: if
|
|
525
529
|
# they are returned depending on `ext_out`, `noise_out`
|
|
526
530
|
# and `noise_segment_flag`
|
|
527
531
|
if self.ext_out:
|
|
@@ -529,13 +533,13 @@ class SimGroup:
|
|
|
529
533
|
sim_states,
|
|
530
534
|
global_bools,
|
|
531
535
|
global_ints,
|
|
532
|
-
) = out[
|
|
533
|
-
noise_start_idx =
|
|
536
|
+
) = out[5:8]
|
|
537
|
+
noise_start_idx = 8
|
|
534
538
|
self._sim_states = sim_states
|
|
535
539
|
self._global_bools = global_bools
|
|
536
540
|
self._global_ints = global_ints
|
|
537
541
|
else:
|
|
538
|
-
noise_start_idx =
|
|
542
|
+
noise_start_idx = 5
|
|
539
543
|
if self.noise_out:
|
|
540
544
|
self._noise = out[noise_start_idx]
|
|
541
545
|
if noise_segment_flag:
|
|
@@ -662,8 +666,9 @@ class SimGroup:
|
|
|
662
666
|
sim_bold=self.sim_bold,
|
|
663
667
|
sim_fc_trils=self.sim_fc_trils,
|
|
664
668
|
sim_fcd_trils=self.sim_fcd_trils,
|
|
665
|
-
sim_states=self.sim_states,
|
|
666
669
|
)
|
|
670
|
+
if self.ext_out:
|
|
671
|
+
out_data['sim_states'] = self.sim_states
|
|
667
672
|
out_data.update(self.param_lists)
|
|
668
673
|
return out_data
|
|
669
674
|
|
|
@@ -690,12 +695,67 @@ class SimGroup:
|
|
|
690
695
|
np.savez_compressed(os.path.join(sims_dir, f"it{self.it}.npz"), **out_data)
|
|
691
696
|
elif save_as == "txt":
|
|
692
697
|
raise NotImplementedError
|
|
698
|
+
@classmethod
|
|
699
|
+
def _get_test_configs(cls, cpu_gpu_identity=False):
|
|
700
|
+
"""
|
|
701
|
+
Get configs for testing the simulations
|
|
693
702
|
|
|
703
|
+
Parameters
|
|
704
|
+
----------
|
|
705
|
+
cpu_gpu_identity: :obj:`bool`, optional
|
|
706
|
+
indicates whether configs are for CPU/GPU identity tests
|
|
707
|
+
in which case force_cpu is not included in the configs
|
|
708
|
+
since tests will be done on both CPU and GPU
|
|
709
|
+
|
|
710
|
+
Returns
|
|
711
|
+
-------
|
|
712
|
+
configs: :obj:`dict` of :obj:`list`
|
|
713
|
+
"""
|
|
714
|
+
configs = {}
|
|
715
|
+
# for compatibality with previously-stored
|
|
716
|
+
# expected simulation files force_cpu must
|
|
717
|
+
# be the first item
|
|
718
|
+
# TODO: fix this and recompute the expected files
|
|
719
|
+
if not cpu_gpu_identity:
|
|
720
|
+
configs['force_cpu'] = [0, 1]
|
|
721
|
+
configs['do_delay'] = [0, 1]
|
|
722
|
+
return configs
|
|
723
|
+
@classmethod
|
|
724
|
+
def _get_test_instance(cls, opts):
|
|
725
|
+
"""
|
|
726
|
+
Initializes an instance that is used in tests
|
|
727
|
+
|
|
728
|
+
Parameters
|
|
729
|
+
----------
|
|
730
|
+
opts: :obj:`dict`
|
|
731
|
+
dictionary of test options
|
|
732
|
+
|
|
733
|
+
Returns
|
|
734
|
+
-------
|
|
735
|
+
sim_group: :obj:`cubnm.sim.SimGroup`
|
|
736
|
+
simulation group object of the test simulation
|
|
737
|
+
which is not run yet
|
|
738
|
+
"""
|
|
739
|
+
do_delay = bool(opts.pop('do_delay'))
|
|
740
|
+
if do_delay:
|
|
741
|
+
sc_dist = datasets.load_sc('length', 'schaefer-100')
|
|
742
|
+
else:
|
|
743
|
+
sc_dist = None
|
|
744
|
+
sim_group = cls(
|
|
745
|
+
duration=60,
|
|
746
|
+
TR=1,
|
|
747
|
+
sc=datasets.load_sc('strength', 'schaefer-100'),
|
|
748
|
+
sc_dist=sc_dist,
|
|
749
|
+
sim_verbose=False,
|
|
750
|
+
**opts
|
|
751
|
+
)
|
|
752
|
+
return sim_group
|
|
694
753
|
|
|
695
754
|
class rWWSimGroup(SimGroup):
|
|
696
755
|
model_name = "rWW"
|
|
697
756
|
global_param_names = ["G"]
|
|
698
757
|
regional_param_names = ["wEE", "wEI", "wIE"]
|
|
758
|
+
sel_state_var = 'r_E' # TODO: use all states
|
|
699
759
|
n_noise = 2
|
|
700
760
|
def __init__(self,
|
|
701
761
|
*args,
|
|
@@ -876,11 +936,12 @@ class rWWSimGroup(SimGroup):
|
|
|
876
936
|
dictionary of simulation outputs and parameters
|
|
877
937
|
"""
|
|
878
938
|
out_data = super()._get_save_data()
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
939
|
+
if self.do_fic:
|
|
940
|
+
out_data.update(
|
|
941
|
+
fic_unstable=self.fic_unstable,
|
|
942
|
+
fic_failed=self.fic_failed,
|
|
943
|
+
fic_ntrials=self.fic_ntrials,
|
|
944
|
+
)
|
|
884
945
|
return out_data
|
|
885
946
|
|
|
886
947
|
def clear(self):
|
|
@@ -893,11 +954,55 @@ class rWWSimGroup(SimGroup):
|
|
|
893
954
|
delattr(self, attr)
|
|
894
955
|
gc.collect()
|
|
895
956
|
|
|
957
|
+
@classmethod
|
|
958
|
+
def _get_test_configs(cls, cpu_gpu_identity=False):
|
|
959
|
+
"""
|
|
960
|
+
Get configs for testing the simulations
|
|
961
|
+
|
|
962
|
+
Parameters
|
|
963
|
+
----------
|
|
964
|
+
cpu_gpu_identity: :obj:`bool`, optional
|
|
965
|
+
indicates whether configs are for CPU/GPU identity tests
|
|
966
|
+
in which case force_cpu is not included in the configs
|
|
967
|
+
since tests will be done on both CPU and GPU
|
|
968
|
+
|
|
969
|
+
Returns
|
|
970
|
+
-------
|
|
971
|
+
configs: :obj:`dict` of :obj:`list`
|
|
972
|
+
"""
|
|
973
|
+
configs = super()._get_test_configs(cpu_gpu_identity)
|
|
974
|
+
configs.update({
|
|
975
|
+
'do_fic': [0, 1]
|
|
976
|
+
})
|
|
977
|
+
return configs
|
|
978
|
+
|
|
979
|
+
@classmethod
|
|
980
|
+
def _get_test_instance(cls, opts):
|
|
981
|
+
"""
|
|
982
|
+
Initializes an instance that is used in tests
|
|
983
|
+
|
|
984
|
+
Parameters
|
|
985
|
+
----------
|
|
986
|
+
opts: :obj:`dict`
|
|
987
|
+
dictionary of test options
|
|
988
|
+
|
|
989
|
+
Returns
|
|
990
|
+
-------
|
|
991
|
+
sim_group: :obj:`cubnm.sim.rWWSimGroup`
|
|
992
|
+
simulation group object of the test simulation
|
|
993
|
+
which is not run yet
|
|
994
|
+
"""
|
|
995
|
+
# initialze sim group
|
|
996
|
+
sim_group = super()._get_test_instance(opts)
|
|
997
|
+
# set do_fic
|
|
998
|
+
sim_group.do_fic = bool(opts['do_fic'])
|
|
999
|
+
return sim_group
|
|
896
1000
|
|
|
897
1001
|
class rWWExSimGroup(SimGroup):
|
|
898
1002
|
model_name = "rWWEx"
|
|
899
1003
|
global_param_names = ["G"]
|
|
900
1004
|
regional_param_names = ["w", "I0", "sigma"]
|
|
1005
|
+
sel_state_var = 'r' # TODO: use all states
|
|
901
1006
|
n_noise = 1
|
|
902
1007
|
def __init__(self, *args, **kwargs):
|
|
903
1008
|
"""
|
|
@@ -971,6 +1076,7 @@ class KuramotoSimGroup(SimGroup):
|
|
|
971
1076
|
model_name = "Kuramoto"
|
|
972
1077
|
global_param_names = ["G"]
|
|
973
1078
|
regional_param_names = ["init_theta", "omega", "sigma"]
|
|
1079
|
+
sel_state_var = 'theta'
|
|
974
1080
|
n_noise = 1
|
|
975
1081
|
def __init__(self,
|
|
976
1082
|
*args,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cubnm
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.4
|
|
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
|
|
@@ -55,8 +55,8 @@ Requires-Dist: scikit-optimize==0.9
|
|
|
55
55
|
Requires-Dist: tabulate
|
|
56
56
|
|
|
57
57
|
.. image:: https://raw.githubusercontent.com/amnsbr/cubnm/main/docs/_static/logo_text.png
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
:align: center
|
|
59
|
+
:width: 350px
|
|
60
60
|
|
|
61
61
|
.. image:: https://img.shields.io/pypi/v/cubnm
|
|
62
62
|
:target: https://pypi.org/project/cubnm/
|
|
@@ -22,18 +22,19 @@ inline void h_global_input_cond(
|
|
|
22
22
|
// Note: this will not skip over self-connections
|
|
23
23
|
// if they should be ignored, their SC should be set to 0
|
|
24
24
|
// Note: inlining considerably improves performance for this function
|
|
25
|
+
// Note: in case of directed SCs, rows are the source and columns are the target
|
|
25
26
|
tmp_globalinput = 0;
|
|
26
27
|
if (has_delay) {
|
|
27
28
|
for (k=0; k<nodes; k++) {
|
|
28
29
|
// calculate correct index of the other region in the buffer based on j-k delay
|
|
29
30
|
// buffer is moving backward, therefore the delay timesteps back in history
|
|
30
31
|
// will be in +delay time steps in the buffer (then modulo max_delay as it is circular buffer)
|
|
31
|
-
k_buff_idx = (buff_idx + delay[
|
|
32
|
-
tmp_globalinput += SC[
|
|
32
|
+
k_buff_idx = (buff_idx + delay[k*nodes+j]) % max_delay;
|
|
33
|
+
tmp_globalinput += SC[k*nodes+j] * conn_state_var_hist[k_buff_idx*nodes+k];
|
|
33
34
|
}
|
|
34
35
|
} else {
|
|
35
36
|
for (k=0; k<nodes; k++) {
|
|
36
|
-
tmp_globalinput += SC[
|
|
37
|
+
tmp_globalinput += SC[k*nodes+j] * conn_state_var_1[k];
|
|
37
38
|
}
|
|
38
39
|
}
|
|
39
40
|
}
|
|
@@ -55,13 +56,13 @@ inline void h_global_input_osc(
|
|
|
55
56
|
// calculate correct index of the other region in the buffer based on j-k delay
|
|
56
57
|
// buffer is moving backward, therefore the delay timesteps back in history
|
|
57
58
|
// will be in +delay time steps in the buffer (then modulo max_delay as it is circular buffer)
|
|
58
|
-
k_buff_idx = (buff_idx + delay[
|
|
59
|
-
tmp_globalinput += SC[
|
|
59
|
+
k_buff_idx = (buff_idx + delay[k*nodes+j]) % max_delay;
|
|
60
|
+
tmp_globalinput += SC[k*nodes+j] * SIN(conn_state_var_hist[k_buff_idx*nodes+k] - conn_state_var_hist[buff_idx*nodes+j]);
|
|
60
61
|
}
|
|
61
62
|
} else {
|
|
62
63
|
for (k=0; k<nodes; k++) {
|
|
63
|
-
tmp_globalinput += SC[
|
|
64
|
-
}
|
|
64
|
+
tmp_globalinput += SC[k*nodes+j] * SIN(conn_state_var_1[k] - conn_state_var_1[j]);
|
|
65
|
+
}
|
|
65
66
|
}
|
|
66
67
|
}
|
|
67
68
|
|
|
@@ -616,7 +617,7 @@ void _run_simulations_cpu(
|
|
|
616
617
|
}
|
|
617
618
|
|
|
618
619
|
template <typename Model>
|
|
619
|
-
void _init_cpu(BaseModel *m) {
|
|
620
|
+
void _init_cpu(BaseModel *m, bool force_reinit) {
|
|
620
621
|
// set up global int and bool outputs
|
|
621
622
|
if (Model::n_global_out_int > 0) {
|
|
622
623
|
m->global_out_int = (int**)malloc(Model::n_global_out_int * sizeof(int*));
|
|
@@ -675,7 +676,8 @@ void _init_cpu(BaseModel *m) {
|
|
|
675
676
|
(m->time_steps != m->last_time_steps) ||
|
|
676
677
|
(m->nodes != m->last_nodes) ||
|
|
677
678
|
(m->base_conf.noise_time_steps != m->last_noise_time_steps) ||
|
|
678
|
-
(!m->cpu_initialized)
|
|
679
|
+
(!m->cpu_initialized) ||
|
|
680
|
+
force_reinit
|
|
679
681
|
) {
|
|
680
682
|
// precalculate noise (segments) similar to GPU
|
|
681
683
|
#ifndef NOISE_SEGMENT
|