| 11 | | == IPP User Setup on Odyssey == |
| | 11 | == IPP User Setup on Odyssey for the SVN top-of-tree version == |
| | 12 | |
| | 13 | This is called the ipp-SVN_top version, and is the best-supported version of IPP on Odyssey. |
| | 14 | |
| | 15 | * The general description of Odyssey is here: [wiki:Odyssey_Cluster_Configuration Odyssey_Cluster_Configuration] |
| | 16 | * The binaries for ipp-SVN_top reside in /odyssey/apps/ipp/ipp-SVN_top/psconfig, with source in /odyssey/apps/src/ipp/ipp-SVN_top . |
| | 17 | * This system uses [http://www.ece.utexas.edu/it/modules/ Modules] for environment management, so there is a small change in setup compared to most IPP installations. Instead of the usual modification to .bashrc or .cshrc, for which the .cshrc version looks like: |
| | 18 | |
| | 19 | {{{ |
| | 20 | if (-e /path/to/psconfig.csh) then |
| | 21 | alias psconfig "source /path/to/psconfig.csh" |
| | 22 | else |
| | 23 | alias psconfig "echo psconfig not available" |
| | 24 | endif |
| | 25 | }}} |
| | 26 | |
| | 27 | the following code suffices for both .bashrc and .cshrc: |
| | 28 | |
| | 29 | {{{module load hpc/ipp/ipp-SVN_top}}} |
| | 30 | |
| | 31 | * To finish setting up the shell environment, libcfitsio doesn't seem to work properly unless the environment variable CFITSIO points to the library itself. Thus the user's .bashrc should include: |
| | 32 | |
| | 33 | {{{ |
| | 34 | module load hpc/ipp |
| | 35 | export CFITSIO=${PSCONFDIR}/${PSCONFIG}/lib/libcfitsio.a |
| | 36 | }}} |
| | 37 | |
| | 38 | .cshrc should include: |
| | 39 | |
| | 40 | {{{ |
| | 41 | module load hpc/ipp |
| | 42 | setenv CFITSIO ${PSCONFDIR}/${PSCONFIG}/lib/libcfitsio.a} |
| | 43 | }}} |
| | 44 | |
| | 45 | '''There is no need to use a psconfig command with this version'''. |
| | 46 | |
| | 47 | * Users must set up several config files in their home directories: |
| | 48 | |
| | 49 | {{{ |
| | 50 | cd ${HOME} |
| | 51 | cp /odyssey/apps/src/ipp/ipp-SVN_top/ipp/ippconfig/ipprc.config ./.ipprc |
| | 52 | cp /odyssey/apps/src/ipp/ipp-SVN_top/ipp/ippconfig/dvo.site ./.ptolemyrc |
| | 53 | }}} |
| | 54 | |
| | 55 | Edit ${HOME}/.ipprc to uncomment the line near the top of the file which includes $HOME/.ippconfig in the config search path. These files can be customized to implement your preferred config options. |
| | 56 | |
| | 57 | <b>DO NOT</b> set the environment variable PSCONFIG in your ${HOME}/.psconfigrc file. The <em>module load</em> command handles that for you; setting it separately in ${HOME}/.psconfigrc will interfere with the function of the <em>module</em> commands. |
| | 58 | |
| | 59 | |
| | 60 | |
| | 61 | |
| | 62 | == Build Notes for ipp-SVN_top == |
| | 63 | |
| | 64 | * The modulefile /odyssey/apps/modules-3.2.6/Modules/modulefiles/hpc/ipp/ipp-SVN_top is used to implement the 'module load' behavior described above. |
| | 65 | * There is a file named source_me.csh in /odyssey/apps/src/ipp/ipp-SVN_top which sets appropriate environment variables for the build. |
| | 66 | * Commands for a complete update and rebuild under tcsh would thus be: |
| | 67 | |
| | 68 | {{{ |
| | 69 | cd /odyssey/apps/src/ipp/ipp-SVN_top/ipp/psconfig |
| | 70 | source ../../source_me.csh |
| | 71 | svn update |
| | 72 | psbuild -dev -rebuild -clean -optimize >& /tmp/psbuild.log |
| | 73 | }}} |
| | 74 | |
| | 75 | |
| | 76 | * Errors with messages like: |
| | 77 | |
| | 78 | libtool: link: `/odyssey/apps/ipp/default.linrh64/lib/libgsl.la' is not a valid libtool archive |
| | 79 | |
| | 80 | seem to be the result of broken libtool archive (.la) files left over from failed earlier compiles. The fix is to remove all .la files from both the /odyssey/apps/src/ipp/ipp-2.6.1 and /odyssey/apps/ipp/ipp-2.6.1/psconfig/default.linrh64 trees and do a 'psbuild -clean -rebuild -extbuild'. |
| | 81 | |
| | 82 | == IPP User Setup for IPP 2.6.1 on Odyssey == |
| | 83 | |
| | 84 | This version is somewhat out-of-date. Note especially the fact that the 'module load' command must be followed by a 'psconfig' command for this version. |