-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation guide and first tutorial example comments #1123
Comments
Hi @alecontri you are probably getting the error because you are compiling using "gcc" and not "mpicc". Could you try
instead? |
Yes, on some machines the files are installed in PREFIX/local, this should not make any difference, you correctly adapted the paths. You could configure with |
"Also, as a side comment, under the paragraph -Build t8code with CMake-, there is the subparagraph -tldr;- and following that -Installing using CMake-, what is the difference between the two?" I need to pass that question on to @jmark or @sandro-elsweijer who wrote a lot of the CMake system. |
Hi @holke, the use of gcc instead op mpicc was actually a big oversight, thanks a lot for pointing out. Now the output is: |
Hi, its great to see that the code is running now. We recently encountered issues with OpenMPI and shared memory support - especially on M1 - and this looks related to it. Please refer to #1109 for the shmem issues. I will close this issue for now, since the installation question is answered. |
Linking this solved issue to the review for JOSS I am doing: openjournals/joss-reviews#6887 |
Hi,
I am going through the installation (on MacOS Sonoma 14.5, Apple M1) and I have a couple problems. I will use
$HOME/t8code_install
as in the guide to indicate where I builtt8code
.The last steps in the installation guide are as follows:
Add the library folder to LD_LIBRARY_PATH:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/t8code_install/lib
Add these to your compile line
-I$HOME/t8code_install/include
-L$HOME/t8code_install/lib
-lt8 -lp4est -lsc -lm -lz
but I don't have any
lib
folder int8code_install
, instead they are int8code_install/local
. Is this an expected behaviour?When I do the suggested steps above for
t8code_install/local
and try to runc++ t8_step0_helloworld.cxx -I$HOME/t8code_install/local/include -L$HOME/t8code_install/local/lib -lt8 -lp4est -lsc -lm -lz
, I get the error:fatal error: 'mpi.h' file not found
#include <mpi.h>
^~~~~~~
1 error generated.
I used the suggested
configure CFLAGS="-O3" CXXFLAGS="-O3" --enable-mpi CC=mpicc CXX=mpicxx
for the build.Also, as a side comment, under the paragraph -Build t8code with CMake-, there is the subparagraph -tldr;- and following that -Installing using CMake-, what is the difference between the two?
Thanks a lot for any help,
Alessandro Contri
The text was updated successfully, but these errors were encountered: