Comments (4)
I think that the solution for the MFT problem is actually the appropriate one. We somehow have to manage to link to all the packages inside the Conda Environment. It is, however, not clear to me whether this will also work with MPI.
I tried to reproduce it including MPI, OpenMP, readline and ncurses. However, I always ran into compilation errors. That is how I found
nest/nest-simulator#210
Here, the same problems occured. The interesting post is the 2nd to last one. I adapted the suggested solution to my system to have the following lines:
conda env create -f environment.yaml
export ANACONDA3_DIR=~/anaconda3/envs/multiarea_model
conda activate $ANACONDA3_DIR
export NEST_INSTALL_DIR=/absolute/path/to/nest/nest/master_anaconda3.bld/ins
export NEST_BUILD_DIR=/absolute/path/to/nest/master_anaconda3.bld
export NEST_SRC_DIR=/absolute/path/to/nest/nest-simulator
mkdir $NEST_BUILD_DIR && mkdir $NEST_INSTALL_DIR
cd $NEST_BUILD_DIR
CC=${ANACONDA3_DIR}/bin/gcc CXX=${ANACONDA3_DIR}/bin/g++ cmake3 -Dwith-python=3 -DPYTHON_INCLUDE_DIR=${ANACONDA3_DIR}/include/python3.6m -DPYTHON_LIBRARY=${ANACONDA3_DIR}/lib/python3.6 -DCMAKE_INSTALL_PREFIX:PATH=NEST_INSTALL_DIR $NEST_SRC_DIR -Dwith-gsl=${ANACONDA3_DIR} -DREADLINE_ROOT_DIR=${ANACONDA3_DIR} -DLTDL_ROOT_DIR=${ANACONDA3_DIR}`
However, when I execute this (on Blaustein), I get the following error by cmake:
-- The CXX compiler identification is unknown
-- The C compiler identification is unknown
-- Check for working CXX compiler: /home/max.schmidt/anaconda3/envs/multiarea_model/bin/g++
-- Check for working CXX compiler: /home/max.schmidt/anaconda3/envs/multiarea_model/bin/g++ -- broken
CMake Error at /usr/share/cmake3/Modules/CMakeTestCXXCompiler.cmake:54 (message):
The C++ compiler "/home/max.schmidt/anaconda3/envs/multiarea_model/bin/g++"
is not able to compile a simple test program.It fails with the following output:
Change Dir: /home/max.schmidt/nest/master_anaconda3.bld/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/gmake" "cmTC_6fc79/fast"
/usr/bin/gmake -f CMakeFiles/cmTC_6fc79.dir/build.make
CMakeFiles/cmTC_6fc79.dir/buildgmake[1]: Entering directory
`/mnt/beegfs/home/max.schmidt/nest/master_anaconda3.bld/CMakeFiles/CMakeTmp'Building CXX object CMakeFiles/cmTC_6fc79.dir/testCXXCompiler.cxx.o
/home/max.schmidt/anaconda3/envs/multiarea_model/bin/g++
-fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona
-mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2
-pipe -o CMakeFiles/cmTC_6fc79.dir/testCXXCompiler.cxx.o -c
/home/max.schmidt/nest/master_anaconda3.bld/CMakeFiles/CMakeTmp/testCXXCompiler.cxxg++: error: unrecognized command line option ‘-std=c++17’
g++: error: unrecognized command line option ‘-fstack-protector-strong’
g++: error: unrecognized command line option ‘-fno-plt’
gmake[1]: *** [CMakeFiles/cmTC_6fc79.dir/testCXXCompiler.cxx.o] Error 1
gmake[1]: Leaving directory
`/mnt/beegfs/home/max.schmidt/nest/master_anaconda3.bld/CMakeFiles/CMakeTmp'gmake: *** [cmTC_6fc79/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:25 (project)-- Configuring incomplete, errors occurred!
To me, this looks as if the g++ version of my conda environment is too old. The version is 4.8.5 (obtained via g++ -v
) and indeed it lacks the command line option from the error message. However, the system compiler, which I had used for NEST installations so far, has version "gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC)" and it also doesn't recognize the command line option -std=c++17
.
So, is this really a problem of the compiler version?
from multi-area-model.
See #210 of the NEST repository for follow-up discussion.
from multi-area-model.
See also this repository for a systematic approach to find the point of failure.
from multi-area-model.
Looks like it was caused by an issue in the siegert_neuron
, #1059 of the NEST repository fixes it for me.
@mschmidt87, could you have a look if this works for you?
from multi-area-model.
Related Issues (20)
- Data for reproducing figure 3 HOT 3
- Calculation of LvR and correlation coefficients of ground state HOT 26
- About "config_template.py" HOT 1
- simulation environment of multi node HOT 125
- Test suit issues HOT 8
- Issue in reproducing figures HOT 14
- Issue running the analysis using a separate script from that used for simulation HOT 23
- Informative error message for disagreeing hashes HOT 3
- Is "for 'i' in target_pop" an error in this code occured in Model.py HOT 4
- Some confusion in plotting figures HOT 5
- Brain areas of macaque atlas HOT 1
- Cannot find reference 'sort_membrane_by_id' in 'analysis_helpers.py' HOT 2
- About 'K_stable.npy' and 'fullscale_rates.json' HOT 11
- Missing R package `aod` HOT 2
- ImportError: No module named config HOT 1
- Suggestions for improved README HOT 1
- Missing package "aod" on EBRAINS HOT 3
- Correlation-toolbox package missing
- Two sets of parameters for initializing membrane potential
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from multi-area-model.