<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi Roland,</div><div><br></div><div>The toolkit is still building, but it looks like things are working properly and I want to thank you again for your help! </div><div><br></div><div>As you suggested, I added a .hostname file and ran <font face="monospace">./simfactory/bin/sim build --clean --reconfig</font> . I'm past the -fopenmp issue which plagued me for days! Thank you.</div><div><br></div><div>While I was trying to get around the -fopenmp problem, I edited the file</div><div>/Users/murray/Cactus/configs/sim/OptionList . I'm not sure if that file is input or output. It's input, but it might be both. I changed the version name (added a '_' at the end of the version string); set the compiler and preprocessor directives to use gcc-10, etc.; and turned the OpenMP options off.</div><div><br></div><div>When I did the reconfig, the options I set were retained. And it looks like the toolkit is building properly!</div><div><br></div><div>I'm going to see if I can build again while turning OpenMP back on, but I'll wait until this build is complete. It's taking a lot longer to build than I expected (my Macbook Pro is old -- early 2015), so I won't know until tomorrow.</div><div><br></div><div>Again, thanks so much!</div><div><br></div><div>Yours,</div><div><br></div><div>Murray</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 13, 2021 at 11:50 AM Roland Haas <<a href="mailto:rhaas@illinois.edu">rhaas@illinois.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Hello Murray,<br>
<br>
ok. Good to hear that.<br>
<br>
My initial email was a send a bit off the cuff since I had not quite<br>
realized that you were already using the notebook.<br>
<br>
OSX is a bit tricky for the ET to support for the reasons that you<br>
outlined.<br>
<br>
When you run "./simfactory/bin/sim setup-silent" simulation factory will<br>
find the gcc-10 compiler and creates a set of of make options for your<br>
laptop (there's explicit code in simfactory to recongnize OSX). So<br>
running this command is essential.<br>
<br>
You should not have to adjust anything (though given that the last test<br>
with Catalina rather than BigSur was about a year ago that may not be<br>
true anymore if HomeBrew changed too much).<br>
<br>
This set of options is tied to your laptop's hostname as reported by<br>
"hostname -f". Unfortunately this hostname is not "stable" in the<br>
sense that it may change with time since it can be derived from your<br>
laptop's IP address obtained from the wireless network. Eg on my test<br>
laptop it currently reads:<br>
<br>
<a href="http://wirelessprvnat-172-16-210-128.near.illinois.edu" rel="noreferrer" target="_blank">wirelessprvnat-172-16-210-128.near.illinois.edu</a><br>
<br>
So you may have to check that <br>
<br>
"./simfactory/bin/sim whoami"<br>
<br>
returns the expected machine name and run "./simfactory/bin/sim<br>
setup-silent" again if it reports an unknown machine.<br>
<br>
You can also create a file $HOME/.hostname and add a name that you<br>
would like simfactory to use for your laptop eg:<br>
<br>
echo >$HOME/.hostname "murrays-laptop"<br>
<br>
(no spaces allowed).<br>
<br>
Yours,<br>
Roland<br>
<br>
> Hi Roland,<br>
> <br>
> Thanks so much for your response! I've been struggling with the -fopenmp<br>
> issue for a couple of days now. I'll try your suggestions and let you know<br>
> if it works. It's encouraging to know that the ET works with Catalina: that<br>
> gives me hope I'll get it to work eventually.<br>
> <br>
> I'm using the notebook CactusTutorial.ipynb, and I certainly don't want to<br>
> use clang. But the Mac makes using gcc instead of clang tricky. On my<br>
> machine, gcc gets clang; you need to enter gcc-10 to get gcc.<br>
> <br>
> I verified that gcc (gcc-10) accepts the -fopenmp flag properly. So both<br>
> gcc and OpenMP seem to work properly on my machine. My problem is<br>
> convincing ET to use gcc instead of clang! BTW, I'm using brew. It's<br>
> possible that MacPorts would work better, but I think brew and MacPorts are<br>
> incompatible.<br>
> <br>
> Again, thank you and I'll let you know my progress later today.<br>
> <br>
> Yours,<br>
> <br>
> Murray<br>
> <br>
> On Tue, Apr 13, 2021 at 9:55 AM Roland Haas <<a href="mailto:rhaas@illinois.edu" target="_blank">rhaas@illinois.edu</a>> wrote:<br>
> <br>
> > Hello Murray,<br>
> ><br>
> > thinking about this a bit more.<br>
> ><br>
> > The notebook currently (as of last week) lets me compile and run the ET<br>
> > using Homebrew (and worked on Catalina in the past).<br>
> ><br>
> > One thing to keep in mind is that the various CC/CXX and other<br>
> > exported env variables are only used the *first* time you attempt to<br>
> > build and not afterwards.<br>
> ><br>
> > You may have more luck having the options be respected by using:<br>
> ><br>
> > ./simfactory/bin/sim build --clean --reconfig<br>
> ><br>
> > which will recompile from scratch and re-run the configuration stage or<br>
> > even by manually removing the "configs/sim" directory completely.<br>
> ><br>
> > Did you run "simfactory/bin/sim setup-silent" before trying to compile?<br>
> ><br>
> > Yours,<br>
> > Roland<br>
> > <br>
> > > Hello Murray,<br>
> > ><br>
> > > clang (in particular Apple's version delivered in OSX) is not fully<br>
> > > supported by the ET (due to, at least historically, no OpenMP support,<br>
> > > no paired Fortran compiler).<br>
> > ><br>
> > > Please see the initial section of:<br>
> > ><br>
> > > <a href="https://urldefense.com/v3/__https://github.com/nds-org/jupyter-et/blob/master/CactusTutorial.ipynb__;!!DZ3fjg!vBkInm5NFkd2yeuitJ1Bdg6aPGIDCDXMQZsV-k7fG50QV1uy1SqxbWDXQTfC3_p7$" rel="noreferrer" target="_blank">https://urldefense.com/v3/__https://github.com/nds-org/jupyter-et/blob/master/CactusTutorial.ipynb__;!!DZ3fjg!vBkInm5NFkd2yeuitJ1Bdg6aPGIDCDXMQZsV-k7fG50QV1uy1SqxbWDXQTfC3_p7$</a> <br>
> > ><br>
> > > for how to use the ET on OSX using homebrew or macports.<br>
> > ><br>
> > > If you have a Fortran compiler installed you can try disabling openmp<br>
> > > by setting OPENMP=no in your option list. I strongly advise consulting<br>
> > > the link I provided above and following the (tested and<br>
> > > verified) instructions there in particular if this is your first time<br>
> > > using the toolkit.<br>
> > ><br>
> > > Yours,<br>
> > > Roland<br>
> > > <br>
> > > > Hi All,<br>
> > > ><br>
> > > > Thanks so much for making the Einstein Toolkit software available!<br>
> > > ><br>
> > > > I'm using the CactusTutorial.ipynb that I got from your site. I'm <br>
> > trying to <br>
> > > > build ET on my 2015 Macbook Pro running OS 10.15.7.<br>
> > > ><br>
> > > > I'm stuck at the cell (after) *Building the Einstein Toolkit* .<br>
> > > > I modified that cell to get past issues with zlib . The cell now looks <br>
> > like: <br>
> > > ><br>
> > > > %%bash<br>
> > > > export ZLIB_DIR=/usr/local/opt/zlib/lib<br>
> > > > export LDFLAGS="-L/usr/local/opt/zlib/lib"<br>
> > > > export CPPFLAGS="-I/usr/local/opt/zlib/include"<br>
> > > > export PKG_CONFIG_PATH="/usr/local/opt/zlib/lib/pkgconfig"<br>
> > > > ./simfactory/bin/sim build -j2 --thornlist ../<a href="http://einsteintoolkit.th" rel="noreferrer" target="_blank">einsteintoolkit.th</a><br>
> > > ><br>
> > > > Running that cell eventually stops with the errors<br>
> > > ><br>
> > > > COMPILING CactusBase/CoordBase/src/Domain.c<br>
> > > > COMPILING configs/sim/bindings/build/ADMCoupling/cctk_ThornBindings.c<br>
> > > > clang: error: unsupported option '-fopenmp'<br>
> > > > make[3]: *** [Domain.c.o] Error 1<br>
> > > > make[2]: *** [make.checked] Error 2<br>
> > > > make[1]: *** <br>
> > [/Users/murray/Cactus/configs/sim/lib/libthorn_CoordBase.a] Error 2 <br>
> > > > make[1]: *** Waiting for unfinished jobs....<br>
> > > > clang: error: unsupported option '-fopenmp'<br>
> > > > make[3]: *** [cctk_ThornBindings.c.o] Error 1<br>
> > > > make[2]: *** [cctk_Bindings/make.checked] Error 2<br>
> > > > make[1]: *** <br>
> > [/Users/murray/Cactus/configs/sim/lib/libthorn_ADMCoupling.a] <br>
> > > > Error 2<br>
> > > > make: *** [sim] Error 2<br>
> > > ><br>
> > > ><br>
> > > > Can you help? I'm confused by the error message coming from clang, <br>
> > since <br>
> > > > the ET seems to use gcc, but my attempt to force gcc, by including the<br>
> > > > exports below, made no difference:<br>
> > > ><br>
> > > > export CC=gcc-10<br>
> > > > export CXX=gcc-10<br>
> > > ><br>
> > > > I really appreciate any help you are able to provide!<br>
> > > ><br>
> > > > Thank you.<br>
> > > ><br>
> > > > Murray (Wolinsky)<br>
> > > > ______________________________________________________<br>
> > > ><br>
> > > > Additional (likely irrelevant) notes:<br>
> > > ><br>
> > > > I used brew to install the prerequisites. It seemed to have gone<br>
> > > > more-or-less ok.<br>
> > > ><br>
> > > > Brew did issue a somewhat concerning message regarding hdf5:<br>
> > > > <br>
> > > > ==> Pouring hdf5-1.12.0_1.catalina.bottle.1.tar.gz <br>
> > > ><br>
> > > > Warning: hdf5 dependency gcc was built with a different C++ standard<br>
> > > ><br>
> > > > library (libstdc++ from clang). This may cause problems at runtime.<br>
> > > ><br>
> > > ><br>
> > > > But it didn't provide any guidance into fixing the potential problem. <br>
> > Itried <br>
> > > ><br>
> > > ><br>
> > > > brew reinstall hdf5<br>
> > > ><br>
> > > ><br>
> > > > and brew no longer complains.<br>
> > > ><br>
> > > ><br>
> > > > I also had some issues with the subversion installation. But I don't <br>
> > think <br>
> > > > they're responsible for my current problem.<br>
> > > ><br>
> > > ><br>
> > > > Also, when I did the step *Configuring SimFactory for your machine*, I <br>
> > got <br>
> > > > the output:<br>
> > > ><br>
> > > > Here we will define some necessary Simulation Factory defaults.<br>
> > > ><br>
> > > > Determining local machine name: mw-3.local<br>
> > > ><br>
> > > > --------------------SUMMARY--------------------:<br>
> > > ><br>
> > > ><br>
> > > > [default]<br>
> > > > user = murray<br>
> > > > email = murray<br>
> > > > allocation = NO_ALLOCATION<br>
> > > ><br>
> > > > ------------------END SUMMARY------------------:<br>
> > > ><br>
> > > > Contents successfully written to<br>
> > > > /Users/murray/Cactus/repos/simfactory2/etc/defs.local.ini<br>
> > > ><br>
> > > ><br>
> > > > which looks OK, but the NO_ALLOCATION message seems like it might be <br>
> > of concern? <br>
> > ><br>
> > > <br>
> ><br>
> ><br>
> > --<br>
> > My email is as private as my paper mail. I therefore support encrypting<br>
> > and signing email messages. Get my PGP key from <a href="https://urldefense.com/v3/__http://pgp.mit.edu__;!!DZ3fjg!vBkInm5NFkd2yeuitJ1Bdg6aPGIDCDXMQZsV-k7fG50QV1uy1SqxbWDXQUQagYP8$" rel="noreferrer" target="_blank">https://urldefense.com/v3/__http://pgp.mit.edu__;!!DZ3fjg!vBkInm5NFkd2yeuitJ1Bdg6aPGIDCDXMQZsV-k7fG50QV1uy1SqxbWDXQUQagYP8$</a> .<br>
> > <br>
<br>
<br>
-- <br>
My email is as private as my paper mail. I therefore support encrypting<br>
and signing email messages. Get my PGP key from <a href="http://pgp.mit.edu" rel="noreferrer" target="_blank">http://pgp.mit.edu</a> .<br>
</blockquote></div></div></div></div>