neurali:nemo_output_compilazione
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
neurali:nemo_output_compilazione [2015/07/21 18:08] – profpro | neurali:nemo_output_compilazione [2020/06/08 22:20] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====NeMo output compilazione==== | ||
+ | Purtroppo NeMo non compila, anche a causa di diversi errori nel codice, ma non solo | ||
+ | |||
+ | Errore 1 | ||
+ | |||
+ | Si deve aggiungere alla riga 9 di ./ | ||
+ | |||
+ | set(CMAKE_CXX_FLAGS " | ||
+ | set(INCLUDE_DIR / | ||
+ | include_directories (${INCLUDE_DIR}) | ||
+ | |||
+ | ;;; NOTA: questo causerà un errore fatale perché [[neurali: | ||
+ | |||
+ | http:// | ||
+ | |||
+ | DA FARE : Trucco: Separare CUDA in file .cu (c++03) che nvcc compila. Il resto in file .cpp | ||
+ | |||
+ | Errore 2 | ||
+ | < | ||
+ | mpi_dist.cpp: | ||
+ | CMakeFiles/ | ||
+ | CMakeFiles/ | ||
+ | collect2: error: ld returned 1 exit status | ||
+ | make[2]: *** [src/ | ||
+ | make[1]: *** [src/ | ||
+ | make: *** [all] Error 2 | ||
+ | </ | ||
+ | Si deve modificare la riga 27 di ./ | ||
+ | |||
+ | TARGET_LINK_LIBRARIES(nemo_mpi_dist nemo ${MPI_LIBRARIES} ${LTDL_LIBRARY} ${Boost_LIBRARIES}) | ||
+ | |||
+ | errore di linking | ||
+ | |||
+ | sostituire riga 22,23 in ./ | ||
+ | |||
+ | ADD_EXECUTABLE(mpi_dist mpi_dist.cpp parsing.cpp common.cpp) | ||
+ | TARGET_LINK_LIBRARIES(mpi_dist nemo nemo_mpi_dist ${MPI_LIBRARIES} ${Boost_LIBRARIES}) | ||
+ | |||
+ | Errore 3 | ||
+ | < | ||
+ | [ 12%] Building CXX object src/ | ||
+ | |||
+ | / | ||
+ | ‘void nemo:: | ||
+ | |||
+ | / | ||
+ | ‘MPI:: | ||
+ | |||
+ | MPI_Cancel(recv_request); | ||
+ | ^ | ||
+ | make[2]: *** [src/ | ||
+ | make[1]: *** [src/ | ||
+ | make: *** [all] Error 2 | ||
+ | </ | ||
+ | |||
+ | Come correggere? Commentare il codice?????? | ||
+ | < | ||
+ | /* | ||
+ | * if (!MPI:: | ||
+ | MPI_Cancel(recv_request); | ||
+ | count--; | ||
+ | } | ||
+ | * | ||
+ | * */ | ||
+ | </ | ||
+ | |||
+ | Errore 4 | ||
+ | |||
+ | ./ | ||
+ | < | ||
+ | target_t a; | ||
+ | | ||
+ | </ | ||
+ | |||
+ | Errore 5 | ||
+ | < | ||
+ | [ 12%] Building NVCC (Device) object src/ | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | infatti i file.cu vengono compilati con [[neurali: | ||
+ | |||
+ | >> https:// | ||
+ | >> I believe the solution in Linux is to compile your cpp files separately with gcc >= 4.8.1 and have nvcc | ||
+ | >> compile the cu files using gcc 4.7, assuming nvcc doesn' | ||
+ | >> host_config.h file you mentioned. | ||
+ | |||
+ | **Allora** | ||
+ | |||
+ | per **non** usare CUDA, NVCC, ecc,.. commentare riga 14 ./ | ||
+ | |||
+ | / | ||
+ | |||
+ | Inoltre commentare anche riga 260 e 238 e 456 ./ | ||
+ | |||
+ | NEMO_CUDA_ENABLED: | ||
+ | CUDA_ATTACH_VS_BUILD_RULE_TO_CUDA_FILE: | ||
+ | NEMO_CUDA_ENABLED: | ||
+ | | ||
+ | |||
+ | make install | ||
+ | |||
+ | < | ||
+ | [ 1%] Using existing manual | ||
+ | [ 3%] Built target api-doc-latex | ||
+ | [ 41%] Built target nemo_base | ||
+ | [ 45%] Built target nemo_cpu | ||
+ | [ 47%] Using existing man pages | ||
+ | [ 49%] Built target api-doc-man | ||
+ | [ 54%] Built target nemo | ||
+ | [ 56%] Built target nemo-app | ||
+ | [ 60%] Built target kuramoto | ||
+ | [ 70%] Built target nemo_mpi_dist | ||
+ | [ 76%] Built target mpi_dist | ||
+ | [ 80%] Built target mpi_dist_general | ||
+ | [ 84%] Built target random | ||
+ | [ 88%] Built target torus | ||
+ | [ 90%] Built target IF_curr_exp_cpu | ||
+ | [ 92%] Built target Input_cpu | ||
+ | [ 94%] Built target Izhikevich_cpu | ||
+ | [ 96%] Built target Kuramoto_cpu | ||
+ | [ 98%] Built target PoissonSource_cpu | ||
+ | [100%] Built target nemo_py | ||
+ | Install the project... | ||
+ | -- Install configuration: | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Set runtime path of "/ | ||
+ | -- Installing: / | ||
+ | -- Set runtime path of "/ | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Set runtime path of "/ | ||
+ | -- Installing: / | ||
+ | -- Set runtime path of "/ | ||
+ | -- Installing: / | ||
+ | -- Set runtime path of "/ | ||
+ | -- Installing: / | ||
+ | -- Set runtime path of "/ | ||
+ | -- Installing: / | ||
+ | -- Set runtime path of "/ | ||
+ | -- Installing: / | ||
+ | -- Set runtime path of "/ | ||
+ | -- Installing: / | ||
+ | -- Set runtime path of "/ | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Set runtime path of "/ | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Set runtime path of "/ | ||
+ | -- Installing: / | ||
+ | -- Set runtime path of "/ | ||
+ | -- Installing: / | ||
+ | -- Set runtime path of "/ | ||
+ | -- Installing: / | ||
+ | -- Set runtime path of "/ | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | </ | ||
+ | |||
+ | A questo punto NeMo risulta compilato, ma senza CUDA | ||
+ | |||
+ | poi pero' spikestream non funziona se NeMo non fornisce CUDA |