Installation

From libMesh Wiki

(Difference between revisions)
Jump to: navigation, search
(http://quacasit.hostinginfive.com/article128.htm)
Current revision (22:48, 4 January 2011) (view source)
 
(35 intermediate revisions not shown.)
Line 1: Line 1:
-
[http://quacasit.hostinginfive.com/article128.htm samourais movie] [http://koracdron.hostinginfive.com/2009-01-08-ciagov.html domain] [http://nefuwalt.oamm.info/sitemap.htm links] [http://lienvard.hostinginfive.com/kisd-2009-01-05.htm closings kisd school] [http://mexdomzar.hostinginfive.com/vihenmo.html noninvasive cardiology]
 
-
[http://nefuwalt.oamm.info/new472.htm sexy ass bitch] [http://lienvard.hostinginfive.com/pharmacy-job-in-2009-01-03.htm pharmacy job in alaska] [http://lienvard.hostinginfive.com/sitemap.htm domain] [http://sedrelolo.hostinginfive.com/lowest-grossing.html lowest grossing movie of all time] [http://rotrplif.hostinginfive.com/new605.htm free download twisted metal 2]
 
-
[http://cpaspfoks.hostinginfive.com/sitemap.htm link] [http://koracdron.hostinginfive.com/2009-01-13-mammography-video.html mammography video] [http://nefuwalt.oamm.info/new327.htm longest yard soundtrack - nelly] [http://mexdomzar.hostinginfive.com/oubofokt.html force vector] [http://lienvard.hostinginfive.com/online-interactive-2009-01-03.htm online interactive training]
 
-
[http://koracdron.hostinginfive.com/2009-01-08-alpha-romeo.html alpha romeo spider] [http://koracdron.hostinginfive.com/2009-01-03-alloys-intl.html alloys intl] [http://rotrplif.hostinginfive.com/new1190.htm irs tax lien] [http://getcones.oamm.info/sitemap.html index] [http://koracdron.hostinginfive.com/2009-01-14-buy-xanax.html buy xanax xr]
 
-
[http://cpaspfoks.hostinginfive.com/full-music-ringtone-2009-01-08.htm full music ringtone] [http://lienvard.hostinginfive.com/average-job-salaries-2009-01-02.htm average job salaries] [http://mexdomzar.hostinginfive.com/acelzoup.html iopd video] [http://sedrelolo.hostinginfive.com/irvine-real-estate.html irvine real estate for sale] [http://deerheni.oamm.info/article802.htm unique wedding shower gifts]
 
-
[http://cpaspfoks.hostinginfive.com/music-video-for-2009-01-08.htm music video for crazy train] [http://nefuwalt.oamm.info/new1778.htm new taxi water york] [http://koracdron.hostinginfive.com/2008-12-31-santee-drive.html santee drive in movie theater] [http://brricrof.oamm.info/sitemap.html site] [http://lienvard.hostinginfive.com/cold-turkey-to-2009-01-03.htm cold turkey to quit smoking]
 
-
[http://cpaspfoks.hostinginfive.com/paap-movie-review-2009-01-12.htm paap movie review] [http://mexdomzar.hostinginfive.com/darfio.html jewelryboxes] [http://cpaspfoks.hostinginfive.com/kekale-2009-01-11.htm kekale] [http://ptakosit.hostinginfive.com/20081231-side-effect-and.html side effect and result with meridia] [http://mexdomzar.hostinginfive.com/inerdel.html monkey scratching video]
 
-
[http://henlipn.hostinginfive.com/kocnaq.html killeen drive in movie] [http://deerheni.oamm.info/article409.htm black lez] [http://getcones.oamm.info/news-1718.html fine piece of ass] [http://lienvard.hostinginfive.com/lg-vx4500-ringtones-2009-01-11.htm lg vx4500 ringtones download] [http://nefuwalt.oamm.info/new1413.htm layout myspace retro]
 
-
[http://rotrplif.hostinginfive.com/new744.htm breeders canada pug] [http://ptakosit.hostinginfive.com/20081231-adult-file-host.html adult file host video] [http://sedrelolo.hostinginfive.com/katrina-aftermath.html katrina aftermath videos] [http://rotrplif.hostinginfive.com/new1017.htm free msn emoticon] [http://debrrolro.hostinginfive.com/comment478.htm zennia flower]
 
-
[http://debrrolro.hostinginfive.com/comment306.htm surveillance lex video alarm security systems] [http://quacasit.hostinginfive.com/article490.htm sweety the chick free ringtones] [http://koracdron.hostinginfive.com/2009-01-11-naturism-family.html naturism family] [http://getcones.oamm.info/news-403.html phontom of the opera the movie] [http://brricrof.oamm.info/article1495.html naughtybids.com]
 
-
[http://henlipn.hostinginfive.com/acelliv.html pirated saw] [http://henlipn.hostinginfive.com/plsaale.html american burgess comparing democracy house our today] [http://cpaspfoks.hostinginfive.com/erotic-movie-clips-2009-01-01.htm erotic movie clips] [http://debrrolro.hostinginfive.com/comment1070.htm ozark boat dealers] [http://rotrplif.hostinginfive.com/new1741.htm jennifer lopez fucking]
 
-
[http://nefuwalt.oamm.info/new1955.htm night in paris free video] [http://henlipn.hostinginfive.com/paselr.html josie maran naked] [http://deerheni.oamm.info/article1191.htm among giants movie] [http://rotrplif.hostinginfive.com/new486.htm activeds c] [http://mexdomzar.hostinginfive.com/ricdomfur.html temperature converter]
 
-
[http://sakonze.qsh.eu/cabonot-1757.html murder hindi movie songs free download] [http://sakonze.qsh.eu/sitemap.html site] [http://saererg.0lx.net/20081116-erotik-fun-moviez.htm erotik fun moviez pic sex] [http://sematild.qsh.eu/resource1625.htm ancient civilizations for children video series] [http://huruple.qsh.eu/20081223-amateur-video-woman.htm amateur video woman masturbating]
 
-
[http://lifokdron.0lx.net/1046.html ecs 320 laptop video controllers] [http://sakonze.qsh.eu/qastaq-1734.html kelly clarkson breakaway video pictures] [http://mahohmie.qsh.eu/resource385.htm railroad accident videos] [http://sakonze.qsh.eu/rolorqua-1077.html elderly exercise video] [http://golxando.0lx.net/1069688466.html loose change online videos]
 
-
[http://licawol.strefa.pl/resource1153.htm phototomovie serial] [http://licawol.strefa.pl/resource911.htm movie prize pulitzer] [http://zelgetgo.0lx.net/new1718.htm logo movie shirt] [http://sematild.qsh.eu/resource1723.htm afghanistan war video] [http://roladarh.strefa.pl/news-1850.html anandam tamil movie]
 
-
[http://ettaelt.strefa.pl/news-744.html page streaming video web] [http://sematild.qsh.eu/sitemap.htm url] [http://dronoubr.0lx.net/ebony-sample-video.html ebony sex sample video] [http://zelzelqa.is-the-boss.com/news-partition-magic-2008-12-28.html partition magic v8.0 crack] [http://dronoubr.0lx.net/anime-xxx-sample.html anime xxx sample video]
 
-
[http://fispruil.qsh.eu/news1611.html it movie premiere stick] [http://dronoubr.0lx.net/amr-diab-music.html amr diab music online video] [http://qasletop.is-the-boss.com/relreq.html re sublimity torrent] [http://qasletop.is-the-boss.com/reldomb.html adobe after effects 5.5 serial number] [http://huruple.qsh.eu/20090101-nuclear-bomb.htm nuclear bomb testing videos]
 
-
[http://acsitzar.0lx.net/news-extractor-video-2008-11-10.html extractor video] [http://sedplxca.is-the-boss.com/aston-191-serial-2008-12-26.htm aston 1.9.1 serial crack] [http://cnavieltz.strefa.pl/sitemap.htm site] [http://mahohmie.qsh.eu/resource654.htm male torture video] [http://dronoubr.0lx.net/polar-express.html polar express movie web site]
 
-
[http://bukgetert.0lx.net/article-311.htm pic post video] [http://mahohmie.qsh.eu/resource209.htm milian videos] [http://bukgetert.0lx.net/article-584.htm asian woman sex video free] [http://chifire.strefa.pl/news-442.html exploding dell laptop video] [http://flheddin.qsh.eu/qasdomca-1612.html latin movie ass]
 
-
[http://sakonze.qsh.eu/elthen-101.html imtoo 3gp video converter license code] [http://betheres.qsh.eu/comment-1548.htm low rider movie] [http://mahohmie.qsh.eu/resource136.htm age deterioration movie] [http://zelfibu.strefa.pl/ricmon-936.html sitemap] [http://roladarh.strefa.pl/news-535.html along american move music reject video]
 
-
[http://tarobasal.strefa.pl/article995.htm movie qp] [http://ettaelt.strefa.pl/sitemap.html map] [http://flheddin.qsh.eu/moncadro-1949.html steve elkington video] [http://tacataca.strefa.pl/comment-1552.htm shock video.com] [http://bukgetert.0lx.net/article-28.htm webmap]
 
-
[http://bukgetert.0lx.net/article-1008.htm public access video] [http://zelfibu.strefa.pl/monrolhen-9.html play free movie now gay] [http://lifokdron.0lx.net/19.html aneta keys movies] [http://qasletop.is-the-boss.com/acelrolbu.html pdf ebook crack] [http://betheres.qsh.eu/comment-196.htm anger st video]
 
-
[http://zelgetgo.0lx.net/new658.htm audio video to wav converter serial] [http://lofaako.strefa.pl/article1710.html movie sunporno] [http://cnavieltz.strefa.pl/comment-543.htm latest james bond movies] [http://chifire.strefa.pl/news-1720.html ram videos com] [http://dronoubr.0lx.net/acoustic-research.html acoustic research s video]
 
-
[http://zelfibu.strefa.pl/firelloq-458.html amnesia author develops movie] [http://qasletop.is-the-boss.com/lafainh.html aspirate definition] [http://cnavieltz.strefa.pl/comment-311.htm lifeguard video] [http://dronoubr.0lx.net/putting-on-stockings.html putting on stockings movies] [http://ettaelt.strefa.pl/news-1112.html ikea tidy up video]
 
-
[http://sedplxca.is-the-boss.com/sitemap.htm url] [http://acsitzar.0lx.net/news-animal-for-kid-2008-11-17.html animal for kid movie] [http://zelgetgo.0lx.net/new522.htm slipknot wait and bleed music videos] [http://saererg.0lx.net/20081113-movie-porn-rate.htm movie porn rate] [http://chifire.strefa.pl/news-1544.html nude pussy free movie]
 
-
[http://licawol.strefa.pl/resource1475.htm strawberrys music and movies] [http://betheres.qsh.eu/sitemap.htm page] [http://chifire.strefa.pl/news-610.html ls land video] [http://releltl.0lx.net/20081119-lactate-breast-tit.html lactate breast tit video porn] [http://zelgetgo.0lx.net/new228.htm surviving the game movie]
 
-
[http://zelfibu.strefa.pl/acelxl-430.html rammstein music video sonne] [http://vihencbr.0lx.net/malibus-most-wanted.html malibus most wanted movie] [http://chifire.strefa.pl/news-156.html somekind of wonderful movie] [http://fispruil.qsh.eu/news1814.html super trooper movie clip] [http://zelfibu.strefa.pl/ricmon-936.html index]
 
-
[http://vihencbr.0lx.net/jaws-shark-movie.html jaws shark movie] [http://releltl.0lx.net/20081116-nicole-kidman.html nicole kidman movies 2004] [http://cnavieltz.strefa.pl/comment-1491.htm if you were mine video] [http://acsitzar.0lx.net/news-super-club-videotorn-2008-11-15.html super club videotorn] [http://qasletop.is-the-boss.com/sitemap.html domain]
 
-
[http://flheddin.qsh.eu/fokdom-1728.html mudslide california video] [http://flheddin.qsh.eu/innealpa-1124.html larry king live video clips] [http://dronoubr.0lx.net/sitemap.html http] [http://tacataca.strefa.pl/comment-311.htm pierce bronson james bond movies] [http://caraines.qsh.eu/racrol.htm n625 video driver]
 
-
[http://baslozaro.is-the-boss.com/article873.html license plate 2001 pontiac bonneville sle] [http://baslozaro.is-the-boss.com/article856.html photo shop cs activation code] [http://fispruil.qsh.eu/news1049.html sex movie trailers free] [http://roladarh.strefa.pl/news-870.html jordan maze videos] [http://sakonze.qsh.eu/enalricwt-1115.html josie model videos]
 
-
[http://saererg.0lx.net/20081114-joe-millionaire.htm joe millionaire action movie] [http://spfortne.qsh.eu/20081226-old-school-movie.html old school movie wedding song] [http://caraines.qsh.eu/sitfupa.htm saturday night fever movie clip] [http://tulilre.strefa.pl/2008-12-24-anal-toy-movie.html anal toy movie] [http://dronoubr.0lx.net/swat-movie-theme.html s.w.a.t. movie theme song]
 
-
[http://qasletop.is-the-boss.com/sitemap.html page] [http://sedplxca.is-the-boss.com/sitemap.htm index] [http://saererg.0lx.net/20081118-k1-video-clip.htm k1 video clip] [http://roladarh.strefa.pl/news-1411.html ratings movies] [http://lofaako.strefa.pl/article1662.html editing professional riverside video]
 
-
[http://fademon.0lx.net/article-1269.htm krystal steal free video] [http://tulilre.strefa.pl/2009-01-06-adult-dirty-talk.html adult dirty talk video] [http://lofaako.strefa.pl/article320.html albertsons video rentals] [http://tacataca.strefa.pl/comment-774.htm small penis movie] [http://qasletop.is-the-boss.com/sitemap.html index]
 
-
[http://releltl.0lx.net/20081121-shaun-of-the.html shaun of the dead movie script] [http://releltl.0lx.net/20081110-motherfucker-video.html motherfucker video] [http://roladarh.strefa.pl/news-1663.html adult flash video] [http://chifire.strefa.pl/news-278.html logitech quickcam orbit digital video camera] [http://sematild.qsh.eu/resource1980.htm american flag waving video]
 
-
[http://betheres.qsh.eu/comment-1358.htm clip import racing video] [http://fispruil.qsh.eu/news371.html london dirty bomb movie] [http://bukgetert.0lx.net/article-1718.htm clip long movie xxx] [http://bukgetert.0lx.net/article-432.htm autorotation video] [http://zelgetgo.0lx.net/new1159.htm sex video in the philippine]
 
-
[http://sematild.qsh.eu/resource1987.htm male movie nude star] [http://saererg.0lx.net/20081113-shania-twain-video.htm shania twain video forever and for always] [http://releltl.0lx.net/20081117-movie-showtimes.html movie showtimes trailer yahoo] [http://baslozaro.is-the-boss.com/sitemap.html index] [http://sakonze.qsh.eu/varzel-146.html new movie stay]
 
-
[http://naceceli.qsh.eu/page1112.html september 11th conspiracy video] [http://caraines.qsh.eu/acelalhen.htm sholay movie songs] [http://betheres.qsh.eu/comment-1544.htm import video game reviews] [http://sedplxca.is-the-boss.com/ladder-49-dvdrip-2008-12-23.htm ladder 49 dvdrip torrent] [http://zelzelqa.is-the-boss.com/news-pirate-4x4-board-2009-01-05.html pirate 4x4 board]
 
-
[http://licawol.strefa.pl/resource1670.htm janis joplin and kozmic blues and video] [http://betheres.qsh.eu/comment-755.htm link] [http://huruple.qsh.eu/20081228-nba-video-games.htm nba video games] [http://caraines.qsh.eu/sariccn.htm accepted fake movie school] [http://acsitzar.0lx.net/sitemap.html links]
 
-
[http://acsitzar.0lx.net/news-imovie-pc-2008-11-21.html imovie pc] [http://sedplxca.is-the-boss.com/aircrack-download-2008-12-24.htm aircrack download for windows] [http://faquafav.is-the-boss.com/sitemap.htm http] [http://ettaelt.strefa.pl/news-532.html killing me softly movie trailer] [http://bukgetert.0lx.net/article-55.htm sidney lumet making movies]
 
-
[http://lofaako.strefa.pl/article1243.html movie search song] [http://golxando.0lx.net/1065816585.html anal sex movie and pic] [http://varpasz.is-the-boss.com/article960.htm mac office 2004 serial key] [http://licawol.strefa.pl/resource1636.htm ice age 2 movie com] [http://chifire.strefa.pl/news-536.html movie trailer coming soon]
 
-
[http://ettaelt.strefa.pl/news-1841.html lake geneva movie theaters] [http://hencnac4t.is-the-boss.com/news-mobile-fighter-g-2008-12-24.html mobile fighter g gundam torrent] [http://releltl.0lx.net/20081115-movie-saw-three.html movie saw three] [http://brc4tdro.is-the-boss.com/page588.html jem torrent] [http://lifokdron.0lx.net/sitemap.html sitemap]
 
-
[http://sakonze.qsh.eu/viordron-1253.html a good night to die movie] [http://fademon.0lx.net/sitemap.htm link] [http://dronoubr.0lx.net/sample-videobox.html sample videobox] [http://lofaako.strefa.pl/article33.html my chemical romances new video] [http://cnavieltz.strefa.pl/comment-1532.htm angel download locsin scandal video]
 
-
lidomlitro
 
There are installation instructions at http://libmesh.sourceforge.net/installation.php, but if you are reading this, you want to hear more than that. If you have problems installing libmesh, I suggest to use ''exactly'' the procedure below. If it works, you can then experiment with other possibilities (changing compiler, playing with configure options etc.)
There are installation instructions at http://libmesh.sourceforge.net/installation.php, but if you are reading this, you want to hear more than that. If you have problems installing libmesh, I suggest to use ''exactly'' the procedure below. If it works, you can then experiment with other possibilities (changing compiler, playing with configure options etc.)
Line 191: Line 148:
''This should work for any Debian-based distro, but was specifically tested on Ubuntu Dapper.''
''This should work for any Debian-based distro, but was specifically tested on Ubuntu Dapper.''
-
To obtain the libraries from the repositories, add the ''universe'' to /etc/apt/sources.list . (Instead of ''dapper'' you should choose your edition, ''breezy'' is stable before 04.2006, ''dapper'' after the release in 04.2006.)
+
To obtain the libraries from the repositories, add the ''universe'' to /etc/apt/sources.list . (Instead of ''dapper'' you should choose your edition, ''breezy'' is stable before 04.2006, ''dapper'' after the release in 04.2006.) [http://www.merchantos.com/ pos software]
<pre>
<pre>
Line 292: Line 249:
== libmesh Installation on Debian Lenny/Testing ==
== libmesh Installation on Debian Lenny/Testing ==
-
Summary: Things have changed in Lenny compared to Etch, mainly that the open source MPI implementation, OpenMPI, is used by default for PETSc instead of MPICH.  Those who recently upgraded from Etch (and not using a fresh Lenny install) make sure to purge all remnants of MPICH and LAM using "aptitude purge XXX," this will save you from hours of headache...so assuming your machine is a clean slate:
+
Summary: Things have changed in Lenny compared to Etch, mainly that the open source MPI implementation, OpenMPI, is used by default for PETSc instead of MPICH.  Those who recently upgraded from Etch (and not using a fresh Lenny install) make sure to purge all remnants of MPICH and LAM using "aptitude purge XXX," this will save you from hours of headache...so assuming your machine is a clean slate:
1) I used the latest version of LibMesh (0.6.2).
1) I used the latest version of LibMesh (0.6.2).
Line 411: Line 368:
== libmesh from cvs on lonestar.tacc.utexas.edu ==
== libmesh from cvs on lonestar.tacc.utexas.edu ==
-
[http://www.tacc.utexas.edu/resources/hpcsystems lonestar.tacc.utexas.edu is TACC's latest em64t cluster].  The following instructions show how to build libMesh for this machine. These instructions assume you use bash as your shell.
+
[http://www.tacc.utexas.edu/resources/hpcsystems lonestar.tacc.utexas.edu is TACC's latest em64t cluster].  The following instructions show how to build libMesh for this machine. These instructions assume you use bash as your shell.
<pre>
<pre>
cvs -d:pserver:anonymous@libmesh.cvs.sourceforge.net:/cvsroot/libmesh co libmesh  
cvs -d:pserver:anonymous@libmesh.cvs.sourceforge.net:/cvsroot/libmesh co libmesh  
Line 434: Line 391:
-
--[[User:Benkirk|Benkirk]] Sat Jul 7 21:10:08 CDT 2007
+
--[[User:Benkirk|Benkirk]] Sat Jul 7 21:10:08 CDT 2007
Line 440: Line 397:
== libmesh from svn on ranger.tacc.utexas.edu ==
== libmesh from svn on ranger.tacc.utexas.edu ==
-
[http://www.tacc.utexas.edu/resources/hpcsystems/#ranger Ranger] is TACC's latest supercomputer.  Check out the [http://www.tacc.utexas.edu/services/userguides/ranger/ Ranger user guide] for more information.  The software on Ranger is in a relatively rapid state of flux.  These instructions may become outdated or superseded by new information in a relatively short amount of time...  We may eventually be able to build a libmesh module on ranger that would simplify this process.
+
[http://www.tacc.utexas.edu/resources/hpcsystems/#ranger Ranger] is TACC's latest supercomputer.  Check out the [http://www.tacc.utexas.edu/services/userguides/ranger/ Ranger user guide] for more information.  [http://www.floridatechonline.com/undergraduate-as-computer-information-systems-degree.asp associates degree computer information systems] The software on Ranger is in a relatively rapid state of flux.  These instructions may become outdated or superseded by new information in a relatively short amount of time...  We may eventually be able to build a libmesh module on ranger that would simplify this process. [http://www.Ocularconcepts.us Marketing Companies]
First: unload/load appropriate system software modules.  
First: unload/load appropriate system software modules.  
Line 464: Line 421:
</pre>
</pre>
-
Intel 10.1 has a difficult time with the variational smoother code for some reason.  Here, we've decided to simply disable it to speed up compiling.  You'll need to recompile later if you do decide you'll need the variational smoother capability.
+
Intel 10.1 has a difficult time with the variational smoother code for some reason.  Here, we've decided to simply disable it to speed up compiling.  You'll need to recompile later if you do decide you'll need the variational smoother capability. [http://www.floridatechonline.com/undergraduate-ba-criminal-justice-degree.asp criminal justice major]

Current revision

There are installation instructions at http://libmesh.sourceforge.net/installation.php, but if you are reading this, you want to hear more than that. If you have problems installing libmesh, I suggest to use exactly the procedure below. If it works, you can then experiment with other possibilities (changing compiler, playing with configure options etc.)

Please add your own experience here, if you use a different configuration.

Contents

Tips for building PETSc 2.3.3 on GNU/Linux

In this version of PETSc, the configure scripts and the Makefile both exit if they detect that you are trying to build PETSc as root. Unfortunately the 'make install' target provided by Petsc 2.3.3 will not produce a working PETSc installation after building the library in your home directory. I resorted to commenting out the checks for root in config/configure.py (around line 95) and in the 'all' target of the Makefile. I also did a monolithic build which included having PETSc download and build MPI and BLAS/Lapack during its configuration process. Following are the configure options used for debug mode:

# (DEBUG MODE)
# You will need ~1Gb to build everything
cd /my/petsc/dir
export PETSC_DIR=`pwd`
export PETSC_ARCH=linux-gnu-dbg
./config/configure.py --with-cc=gcc --with-fc=gfortran --with-mpi-compilers=0 \
    --with-shared=1 \
    --with-debugging=1 \
    --with-superlu=1 --download-superlu=1 \
    --with-superlu_dist=1 --download-superlu_dist=1 \
    --with-umfpack=1 --download-umfpack=1 \
    --with-spooles=1 --download-spooles=1 \
    --with-hypre=1 --download-hypre=1 \
    --with-mpi --download-mpich=1 \
    --download-f-blas-lapack=yes

And, for optimized mode:

# (OPTIMIZED MODE)
cd /my/petsc/dir
export PETSC_DIR=`pwd`
export PETSC_ARCH=linux-gnu-opt
./config/configure.py --with-cc=gcc --with-fc=gfortran --with-mpi-compilers=0 \
    --with-shared=1 \
    --with-debugging=0 \
    --with-superlu=1 --download-superlu=1 \
    --with-superlu_dist=1 --download-superlu_dist=1 \
    --with-umfpack=1 --download-umfpack=1 \
    --with-spooles=1 --download-spooles=1 \
    --with-hypre=1 --download-hypre=1 \
    --with-mpi --download-mpich=1 \
    --download-f-blas-lapack=yes

Note that PETSc does not correctly set the MPI_LIB variable in the ${PETSC_DIR}/bmake/${PETSC_ARCH}/petscconf file. Libmesh currently relies on this variable to discover how to link MPI applications, but this should probably change as Petsc seems to be supporting this variable less and less with each release. You can either set MPI_LIB by hand, build mpich *outside* of petsc instead of having petsc download it (in which case MPI_LIB should still be set) or rework the libmesh Makefile to use the PCC_* variables, which seem to perhaps be better supported (at least according to one PETSc developer I spoke with.)


--Jwpeterson 13:45, 2 July 2007 (PDT)


libmesh from cvs, PETSc 2.3.1, CentOS 4.2

Preliminaries

  • My system is running CentOS 4.2
  • I have previously built mpich-1.2.7 from source
  • Intel MKL v7.2.1 is installed and provides BLAS/LAPACK
  • The goal is to install several 'flavors'of PETSc
    • optimized & debug builds with the naitive gcc compilers
    • optimized & debug builds Intel 9.0.021 series compilers
  • In the case of the gcc build I will install a number of optional packages that extend PETSc

PETSc Installation

Download and unpack PETSc-2.3.1 from http://www-unix.mcs.anl.gov/petsc/petsc-2/download/index.html

gcc build

Note that in this case I let the PETSc installer download & compile UMFPACK, SPOOLES, SUPERLU, SUPERLU_DIST, and HYPRE, which are all optional packages that provide enhanced linear solver/preconditioner functionality.

cd /my/petsc/dir
export PETSC_DIR=`pwd`
export PETSC_ARCH=linux_gcc_dbg
./config/configure.py --with-cc=gcc --with-fc=g77 --with-mpi-compilers=0 \
    --with-mpi-dir=/software/ia32/mpi/mpich-1.2.7-gcc \
    --with-blas-lapack-dir=/software/ia32/intel/mkl-7.2.1 \
    --with-shared=1 \
    --with-debugging=1 \
    --with-superlu=1 --download-superlu=1 \
    --with-superlu_dist=1 --download-superlu_dist=1 \
    --with-umfpack=1 --download-umfpack=1 \
    --with-spooles=1 --download-spooles=1 \
    --with-hypre=1 --download-hypre=1
make
make testexamples_uni
export PETSC_ARCH=linux_gcc_opt
./config/configure.py --with-cc=gcc --with-fc=g77 --with-mpi-compilers=0 \
    --with-mpi-dir=/software/ia32/mpi/mpich-1.2.7-gcc \
    --with-blas-lapack-dir=/software/ia32/intel/mkl-7.2.1 \
    --with-shared=1 \
    --with-debugging=0 \
    --with-superlu=1 --download-superlu=1 \
    --with-superlu_dist=1 --download-superlu_dist=1 \
    --with-umfpack=1 --download-umfpack=1 \
    --with-spooles=1 --download-spooles=1 \
    --with-hypre=1 --download-hypre=1
make
make testexamples_uni

icc build

cd /my/petsc/dir
export PETSC_DIR=`pwd`
export PETSC_ARCH=linux_icc_dbg
./config/configure.py --with-cc=icc --with-fc=ifort --with-mpi-compilers=0 \
    --with-mpi-dir=/software/ia32/mpi/mpich-1.2.7-intel \
    --with-blas-lapack-dir=/software/ia32/intel/mkl-7.2.1 \
    --with-shared=1 \
    --with-debugging=1
make
make testexamples_uni
export PETSC_ARCH=linux_icc_opt
./config/configure.py --with-cc=icc --with-fc=ifort --with-mpi-compilers=0 \
    --with-mpi-dir=/software/ia32/mpi/mpich-1.2.7-intel \
    --with-blas-lapack-dir=/software/ia32/intel/mkl-7.2.1 \
    --with-shared=1 \
    --with-debugging=0
make
make testexamples_uni

Note that I specified the compilers, MPI, and BLAS/LAPACK installations directly. Also, I told PETSc to build shared libraries and not to use the MPI compilers (mpicc,mpif77). 'make' builds the libraries and places them in $PETSC_ARCH/lib/$PETSC_DIR, and 'make testexamples_uni' tests all the uniprocessor examples.

libMesh Installation

Download the latest CVS version of libMesh

cvs -d:pserver:anonymous@libmesh.cvs.sourceforge.net:/cvsroot/libmesh co libmesh 

gcc with debugging

cd /my/libmesh/dir
export PETSC_DIR=/my/petsc/dir 
export PETSC_ARCH=linux_gcc_dbg
export METHOD=dbg
make

gcc optimized

cd /my/libmesh/dir
export PETSC_DIR=/my/petsc/dir 
export PETSC_ARCH=linux_gcc_opt
export METHOD=opt
make

--Benkirk 07:41, 24 February 2006 (PST)

libmesh from cvs, Ubuntu Linux (Debian)

This should work for any Debian-based distro, but was specifically tested on Ubuntu Dapper.

To obtain the libraries from the repositories, add the universe to /etc/apt/sources.list . (Instead of dapper you should choose your edition, breezy is stable before 04.2006, dapper after the release in 04.2006.) pos software

deb http://us.archive.ubuntu.com/ubuntu dapper universe
deb-src http://us.archive.ubuntu.com/ubuntu dapper universe

Now install petsc (libraries and headers). This will also install g77, blas/lapack/atlas and mpich.

apt-get install libpetsc2.3.0-dev

Then set the environment variables (bash-syntax, csh-syntax)

export PETSC_DIR=/usr/lib/petsc        setenv PETSC_DIR /usr/lib/petsc
export PETSC_ARCH=linux-gnu            setenv PETSC_ARCH linux-gnu

Next switch to the libmesh directory, configure and build

cd /my/path/to/libmesh
./configure
make

For me, everything works fine now.

libmesh from cvs, petsc 2.3.0, slepc 2.3.0 with MPI enabled, debian

This works on debian sid, but I believe it would work on other distributions similarly. You need the mpich-bin and libmpich1.0-dev packages. Tested on i386 and amd64 architectures. Use gcc compilers. (Last tested on Jan 20, 2006)

Note (M. Truffer): The following instructions worked very well for me, only the examples will not link without installing zlib1g-dev. I am running Ubuntu on an AMD 64 processor

cvs -d:pserver:anonymous@libmesh.cvs.sourceforge.net:/cvsroot/libmesh co libmesh
cd libmesh

cd contrib
wget ftp://ftp.mcs.anl.gov/pub/petsc/petsc-lite.tar.gz
tar xzf petsc-lite.tar.gz
cd petsc-2.3.0
export PETSC_ARCH=linux
export PETSC_DIR=`pwd`
config/configure.py --with-cc=gcc --with-cxx=g++ --with-fc=g77 --with-mpi-dir=/usr/lib/mpich/ \
  --with-debugging=1 --with-shared
make
cd ..

wget http://www.grycap.upv.es/slepc/download/distrib/slepc.tgz
tar xzf slepc.tgz
cd slepc-2.3.0
export SLEPC_DIR=`pwd`
config/configure.py
make
cd ../..

./configure --enable-slepc
make
make run_examples

All examples should run after executing 'make run_examples' except ex15, which requires the library to be compiled with second derivatives support (we didn't pass --enable-second to the configure).

Compilation times on AMD Athlon(tm) 64 Processor 3800+ for your orientation:

petsc configure 0:20
petsc make 2:48
slepc configure 0:04
slepc make 0:16
libmesh configure 0:07
libmesh make 5:33

libmesh from cvs, petsc 2.3.0, slepc 2.3.0 with MPI disabled, debian

The procedure is basically the same, configure petsc with

config/configure.py --with-mpi=0 --with-debugging=1 --with-shared

But libmesh is unfortunately not prepared for this yet, you will get compilation errors. From one of libmesh's developers (http://sourceforge.net/mailarchive/forum.php?thread_id=9360953&forum_id=35501):

"LibMesh will try to get its MPI configuration from PETSc if you have petsc. We need a way of disabling MPI in libmesh if it is disabled in PETSc..."

libmesh Installation on Debian Lenny/Testing

Summary: Things have changed in Lenny compared to Etch, mainly that the open source MPI implementation, OpenMPI, is used by default for PETSc instead of MPICH. Those who recently upgraded from Etch (and not using a fresh Lenny install) make sure to purge all remnants of MPICH and LAM using "aptitude purge XXX," this will save you from hours of headache...so assuming your machine is a clean slate:

1) I used the latest version of LibMesh (0.6.2). 2) Installing the package petsc-dev takes care of installing OpenMPI and a slew of other dependencies for you. I also had to include zlib or there would be a linking error.

aptitude install petsc-dev zlib1g

You'll have to figure out how to configure OpenMPI for multiple machines, but by default it works fine for a multi-core machine...this is an improvement over Etch with MPICH!

3) Unpack the LibMesh tarball and do the following (depending on your shell):

export PETSC_ARCH="linux-gnu-c-opt"
export PETSC_DIR="/usr/lib/petscdir/2.3.3/"
./configure 

The whole mess you have to go through with Etch to point to the right MPI compiler wrappers has been resolved in Lenny, nonetheless, check the configure output carefully to make sure everything went well. Lenny is a moving target, so things might change.

6) Compile and test (if you have multiple processors use the -j option to let make know)

make -j 8
cd examples/ex9
mpiexec -np 8 ./ex9-opt

Note that with OpenMPI you use "mpiexec" instead of "mpirun"

--Nasser Mohieddin Abukhdeir 12AUG2008

libmesh Installation on Debian Etch/Stable

1) I used the latest version of LibMesh (0.6.2) 2) Installing the package petsc-dev takes care of installing MPICH for you

aptitude install petsc-dev

Edit the file /etc/mpich/machines.linux to describe your network topology, I just want to use my SMP machine, so I added this line:

localhost:8

where the ":8" reflects the number of processors my system has.

3) Unfortunately it does not install rsh which is required my MPICH:

aptitude install rsh-server rsh-client

4) Create a file ~/.rhosts and add a line:

localhost USERNAME

where you substitute your user name in, you also might have to add "localhost" to your /etc/hosts.allow file for this to work. At this point you should be able to run "tstmachines.mpich" to verify that MPI is working

5) Unpack the LibMesh tarball and do the following (depending on your shell):

export PETSC_ARCH="linux-gnu-c-opt"
export PETSC_DIR="/usr/lib/petscdir/2.3.2/"
./configure --with-mpi=/usr/lib/mpich --with-cxx=mpicxx.mpich
--with-cc=mpicc.mpich --with-f77=mpif77.mpich -with-CC=mpiCC.mpich

This took me a while to figure out, but you need to make sure LibMesh knows you are using MPICH, because without the first option it will be configured for LAM-MPI. The other options are intuitive, except you need to use the suffix ".mpich" on all of the compilers so that you do not end up using the LAM wrapper version

6) Compile and test (if you have multiple processors use the -j option to let make know)

make -j 8
cd examples/ex9
mpirun -np 8 ./ex9-opt

--Nasser Mohieddin Abukhdeir

"long long" Compilation errors with MPICH

In MPICH version 1.2.5 and later (and possibly earlier) the mpio.h file declares the MPI_Offset type as long long. This is apparently not ISO C++ and so the GCC compiler rejects it based on the flags we use to compile libmesh. You will see an error message similar to this:

"/usr/local/mpich-1.2.7/include/mpio.h:42: error: ISO C++ does not support `long long'"

The fix we have employed in the past is to directly edit the mpio.h file at line 42, changing MPI_Offset to simply a long. We realize that not everyone may have write access to the mpich headers and so a better fix is still needed. We are also aware of the fact that changing this type may create problems with the code, but have not noticed any yet.

Note: You won't get this error if you use the installation instructions above (at least on debian with mpich 1.2.7). (O. Certik)

Note: The error message can be suppressed with the -Wno-long-long compiler switch for the GNU compiler. Add this switch to the debug-mode section in Make.common. In my installation this looks like

ifeq ($(debug-mode),on)
  CXXFLAGS += -DDEBUG  [cut more options] -Wno-long-long
  CFLAGS   += -DDEBUG -g -fPIC
endif


libmesh from cvs on lonestar.tacc.utexas.edu

lonestar.tacc.utexas.edu is TACC's latest em64t cluster. The following instructions show how to build libMesh for this machine. These instructions assume you use bash as your shell.

cvs -d:pserver:anonymous@libmesh.cvs.sourceforge.net:/cvsroot/libmesh co libmesh 
cd libmesh
export PETSC_DIR=/home/utexas/ti/benkirk/petsc/2.3.2
export PETSC_ARCH=em64t
export CXXFLAGS=-DMPICH_SKIP_MPICXX
unset INCLUDE
CXX=mpiCC CC=mpicc F77=mpif77 ./configure
make

You may ignore any warnings related to overriding -O3 with -O2. This occurs because mpiCC specifies -O3 which is appended with the libMesh compiler flags, which specify -O2.

To test your install and ability to run in parallel you can test one of the examples:

cd examples/ex4
make
bsub -I -n 4 -W 0:05 -q development ibrun "./ex4-opt -d 3 -n 20 -log_summary"


--Benkirk Sat Jul 7 21:10:08 CDT 2007



libmesh from svn on ranger.tacc.utexas.edu

Ranger is TACC's latest supercomputer. Check out the Ranger user guide for more information. associates degree computer information systems The software on Ranger is in a relatively rapid state of flux. These instructions may become outdated or superseded by new information in a relatively short amount of time... We may eventually be able to build a libmesh module on ranger that would simplify this process. Marketing Companies

First: unload/load appropriate system software modules.

module unload pgi
module unload mvapich2

module load intel    # Intel 10.1 at the time of this writing
module load mvapich  
module load petsc
module load slepc    # optional module


Next, pull down libmesh from the sourceforge site and configure it

svn checkout https://libmesh.svn.sourceforge.net/svnroot/libmesh/trunk/libmesh
CXX=mpicxx CC=mpicc F77=mpif77 ./configure --enable-everything \
                                           --enable-second     \
                                           --disable-perflog   \
                                           --disable-bzip2     \
                                           --disable-vsmoother

Intel 10.1 has a difficult time with the variational smoother code for some reason. Here, we've decided to simply disable it to speed up compiling. You'll need to recompile later if you do decide you'll need the variational smoother capability. criminal justice major


Finally, build!

nice make -j 4

There is a known issue with ICC which may prevent the utility programs in src/apps from building correctly. You can either ignore the error message about not being able to find '-L/some/random/dir' or change the "bin/%" Makefile rule from

bin/% : src/apps/%.cc $(mesh_library)
 	@echo "Building $@"
	@$(libmesh_CXX) $(libmesh_CXXFLAGS) $(libmesh_INCLUDE) $< -o $@ $(libmesh_LIBS) $(libmesh_LDFLAGS) $(libmesh_DLFLAGS)

To a two-part rule like:

 bin/% : src/apps/%.cc $(mesh_library)
 	@echo "Building $@"
	@$(libmesh_CXX) $(libmesh_CXXFLAGS) $(libmesh_INCLUDE) -c $< -o $(patsubst %.cc,%.o,$<) 
	@$(libmesh_CXX) $(libmesh_CXXFLAGS) $(patsubst %.cc,%.o,$<) -o $@ $(libmesh_LIBS) $(libmesh_DLFLAGS) $(libmesh_LDFLAGS)


Coming soon: A sample job submission script/command and output.

--Jwpeterson 12:25, 27 May 2008 (PDT)

Personal tools