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.
Files changed (346) hide show
  1. {cubnm-0.0.3/src/cubnm.egg-info → cubnm-0.0.4}/PKG-INFO +3 -3
  2. {cubnm-0.0.3 → cubnm-0.0.4}/README.rst +2 -2
  3. {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/bnm.cuh +5 -5
  4. {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/bnm.hpp +1 -1
  5. {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/defines.h +1 -1
  6. {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/models/base.hpp +4 -4
  7. {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/models/boilerplate.hpp +6 -6
  8. {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/models/kuramoto.cuh +1 -1
  9. {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/models/rww.cuh +1 -1
  10. {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/models/rwwex.cuh +1 -1
  11. {cubnm-0.0.3 → cubnm-0.0.4}/setup.py +2 -2
  12. {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/_setup_opts.py +2 -2
  13. {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/_version.py +3 -3
  14. {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/cli.py +0 -1
  15. {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/cli_parser.py +0 -15
  16. {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/sim.py +139 -33
  17. {cubnm-0.0.3 → cubnm-0.0.4/src/cubnm.egg-info}/PKG-INFO +3 -3
  18. {cubnm-0.0.3 → cubnm-0.0.4}/src/ext/bnm.cpp +11 -9
  19. {cubnm-0.0.3 → cubnm-0.0.4}/src/ext/bnm.cu +29 -41
  20. {cubnm-0.0.3 → cubnm-0.0.4}/src/ext/core.cpp +45 -19
  21. {cubnm-0.0.3 → cubnm-0.0.4}/src/ext/models/base.cpp +1 -1
  22. {cubnm-0.0.3 → cubnm-0.0.4}/src/ext/models/rww.cpp +5 -3
  23. {cubnm-0.0.3 → cubnm-0.0.4}/LICENSE +0 -0
  24. {cubnm-0.0.3 → cubnm-0.0.4}/MANIFEST.in +0 -0
  25. {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/fc.cuh +0 -0
  26. {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/includes.cuh +0 -0
  27. {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/models/base.cuh +0 -0
  28. {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/models/bw.cuh +0 -0
  29. {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/models/bw.hpp +0 -0
  30. {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/models/kuramoto.hpp +0 -0
  31. {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/models/rww.hpp +0 -0
  32. {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/models/rww_fic.hpp +0 -0
  33. {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/models/rwwex.hpp +0 -0
  34. {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/utils.cuh +0 -0
  35. {cubnm-0.0.3 → cubnm-0.0.4}/include/cubnm/utils.hpp +0 -0
  36. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_blas.h +0 -0
  37. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_blas_types.h +0 -0
  38. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_block.h +0 -0
  39. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_block_char.h +0 -0
  40. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_block_complex_double.h +0 -0
  41. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_block_complex_float.h +0 -0
  42. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_block_complex_long_double.h +0 -0
  43. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_block_double.h +0 -0
  44. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_block_float.h +0 -0
  45. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_block_int.h +0 -0
  46. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_block_long.h +0 -0
  47. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_block_long_double.h +0 -0
  48. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_block_short.h +0 -0
  49. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_block_uchar.h +0 -0
  50. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_block_uint.h +0 -0
  51. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_block_ulong.h +0 -0
  52. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_block_ushort.h +0 -0
  53. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_bspline.h +0 -0
  54. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_bst.h +0 -0
  55. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_bst_avl.h +0 -0
  56. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_bst_rb.h +0 -0
  57. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_bst_types.h +0 -0
  58. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_cblas.h +0 -0
  59. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_cdf.h +0 -0
  60. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_chebyshev.h +0 -0
  61. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_check_range.h +0 -0
  62. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_combination.h +0 -0
  63. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_complex.h +0 -0
  64. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_complex_math.h +0 -0
  65. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_const.h +0 -0
  66. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_const_cgs.h +0 -0
  67. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_const_cgsm.h +0 -0
  68. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_const_mks.h +0 -0
  69. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_const_mksa.h +0 -0
  70. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_const_num.h +0 -0
  71. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_deriv.h +0 -0
  72. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_dft_complex.h +0 -0
  73. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_dft_complex_float.h +0 -0
  74. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_dht.h +0 -0
  75. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_diff.h +0 -0
  76. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_eigen.h +0 -0
  77. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_errno.h +0 -0
  78. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_fft.h +0 -0
  79. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_fft_complex.h +0 -0
  80. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_fft_complex_float.h +0 -0
  81. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_fft_halfcomplex.h +0 -0
  82. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_fft_halfcomplex_float.h +0 -0
  83. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_fft_real.h +0 -0
  84. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_fft_real_float.h +0 -0
  85. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_filter.h +0 -0
  86. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_fit.h +0 -0
  87. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_heapsort.h +0 -0
  88. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_histogram.h +0 -0
  89. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_histogram2d.h +0 -0
  90. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_ieee_utils.h +0 -0
  91. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_inline.h +0 -0
  92. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_integration.h +0 -0
  93. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_interp.h +0 -0
  94. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_interp2d.h +0 -0
  95. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_linalg.h +0 -0
  96. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_machine.h +0 -0
  97. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_math.h +0 -0
  98. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_matrix.h +0 -0
  99. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_matrix_char.h +0 -0
  100. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_matrix_complex_double.h +0 -0
  101. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_matrix_complex_float.h +0 -0
  102. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_matrix_complex_long_double.h +0 -0
  103. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_matrix_double.h +0 -0
  104. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_matrix_float.h +0 -0
  105. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_matrix_int.h +0 -0
  106. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_matrix_long.h +0 -0
  107. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_matrix_long_double.h +0 -0
  108. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_matrix_short.h +0 -0
  109. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_matrix_uchar.h +0 -0
  110. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_matrix_uint.h +0 -0
  111. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_matrix_ulong.h +0 -0
  112. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_matrix_ushort.h +0 -0
  113. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_message.h +0 -0
  114. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_min.h +0 -0
  115. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_minmax.h +0 -0
  116. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_mode.h +0 -0
  117. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_monte.h +0 -0
  118. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_monte_miser.h +0 -0
  119. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_monte_plain.h +0 -0
  120. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_monte_vegas.h +0 -0
  121. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_movstat.h +0 -0
  122. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_multifit.h +0 -0
  123. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_multifit_nlin.h +0 -0
  124. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_multifit_nlinear.h +0 -0
  125. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_multilarge.h +0 -0
  126. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_multilarge_nlinear.h +0 -0
  127. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_multimin.h +0 -0
  128. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_multiroots.h +0 -0
  129. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_multiset.h +0 -0
  130. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_nan.h +0 -0
  131. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_ntuple.h +0 -0
  132. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_odeiv.h +0 -0
  133. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_odeiv2.h +0 -0
  134. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permutation.h +0 -0
  135. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute.h +0 -0
  136. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_char.h +0 -0
  137. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_complex_double.h +0 -0
  138. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_complex_float.h +0 -0
  139. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_complex_long_double.h +0 -0
  140. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_double.h +0 -0
  141. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_float.h +0 -0
  142. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_int.h +0 -0
  143. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_long.h +0 -0
  144. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_long_double.h +0 -0
  145. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_matrix.h +0 -0
  146. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_matrix_char.h +0 -0
  147. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_matrix_complex_double.h +0 -0
  148. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_matrix_complex_float.h +0 -0
  149. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_matrix_complex_long_double.h +0 -0
  150. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_matrix_double.h +0 -0
  151. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_matrix_float.h +0 -0
  152. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_matrix_int.h +0 -0
  153. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_matrix_long.h +0 -0
  154. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_matrix_long_double.h +0 -0
  155. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_matrix_short.h +0 -0
  156. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_matrix_uchar.h +0 -0
  157. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_matrix_uint.h +0 -0
  158. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_matrix_ulong.h +0 -0
  159. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_matrix_ushort.h +0 -0
  160. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_short.h +0 -0
  161. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_uchar.h +0 -0
  162. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_uint.h +0 -0
  163. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_ulong.h +0 -0
  164. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_ushort.h +0 -0
  165. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_vector.h +0 -0
  166. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_vector_char.h +0 -0
  167. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_vector_complex_double.h +0 -0
  168. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_vector_complex_float.h +0 -0
  169. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_vector_complex_long_double.h +0 -0
  170. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_vector_double.h +0 -0
  171. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_vector_float.h +0 -0
  172. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_vector_int.h +0 -0
  173. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_vector_long.h +0 -0
  174. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_vector_long_double.h +0 -0
  175. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_vector_short.h +0 -0
  176. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_vector_uchar.h +0 -0
  177. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_vector_uint.h +0 -0
  178. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_vector_ulong.h +0 -0
  179. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_permute_vector_ushort.h +0 -0
  180. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_poly.h +0 -0
  181. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_pow_int.h +0 -0
  182. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_precision.h +0 -0
  183. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_qrng.h +0 -0
  184. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_randist.h +0 -0
  185. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_rng.h +0 -0
  186. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_roots.h +0 -0
  187. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_rstat.h +0 -0
  188. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf.h +0 -0
  189. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_airy.h +0 -0
  190. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_bessel.h +0 -0
  191. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_clausen.h +0 -0
  192. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_coulomb.h +0 -0
  193. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_coupling.h +0 -0
  194. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_dawson.h +0 -0
  195. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_debye.h +0 -0
  196. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_dilog.h +0 -0
  197. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_elementary.h +0 -0
  198. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_ellint.h +0 -0
  199. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_elljac.h +0 -0
  200. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_erf.h +0 -0
  201. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_exp.h +0 -0
  202. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_expint.h +0 -0
  203. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_fermi_dirac.h +0 -0
  204. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_gamma.h +0 -0
  205. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_gegenbauer.h +0 -0
  206. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_hermite.h +0 -0
  207. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_hyperg.h +0 -0
  208. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_laguerre.h +0 -0
  209. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_lambert.h +0 -0
  210. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_legendre.h +0 -0
  211. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_log.h +0 -0
  212. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_mathieu.h +0 -0
  213. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_pow_int.h +0 -0
  214. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_psi.h +0 -0
  215. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_result.h +0 -0
  216. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_sincos_pi.h +0 -0
  217. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_synchrotron.h +0 -0
  218. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_transport.h +0 -0
  219. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_trig.h +0 -0
  220. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sf_zeta.h +0 -0
  221. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_siman.h +0 -0
  222. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort.h +0 -0
  223. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_char.h +0 -0
  224. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_double.h +0 -0
  225. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_float.h +0 -0
  226. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_int.h +0 -0
  227. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_long.h +0 -0
  228. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_long_double.h +0 -0
  229. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_short.h +0 -0
  230. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_uchar.h +0 -0
  231. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_uint.h +0 -0
  232. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_ulong.h +0 -0
  233. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_ushort.h +0 -0
  234. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_vector.h +0 -0
  235. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_vector_char.h +0 -0
  236. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_vector_double.h +0 -0
  237. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_vector_float.h +0 -0
  238. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_vector_int.h +0 -0
  239. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_vector_long.h +0 -0
  240. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_vector_long_double.h +0 -0
  241. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_vector_short.h +0 -0
  242. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_vector_uchar.h +0 -0
  243. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_vector_uint.h +0 -0
  244. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_vector_ulong.h +0 -0
  245. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sort_vector_ushort.h +0 -0
  246. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_spblas.h +0 -0
  247. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_specfunc.h +0 -0
  248. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_splinalg.h +0 -0
  249. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_spline.h +0 -0
  250. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_spline2d.h +0 -0
  251. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_spmatrix.h +0 -0
  252. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_spmatrix_char.h +0 -0
  253. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_spmatrix_complex_double.h +0 -0
  254. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_spmatrix_complex_float.h +0 -0
  255. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_spmatrix_complex_long_double.h +0 -0
  256. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_spmatrix_double.h +0 -0
  257. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_spmatrix_float.h +0 -0
  258. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_spmatrix_int.h +0 -0
  259. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_spmatrix_long.h +0 -0
  260. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_spmatrix_long_double.h +0 -0
  261. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_spmatrix_short.h +0 -0
  262. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_spmatrix_uchar.h +0 -0
  263. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_spmatrix_uint.h +0 -0
  264. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_spmatrix_ulong.h +0 -0
  265. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_spmatrix_ushort.h +0 -0
  266. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_statistics.h +0 -0
  267. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_statistics_char.h +0 -0
  268. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_statistics_double.h +0 -0
  269. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_statistics_float.h +0 -0
  270. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_statistics_int.h +0 -0
  271. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_statistics_long.h +0 -0
  272. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_statistics_long_double.h +0 -0
  273. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_statistics_short.h +0 -0
  274. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_statistics_uchar.h +0 -0
  275. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_statistics_uint.h +0 -0
  276. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_statistics_ulong.h +0 -0
  277. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_statistics_ushort.h +0 -0
  278. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sum.h +0 -0
  279. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_sys.h +0 -0
  280. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_test.h +0 -0
  281. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_types.h +0 -0
  282. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_vector.h +0 -0
  283. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_vector_char.h +0 -0
  284. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_vector_complex.h +0 -0
  285. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_vector_complex_double.h +0 -0
  286. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_vector_complex_float.h +0 -0
  287. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_vector_complex_long_double.h +0 -0
  288. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_vector_double.h +0 -0
  289. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_vector_float.h +0 -0
  290. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_vector_int.h +0 -0
  291. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_vector_long.h +0 -0
  292. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_vector_long_double.h +0 -0
  293. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_vector_short.h +0 -0
  294. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_vector_uchar.h +0 -0
  295. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_vector_uint.h +0 -0
  296. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_vector_ulong.h +0 -0
  297. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_vector_ushort.h +0 -0
  298. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_version.h +0 -0
  299. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_wavelet.h +0 -0
  300. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/gsl_wavelet2d.h +0 -0
  301. {cubnm-0.0.3 → cubnm-0.0.4}/include/gsl/test_source.c +0 -0
  302. {cubnm-0.0.3 → cubnm-0.0.4}/pyproject.toml +0 -0
  303. {cubnm-0.0.3 → cubnm-0.0.4}/setup.cfg +0 -0
  304. {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/__init__.py +0 -0
  305. {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/_core.py +0 -0
  306. {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-aparc_approach-median_mean001_desc-length.txt +0 -0
  307. {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-aparc_approach-median_mean001_desc-strength.txt +0 -0
  308. {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-100_approach-median_mean001_desc-length.txt +0 -0
  309. {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-100_approach-median_mean001_desc-strength.txt +0 -0
  310. {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-100_desc-fcgradient01_zscore.txt +0 -0
  311. {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-100_desc-gabaa_zscore.txt +0 -0
  312. {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-100_desc-genepc1_zscore.txt +0 -0
  313. {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-100_desc-myelinmap_zscore.txt +0 -0
  314. {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-100_desc-nmda_zscore.txt +0 -0
  315. {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-100_desc-thickness_zscore.txt +0 -0
  316. {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-100_desc-yeo7.txt +0 -0
  317. {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-100_hemi-LR_desc-FCDtril.txt +0 -0
  318. {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-100_hemi-LR_desc-FCtril.txt +0 -0
  319. {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-100_hemi-LR_exc-inter_desc-FCDtril.txt +0 -0
  320. {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-100_hemi-LR_exc-inter_desc-FCtril.txt +0 -0
  321. {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-200_approach-median_mean001_desc-length.txt +0 -0
  322. {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-200_approach-median_mean001_desc-strength.txt +0 -0
  323. {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-400_approach-median_mean001_desc-length.txt +0 -0
  324. {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-400_approach-median_mean001_desc-strength.txt +0 -0
  325. {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-600_approach-median_mean001_desc-length.txt +0 -0
  326. {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/data/ctx_parc-schaefer-600_approach-median_mean001_desc-strength.txt +0 -0
  327. {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/datasets.py +0 -0
  328. {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/optimize.py +0 -0
  329. {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm/utils.py +0 -0
  330. {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm.egg-info/SOURCES.txt +0 -0
  331. {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm.egg-info/dependency_links.txt +0 -0
  332. {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm.egg-info/entry_points.txt +0 -0
  333. {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm.egg-info/requires.txt +0 -0
  334. {cubnm-0.0.3 → cubnm-0.0.4}/src/cubnm.egg-info/top_level.txt +0 -0
  335. {cubnm-0.0.3 → cubnm-0.0.4}/src/ext/fc.cpp +0 -0
  336. {cubnm-0.0.3 → cubnm-0.0.4}/src/ext/fc.cu +0 -0
  337. {cubnm-0.0.3 → cubnm-0.0.4}/src/ext/models/bw.cpp +0 -0
  338. {cubnm-0.0.3 → cubnm-0.0.4}/src/ext/models/bw.cu +0 -0
  339. {cubnm-0.0.3 → cubnm-0.0.4}/src/ext/models/kuramoto.cpp +0 -0
  340. {cubnm-0.0.3 → cubnm-0.0.4}/src/ext/models/kuramoto.cu +0 -0
  341. {cubnm-0.0.3 → cubnm-0.0.4}/src/ext/models/rww.cu +0 -0
  342. {cubnm-0.0.3 → cubnm-0.0.4}/src/ext/models/rww_fic.cpp +0 -0
  343. {cubnm-0.0.3 → cubnm-0.0.4}/src/ext/models/rwwex.cpp +0 -0
  344. {cubnm-0.0.3 → cubnm-0.0.4}/src/ext/models/rwwex.cu +0 -0
  345. {cubnm-0.0.3 → cubnm-0.0.4}/src/ext/utils.cpp +0 -0
  346. {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
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
- :width: 400px
59
- :align: center
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/
@@ -1,6 +1,6 @@
1
1
  .. image:: https://raw.githubusercontent.com/amnsbr/cubnm/main/docs/_static/logo_text.png
2
- :width: 400px
3
- :align: center
2
+ :align: center
3
+ :width: 350px
4
4
 
5
5
  .. image:: https://img.shields.io/pypi/v/cubnm
6
6
  :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& j,
16
- int& k, int& buff_idx, u_real* _SC,
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& j,
24
- int& k, int& buff_idx, u_real* _SC,
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
  );
@@ -8,7 +8,7 @@ void _run_simulations_cpu(
8
8
  );
9
9
 
10
10
  template <typename Model>
11
- void _init_cpu(BaseModel *m);
11
+ void _init_cpu(BaseModel *m, bool force_reinit);
12
12
 
13
13
  typedef void (*HGlobalInputFunc)(
14
14
  u_real&, int&,
@@ -26,7 +26,7 @@
26
26
  #define MAX_NODES_REG 200
27
27
  #endif
28
28
  #ifndef MAX_NODES_MANY
29
- #define MAX_NODES_MANY 500
29
+ #define MAX_NODES_MANY 1024
30
30
  #endif
31
31
  #ifndef MANY_NODES
32
32
  #define MAX_NODES MAX_NODES_REG
@@ -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, \
@@ -9,5 +9,5 @@ template void _run_simulations_gpu<KuramotoModel>(
9
9
  BaseModel*
10
10
  );
11
11
 
12
- template void _init_gpu<KuramotoModel>(BaseModel*, BWConstants);
12
+ template void _init_gpu<KuramotoModel>(BaseModel*, BWConstants, bool);
13
13
  #endif
@@ -14,5 +14,5 @@ template void _run_simulations_gpu<rWWModel>(
14
14
  BaseModel*
15
15
  );
16
16
 
17
- template void _init_gpu<rWWModel>(BaseModel*, BWConstants);
17
+ template void _init_gpu<rWWModel>(BaseModel*, BWConstants, bool);
18
18
  #endif
@@ -9,5 +9,5 @@ template void _run_simulations_gpu<rWWExModel>(
9
9
  BaseModel*
10
10
  );
11
11
 
12
- template void _init_gpu<rWWExModel>(BaseModel*, BWConstants);
12
+ template void _init_gpu<rWWExModel>(BaseModel*, BWConstants, bool);
13
13
  #endif
@@ -33,9 +33,9 @@ def has_gpus(method='nvcc'):
33
33
  return False
34
34
 
35
35
  # specify installation options
36
- many_nodes = ("CUBNM_MANY_NODES" in os.environ)
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", 500)
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)
@@ -1,6 +1,6 @@
1
- many_nodes_flag = False
1
+ many_nodes_flag = True
2
2
  gpu_enabled_flag = False
3
3
  omp_enabled_flag = True
4
4
  noise_segment_flag = True
5
5
  max_nodes_reg = 200
6
- max_nodes_many = 500
6
+ max_nodes_many = 1024
@@ -8,11 +8,11 @@ import json
8
8
 
9
9
  version_json = '''
10
10
  {
11
- "date": "2024-08-20T19:39:42+0200",
11
+ "date": "2024-09-06T11:50:38+0200",
12
12
  "dirty": false,
13
13
  "error": null,
14
- "full-revisionid": "51995e087738d16c154ced6cc0694b5a2e839453",
15
- "version": "0.0.3"
14
+ "full-revisionid": "435231e5a687cb0cc788a8a9155d1dd8e093da17",
15
+ "version": "0.0.4"
16
16
  }
17
17
  ''' # END VERSION_JSON
18
18
 
@@ -1,7 +1,6 @@
1
1
  """
2
2
  Command line interface for cuBNM
3
3
  """
4
- import argparse
5
4
  import os
6
5
  import pandas as pd
7
6
  from cubnm import datasets, optimize, cli_parser
@@ -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 (self.nodes > max_nodes_reg):
226
- if (not self.use_cpu) and (not many_nodes_flag):
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
- sim_bold, sim_fc_trils, sim_fcd_trils = out[:3]
524
- # assign the additional outputs in indices 3: if
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[3:6]
533
- noise_start_idx = 6
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 = 3
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
- out_data.update(
880
- fic_unstable=self.fic_unstable,
881
- fic_failed=self.fic_failed,
882
- fic_ntrials=self.fic_ntrials,
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
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
- :width: 400px
59
- :align: center
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[j*nodes+k]) % max_delay;
32
- tmp_globalinput += SC[j*nodes+k] * conn_state_var_hist[k_buff_idx*nodes+k];
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[j*nodes+k] * conn_state_var_1[k];
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[j*nodes+k]) % max_delay;
59
- tmp_globalinput += SC[j*nodes+k] * SIN(conn_state_var_hist[k_buff_idx*nodes+k] - conn_state_var_hist[buff_idx*nodes+j]);
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[j*nodes+k] * SIN(conn_state_var_1[k] - conn_state_var_1[j]);
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