【问题标题】:multi-threading problem for NEST simulatorNEST 模拟器的多线程问题
【发布时间】:2021-01-14 01:18:24
【问题描述】:

我想在NEST simulator (version 2.20.1) 中使用multi-threading function。但是,它会发出警告No multithreading available, using single threading。谁能帮我解决一下?

我使用 conda 命令安装 NEST 模拟器

conda create --name nest -c conda-forge nest-simulator 

下面是我的代码和输出:

(nest) edward@edward-MacBook-Pro ~ % python             
Python 3.9.1 | packaged by conda-forge | (default, Jan 10 2021, 02:52:42) 
[Clang 11.0.0 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.

\>>> import nest

[INFO] [2021.1.14 11:32:57 /Users/runner/miniforge3/conda-bld/nest-simulator_1607081529208/work/nestkernel/rng_manager.cpp:217 @ Network::create_rngs_] : Creating default RNGs

[INFO] [2021.1.14 11:32:57 /Users/runner/miniforge3/conda-bld/nest-simulator_1607081529208/work/nestkernel/rng_manager.cpp:260 @ Network::create_grng_] : Creating new default global RNG

N E S T

Copyright (C) 2004 The NEST Initiative

 Version: nest-2.20.1
 Built: Dec  4 2020 11:38:17

 This program is provided AS IS and comes with
 NO WARRANTY. See the file LICENSE for details.

 Problems or suggestions?
   Visit https://www.nest-simulator.org

 Type 'nest.help()' to find out more about NEST.

\>>> **nest.SetKernelStatus({"local_num_threads": 4})**

**Jan 14 11:33:02 VPManager::set_status [Warning]: 
    No multithreading available, using single threading**

Jan 14 11:33:02 ModelManager::clear_models_ [Info]: 
    Models will be cleared and parameters reset.

Jan 14 11:33:02 Network::create_rngs_ [Info]: 
    Deleting existing random number generators

Jan 14 11:33:02 Network::create_rngs_ [Info]: 
    Creating default RNGs

Jan 14 11:33:02 Network::create_grng_ [Info]: 
    Creating new default global RNG

【问题讨论】:

  • 欢迎来到社区,如果您可以将代码连同日志一起复制并粘贴到您的问题中,那就太好了:)
  • 这似乎是 MacOS 的 conda 包中的一个错误。开发人员正在研究它。

标签: python neuroscience nest-simulator


【解决方案1】:

这确实是一个错误,应该在最新版本中修复。

【讨论】:

  • 谢谢。我已经将它安装在 Linux 上。希望尽快修复这个错误。
  • 应该已经修好了。如果您在 MacOS 构建中仍然遇到问题,请告诉我们。
猜你喜欢
  • 1970-01-01
  • 2016-06-12
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多