简体   繁体   English

NEST 模拟器的多线程问题

[英]multi-threading problem for NEST simulator

I want to use multi-threading function in NEST simulator (version 2.20.1) .我想在NEST 模拟器(版本 2.20.1)中使用多线程 function However, it gives a warning No multithreading available, using single threading .但是,它给出了一个警告No multithreading available, using single threading Can anyone help me to solve it?谁能帮我解决它?

I install NEST simulator using conda command我使用 conda 命令安装 NEST 模拟器

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

Below is my code and output:下面是我的代码和 output:

(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

This was indeed a bug, that should be fixed in the latest build.这确实是一个错误,应该在最新版本中修复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM