From: Samuel H. <ha...@as...> - 2011-10-31 17:07:33
|
Hi Mike, Since the MESA SDK requires adding lines to a user's .tcshrc file, what is the best option for users of fri@ix? I would like to upgrade my version of MESA within fri/sam to incorporate the SDK install, as it is now Bill's default for testing, but I don't want to mess up settings for other users of fri. What do you recommend? Thanks On Mon, Oct 31, 2011 at 9:28 AM, <mes...@li...>wrote: > add mesa sdk > Rich Townsend got tired of hearing me complain about the problems with > mesa installations, > so he's done something about it! > it is optional of course > if you want to do your installations the hard way, you can still fight > with compilers etc yourself. > but now there is an alternative to fighting -- switch by these simple > steps: > unpack the mesa sdk, > add a few lines to your startup script, > ./install > no more worrying about finding the right compiler and no more hassle > getting the right version of pgplot installed. > this is how I'm going to work from now on, so the sdk install will be > what I've used and tested. > the sdk includes the most recent gfortran, and that's now my compiler of > choice. > the performance gap between ifort and gfortran seems to be vanishing > quickly, > and the convenience of having gfortran ready-to-go in the sdk is > wonderful!!!!! > the sdk also includes a pre-built pgplot for mesa, plus prebuilt hdf5 > and se (for Falk and friends) > there is a version for Mac and a version for linux (no, we still don't do > Windows) > > Here's how I made the switch to the mesasdk on my Mac > (customize this as you wish -- for example, the mesasdk directory can go > anywhere you like) > > > unpack mesasdk-x86_64-darwin-20111029.tar.gz > > put the resulting mesasdk directory in my top level directory > (/Users/bpaxton) > > > add lines to my .tcshrc file > > setenv MESASDK_ROOT /Users/bpaxton/mesasdk > > source ${MESASDK_ROOT}/bin/mesasdk_init.csh > > (btw: make sure you are setting OMP_NUM_THREADS too!) > > > copy mesa/utils/makefile_header.mesasdk to mesa/utils/makefile_header > > > start up a new shell and type 'which gfortran' to make sure it finds the > new mesasdk > > /Users/bpaxton/mesasdk/bin/gfortran > > > do ./clean and ./install for mesa to check it out > > |