├── .gitignore ├── .hpc.metadata ├── DESCRIPTION ├── Makefile ├── OWNER ├── bootstrap.sh ├── graphs └── default │ └── hpc.xml ├── include ├── applets │ └── __init__.py └── installclass │ ├── frontend.py │ ├── ia64.py │ └── master-keys.py ├── manifest ├── nodes ├── benchmarks.xml ├── frontend.xml ├── hpc-base.xml ├── hpc-client.xml ├── hpc-server.xml ├── mpi.xml └── pvm.xml ├── src ├── Makefile ├── RPMS │ └── Makefile ├── iozone │ ├── Makefile │ ├── i386.mk │ ├── patch-files │ │ └── iozone3_397 │ │ │ └── src │ │ │ └── current │ │ │ └── makefile │ ├── sunos.mk │ ├── version.mk │ └── x86_64.mk ├── iperf │ ├── Makefile │ ├── patch-files │ │ ├── iperf-2.0.1 │ │ │ └── compat │ │ │ │ └── Thread.c │ │ ├── iperf-2.0.4 │ │ │ └── sunos │ │ │ │ ├── Makefile.in │ │ │ │ ├── compat │ │ │ │ ├── Makefile.in │ │ │ │ └── Thread.c │ │ │ │ └── src │ │ │ │ └── Makefile.in │ │ └── iperf-2.0.5 │ │ │ └── sunos │ │ │ ├── Makefile.in │ │ │ ├── compat │ │ │ └── Makefile.in │ │ │ └── src │ │ │ └── Makefile.in │ ├── sunos.mk │ └── version.mk ├── iperf3 │ ├── Makefile │ └── version.mk ├── linux.mk ├── mpi-tests │ ├── Makefile │ ├── Makefile.tests │ ├── mpi-ring.c │ ├── mpi-verify.c │ ├── sunos.mk │ └── version.mk ├── mpich3 │ ├── Makefile │ └── version.mk ├── openmpi │ ├── Makefile │ ├── mpi-selector │ │ ├── rocks-openmpi-1.4.3.csh │ │ └── rocks-openmpi-1.4.3.sh │ └── version.mk ├── pvm │ ├── Makefile │ ├── Readme.rocks │ ├── pvm.csh │ ├── pvm.sh │ └── version.mk ├── rocks-hpc-profile │ ├── Makefile │ ├── rocks-hpc.csh │ ├── rocks-hpc.sh │ └── version.mk ├── rocks-openmpi-modules │ ├── Makefile │ ├── rocks-openmpi.in │ ├── rocks-openmpi_ib.in │ └── version.mk ├── stream │ ├── HISTORY.txt │ ├── LICENSE.txt │ ├── Makefile │ ├── Makefile.stream │ ├── READ.ME │ ├── ROCKS.txt │ ├── TO_DO │ ├── Versions │ │ ├── READ.ME │ │ ├── second_cpu.c │ │ ├── second_cpu.f │ │ ├── stream_5-10_posix_memalign.c │ │ ├── stream_d.c │ │ ├── stream_d.f │ │ ├── stream_mpi.c │ │ ├── stream_mpi.f │ │ ├── stream_omp.c │ │ └── stream_tuned.f │ ├── linux.mk │ ├── mysecond.c │ ├── stream.c │ ├── stream.f │ ├── sunos.mk │ └── version.mk ├── sunos.mk └── usersguide │ ├── Makefile │ ├── appendix.sgml │ ├── images │ └── hpc.png │ ├── index.sgml │ ├── installing.sgml │ ├── interactive.sgml │ ├── preface.sgml │ ├── using.sgml │ └── version.mk └── version.mk /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | # build directory 3 | BUILD/ 4 | RPMS/ 5 | SOURCES/ 6 | SPECS/ 7 | 8 | 9 | *.pyc 10 | 11 | _os 12 | _arch 13 | _distribution 14 | 15 | # ignore version.mk 16 | rocks-version.mk 17 | rocks-version-common.mk 18 | 19 | # ignore python.mk 20 | python.mk 21 | 22 | # ignore Rules files 23 | Rules-install.mk 24 | Rules-linux-centos.mk 25 | Rules-linux.mk 26 | Rules-rcfiles.mk 27 | Rules-scripts.mk 28 | Rules.mk 29 | Rolls.mk 30 | 31 | # --- BEGIN --- binaries files 32 | src/iozone/iozone3_397.tar 33 | src/iperf/iperf-2.0.5.tar.gz 34 | src/mpich2/mpich2-1.4.1p1.tar.gz 35 | src/openmpi/openmpi-1.4.3.tar.bz2 36 | src/openmpi/openmpi-1.6.2.tar.bz2 37 | src/pvm/pvm3-examples.tar 38 | src/RPMS/pvm-3.4.6-1.el6.i686.rpm 39 | src/RPMS/pvm-3.4.6-1.el6.x86_64.rpm 40 | src/RPMS/pvm-gui-3.4.6-1.el6.i686.rpm 41 | src/RPMS/pvm-gui-3.4.6-1.el6.x86_64.rpm 42 | src/sun-ct/sun-hpc-ct-8.2.1-docs.tar.gz 43 | src/sun-ct/sun-hpc-ct-8.2.1-Linux-gnu.tar.gz 44 | src/sun-ct/sun-hpc-ct-8.2.1-SunOS-i386.tar.gz 45 | # --- END --- 46 | -------------------------------------------------------------------------------- /.hpc.metadata: -------------------------------------------------------------------------------- 1 | 6095a38542286376f6eb2a203f253dc4c31ddeda src/iozone/iozone3_397.tar 0B0LD0shfkvCRNDF0TEozcFlUczA 2 | 7302792dcb1bd7aeba032fef6d3dcc310e4d113f src/iperf/iperf-2.0.5.tar.gz 0B0LD0shfkvCRSnZLTWRwSW9RWHc 3 | 8dcc8888fb27232eb8f76c11cc890f1c3c483804 src/mpich2/mpich2-1.4.1p1.tar.gz 0B0LD0shfkvCRUjRJTHFoM2Qwa00 4 | 40f1ad9a3262cac513e3ec4982826ba6f825f81e src/pvm/pvm3-examples.tar 0B0LD0shfkvCRcnB6VFZWeDhZajg 5 | 5c58f3db22aa26b3801eb1e01d5bc6dc9c261b6d src/RPMS/pvm-3.4.6-1.el6.i686.rpm 0B0LD0shfkvCRdnhJUWduQW9mSmM 6 | 9a662be82390cdae30406b1dee57e299d54634c5 src/RPMS/pvm-3.4.6-1.el6.x86_64.rpm 0B0LD0shfkvCRYzB2MTdhTjY4cmc 7 | f4ca2bd8c8db02c9a6fa811f67a21576d9ba3161 src/RPMS/pvm-gui-3.4.6-1.el6.i686.rpm 0B0LD0shfkvCROHlNUFlmZnU3OG8 8 | 378424a5edd7e11dfa8d7210f80b9e9891d88701 src/RPMS/pvm-gui-3.4.6-1.el6.x86_64.rpm 0B0LD0shfkvCRU2VheVdTYzB6dFE 9 | 47e1b9acfd87fedea6cfdeea4c2c7f6db1ddf397 src/openmpi/openmpi-1.10.0.tar.gz 0B0LD0shfkvCReTNHWXZJOWJpdEE 10 | cbbae7608fe67d3bc79145b03e28af7b69f12800 src/openmpi/openmpi-2.1.1.tar.gz 0B0LD0shfkvCRaXptcVVOWm8yc0U 11 | 68c51309ad24e04b4a1f0bf6be3c1c6f37faef38 src/iozone/iozone3_465.tar 0B0LD0shfkvCRS1AyZ1BJWUtpYjQ 12 | 5fae7df02f750b6966837b554f9985a9c574236f src/mpich3/mpich-3.2.tar.gz 0B0LD0shfkvCRMXFBTWJoQTdPWjg 13 | 186cdc40903e880d29c0887fff2de5931e9a9caf src/iperf3/iperf-3.3.tar.gz 1HwFze4P9NH6H42kbPWw9vLUV2vYN76dh 14 | -------------------------------------------------------------------------------- /DESCRIPTION: -------------------------------------------------------------------------------- 1 | High Performance Computing 2 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # $Id: Makefile,v 1.23 2012/11/27 00:49:00 phil Exp $ 3 | # 4 | # @Copyright@ 5 | # 6 | # Rocks(r) 7 | # www.rocksclusters.org 8 | # version 6.2 (SideWinder) 9 | # version 7.0 (Manzanita) 10 | # 11 | # Copyright (c) 2000 - 2017 The Regents of the University of California. 12 | # All rights reserved. 13 | # 14 | # Redistribution and use in source and binary forms, with or without 15 | # modification, are permitted provided that the following conditions are 16 | # met: 17 | # 18 | # 1. Redistributions of source code must retain the above copyright 19 | # notice, this list of conditions and the following disclaimer. 20 | # 21 | # 2. Redistributions in binary form must reproduce the above copyright 22 | # notice unmodified and in its entirety, this list of conditions and the 23 | # following disclaimer in the documentation and/or other materials provided 24 | # with the distribution. 25 | # 26 | # 3. All advertising and press materials, printed or electronic, mentioning 27 | # features or use of this software must display the following acknowledgement: 28 | # 29 | # "This product includes software developed by the Rocks(r) 30 | # Cluster Group at the San Diego Supercomputer Center at the 31 | # University of California, San Diego and its contributors." 32 | # 33 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3, 34 | # neither the name or logo of this software nor the names of its 35 | # authors may be used to endorse or promote products derived from this 36 | # software without specific prior written permission. The name of the 37 | # software includes the following terms, and any derivatives thereof: 38 | # "Rocks", "Rocks Clusters", and "Avalanche Installer". For licensing of 39 | # the associated name, interested parties should contact Technology 40 | # Transfer & Intellectual Property Services, University of California, 41 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910, 42 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu 43 | # 44 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' 45 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 46 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 47 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS 48 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 49 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 50 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 51 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 52 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 53 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 54 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 55 | # 56 | # @Copyright@ 57 | # 58 | # $Log: Makefile,v $ 59 | # Revision 1.23 2012/11/27 00:49:00 phil 60 | # Copyright Storm for Emerald Boa 61 | # 62 | # Revision 1.22 2012/05/06 05:49:09 phil 63 | # Copyright Storm for Mamba 64 | # 65 | # Revision 1.21 2011/07/23 02:31:02 phil 66 | # Viper Copyright 67 | # 68 | # Revision 1.20 2010/09/07 23:53:20 bruno 69 | # star power for gb 70 | # 71 | # Revision 1.19 2009/05/01 19:07:18 mjk 72 | # chimi con queso 73 | # 74 | # Revision 1.18 2008/10/18 00:56:09 mjk 75 | # copyright 5.1 76 | # 77 | # Revision 1.17 2008/10/15 20:13:04 mjk 78 | # - more changes to build outside of the tree 79 | # - removed some old fds-only targets 80 | # 81 | # Revision 1.16 2008/03/06 23:41:52 mjk 82 | # copyright storm on 83 | # 84 | # Revision 1.15 2007/06/23 04:03:38 mjk 85 | # mars hill copyright 86 | # 87 | # Revision 1.14 2006/09/11 22:48:45 mjk 88 | # monkey face copyright 89 | # 90 | # Revision 1.13 2006/08/10 00:10:50 mjk 91 | # 4.2 copyright 92 | # 93 | # Revision 1.12 2005/10/12 18:09:39 mjk 94 | # final copyright for 4.1 95 | # 96 | # Revision 1.11 2005/09/16 01:03:16 mjk 97 | # updated copyright 98 | # 99 | # Revision 1.10 2005/05/24 21:22:41 mjk 100 | # update copyright, release is not any closer 101 | # 102 | # Revision 1.9 2004/03/25 03:16:06 bruno 103 | # touch 'em all! 104 | # 105 | # update version numbers to 3.2.0 and update copyrights 106 | # 107 | # Revision 1.8 2003/08/13 17:18:51 bruno 108 | # put in rocks copyright for 3.0.0 109 | # 110 | # Revision 1.7 2003/08/13 15:22:53 bruno 111 | # added public domain dedication 112 | # 113 | # Revision 1.6 2003/07/22 22:30:56 bruno 114 | # cleanup 115 | # 116 | # Revision 1.5 2003/07/22 22:01:42 bruno 117 | # changes for roll building 118 | # 119 | # Revision 1.4 2003/07/21 19:34:42 bruno 120 | # moved some 'clean' code up to etc files 121 | # 122 | # Revision 1.3 2003/07/11 23:55:08 bruno 123 | # touchup on the rolls 124 | # 125 | # Revision 1.2 2003/07/10 22:20:20 bruno 126 | # closer 127 | # 128 | # Revision 1.1 2003/07/07 20:47:51 bruno 129 | # initial release 130 | # 131 | # 132 | # 133 | 134 | -include $(ROLLSROOT)/etc/Rolls.mk 135 | include Rolls.mk 136 | 137 | 138 | default: roll 139 | 140 | -------------------------------------------------------------------------------- /OWNER: -------------------------------------------------------------------------------- 1 | Rocks 2 | -------------------------------------------------------------------------------- /bootstrap.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # This file should remain OS independent 4 | # 5 | # $Id: bootstrap.sh,v 1.17 2012/11/27 19:31:18 phil Exp $ 6 | # 7 | # @Copyright@ 8 | # 9 | # Rocks(r) 10 | # www.rocksclusters.org 11 | # version 6.2 (SideWinder) 12 | # version 7.0 (Manzanita) 13 | # 14 | # Copyright (c) 2000 - 2017 The Regents of the University of California. 15 | # All rights reserved. 16 | # 17 | # Redistribution and use in source and binary forms, with or without 18 | # modification, are permitted provided that the following conditions are 19 | # met: 20 | # 21 | # 1. Redistributions of source code must retain the above copyright 22 | # notice, this list of conditions and the following disclaimer. 23 | # 24 | # 2. Redistributions in binary form must reproduce the above copyright 25 | # notice unmodified and in its entirety, this list of conditions and the 26 | # following disclaimer in the documentation and/or other materials provided 27 | # with the distribution. 28 | # 29 | # 3. All advertising and press materials, printed or electronic, mentioning 30 | # features or use of this software must display the following acknowledgement: 31 | # 32 | # "This product includes software developed by the Rocks(r) 33 | # Cluster Group at the San Diego Supercomputer Center at the 34 | # University of California, San Diego and its contributors." 35 | # 36 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3, 37 | # neither the name or logo of this software nor the names of its 38 | # authors may be used to endorse or promote products derived from this 39 | # software without specific prior written permission. The name of the 40 | # software includes the following terms, and any derivatives thereof: 41 | # "Rocks", "Rocks Clusters", and "Avalanche Installer". For licensing of 42 | # the associated name, interested parties should contact Technology 43 | # Transfer & Intellectual Property Services, University of California, 44 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910, 45 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu 46 | # 47 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' 48 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 49 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 50 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS 51 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 52 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 53 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 54 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 55 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 56 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 57 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 58 | # 59 | # @Copyright@ 60 | # 61 | # $Log: bootstrap.sh,v $ 62 | # Revision 1.17 2012/11/27 19:31:18 phil 63 | # compile/install rocks-openmpi, rocks-openmpi-modules so that elements in bio roll will build 64 | # 65 | # Revision 1.16 2012/11/27 00:49:00 phil 66 | # Copyright Storm for Emerald Boa 67 | # 68 | # Revision 1.15 2012/09/30 21:58:55 phil 69 | # Update openmpi to 1.6.2. 70 | # Create Modules for ethernet and IB 71 | # Add IB support - packages, openmpi configuration, udev rules 72 | # 73 | # Revision 1.14 2012/05/06 05:49:09 phil 74 | # Copyright Storm for Mamba 75 | # 76 | # Revision 1.13 2011/07/23 02:31:02 phil 77 | # Viper Copyright 78 | # 79 | # Revision 1.12 2010/09/07 23:53:20 bruno 80 | # star power for gb 81 | # 82 | # Revision 1.11 2009/12/03 22:36:55 bruno 83 | # openmpi directory makes an RPM named rocks-openmpi 84 | # 85 | # Revision 1.10 2009/11/25 23:43:20 anoop 86 | # bootstrapping the HPC roll for sunos 87 | # 88 | # Revision 1.9 2009/05/01 19:07:18 mjk 89 | # chimi con queso 90 | # 91 | # Revision 1.8 2008/10/18 00:56:09 mjk 92 | # copyright 5.1 93 | # 94 | # Revision 1.7 2008/10/15 20:13:04 mjk 95 | # - more changes to build outside of the tree 96 | # - removed some old fds-only targets 97 | # 98 | # Revision 1.6 2008/03/06 23:41:53 mjk 99 | # copyright storm on 100 | # 101 | # Revision 1.5 2007/06/23 04:03:38 mjk 102 | # mars hill copyright 103 | # 104 | # Revision 1.4 2006/09/11 22:48:45 mjk 105 | # monkey face copyright 106 | # 107 | # Revision 1.3 2006/08/10 00:10:50 mjk 108 | # 4.2 copyright 109 | # 110 | # Revision 1.2 2006/07/11 17:52:40 anoop 111 | # Added openmpi 112 | # 113 | # Revision 1.1 2006/07/03 19:56:41 bruno 114 | # bootstrap for hpc roll 115 | # 116 | # Revision 1.5 2006/02/07 22:00:30 mjk 117 | # *** empty log message *** 118 | # 119 | # Revision 1.4 2006/01/19 21:27:11 mjk 120 | # more foundation changes 121 | # 122 | # Revision 1.3 2006/01/18 06:12:41 mjk 123 | # more foundation work 124 | # 125 | # Revision 1.2 2006/01/17 03:45:58 mjk 126 | # might be complete now 127 | # 128 | # Revision 1.1 2006/01/17 00:14:23 mjk 129 | # bootstrap roll development 130 | # 131 | 132 | if [ ! -f "$ROLLSROOT/../../bin/get_sources.sh" ]; then 133 | echo "To compile this roll on Rocks 6.1.1 or older you need to install a newer rocks-devel rpm. 134 | Install it with: 135 | rpm -Uvh https://googledrive.com/host/0B0LD0shfkvCRRGtadUFTQkhoZWs/rocks-devel-6.2-3.x86_64.rpm 136 | If you need an older version of this roll you can get it from: 137 | https://github.com/rocksclusters-attic" 138 | exit 1 139 | fi 140 | 141 | . $ROLLSROOT/etc/bootstrap-functions.sh 142 | 143 | if [ `./_os` == "linux" ]; then 144 | yum -y install libibverbs libibverbs-devel libusnic_verbs 145 | install_os_packages hpc-base 146 | compile openmpi 147 | install rocks-openmpi 148 | compile_and_install rocks-openmpi-modules 149 | fi 150 | 151 | if [ `./_os` == "sunos" ]; then 152 | (cd src/sun-ct && gmake bootstrap) 153 | fi 154 | -------------------------------------------------------------------------------- /graphs/default/hpc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | The HPC Roll 8 | 9 | 10 | 11 | 12 | $Log: hpc.xml,v $ 13 | Revision 1.45 2009/05/08 22:21:35 anoop 14 | Removed hpc-db from the mix 15 | 16 | Revision 1.44 2008/03/03 20:01:52 bruno 17 | hpc graph cleanup 18 | 19 | Revision 1.43 2007/12/03 20:32:00 bruno 20 | make HPC optional -- move critial services into base 21 | 22 | Revision 1.42 2006/07/07 20:11:34 bruno 23 | removed upgrade node -- now handled by restore roll 24 | 25 | Revision 1.41 2006/06/12 21:43:55 bruno 26 | cleanup 27 | 28 | Revision 1.40 2006/06/05 22:06:29 bruno 29 | moved insert-rolls from hpc to base 30 | 31 | Revision 1.39 2006/06/05 21:54:50 bruno 32 | moved PXE from hpc to base 33 | 34 | Revision 1.38 2006/06/05 17:57:38 bruno 35 | first steps towards 4.2 beta 36 | 37 | Revision 1.37 2005/10/03 20:23:57 bruno 38 | take out the code that indicates that a node previously PXE installed. 39 | 40 | this will force all reinstallations to use the installation kernel and initrd 41 | from the local hard disk. 42 | 43 | Revision 1.36 2005/09/19 22:08:36 bruno 44 | partitioning tuning. 45 | 46 | - the frontend and NAS appliance will no longer nuke all partitions before 47 | the partitioning screen 48 | - a NAS appliance always displays the partitioning screen 49 | - added a nas-exports node to make it easier for people to customize 50 | their export directories on NAS appliances 51 | - hardened the software raid partitioning code 52 | 53 | Revision 1.35 2005/06/01 01:47:44 bruno 54 | ia64 now uses same partitioning as real cpus 55 | 56 | Revision 1.34 2005/05/25 03:29:25 bruno 57 | need to ensure that all nodes that call 'dbreport' are after database-security 58 | 59 | Revision 1.33 2005/05/23 23:52:32 fds 60 | Moved to shepherd roll 61 | 62 | Revision 1.32 2005/03/16 03:36:29 fds 63 | Actually inserting selected rolls into database. 64 | 65 | Revision 1.31 2005/03/15 02:37:49 fds 66 | Insert selected rolls into the database during post processing. Must happen 67 | before rocks-dist is run again (in rocks-dist.xml). 68 | 69 | Revision 1.30 2005/03/08 00:56:10 fds 70 | Moved ganglia packages into roll. New greceptor node. 71 | 72 | Revision 1.29 2005/03/04 01:40:08 mjk 73 | massive graph cleanup 74 | 75 | Revision 1.28 2005/03/01 19:17:44 mjk 76 | whack dead node 77 | 78 | Revision 1.27 2005/03/01 17:34:02 mjk 79 | move 411 to hpc roll 80 | 81 | Revision 1.26 2005/02/16 01:19:49 mjk 82 | - per appliance firewall rules 83 | - empty root node (ordered last) for all appliances 84 | 85 | Revision 1.25 2005/02/16 00:40:03 mjk 86 | graph cleanup 87 | 88 | Revision 1.24 2004/12/22 03:06:16 bruno 89 | spliced out mpi-devel 90 | 91 | Revision 1.23 2004/11/02 00:47:36 fds 92 | Moved shepherd-client grub processing off base 93 | 94 | Revision 1.22 2004/08/24 01:58:03 fds 95 | Shepherd tweaks and svcs update structure. 96 | 97 | Revision 1.21 2004/05/05 00:53:01 fds 98 | Moved big mozilla packages off Rocks base. 99 | 100 | Revision 1.20 2004/04/26 20:12:01 fds 101 | Added rocks-boot-auto to frontend. It is off by default. Also put 102 | kickstart central host in app_globals if available. 103 | 104 | Revision 1.19 2004/04/13 20:53:51 fds 105 | Fixed compute node motd, and added link to news node. 106 | 107 | Revision 1.18 2004/03/24 23:37:47 fds 108 | Support for the everything appliance. 109 | 110 | Revision 1.17 2004/03/19 03:29:36 bruno 111 | frontend-wan is dead 112 | 113 | frontend-base and compute-base are the new nodes in which to derive new 114 | appliances 115 | 116 | Revision 1.16 2004/03/04 19:33:31 fds 117 | Moving from sendmail to Postfix. 118 | 119 | Revision 1.15 2004/03/04 00:04:03 bruno 120 | eject-cd no longer used 121 | 122 | Revision 1.14 2004/02/04 17:39:39 bruno 123 | on what interface do you want to install? 124 | 125 | Revision 1.13 2004/02/03 00:32:53 fds 126 | Ensuring the Roll screens come first. 127 | 128 | Revision 1.12 2004/02/02 21:08:10 fds 129 | Doing it the right way. A new frontend-wan file defines the main 130 | kickstart section for Wide Area kickstart installs (instead of 131 | hard-coding it in kcgi.) 132 | 133 | Revision 1.11 2004/01/31 19:56:47 mjk 134 | hpc-node removed 135 | 136 | Revision 1.10 2003/11/03 05:21:58 bruno 137 | removed build-host 138 | 139 | Revision 1.9 2003/10/30 23:03:06 bruno 140 | build appliance support 141 | 142 | Revision 1.8 2003/10/29 17:59:21 mjk 143 | remove pbs from roll 144 | 145 | Revision 1.7 2003/10/23 02:02:23 fds 146 | Sorted out ganglia graph ordering. 147 | 148 | Revision 1.6 2003/10/16 22:21:16 fds 149 | Kickstart graph changes for opteron. 150 | 151 | Revision 1.5 2003/10/16 18:22:04 bruno 152 | changes for x86_64 153 | 154 | Revision 1.4 2003/10/02 20:32:01 fds 155 | PXE coordination is done by dhcp, so activate it for all platforms. 156 | 157 | Revision 1.3 2003/09/26 18:33:04 bruno 158 | closer to 9 159 | 160 | Revision 1.2 2003/07/12 00:49:30 bruno 161 | all nodes install a ganglia client 162 | 163 | Revision 1.1 2003/07/07 20:47:51 bruno 164 | initial release 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | frontend 175 | pvm 176 | 177 | 178 | 179 | 180 | benchmarks 181 | mpi 182 | 183 | 184 | 185 | -------------------------------------------------------------------------------- /include/applets/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocksclusters/hpc/28a3cf574eb892c85a834613d28588bce0035fac/include/applets/__init__.py -------------------------------------------------------------------------------- /include/installclass/ia64.py: -------------------------------------------------------------------------------- 1 | # $Id: ia64.py,v 1.19 2012/11/27 00:49:00 phil Exp $ 2 | # 3 | # @Copyright@ 4 | # 5 | # Rocks(r) 6 | # www.rocksclusters.org 7 | # version 6.2 (SideWinder) 8 | # version 7.0 (Manzanita) 9 | # 10 | # Copyright (c) 2000 - 2017 The Regents of the University of California. 11 | # All rights reserved. 12 | # 13 | # Redistribution and use in source and binary forms, with or without 14 | # modification, are permitted provided that the following conditions are 15 | # met: 16 | # 17 | # 1. Redistributions of source code must retain the above copyright 18 | # notice, this list of conditions and the following disclaimer. 19 | # 20 | # 2. Redistributions in binary form must reproduce the above copyright 21 | # notice unmodified and in its entirety, this list of conditions and the 22 | # following disclaimer in the documentation and/or other materials provided 23 | # with the distribution. 24 | # 25 | # 3. All advertising and press materials, printed or electronic, mentioning 26 | # features or use of this software must display the following acknowledgement: 27 | # 28 | # "This product includes software developed by the Rocks(r) 29 | # Cluster Group at the San Diego Supercomputer Center at the 30 | # University of California, San Diego and its contributors." 31 | # 32 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3, 33 | # neither the name or logo of this software nor the names of its 34 | # authors may be used to endorse or promote products derived from this 35 | # software without specific prior written permission. The name of the 36 | # software includes the following terms, and any derivatives thereof: 37 | # "Rocks", "Rocks Clusters", and "Avalanche Installer". For licensing of 38 | # the associated name, interested parties should contact Technology 39 | # Transfer & Intellectual Property Services, University of California, 40 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910, 41 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu 42 | # 43 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' 44 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 45 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 46 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS 47 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 48 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 49 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 50 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 51 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 52 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 53 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 54 | # 55 | # @Copyright@ 56 | # 57 | # $Log: ia64.py,v $ 58 | # Revision 1.19 2012/11/27 00:49:00 phil 59 | # Copyright Storm for Emerald Boa 60 | # 61 | # Revision 1.18 2012/05/06 05:49:09 phil 62 | # Copyright Storm for Mamba 63 | # 64 | # Revision 1.17 2011/07/23 02:31:03 phil 65 | # Viper Copyright 66 | # 67 | # Revision 1.16 2010/09/07 23:53:20 bruno 68 | # star power for gb 69 | # 70 | # Revision 1.15 2009/05/01 19:07:18 mjk 71 | # chimi con queso 72 | # 73 | # Revision 1.14 2008/10/18 00:56:09 mjk 74 | # copyright 5.1 75 | # 76 | # Revision 1.13 2008/03/06 23:41:53 mjk 77 | # copyright storm on 78 | # 79 | # Revision 1.12 2007/06/23 04:03:38 mjk 80 | # mars hill copyright 81 | # 82 | # Revision 1.11 2006/09/11 22:48:46 mjk 83 | # monkey face copyright 84 | # 85 | # Revision 1.10 2006/08/10 00:10:50 mjk 86 | # 4.2 copyright 87 | # 88 | # Revision 1.9 2006/06/05 17:57:39 bruno 89 | # first steps towards 4.2 beta 90 | # 91 | # Revision 1.8 2005/10/12 18:09:40 mjk 92 | # final copyright for 4.1 93 | # 94 | # Revision 1.7 2005/09/16 01:03:17 mjk 95 | # updated copyright 96 | # 97 | # Revision 1.6 2005/05/24 21:22:42 mjk 98 | # update copyright, release is not any closer 99 | # 100 | # Revision 1.5 2005/03/31 22:47:37 fds 101 | # Cleanup duplicate code 102 | # 103 | # Revision 1.4 2004/03/25 03:16:08 bruno 104 | # touch 'em all! 105 | # 106 | # update version numbers to 3.2.0 and update copyrights 107 | # 108 | # Revision 1.3 2003/08/13 17:18:51 bruno 109 | # put in rocks copyright for 3.0.0 110 | # 111 | # Revision 1.2 2003/08/13 15:22:53 bruno 112 | # added public domain dedication 113 | # 114 | # Revision 1.1 2003/07/07 20:47:51 bruno 115 | # initial release 116 | # 117 | # Revision 1.3 2003/05/22 16:36:35 mjk 118 | # copyright 119 | # 120 | # Revision 1.2 2003/04/25 18:15:09 bruno 121 | # first pass at adding all the new rocks config screens 122 | # 123 | # Revision 1.1 2003/04/24 16:59:41 mjk 124 | # - add order tags 125 | # - edge and order tags can have children 126 | # This just make the graph look nicer, no functional change 127 | # - added include directory 128 | # - moved install class code into include directory 129 | # - dependecies enforced via topological sort 130 | # - weight attributes are dead 131 | # - long live order tags 132 | # - the 'gen' attribute is currently ignored. This will be used to support 133 | # other graph ordering requirements (e.g. testing, cfengine, ...) 134 | # 135 | 136 | 137 | from kickstart import * 138 | from users import * 139 | 140 | class CustomKickstart(RocksCustomKickstart): 141 | 142 | def getEFIDiskInfo(self): 143 | efipartname = '' 144 | 145 | # 146 | # before we read the partitions, make sure the kernel 147 | # can see all the partitions on all the drives. 148 | # 149 | cmd = '/tmp/updates/rocks/bin/make-bootable-disks ' \ 150 | + '> /dev/null 2>&1' 151 | os.system(cmd) 152 | 153 | # 154 | # now walk through all the partitions 155 | # 156 | file = open('/proc/partitions', 'r') 157 | 158 | basedevname = 'this is the first entry' 159 | 160 | # 161 | # look for an EFI partition (but need to toss the 162 | # first two lines) 163 | # 164 | lines = file.readlines() 165 | for line in lines[2:]: 166 | tokens = string.split(line) 167 | 168 | major = tokens[0] 169 | minor = tokens[1] 170 | blocks = tokens[2] 171 | devname = tokens[3] 172 | 173 | match = string.count(devname, basedevname) 174 | 175 | if match == 0: 176 | basedevname = devname 177 | else: 178 | # 179 | # make the device node 180 | # 181 | devicename = tempfile.mktemp() 182 | 183 | os.system('mknod %s b %s %s' % 184 | (devicename, major, minor)) 185 | 186 | # 187 | # make the mount point 188 | # 189 | mountpoint = tempfile.mktemp() 190 | os.makedirs(mountpoint) 191 | 192 | # 193 | # mount the device 194 | # 195 | os.system('mount %s %s' \ 196 | % (devicename, mountpoint) + \ 197 | ' > /dev/null 2>&1') 198 | 199 | if os.path.exists(mountpoint + '/startup.nsh'): 200 | # 201 | # assign the name of the rocks 202 | # root partition 203 | # 204 | efipartname = devname 205 | 206 | os.system('umount %s' % (mountpoint) + 207 | ' > /dev/null 2>&1') 208 | 209 | os.removedirs(mountpoint) 210 | os.unlink(devicename) 211 | 212 | return efipartname 213 | 214 | def diskPartition(self, id): 215 | self.id = id 216 | 217 | # raise NameError, 'in diskPartition' 218 | 219 | rootpartname, devnames = RocksCustomKickstart.getDiskInfo(self) 220 | 221 | if rootpartname != '': 222 | # 223 | # rocks has been installed on this node before. 224 | # just reinstall the base operating environment, 225 | # that is, reinstall '/' but leave all the other 226 | # file systems alone. 227 | # 228 | efipartname = self.getEFIDiskInfo() 229 | 230 | args = [ "/boot/efi" , "--size" , "1", 231 | "--fstype", "vfat", 232 | "--onpart", efipartname ] 233 | 234 | # 235 | # set the values in the installer 236 | # 237 | KickstartBase.definePartition(self, id, args) 238 | 239 | else: 240 | args = [ "/boot/efi" , "--size" , "1000", 241 | "--fstype", "vfat", 242 | "--ondisk", devnames[0] ] 243 | 244 | KickstartBase.definePartition(self, id, args) 245 | 246 | # 247 | # call the diskPartition from the Rocks class 248 | # 249 | RocksCustomKickstart.diskPartition(self, id) 250 | 251 | 252 | def __init__(self, file, serial): 253 | RocksCustomKickstart.__init__(self, file, serial) 254 | 255 | 256 | -------------------------------------------------------------------------------- /include/installclass/master-keys.py: -------------------------------------------------------------------------------- 1 | # 2 | # Get master crypto certificates. For frontends. 3 | # 4 | # @Copyright@ 5 | # 6 | # Rocks(r) 7 | # www.rocksclusters.org 8 | # version 6.2 (SideWinder) 9 | # version 7.0 (Manzanita) 10 | # 11 | # Copyright (c) 2000 - 2017 The Regents of the University of California. 12 | # All rights reserved. 13 | # 14 | # Redistribution and use in source and binary forms, with or without 15 | # modification, are permitted provided that the following conditions are 16 | # met: 17 | # 18 | # 1. Redistributions of source code must retain the above copyright 19 | # notice, this list of conditions and the following disclaimer. 20 | # 21 | # 2. Redistributions in binary form must reproduce the above copyright 22 | # notice unmodified and in its entirety, this list of conditions and the 23 | # following disclaimer in the documentation and/or other materials provided 24 | # with the distribution. 25 | # 26 | # 3. All advertising and press materials, printed or electronic, mentioning 27 | # features or use of this software must display the following acknowledgement: 28 | # 29 | # "This product includes software developed by the Rocks(r) 30 | # Cluster Group at the San Diego Supercomputer Center at the 31 | # University of California, San Diego and its contributors." 32 | # 33 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3, 34 | # neither the name or logo of this software nor the names of its 35 | # authors may be used to endorse or promote products derived from this 36 | # software without specific prior written permission. The name of the 37 | # software includes the following terms, and any derivatives thereof: 38 | # "Rocks", "Rocks Clusters", and "Avalanche Installer". For licensing of 39 | # the associated name, interested parties should contact Technology 40 | # Transfer & Intellectual Property Services, University of California, 41 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910, 42 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu 43 | # 44 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' 45 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 46 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 47 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS 48 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 49 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 50 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 51 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 52 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 53 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 54 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 55 | # 56 | # @Copyright@ 57 | # 58 | # $Log: master-keys.py,v $ 59 | # Revision 1.16 2012/11/27 00:49:00 phil 60 | # Copyright Storm for Emerald Boa 61 | # 62 | # Revision 1.15 2012/05/06 05:49:09 phil 63 | # Copyright Storm for Mamba 64 | # 65 | # Revision 1.14 2011/07/23 02:31:05 phil 66 | # Viper Copyright 67 | # 68 | # Revision 1.13 2010/09/07 23:53:20 bruno 69 | # star power for gb 70 | # 71 | # Revision 1.12 2009/05/01 19:07:18 mjk 72 | # chimi con queso 73 | # 74 | # Revision 1.11 2008/10/18 00:56:09 mjk 75 | # copyright 5.1 76 | # 77 | # Revision 1.10 2008/03/06 23:41:53 mjk 78 | # copyright storm on 79 | # 80 | # Revision 1.9 2007/06/23 04:03:38 mjk 81 | # mars hill copyright 82 | # 83 | # Revision 1.8 2006/09/11 22:48:46 mjk 84 | # monkey face copyright 85 | # 86 | # Revision 1.7 2006/08/10 00:10:50 mjk 87 | # 4.2 copyright 88 | # 89 | # Revision 1.6 2005/10/12 18:09:40 mjk 90 | # final copyright for 4.1 91 | # 92 | # Revision 1.5 2005/09/16 01:03:17 mjk 93 | # updated copyright 94 | # 95 | # Revision 1.4 2005/05/24 21:22:42 mjk 96 | # update copyright, release is not any closer 97 | # 98 | # Revision 1.3 2005/04/18 23:22:33 fds 99 | # Save important files before drives get nuked. 100 | # 101 | # Revision 1.2 2005/04/14 00:22:22 fds 102 | # Simpler master key management: on catastrophic recovery, we manually 103 | # move CA and 411 keys. Makes USB security key operation more intuitive. 104 | # 105 | # Revision 1.1 2005/04/12 01:56:15 fds 106 | # Moved certificate management earlier in the install process. 107 | # 108 | # 109 | 110 | def getRocksFrontendCerts(): 111 | """Saves Grandfathered master keys and certs on old disks or 112 | USB keys. Keys on USB drive take priority. May already be there 113 | from frontend kickstart file (
 section)."""
114 | 
115 | 	# 
116 | 	# Only proceed if we are on a frontend.
117 | 	#
118 | 	if not os.path.exists('/tmp/asked-for-rolls'):
119 | 		return
120 | 		
121 | 	partition = RocksPartition(0, 0, '', '',
122 | 		'/mnt/runtime/usr/sbin/e2label',
123 | 		'/tmp/etc/fstab')
124 | 
125 | 	# Do not automatically copy master keys from the USB drive. If disaster
126 | 	# recovery is needed, move them by hand to the appropriate locations.
127 | 
128 | 	# Master keys on disk from our previous installation
129 | 	keys = [('/etc/411-security/shared.key','/tmp/security/411-shared.key'),
130 | 		('/etc/411-security/master.key','/tmp/security/411-master.key'),
131 | 		('/etc/security/ca/ca.key','/tmp/security/ca.key'),
132 | 		('/etc/security/ca/ca.crt','/tmp/security/ca.crt'),
133 | 		('/etc/security/ca/ca.serial','/tmp/security/ca.serial')
134 | 		]
135 | 
136 | 	for src, dst in keys:
137 | 		partition.saveFile(src, dst)
138 | 
139 | 	log("ROCKS:Frontend saved keys")
140 | 
141 | 


--------------------------------------------------------------------------------
/manifest:
--------------------------------------------------------------------------------
 1 | iozone
 2 | opt-iperf
 3 | mpich2-ethernet-gnu
 4 | mpi-tests
 5 | rocks-hpc-profile
 6 | rocks-openmpi
 7 | rocks-openmpi-modules
 8 | rocks-pvm
 9 | roll-hpc-kickstart
10 | roll-hpc-usersguide
11 | stream
12 | sunct-extra
13 | ClusterTools_gnu
14 | 


--------------------------------------------------------------------------------
/nodes/benchmarks.xml:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 | 
 4 | 
 5 | 
 6 | Benchmark applications
 7 | 
 8 | 
 9 | 
10 | 
11 | $Log: benchmarks.xml,v $
12 | Revision 1.11  2008/11/30 18:59:50  anoop
13 | Cleanup of graph and node files
14 | Moved sun cluster tools from surya to aurora - need
15 | to find a permanent home
16 | 
17 | Revision 1.10  2008/04/07 23:05:34  bruno
18 | nuke atlas and hpl
19 | 
20 | Revision 1.9  2005/02/17 01:32:01  bruno
21 | moved iperf source into the hpc roll
22 | 
23 | Revision 1.8  2005/02/17 01:05:18  bruno
24 | moved stream into the hpl roll
25 | 
26 | Revision 1.7  2005/02/16 00:40:04  mjk
27 | graph cleanup
28 | 
29 | Revision 1.6  2005/02/01 23:37:10  mjk
30 | remove roll attrs
31 | 
32 | Revision 1.5  2004/03/28 15:40:38  bruno
33 | now using iozone SRPM from official web site
34 | 
35 | Revision 1.4  2004/02/03 00:57:25  mjk
36 | decolorize / derollize
37 | 
38 | Revision 1.3  2004/01/30 00:22:54  mjk
39 | color hpc green
40 | 
41 | Revision 1.2  2003/07/08 18:37:14  bruno
42 | collapsed hpl-eth and hpl-myri into just hpl
43 | 
44 | Revision 1.1  2003/07/07 20:47:51  bruno
45 | initial release
46 | 
47 | Revision 1.5  2002/11/14 23:43:24  bruno
48 | added atlas and hpl-eth back in
49 | 
50 | Revision 1.4  2002/11/13 20:19:19  mjk
51 | more ia64 changes
52 | 
53 | Revision 1.3  2002/10/10 05:01:24  bruno
54 | added iozone
55 | 
56 | Revision 1.2  2002/10/09 20:27:24  bruno
57 | updated 'contrib' package names
58 | 
59 | Revision 1.1  2002/10/02 19:28:49  bruno
60 | put all benchmarks into one .xml file
61 | 
62 | 
63 | 
64 | 
65 | stream
66 | ROCKSstream
67 | 
68 | 
69 | opt-iperf
70 | ROCKSiperf
71 | 
72 | 
73 | iozone
74 | ROCKSiozone
75 | 
76 |  
77 | 


--------------------------------------------------------------------------------
/nodes/frontend.xml:
--------------------------------------------------------------------------------
  1 | 
  2 | 
  3 | 
  4 | 
  5 |   
  6 |   
  7 |   A Rocks Cluster Frontend machine.  This is your login host.
  8 | 
  9 |   
 10 | 
 11 |   
 12 |   $Log: frontend.xml,v $
 13 |   Revision 1.18  2008/01/14 19:54:55  bruno
 14 |   make the frontend XML node just a connection point. all functionality is
 15 |   moved into the base Roll.
 16 | 
 17 |   Revision 1.17  2007/12/03 20:32:00  bruno
 18 |   make HPC optional -- move critial services into base
 19 | 
 20 |   Revision 1.16  2007/08/13 19:32:00  bruno
 21 |   rename rocks-config-frontend to rocks-config-server
 22 | 
 23 |   Revision 1.15  2006/06/22 22:14:21  bruno
 24 |   Kickstart_PartsizeRoot and Kickstart_PartsizeSwap moved into base roll
 25 | 
 26 |   Revision 1.14  2006/01/27 22:29:44  bruno
 27 |   stable (mostly) after integration of new foundation and localization code
 28 | 
 29 |   Revision 1.13  2005/04/14 00:22:23  fds
 30 |   Simpler master key management: on catastrophic recovery, we manually
 31 |   move CA and 411 keys. Makes USB security key operation more intuitive.
 32 | 
 33 |   Revision 1.12  2005/04/12 01:56:15  fds
 34 |   Moved certificate management earlier in the install process.
 35 | 
 36 |   Revision 1.11  2005/03/24 23:00:38  bruno
 37 |   fix for CD-based installs
 38 | 
 39 |   Revision 1.10  2005/03/04 01:40:08  mjk
 40 |   massive graph cleanup
 41 | 
 42 |   Revision 1.4  2005/02/16 00:40:04  mjk
 43 |   graph cleanup
 44 | 
 45 |   Revision 1.3  2005/02/01 23:37:10  mjk
 46 |   remove roll attrs
 47 | 
 48 |   Revision 1.2  2004/04/28 17:34:19  bruno
 49 |   added support for variable-sized root and swap partitions
 50 | 
 51 |   Revision 1.1  2004/03/19 03:29:36  bruno
 52 |   frontend-wan is dead
 53 | 
 54 |   frontend-base and compute-base are the new nodes in which to derive new
 55 |   appliances
 56 | 
 57 |   Revision 1.6  2004/02/12 00:38:50  fds
 58 |   More inline with config-frontend.
 59 | 
 60 |   Revision 1.5  2004/02/03 00:57:25  mjk
 61 |   decolorize / derollize
 62 | 
 63 |   Revision 1.4  2004/01/30 00:22:54  mjk
 64 |   color hpc green
 65 | 
 66 |   Revision 1.3  2003/08/06 00:14:34  fds
 67 |   More explicit
 68 | 
 69 |   Revision 1.2  2003/07/23 21:21:59  fds
 70 |   Added RRD restoration, remove unneeded perl logic.
 71 | 
 72 |   Revision 1.1  2003/07/07 20:47:51  bruno
 73 |   initial release
 74 | 
 75 |   Revision 1.13  2003/04/25 18:15:09  bruno
 76 |   first pass at adding all the new rocks config screens
 77 | 
 78 |   Revision 1.12  2003/04/24 16:59:41  mjk
 79 |   - add order tags
 80 |   - edge and order tags can have children
 81 |   	This just make the graph look nicer, no functional change
 82 |   - added include directory
 83 |   - moved install class code into include directory
 84 |   - dependecies enforced via topological sort
 85 |   - weight attributes are dead
 86 |   - long live order tags
 87 |   - the 'gen' attribute is currently ignored.  This will be used to support
 88 |     other graph ordering requirements (e.g. testing, cfengine, ...)
 89 | 
 90 |   Revision 1.11  2002/11/27 04:56:54  bruno
 91 |   fix: can now have user-settable NIS domains
 92 | 
 93 |   Revision 1.10  2002/10/09 23:16:27  bruno
 94 |   fixup of package names to match our new source tree
 95 | 
 96 |   Revision 1.9  2002/10/09 21:05:14  bruno
 97 |   we can now build a cdrom again (after source tree reorganization)
 98 | 
 99 |   Revision 1.8  2002/09/12 18:44:41  bruno
100 |   more 2.3 changes
101 | 
102 |   Revision 1.7  2002/07/10 18:54:03  bruno
103 |   changes to make 7.3 installation from CD work
104 | 
105 |   Revision 1.6  2002/07/03 23:33:11  bruno
106 |   7.3 fixes
107 | 
108 |   Revision 1.5  2002/02/15 21:44:09  mjk
109 |   Release and DTF changes
110 | 
111 |   Revision 1.4  2002/02/02 02:21:53  bruno
112 |   slim down number of packages installed
113 | 
114 |   Revision 1.3  2001/11/09 23:50:54  mjk
115 |   - Post release ia64 changes
116 | 
117 |   Revision 1.2  2001/11/06 18:12:40  mjk
118 |   - Made emacs its own node (reuse in frontend and standalone)
119 |   - removed Victor's NFS stuff from accounting
120 |   - public/private root passwords match on the form
121 |   - Fixed private kickstart host on the form
122 | 
123 |   Revision 1.1  2001/10/15 23:13:01  bruno
124 |   newer is better.
125 | 
126 | 
127 |   
128 | 
129 |  
130 | 
131 | 


--------------------------------------------------------------------------------
/nodes/hpc-base.xml:
--------------------------------------------------------------------------------
  1 | 
  2 | 
  3 | 
  4 | 
  5 | 
  6 | The 'hpc node' in the graph.
  7 | 
  8 | This file is used as a connection point for other XML configuration nodes
  9 | that should be shared between all HPC appliances. Also contains common and 
 10 | popular libraries for HPC work.
 11 | 
 12 | 
 13 | 
 14 | $Log: hpc-base.xml,v $
 15 | Revision 1.16  2012/09/30 21:58:55  phil
 16 | Update openmpi to 1.6.2.
 17 | Create Modules for ethernet and IB
 18 | Add IB support - packages, openmpi configuration, udev rules
 19 | 
 20 | Revision 1.15  2012/05/06 01:11:06  phil
 21 | Add default module definition for rocks-openmpi.
 22 | 
 23 | Revision 1.14  2008/04/07 23:05:34  bruno
 24 | nuke atlas and hpl
 25 | 
 26 | Revision 1.13  2007/12/03 20:32:00  bruno
 27 | make HPC optional -- move critial services into base
 28 | 
 29 | Revision 1.12  2006/02/15 00:59:51  mjk
 30 | added tantakel
 31 | 
 32 | Revision 1.11  2005/05/23 23:52:17  fds
 33 | Moved to shepherd roll
 34 | 
 35 | Revision 1.10  2005/03/04 01:40:08  mjk
 36 | massive graph cleanup
 37 | 
 38 | Revision 1.9  2005/02/16 00:40:04  mjk
 39 | graph cleanup
 40 | 
 41 | Revision 1.8  2004/10/04 19:27:44  fds
 42 | Restricted cluster shepherd turned on. Takes no action until
 43 | 'insert-sheep' is run on frontend.
 44 | 
 45 | Revision 1.7  2004/09/13 22:27:15  fds
 46 | Turn off shepherd by default.
 47 | 
 48 | Revision 1.6  2004/08/24 01:58:02  fds
 49 | Shepherd tweaks and svcs update structure.
 50 | 
 51 | Revision 1.5  2004/08/09 23:48:08  fds
 52 | Add shepard package
 53 | 
 54 | Revision 1.4  2004/02/03 00:57:25  mjk
 55 | decolorize / derollize
 56 | 
 57 | Revision 1.3  2004/01/30 00:22:54  mjk
 58 | color hpc green
 59 | 
 60 | Revision 1.2  2003/10/22 22:47:33  fds
 61 | Added atlas, moved syslinux
 62 | 
 63 | Revision 1.1  2003/07/07 20:47:51  bruno
 64 | initial release
 65 | 
 66 | 
 67 | rocks-hpc-profile
 68 | rocks-openmpi-modules
 69 | 
 70 |  
 71 | compat-dapl
 72 | compat-dapl-devel
 73 | dapl
 74 | dapl-utils
 75 | dapl-devel
 76 | ibutils
 77 | ibutils
 78 | infiniband-diags
 79 | libibmad
 80 | libibmad-devel
 81 | libibumad
 82 | libibumad-devel
 83 | libibverbs
 84 | libibverbs-devel
 85 | libipathverbs
 86 | libusnic_verbs
 87 | libmlx4
 88 | libmthca
 89 | mpitests-openmpi
 90 | rdma
 91 | 
 92 | 
 93 | 
 94 | # Infiniband userspace needs to unlimited memlock limits
 95 | *               soft    memlock unlimited
 96 | *               hard    memlock unlimited
 97 | 
 98 | 
 99 | 
100 | 
101 | KERNEL=="umad*", NAME="infiniband/%k", MODE="0666"
102 | KERNEL=="issm*", NAME="infiniband/%k", MODE="0666"
103 | KERNEL=="ucm*", NAME="infiniband/%k", MODE="0666"
104 | KERNEL=="rdma_cm*", NAME="infiniband/%k", MODE="0666"
105 | KERNEL=="uverbs*", NAME="infiniband/%k", MODE="0666"
106 | 
107 | 
108 | 
109 | /sbin/chkconfig --level 3 rdma on
110 | /sbin/chkconfig --level 5 rdma on
111 | 
112 |  
113 | 
114 | 


--------------------------------------------------------------------------------
/nodes/hpc-client.xml:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 | 
 4 | 
 5 | 
 6 | 
 7 | cpus=`grep 'processor' /proc/cpuinfo | wc -l`
 8 | maxstartups=$(echo "$cpus * 32" | bc)
 9 | 
10 | if [ $maxstartups -lt 32 ]
11 | then
12 | 	maxstartups=32
13 | fi
14 | 
15 | export maxstartups
16 | echo "MaxStartups $maxstartups" >> /etc/ssh/sshd_config
17 | 
18 | 
19 | 
20 |  
21 | 


--------------------------------------------------------------------------------
/nodes/hpc-server.xml:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 | 
 4 | 
 5 | 
 6 | 
 7 | The HPC packages and configuration specifications for a Rocks server (frontend).
 8 | 
 9 | 
10 | 
11 | 
12 | $Log: hpc-server.xml,v $
13 | Revision 1.6  2012/09/30 21:58:55  phil
14 | Update openmpi to 1.6.2.
15 | Create Modules for ethernet and IB
16 | Add IB support - packages, openmpi configuration, udev rules
17 | 
18 | Revision 1.5  2009/03/06 21:42:59  bruno
19 | no longer need hpc-insert-ethers package since we killed mpich
20 | 
21 | Revision 1.4  2008/04/24 23:51:16  bruno
22 | install the HPC roll users guide on the frontend
23 | 
24 | Revision 1.3  2008/03/17 17:59:03  bruno
25 | put gfortran on the frontend
26 | 
27 | Revision 1.2  2008/02/07 20:31:13  bruno
28 | moved an HPC-specific insert-ethers plugin into the HPC roll
29 | 
30 | 
31 | 
32 | 
33 | gcc-gfortran
34 | opensm
35 | roll-hpc-usersguide
36 | libibverbs-devel
37 | 
38 | 
39 | 
40 | /sbin/chkconfig --level 3 opensm on
41 | /sbin/chkconfig --level 5 opensm on
42 | 
43 |  
44 | 
45 | 


--------------------------------------------------------------------------------
/nodes/mpi.xml:
--------------------------------------------------------------------------------
  1 | 
  2 | 
  3 | 
  4 | 
  5 |   
  6 | 
  7 |   MPI - The Message Passing Interface for
  8 |   computational clusters. Includes the MPD version
  9 |   with its fast job launcher.
 10 | 
 11 |   
 12 | 
 13 |   
 14 |   $Log: mpi.xml,v $
 15 |   Revision 1.46  2012/04/30 20:17:26  phil
 16 |   remove post-92 mpi-selector. Use enviornment-modules instead. But leave mpi-selector files in place
 17 | 
 18 |   Revision 1.45  2010/10/01 21:13:46  anoop
 19 |   Make rocks-openmpi the system default MPI
 20 | 
 21 |   Revision 1.44  2010/03/08 04:38:20  anoop
 22 |   Removed OpenMPI and Sun-CT from path and library path from Linux.
 23 |   Added mpi-selector capability for both
 24 | 
 25 |   Revision 1.43  2009/12/15 19:09:51  bruno
 26 |   new
 27 | 
 28 |   Revision 1.42  2009/11/25 23:34:24  anoop
 29 |   Upgraded to latest Sun HPC Cluster tools for SunOS
 30 |   Added patch for Sun HPC Cluster tools so that installation
 31 |   won't fail
 32 | 
 33 |   Revision 1.41  2009/06/26 00:57:56  anoop
 34 |   added sun-hpc cluster tools to the hpc roll
 35 | 
 36 |   Revision 1.40  2009/01/06 18:06:17  bruno
 37 |   nuked mpich
 38 | 
 39 |   Revision 1.39  2008/12/16 18:43:34  anoop
 40 |   Upgraded Sun cluster tools to 8.1
 41 | 
 42 |   Revision 1.38  2008/11/30 18:59:50  anoop
 43 |   Cleanup of graph and node files
 44 |   Moved sun cluster tools from surya to aurora - need
 45 |   to find a permanent home
 46 | 
 47 |   Revision 1.37  2008/04/07 23:06:39  bruno
 48 |   add the rocks version of openmpi and add some basic MPI tests
 49 | 
 50 |   Revision 1.36  2008/03/03 18:49:13  bruno
 51 |   added mpich2
 52 | 
 53 |   Revision 1.35  2007/06/06 23:17:02  bruno
 54 |   still install LAM, just don't configure it -- it confuses openmpi
 55 | 
 56 |   Revision 1.34  2007/06/06 20:42:06  bruno
 57 |   add all the openmpi packages
 58 | 
 59 |   Revision 1.33  2006/12/05 05:23:43  bruno
 60 |   yet another csh fix
 61 | 
 62 |   Revision 1.32  2006/09/13 18:32:14  anoop
 63 |   Minor changes to csh profiles
 64 | 
 65 |   Revision 1.31  2006/08/08 01:05:10  phil
 66 |   Properly handle cases when LD_LIBRARY_PATH starts out empty.
 67 | 
 68 |   Revision 1.30  2006/07/20 15:54:49  anoop
 69 |   *** empty log message ***
 70 | 
 71 |   Revision 1.29  2006/07/12 20:34:26  anoop
 72 |   Added openmpi support in the nodes file
 73 | 
 74 |   Revision 1.28  2006/05/19 09:27:08  phil
 75 |   put /opt/lam/gnu/lib into the LD_LIBRARY_PATH
 76 | 
 77 |   Revision 1.27  2006/03/17 14:49:34  bruno
 78 |   include man path to LAM -- thanks to Kevin Higgins for the bug report.
 79 | 
 80 |   Revision 1.26  2005/11/24 19:13:18  bruno
 81 |   make sure lam-mpi programs can find their shared-object libraries
 82 | 
 83 |   Revision 1.25  2005/10/19 20:24:53  bruno
 84 |   don't run the default cleanipcs after the end of every mpirun program
 85 | 
 86 |   Revision 1.24  2005/08/11 04:03:16  bruno
 87 |   sh and csh lines were swapped
 88 | 
 89 |   Revision 1.23  2005/08/09 17:52:26  mjk
 90 |   nuke mpd
 91 | 
 92 |   Revision 1.22  2005/07/14 05:39:17  nadya
 93 |   Add path to lam binaries. Needed for programs that run with lam mpi.
 94 | 
 95 |   Revision 1.21  2005/04/12 01:55:00  fds
 96 |   This has been renamed
 97 | 
 98 |   Revision 1.20  2005/03/14 15:05:22  bruno
 99 |   set the LAMRSH environment variable -- addresses bug 121.
100 | 
101 |   Revision 1.19  2005/02/17 00:29:45  bruno
102 |   mpich is now parameterized for both ethernet and mpd
103 | 
104 |   Revision 1.18  2005/02/16 00:40:04  mjk
105 |   graph cleanup
106 | 
107 |   Revision 1.17  2005/02/01 23:37:10  mjk
108 |   remove roll attrs
109 | 
110 |   Revision 1.16  2004/12/22 03:02:40  bruno
111 |   mpich-myrinet moved to the myrinet roll
112 | 
113 |   Revision 1.15  2004/09/10 16:53:04  najib
114 |   Added lam mpi.
115 | 
116 |   Revision 1.14  2004/07/08 17:28:42  fds
117 |   Check this bruno: Fix mpirun.args to stop Tron Saue's -nolocal bug from Feb-2004
118 | 
119 |   Revision 1.13  2004/03/04 00:02:59  bruno
120 |   mpi cleanup
121 | 
122 |   Revision 1.12  2004/02/03 00:57:25  mjk
123 |   decolorize / derollize
124 | 
125 |   Revision 1.11  2004/01/30 00:22:54  mjk
126 |   color hpc green
127 | 
128 |   Revision 1.10  2003/12/18 22:09:24  bruno
129 |   fixed man page for mpi
130 | 
131 |   Revision 1.9  2003/12/11 00:32:29  fds
132 |   Include mpich2 in an experimental capacity.
133 | 
134 |   Revision 1.8  2003/11/03 22:00:09  bruno
135 |   made man path consistent with other man paths
136 | 
137 |   Revision 1.7  2003/10/23 17:30:48  fds
138 |   Removed non-ascii character.
139 | 
140 |   Revision 1.6  2003/10/23 00:35:39  bruno
141 |   fixed the man path -- thanks to Gotz Waschk
142 | 
143 |   Revision 1.5  2003/07/21 20:03:41  fds
144 |   Simple file append structure, with vars= attr
145 |   where needed
146 | 
147 |   Revision 1.4  2003/07/17 15:45:29  bruno
148 |   fixed the 'file' tag in comments section bug
149 | 
150 |   Revision 1.3  2003/07/16 21:32:33  fds
151 |   Using new 'file mode=append' structure.
152 | 
153 |   Revision 1.2  2003/07/16 18:52:45  bruno
154 |   changes all file creation code to use 'file' tag
155 | 
156 |   Revision 1.1  2003/07/07 20:47:51  bruno
157 |   initial release
158 | 
159 |   Revision 1.6  2003/06/02 23:06:37  fds
160 |   Moving man path manipulations into the kickstart post section.
161 | 
162 |   Revision 1.5  2003/05/28 18:17:53  fds
163 |   Added support for MPD
164 | 
165 |   Revision 1.4  2002/10/28 19:51:13  mjk
166 |   remove mpi-lauch
167 | 
168 |   Revision 1.3  2002/10/09 23:16:27  bruno
169 |   fixup of package names to match our new source tree
170 | 
171 |   Revision 1.2  2002/10/02 20:38:55  bruno
172 |   nuked patron/usher.
173 |   made sure mpi-launch is installed.
174 | 
175 |   Revision 1.1  2001/09/05 00:27:17  mjk
176 |   main and packages section is correct for compute nodes
177 | 
178 |   
179 | 
180 | mpich3-ethernet-gnu
181 | rocks-openmpi
182 | openmpi
183 | openmpi-libs
184 | openmpi-devel
185 | mpi-tests
186 | 
187 | 
188 | 
189 | 
190 | MANPATH	/opt/openmpi/share/man
191 | MANPATH /opt/mpich3/gnu/man
192 | 
193 | 
194 | 
195 | 
196 | 
197 | 
198 | 
199 | cp -f /opt/openmpi/share/mpi-selector/rocks-openmpi* \
200 | 	/var/lib/mpi-selector/data
201 | 
202 | 
203 | 
204 | 
205 | 


--------------------------------------------------------------------------------
/nodes/pvm.xml:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 | 
 4 | 
 5 | 
 6 | 
 7 | PVM
 8 | 
 9 | 
10 | 
11 | 
12 | $Log: pvm.xml,v $
13 | Revision 1.10  2007/06/07 22:02:30  phil
14 | just install packages
15 | 
16 | Revision 1.9  2005/09/02 00:12:08  bruno
17 | better PVM configuration (thanks to Jose Luis Guisado)
18 | 
19 | Revision 1.8  2005/02/17 01:53:58  bruno
20 | moved pvm source code into the hpc roll
21 | 
22 | Revision 1.7  2005/02/16 00:40:04  mjk
23 | graph cleanup
24 | 
25 | Revision 1.6  2005/02/01 23:37:10  mjk
26 | remove roll attrs
27 | 
28 | Revision 1.5  2004/02/03 00:57:25  mjk
29 | decolorize / derollize
30 | 
31 | Revision 1.4  2004/01/30 00:22:54  mjk
32 | color hpc green
33 | 
34 | Revision 1.3  2003/10/20 22:02:33  fds
35 | For bruno
36 | 
37 | Revision 1.2  2003/07/16 18:52:45  bruno
38 | changes all file creation code to use 'file' tag
39 | 
40 | Revision 1.1  2003/07/07 20:47:51  bruno
41 | initial release
42 | 
43 | Revision 1.3  2002/10/09 20:27:24  bruno
44 | updated 'contrib' package names
45 | 
46 | Revision 1.2  2002/07/27 00:20:57  bruno
47 | included changes from craig hagen at cray
48 | 
49 | Revision 1.1  2001/10/05 18:59:49  mjk
50 | *** empty log message ***
51 | 
52 | 
53 | 
54 | pvm
55 | pvm-gui
56 | rocks-pvm
57 | 
58 |  
59 | 
60 | 


--------------------------------------------------------------------------------
/src/Makefile:
--------------------------------------------------------------------------------
  1 | # $Id: Makefile,v 1.24 2012/11/27 00:49:00 phil Exp $
  2 | #
  3 | # @Copyright@
  4 | # 
  5 | # 				Rocks(r)
  6 | # 		         www.rocksclusters.org
  7 | # 		         version 6.2 (SideWinder)
  8 | # 		         version 7.0 (Manzanita)
  9 | # 
 10 | # Copyright (c) 2000 - 2017 The Regents of the University of California.
 11 | # All rights reserved.	
 12 | # 
 13 | # Redistribution and use in source and binary forms, with or without
 14 | # modification, are permitted provided that the following conditions are
 15 | # met:
 16 | # 
 17 | # 1. Redistributions of source code must retain the above copyright
 18 | # notice, this list of conditions and the following disclaimer.
 19 | # 
 20 | # 2. Redistributions in binary form must reproduce the above copyright
 21 | # notice unmodified and in its entirety, this list of conditions and the
 22 | # following disclaimer in the documentation and/or other materials provided 
 23 | # with the distribution.
 24 | # 
 25 | # 3. All advertising and press materials, printed or electronic, mentioning
 26 | # features or use of this software must display the following acknowledgement: 
 27 | # 
 28 | # 	"This product includes software developed by the Rocks(r)
 29 | # 	Cluster Group at the San Diego Supercomputer Center at the
 30 | # 	University of California, San Diego and its contributors."
 31 | # 
 32 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3,
 33 | # neither the name or logo of this software nor the names of its
 34 | # authors may be used to endorse or promote products derived from this
 35 | # software without specific prior written permission.  The name of the
 36 | # software includes the following terms, and any derivatives thereof:
 37 | # "Rocks", "Rocks Clusters", and "Avalanche Installer".  For licensing of 
 38 | # the associated name, interested parties should contact Technology 
 39 | # Transfer & Intellectual Property Services, University of California, 
 40 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910, 
 41 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu
 42 | # 
 43 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
 44 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 45 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 46 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
 47 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 48 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 49 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
 50 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 51 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
 52 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
 53 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 54 | # 
 55 | # @Copyright@
 56 | #
 57 | # $Log: Makefile,v $
 58 | # Revision 1.24  2012/11/27 00:49:00  phil
 59 | # Copyright Storm for Emerald Boa
 60 | #
 61 | # Revision 1.23  2012/05/06 05:49:09  phil
 62 | # Copyright Storm for Mamba
 63 | #
 64 | # Revision 1.22  2011/07/23 02:31:05  phil
 65 | # Viper Copyright
 66 | #
 67 | # Revision 1.21  2010/09/07 23:53:20  bruno
 68 | # star power for gb
 69 | #
 70 | # Revision 1.20  2009/05/01 19:07:18  mjk
 71 | # chimi con queso
 72 | #
 73 | # Revision 1.19  2008/10/18 00:56:09  mjk
 74 | # copyright 5.1
 75 | #
 76 | # Revision 1.18  2008/10/15 20:13:04  mjk
 77 | # - more changes to build outside of the tree
 78 | # - removed some old fds-only targets
 79 | #
 80 | # Revision 1.17  2008/05/21 17:46:55  anoop
 81 | # Merginig code from mercurial.
 82 | # This change makes the HPC roll more solaris friendly
 83 | #
 84 | # Revision 1.16  2008/03/06 23:41:53  mjk
 85 | # copyright storm on
 86 | #
 87 | # Revision 1.15  2008/03/03 18:21:30  bruno
 88 | # no more lam
 89 | #
 90 | # Revision 1.14  2007/12/03 22:34:48  bruno
 91 | # don't build lam
 92 | #
 93 | # Revision 1.13  2007/08/14 20:28:40  anoop
 94 | # Makefiles fitted so that compilation occurs without errors
 95 | # on Solaris
 96 | #
 97 | # Revision 1.12  2007/06/23 04:03:38  mjk
 98 | # mars hill copyright
 99 | #
100 | # Revision 1.11  2006/12/05 14:50:55  bruno
101 | # added 'pkg'
102 | #
103 | # Revision 1.10  2006/09/11 22:48:46  mjk
104 | # monkey face copyright
105 | #
106 | # Revision 1.9  2006/08/10 00:10:51  mjk
107 | # 4.2 copyright
108 | #
109 | # Revision 1.8  2005/10/12 18:09:40  mjk
110 | # final copyright for 4.1
111 | #
112 | # Revision 1.7  2005/09/16 01:03:17  mjk
113 | # updated copyright
114 | #
115 | # Revision 1.6  2005/06/16 00:26:37  bruno
116 | # make sure atlas is built everytime.
117 | #
118 | # Revision 1.5  2005/05/24 21:22:42  mjk
119 | # update copyright, release is not any closer
120 | #
121 | # Revision 1.4  2005/03/12 00:01:58  bruno
122 | # minor checkin
123 | #
124 | # Revision 1.3  2005/03/08 00:59:09  fds
125 | # Works with empty src directories.
126 | #
127 | # Revision 1.2  2004/03/25 03:16:09  bruno
128 | # touch 'em all!
129 | #
130 | # update version numbers to 3.2.0 and update copyrights
131 | #
132 | # Revision 1.1  2004/02/09 06:10:05  bruno
133 | # new version of mpich
134 | #
135 | # Revision 1.2  2004/01/09 19:55:36  bruno
136 | # added mpd to intel roll
137 | #
138 | # restructured the way in which mpich is built for the various packages
139 | # in order to leverage code reuse
140 | #
141 | # Revision 1.1  2003/12/17 23:17:56  bruno
142 | # new intel rpms (version 8 of the compiler) and config
143 | #
144 | # Revision 1.2  2003/08/27 23:10:55  mjk
145 | # - copyright update
146 | # - rocks-dist uses getArch() fix the i686 distro bug
147 | # - ganglia-python spec file fixes (bad service start code)
148 | # - found some 80col issues while reading code
149 | # - WAN ks support starting
150 | #
151 | # Revision 1.1  2003/07/30 22:24:25  mjk
152 | # *** empty log message ***
153 | #
154 | 
155 | -include $(shell $(ROCKSROOT)/bin/os).mk
156 | 
157 | default:	rpm
158 | 
159 | copyright rpm pkg clean::
160 | 	for i in $(SRCDIRS) ; do \
161 | 		if [ -f $$i/Makefile ]; then \
162 | 			(cd $$i; $(MAKE) $@) ; \
163 | 		fi ; \
164 | 	done
165 | 
166 | 


--------------------------------------------------------------------------------
/src/RPMS/Makefile:
--------------------------------------------------------------------------------
 1 | # --------------------------------------------------- -*- Makefile -*- --
 2 | # $Id: Makefile,v 1.18 2012/11/27 00:49:00 phil Exp $
 3 | #
 4 | # @Copyright@
 5 | # 
 6 | # 				Rocks(r)
 7 | # 		         www.rocksclusters.org
 8 | # 		         version 6.2 (SideWinder)
 9 | # 		         version 7.0 (Manzanita)
10 | # 
11 | # Copyright (c) 2000 - 2017 The Regents of the University of California.
12 | # All rights reserved.	
13 | # 
14 | # Redistribution and use in source and binary forms, with or without
15 | # modification, are permitted provided that the following conditions are
16 | # met:
17 | # 
18 | # 1. Redistributions of source code must retain the above copyright
19 | # notice, this list of conditions and the following disclaimer.
20 | # 
21 | # 2. Redistributions in binary form must reproduce the above copyright
22 | # notice unmodified and in its entirety, this list of conditions and the
23 | # following disclaimer in the documentation and/or other materials provided 
24 | # with the distribution.
25 | # 
26 | # 3. All advertising and press materials, printed or electronic, mentioning
27 | # features or use of this software must display the following acknowledgement: 
28 | # 
29 | # 	"This product includes software developed by the Rocks(r)
30 | # 	Cluster Group at the San Diego Supercomputer Center at the
31 | # 	University of California, San Diego and its contributors."
32 | # 
33 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3,
34 | # neither the name or logo of this software nor the names of its
35 | # authors may be used to endorse or promote products derived from this
36 | # software without specific prior written permission.  The name of the
37 | # software includes the following terms, and any derivatives thereof:
38 | # "Rocks", "Rocks Clusters", and "Avalanche Installer".  For licensing of 
39 | # the associated name, interested parties should contact Technology 
40 | # Transfer & Intellectual Property Services, University of California, 
41 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910, 
42 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu
43 | # 
44 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
45 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
46 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
47 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
48 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
49 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
50 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
51 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
52 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
53 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
54 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
55 | # 
56 | # @Copyright@
57 | #
58 | # $Log: Makefile,v $
59 | # Revision 1.18  2012/11/27 00:49:00  phil
60 | # Copyright Storm for Emerald Boa
61 | #
62 | # Revision 1.17  2012/05/08 00:00:58  phil
63 | # Copy PVM RPMs for 6
64 | #
65 | # Revision 1.16  2012/05/08 00:00:32  phil
66 | # Add the PVM RPMS for 6
67 | #
68 | #
69 | 
70 | REDHAT.ROOT = $(PWD)/../../
71 | ARCH = $(shell $(PWD)/../../_arch)
72 | RELEASE = $(shell lsb_release -rs | cut -f 1 -d .)
73 | # RELEASE = 5
74 | 
75 | PVM = pvm-*.el$(RELEASE).
76 | ifeq ($(ARCH),i386)
77 | PATTERN = i[3456]86.rpm
78 | else
79 | PATTERN = $(ARCH).rpm
80 | endif 
81 | 
82 | pkg rpm default:
83 | 	if [ ! -d $(REDHAT.ROOT)/RPMS/$(ARCH) ]; then \
84 | 		mkdir -p $(REDHAT.ROOT)/RPMS/$(ARCH); \
85 | 	fi
86 | 	for rpm in `find . -name '$(PVM)$(PATTERN)'`; do 	\
87 | 		echo "Copying $$rpm"; 			    \
88 | 		/bin/cp $$rpm $(REDHAT.ROOT)/RPMS/$(ARCH);  \
89 | 	done
90 | 


--------------------------------------------------------------------------------
/src/iozone/Makefile:
--------------------------------------------------------------------------------
  1 | #
  2 | # $Id: Makefile,v 1.25 2012/11/27 00:49:01 phil Exp $
  3 | #
  4 | # @Copyright@
  5 | # 
  6 | # 				Rocks(r)
  7 | # 		         www.rocksclusters.org
  8 | # 		         version 6.2 (SideWinder)
  9 | # 		         version 7.0 (Manzanita)
 10 | # 
 11 | # Copyright (c) 2000 - 2017 The Regents of the University of California.
 12 | # All rights reserved.	
 13 | # 
 14 | # Redistribution and use in source and binary forms, with or without
 15 | # modification, are permitted provided that the following conditions are
 16 | # met:
 17 | # 
 18 | # 1. Redistributions of source code must retain the above copyright
 19 | # notice, this list of conditions and the following disclaimer.
 20 | # 
 21 | # 2. Redistributions in binary form must reproduce the above copyright
 22 | # notice unmodified and in its entirety, this list of conditions and the
 23 | # following disclaimer in the documentation and/or other materials provided 
 24 | # with the distribution.
 25 | # 
 26 | # 3. All advertising and press materials, printed or electronic, mentioning
 27 | # features or use of this software must display the following acknowledgement: 
 28 | # 
 29 | # 	"This product includes software developed by the Rocks(r)
 30 | # 	Cluster Group at the San Diego Supercomputer Center at the
 31 | # 	University of California, San Diego and its contributors."
 32 | # 
 33 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3,
 34 | # neither the name or logo of this software nor the names of its
 35 | # authors may be used to endorse or promote products derived from this
 36 | # software without specific prior written permission.  The name of the
 37 | # software includes the following terms, and any derivatives thereof:
 38 | # "Rocks", "Rocks Clusters", and "Avalanche Installer".  For licensing of 
 39 | # the associated name, interested parties should contact Technology 
 40 | # Transfer & Intellectual Property Services, University of California, 
 41 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910, 
 42 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu
 43 | # 
 44 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
 45 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 46 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 47 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
 48 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 49 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 50 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
 51 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 52 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
 53 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
 54 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 55 | # 
 56 | # @Copyright@
 57 | #
 58 | # $Log: Makefile,v $
 59 | # Revision 1.25  2012/11/27 00:49:01  phil
 60 | # Copyright Storm for Emerald Boa
 61 | #
 62 | # Revision 1.24  2012/05/06 05:49:09  phil
 63 | # Copyright Storm for Mamba
 64 | #
 65 | # Revision 1.23  2011/07/23 02:31:05  phil
 66 | # Viper Copyright
 67 | #
 68 | # Revision 1.22  2010/11/28 00:40:34  anoop
 69 | # Solaris 64-bit support for iozone
 70 | #
 71 | # Revision 1.21  2010/09/07 23:53:20  bruno
 72 | # star power for gb
 73 | #
 74 | # Revision 1.20  2009/11/25 18:51:02  anoop
 75 | # Upgraded iozone
 76 | #
 77 | # Revision 1.19  2009/10/07 17:10:22  bruno
 78 | # workaround for a bad checkin
 79 | #
 80 | # Revision 1.18  2009/10/01 21:07:56  bruno
 81 | # refresh for 5.3
 82 | #
 83 | # Revision 1.17  2009/05/01 19:07:18  mjk
 84 | # chimi con queso
 85 | #
 86 | # Revision 1.16  2008/10/18 00:56:09  mjk
 87 | # copyright 5.1
 88 | #
 89 | # Revision 1.15  2008/10/15 20:13:04  mjk
 90 | # - more changes to build outside of the tree
 91 | # - removed some old fds-only targets
 92 | #
 93 | # Revision 1.14  2008/05/21 17:46:55  anoop
 94 | # Merginig code from mercurial.
 95 | # This change makes the HPC roll more solaris friendly
 96 | #
 97 | # Revision 1.13  2008/03/06 23:41:53  mjk
 98 | # copyright storm on
 99 | #
100 | # Revision 1.12  2007/06/23 04:03:39  mjk
101 | # mars hill copyright
102 | #
103 | # Revision 1.11  2006/09/11 22:48:51  mjk
104 | # monkey face copyright
105 | #
106 | # Revision 1.10  2006/08/10 00:10:56  mjk
107 | # 4.2 copyright
108 | #
109 | # Revision 1.9  2006/07/01 16:56:46  bruno
110 | # refreshed iozone and converted the build procedure from SRPM-based to
111 | # tarball-based.
112 | #
113 | #
114 | 
115 | REDHAT.ROOT     = $(CURDIR)/../../
116 | 
117 | -include $(ROCKSROOT)/etc/Rules.mk
118 | include Rules.mk
119 | 
120 | BINARIES	= iozone fileop Generate_Graphs gengnuplot.sh gnu3d.dem
121 | DOCS		= IOzone_msword_98.pdf Run_rules.doc IOzone_msword_98.doc \
122 | 			Iozone_ps.gz 
123 | 
124 | 
125 | build:
126 | 	$(TAR) xf $(NAME)$(IOZONE_VERSION).tar
127 | 	-(cd patch-files && \
128 | 		find $(NAME)$(IOZONE_VERSION) -type f | \
129 | 		grep -v CVS | cpio -pudv ../;		\
130 | 	)
131 | 	(								\
132 | 		cd $(NAME)$(IOZONE_VERSION)/src/current;		\
133 | 		$(MAKE) $(TARGET);					\
134 | 	)
135 | 
136 | install::
137 | 	mkdir -p $(ROOT)/$(PKGROOT)/bin
138 | 	(								\
139 | 		cd $(NAME)$(IOZONE_VERSION)/src/current;		\
140 | 		cp $(BINARIES) $(ROOT)/$(PKGROOT)/bin;			\
141 | 	)
142 | 	mkdir -p $(ROOT)/$(PKGROOT)/docs
143 | 	(								\
144 | 		cd $(NAME)$(IOZONE_VERSION)/docs;			\
145 | 		cp $(DOCS) $(ROOT)/$(PKGROOT)/docs;			\
146 | 	)
147 | 	(								\
148 | 		cd $(NAME)$(IOZONE_VERSION)/src/current;		\
149 | 		cp Gnuplot.txt $(ROOT)/$(PKGROOT)/docs;			\
150 | 	)
151 | 
152 | 
153 | clean::
154 | 	rm -rf $(NAME)$(IOZONE_VERSION)
155 | 	rm -f $(NAME).spec.in
156 | 
157 | 


--------------------------------------------------------------------------------
/src/iozone/i386.mk:
--------------------------------------------------------------------------------
1 | TARGET	= linux
2 | 


--------------------------------------------------------------------------------
/src/iozone/sunos.mk:
--------------------------------------------------------------------------------
1 | TARGET = Solaris10cc-64
2 | 


--------------------------------------------------------------------------------
/src/iozone/version.mk:
--------------------------------------------------------------------------------
1 | NAME		= iozone
2 | VERSION		= 3.465
3 | RELEASE		= 0
4 | PKGROOT		= /opt/iozone
5 | 
6 | IOZONE_VERSION	= 3_465
7 | RPM.FILES	= $(PKGROOT)
8 | 


--------------------------------------------------------------------------------
/src/iozone/x86_64.mk:
--------------------------------------------------------------------------------
1 | TARGET	= linux-AMD64
2 | 


--------------------------------------------------------------------------------
/src/iperf/Makefile:
--------------------------------------------------------------------------------
  1 | # --------------------------------------------------- -*- Makefile -*- --
  2 | # $Id: Makefile,v 1.21 2012/11/27 00:49:01 phil Exp $
  3 | #
  4 | # @Copyright@
  5 | # 
  6 | # 				Rocks(r)
  7 | # 		         www.rocksclusters.org
  8 | # 		         version 6.2 (SideWinder)
  9 | # 		         version 7.0 (Manzanita)
 10 | # 
 11 | # Copyright (c) 2000 - 2017 The Regents of the University of California.
 12 | # All rights reserved.	
 13 | # 
 14 | # Redistribution and use in source and binary forms, with or without
 15 | # modification, are permitted provided that the following conditions are
 16 | # met:
 17 | # 
 18 | # 1. Redistributions of source code must retain the above copyright
 19 | # notice, this list of conditions and the following disclaimer.
 20 | # 
 21 | # 2. Redistributions in binary form must reproduce the above copyright
 22 | # notice unmodified and in its entirety, this list of conditions and the
 23 | # following disclaimer in the documentation and/or other materials provided 
 24 | # with the distribution.
 25 | # 
 26 | # 3. All advertising and press materials, printed or electronic, mentioning
 27 | # features or use of this software must display the following acknowledgement: 
 28 | # 
 29 | # 	"This product includes software developed by the Rocks(r)
 30 | # 	Cluster Group at the San Diego Supercomputer Center at the
 31 | # 	University of California, San Diego and its contributors."
 32 | # 
 33 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3,
 34 | # neither the name or logo of this software nor the names of its
 35 | # authors may be used to endorse or promote products derived from this
 36 | # software without specific prior written permission.  The name of the
 37 | # software includes the following terms, and any derivatives thereof:
 38 | # "Rocks", "Rocks Clusters", and "Avalanche Installer".  For licensing of 
 39 | # the associated name, interested parties should contact Technology 
 40 | # Transfer & Intellectual Property Services, University of California, 
 41 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910, 
 42 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu
 43 | # 
 44 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
 45 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 46 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 47 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
 48 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 49 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 50 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
 51 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 52 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
 53 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
 54 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 55 | # 
 56 | # @Copyright@
 57 | #
 58 | # $Log: Makefile,v $
 59 | # Revision 1.21  2012/11/27 00:49:01  phil
 60 | # Copyright Storm for Emerald Boa
 61 | #
 62 | # Revision 1.20  2012/05/06 05:49:09  phil
 63 | # Copyright Storm for Mamba
 64 | #
 65 | # Revision 1.19  2011/07/23 02:31:05  phil
 66 | # Viper Copyright
 67 | #
 68 | # Revision 1.18  2010/11/28 00:42:10  anoop
 69 | # Solaris support for iperf-2.0.5
 70 | #
 71 | # Revision 1.17  2010/09/14 17:10:00  bruno
 72 | # don't patch if the patch files don't exist for this version/os
 73 | #
 74 | # Revision 1.16  2010/09/07 23:53:20  bruno
 75 | # star power for gb
 76 | #
 77 | # Revision 1.15  2009/11/25 23:20:51  anoop
 78 | # Mods to support sunos patching for iperf
 79 | #
 80 | # Revision 1.14  2009/05/01 19:07:18  mjk
 81 | # chimi con queso
 82 | #
 83 | # Revision 1.13  2008/10/18 00:56:10  mjk
 84 | # copyright 5.1
 85 | #
 86 | # Revision 1.12  2008/10/15 20:13:04  mjk
 87 | # - more changes to build outside of the tree
 88 | # - removed some old fds-only targets
 89 | #
 90 | # Revision 1.11  2008/05/21 17:46:55  anoop
 91 | # Merginig code from mercurial.
 92 | # This change makes the HPC roll more solaris friendly
 93 | #
 94 | # Revision 1.10  2008/03/06 23:41:53  mjk
 95 | # copyright storm on
 96 | #
 97 | # Revision 1.9  2008/02/28 17:32:55  bruno
 98 | # nuked the spec file for iperf
 99 | #
100 | # Revision 1.8  2007/06/23 04:03:39  mjk
101 | # mars hill copyright
102 | #
103 | # Revision 1.7  2006/09/11 22:48:52  mjk
104 | # monkey face copyright
105 | #
106 | # Revision 1.6  2006/08/10 00:10:57  mjk
107 | # 4.2 copyright
108 | #
109 | # Revision 1.5  2005/10/12 18:09:46  mjk
110 | # final copyright for 4.1
111 | #
112 | # Revision 1.4  2005/09/16 01:03:24  mjk
113 | # updated copyright
114 | #
115 | # Revision 1.3  2005/05/24 21:22:49  mjk
116 | # update copyright, release is not any closer
117 | #
118 | # Revision 1.2  2005/03/14 21:31:37  fds
119 | # Fixed subtle name collision during build process.
120 | #
121 | # Revision 1.1  2005/02/17 01:32:02  bruno
122 | # moved iperf source into the hpc roll
123 | #
124 | # Revision 1.3  2003/05/29 02:37:13  bruno
125 | # added iperf 1.7
126 | #
127 | # Revision 1.2  2002/10/07 04:34:46  mjk
128 | # builds under new structure
129 | #
130 | #
131 | 
132 | REDHAT.ROOT     = $(CURDIR)/../../
133 | 
134 | -include $(ROCKSROOT)/etc/Rules.mk
135 | include Rules.mk
136 | 
137 | prep:
138 | 	gunzip -c iperf-$(VERSION).tar.gz | $(TAR) -xf -
139 | 	if [ -d patch-files/iperf-$(VERSION)/$(OS) ] ; then		\
140 | 		(							\
141 | 			cd patch-files/iperf-$(VERSION)/$(OS);		\
142 | 			find . -type f | grep -v CVS |			\
143 | 				cpio -pudv ../../../iperf-$(VERSION);	\
144 | 			);						\
145 | 	fi
146 | 
147 | 
148 | build: prep
149 | 	(					\
150 | 		cd iperf-$(VERSION) ;		\
151 | 		./configure --prefix=$(PKGROOT) $(OSFLAGS);\
152 | 		$(MAKE) ;			\
153 | 	)
154 | install::
155 | 	mkdir -p $(ROOT)/$(PKGROOT)
156 | 	(							\
157 | 		cd iperf-$(VERSION) ;				\
158 | 		$(MAKE) prefix=$(ROOT)/$(PKGROOT) install ;	\
159 | 	)
160 | 
161 | 
162 | clean::
163 | 	rm -rf iperf-$(VERSION)
164 | 


--------------------------------------------------------------------------------
/src/iperf/sunos.mk:
--------------------------------------------------------------------------------
1 | OSFLAGS=CXXFLAGS=-lrt
2 | 


--------------------------------------------------------------------------------
/src/iperf/version.mk:
--------------------------------------------------------------------------------
1 | NAME		= opt-iperf
2 | VERSION		= 2.0.5
3 | RELEASE		= 1
4 | PKGROOT		= /opt/iperf
5 | COPYRIGHT	= The Board of Trustees of the University of Illinois
6 | TARNAME		= iperf-$(VERSION).tar.gz
7 | RPM.FILES	= $(PKGROOT)
8 | 


--------------------------------------------------------------------------------
/src/iperf3/Makefile:
--------------------------------------------------------------------------------
  1 | # --------------------------------------------------- -*- Makefile -*- --
  2 | # $Id: Makefile,v 1.21 2012/11/27 00:49:01 phil Exp $
  3 | #
  4 | # @Copyright@
  5 | # 
  6 | # 				Rocks(r)
  7 | # 		         www.rocksclusters.org
  8 | # 		         version 6.2 (SideWinder)
  9 | # 		         version 7.0 (Manzanita)
 10 | # 
 11 | # Copyright (c) 2000 - 2017 The Regents of the University of California.
 12 | # All rights reserved.	
 13 | # 
 14 | # Redistribution and use in source and binary forms, with or without
 15 | # modification, are permitted provided that the following conditions are
 16 | # met:
 17 | # 
 18 | # 1. Redistributions of source code must retain the above copyright
 19 | # notice, this list of conditions and the following disclaimer.
 20 | # 
 21 | # 2. Redistributions in binary form must reproduce the above copyright
 22 | # notice unmodified and in its entirety, this list of conditions and the
 23 | # following disclaimer in the documentation and/or other materials provided 
 24 | # with the distribution.
 25 | # 
 26 | # 3. All advertising and press materials, printed or electronic, mentioning
 27 | # features or use of this software must display the following acknowledgement: 
 28 | # 
 29 | # 	"This product includes software developed by the Rocks(r)
 30 | # 	Cluster Group at the San Diego Supercomputer Center at the
 31 | # 	University of California, San Diego and its contributors."
 32 | # 
 33 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3,
 34 | # neither the name or logo of this software nor the names of its
 35 | # authors may be used to endorse or promote products derived from this
 36 | # software without specific prior written permission.  The name of the
 37 | # software includes the following terms, and any derivatives thereof:
 38 | # "Rocks", "Rocks Clusters", and "Avalanche Installer".  For licensing of 
 39 | # the associated name, interested parties should contact Technology 
 40 | # Transfer & Intellectual Property Services, University of California, 
 41 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910, 
 42 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu
 43 | # 
 44 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
 45 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 46 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 47 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
 48 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 49 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 50 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
 51 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 52 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
 53 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
 54 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 55 | # 
 56 | # @Copyright@
 57 | #
 58 | # $Log: Makefile,v $
 59 | # Revision 1.21  2012/11/27 00:49:01  phil
 60 | # Copyright Storm for Emerald Boa
 61 | #
 62 | # Revision 1.20  2012/05/06 05:49:09  phil
 63 | # Copyright Storm for Mamba
 64 | #
 65 | # Revision 1.19  2011/07/23 02:31:05  phil
 66 | # Viper Copyright
 67 | #
 68 | # Revision 1.18  2010/11/28 00:42:10  anoop
 69 | # Solaris support for iperf-2.0.5
 70 | #
 71 | # Revision 1.17  2010/09/14 17:10:00  bruno
 72 | # don't patch if the patch files don't exist for this version/os
 73 | #
 74 | # Revision 1.16  2010/09/07 23:53:20  bruno
 75 | # star power for gb
 76 | #
 77 | # Revision 1.15  2009/11/25 23:20:51  anoop
 78 | # Mods to support sunos patching for iperf
 79 | #
 80 | # Revision 1.14  2009/05/01 19:07:18  mjk
 81 | # chimi con queso
 82 | #
 83 | # Revision 1.13  2008/10/18 00:56:10  mjk
 84 | # copyright 5.1
 85 | #
 86 | # Revision 1.12  2008/10/15 20:13:04  mjk
 87 | # - more changes to build outside of the tree
 88 | # - removed some old fds-only targets
 89 | #
 90 | # Revision 1.11  2008/05/21 17:46:55  anoop
 91 | # Merginig code from mercurial.
 92 | # This change makes the HPC roll more solaris friendly
 93 | #
 94 | # Revision 1.10  2008/03/06 23:41:53  mjk
 95 | # copyright storm on
 96 | #
 97 | # Revision 1.9  2008/02/28 17:32:55  bruno
 98 | # nuked the spec file for iperf
 99 | #
100 | # Revision 1.8  2007/06/23 04:03:39  mjk
101 | # mars hill copyright
102 | #
103 | # Revision 1.7  2006/09/11 22:48:52  mjk
104 | # monkey face copyright
105 | #
106 | # Revision 1.6  2006/08/10 00:10:57  mjk
107 | # 4.2 copyright
108 | #
109 | # Revision 1.5  2005/10/12 18:09:46  mjk
110 | # final copyright for 4.1
111 | #
112 | # Revision 1.4  2005/09/16 01:03:24  mjk
113 | # updated copyright
114 | #
115 | # Revision 1.3  2005/05/24 21:22:49  mjk
116 | # update copyright, release is not any closer
117 | #
118 | # Revision 1.2  2005/03/14 21:31:37  fds
119 | # Fixed subtle name collision during build process.
120 | #
121 | # Revision 1.1  2005/02/17 01:32:02  bruno
122 | # moved iperf source into the hpc roll
123 | #
124 | # Revision 1.3  2003/05/29 02:37:13  bruno
125 | # added iperf 1.7
126 | #
127 | # Revision 1.2  2002/10/07 04:34:46  mjk
128 | # builds under new structure
129 | #
130 | #
131 | 
132 | REDHAT.ROOT     = $(CURDIR)/../../
133 | 
134 | -include $(ROCKSROOT)/etc/Rules.mk
135 | include Rules.mk
136 | 
137 | prep:
138 | 	gunzip -c iperf-$(VERSION).tar.gz | $(TAR) -xf -
139 | 	if [ -d patch-files/iperf-$(VERSION)/$(OS) ] ; then		\
140 | 		(							\
141 | 			cd patch-files/iperf-$(VERSION)/$(OS);		\
142 | 			find . -type f | grep -v CVS |			\
143 | 				cpio -pudv ../../../iperf-$(VERSION);	\
144 | 			);						\
145 | 	fi
146 | 
147 | 
148 | build: prep
149 | 	(					\
150 | 		cd iperf-$(VERSION) ;		\
151 | 		./configure --prefix=$(PKGROOT) $(OSFLAGS);\
152 | 		$(MAKE) ;			\
153 | 	)
154 | install::
155 | 	mkdir -p $(ROOT)/$(PKGROOT)
156 | 	(							\
157 | 		cd iperf-$(VERSION) ;				\
158 | 		$(MAKE) prefix=$(ROOT)/$(PKGROOT) install ;	\
159 | 	)
160 | 
161 | 
162 | clean::
163 | 	rm -rf iperf-$(VERSION)
164 | 


--------------------------------------------------------------------------------
/src/iperf3/version.mk:
--------------------------------------------------------------------------------
1 | NAME		= opt-iperf3
2 | VERSION		= 3.3
3 | RELEASE		= 1
4 | PKGROOT		= /opt/iperf3
5 | COPYRIGHT	= The Board of Trustees of the University of Illinois
6 | TARNAME		= iperf-$(VERSION).tar.gz
7 | RPM.FILES	= $(PKGROOT)
8 | 


--------------------------------------------------------------------------------
/src/linux.mk:
--------------------------------------------------------------------------------
1 | SRCDIRS = `find * -prune -type d \
2 | 	! -name CVS \
3 | 	! -name .   \
4 | 	! -name PKGS`
5 | 


--------------------------------------------------------------------------------
/src/mpi-tests/Makefile:
--------------------------------------------------------------------------------
  1 | #
  2 | # $Id: Makefile,v 1.9 2012/11/27 00:49:01 phil Exp $
  3 | #
  4 | # @Copyright@
  5 | # 
  6 | # 				Rocks(r)
  7 | # 		         www.rocksclusters.org
  8 | # 		         version 6.2 (SideWinder)
  9 | # 		         version 7.0 (Manzanita)
 10 | # 
 11 | # Copyright (c) 2000 - 2017 The Regents of the University of California.
 12 | # All rights reserved.	
 13 | # 
 14 | # Redistribution and use in source and binary forms, with or without
 15 | # modification, are permitted provided that the following conditions are
 16 | # met:
 17 | # 
 18 | # 1. Redistributions of source code must retain the above copyright
 19 | # notice, this list of conditions and the following disclaimer.
 20 | # 
 21 | # 2. Redistributions in binary form must reproduce the above copyright
 22 | # notice unmodified and in its entirety, this list of conditions and the
 23 | # following disclaimer in the documentation and/or other materials provided 
 24 | # with the distribution.
 25 | # 
 26 | # 3. All advertising and press materials, printed or electronic, mentioning
 27 | # features or use of this software must display the following acknowledgement: 
 28 | # 
 29 | # 	"This product includes software developed by the Rocks(r)
 30 | # 	Cluster Group at the San Diego Supercomputer Center at the
 31 | # 	University of California, San Diego and its contributors."
 32 | # 
 33 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3,
 34 | # neither the name or logo of this software nor the names of its
 35 | # authors may be used to endorse or promote products derived from this
 36 | # software without specific prior written permission.  The name of the
 37 | # software includes the following terms, and any derivatives thereof:
 38 | # "Rocks", "Rocks Clusters", and "Avalanche Installer".  For licensing of 
 39 | # the associated name, interested parties should contact Technology 
 40 | # Transfer & Intellectual Property Services, University of California, 
 41 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910, 
 42 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu
 43 | # 
 44 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
 45 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 46 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 47 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
 48 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 49 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 50 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
 51 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 52 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
 53 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
 54 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 55 | # 
 56 | # @Copyright@
 57 | #
 58 | # $Log: Makefile,v $
 59 | # Revision 1.9  2012/11/27 00:49:01  phil
 60 | # Copyright Storm for Emerald Boa
 61 | #
 62 | # Revision 1.8  2012/05/06 05:49:09  phil
 63 | # Copyright Storm for Mamba
 64 | #
 65 | # Revision 1.7  2011/07/23 02:31:05  phil
 66 | # Viper Copyright
 67 | #
 68 | # Revision 1.6  2010/09/07 23:53:20  bruno
 69 | # star power for gb
 70 | #
 71 | # Revision 1.5  2009/05/01 19:07:18  mjk
 72 | # chimi con queso
 73 | #
 74 | # Revision 1.4  2008/10/18 00:56:10  mjk
 75 | # copyright 5.1
 76 | #
 77 | # Revision 1.3  2008/10/15 20:13:04  mjk
 78 | # - more changes to build outside of the tree
 79 | # - removed some old fds-only targets
 80 | #
 81 | # Revision 1.2  2008/05/21 17:46:55  anoop
 82 | # Merginig code from mercurial.
 83 | # This change makes the HPC roll more solaris friendly
 84 | #
 85 | # Revision 1.1  2008/04/07 23:01:59  bruno
 86 | # add some simple MPI tests to help the user test out their cluster
 87 | #
 88 | #
 89 | 
 90 | REDHAT.ROOT     = $(CURDIR)/../../
 91 | -include $(ROCKSROOT)/etc/Rules.mk
 92 | include Rules.mk
 93 | 
 94 | 
 95 | build:
 96 | 	( \
 97 | 		source /etc/profile.d/modules.sh;  		\
 98 | 		module load $(MODULE);				\
 99 | 		$(MPICC) -o mpi-verify mpi-verify.c -lm; 	\
100 | 		$(MPICC) -o mpi-ring mpi-ring.c -lm;		\
101 | 		module unload $(MODULE);			\
102 | 	)
103 | 
104 | install::
105 | 	mkdir -p $(ROOT)/$(PKGROOT)/bin
106 | 	cp mpi-verify $(ROOT)/$(PKGROOT)/bin
107 | 	cp mpi-ring $(ROOT)/$(PKGROOT)/bin
108 | 	mkdir -p $(ROOT)/$(PKGROOT)/src
109 | 	cp *.c $(ROOT)/$(PKGROOT)/src
110 | 	cp Makefile.tests $(ROOT)/$(PKGROOT)/src/Makefile
111 | 
112 | 
113 | clean::
114 | 	rm -f $(NAME).spec.in
115 | 	rm -f mpi-ring mpi-verify
116 | 
117 | 


--------------------------------------------------------------------------------
/src/mpi-tests/Makefile.tests:
--------------------------------------------------------------------------------
 1 | #
 2 | # $Id: Makefile.tests,v 1.7 2012/11/27 00:49:01 phil Exp $
 3 | #
 4 | # @Copyright@
 5 | # 
 6 | # 				Rocks(r)
 7 | # 		         www.rocksclusters.org
 8 | # 		         version 6.2 (SideWinder)
 9 | # 		         version 7.0 (Manzanita)
10 | # 
11 | # Copyright (c) 2000 - 2017 The Regents of the University of California.
12 | # All rights reserved.	
13 | # 
14 | # Redistribution and use in source and binary forms, with or without
15 | # modification, are permitted provided that the following conditions are
16 | # met:
17 | # 
18 | # 1. Redistributions of source code must retain the above copyright
19 | # notice, this list of conditions and the following disclaimer.
20 | # 
21 | # 2. Redistributions in binary form must reproduce the above copyright
22 | # notice unmodified and in its entirety, this list of conditions and the
23 | # following disclaimer in the documentation and/or other materials provided 
24 | # with the distribution.
25 | # 
26 | # 3. All advertising and press materials, printed or electronic, mentioning
27 | # features or use of this software must display the following acknowledgement: 
28 | # 
29 | # 	"This product includes software developed by the Rocks(r)
30 | # 	Cluster Group at the San Diego Supercomputer Center at the
31 | # 	University of California, San Diego and its contributors."
32 | # 
33 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3,
34 | # neither the name or logo of this software nor the names of its
35 | # authors may be used to endorse or promote products derived from this
36 | # software without specific prior written permission.  The name of the
37 | # software includes the following terms, and any derivatives thereof:
38 | # "Rocks", "Rocks Clusters", and "Avalanche Installer".  For licensing of 
39 | # the associated name, interested parties should contact Technology 
40 | # Transfer & Intellectual Property Services, University of California, 
41 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910, 
42 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu
43 | # 
44 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
45 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
46 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
47 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
48 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
49 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
50 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
51 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
52 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
53 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
54 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
55 | # 
56 | # @Copyright@
57 | #
58 | # $Log: Makefile.tests,v $
59 | # Revision 1.7  2012/11/27 00:49:01  phil
60 | # Copyright Storm for Emerald Boa
61 | #
62 | # Revision 1.6  2012/05/06 05:49:09  phil
63 | # Copyright Storm for Mamba
64 | #
65 | # Revision 1.5  2011/07/23 02:31:05  phil
66 | # Viper Copyright
67 | #
68 | # Revision 1.4  2010/09/07 23:53:20  bruno
69 | # star power for gb
70 | #
71 | # Revision 1.3  2009/05/01 19:07:18  mjk
72 | # chimi con queso
73 | #
74 | # Revision 1.2  2008/10/18 00:56:10  mjk
75 | # copyright 5.1
76 | #
77 | # Revision 1.1  2008/04/07 23:01:59  bruno
78 | # add some simple MPI tests to help the user test out their cluster
79 | #
80 | #
81 | 
82 | build:
83 | 	mpicc -o mpi-verify mpi-verify.c -lm
84 | 	mpicc -o mpi-ring mpi-ring.c -lm
85 | 
86 | 


--------------------------------------------------------------------------------
/src/mpi-tests/mpi-ring.c:
--------------------------------------------------------------------------------
  1 | /*
  2 | # $Id: mpi-ring.c,v 1.9 2012/11/27 00:49:01 phil Exp $
  3 | #
  4 | # @Copyright@
  5 | # 
  6 | # 				Rocks(r)
  7 | # 		         www.rocksclusters.org
  8 | # 		         version 6.2 (SideWinder)
  9 | # 		         version 7.0 (Manzanita)
 10 | # 
 11 | # Copyright (c) 2000 - 2017 The Regents of the University of California.
 12 | # All rights reserved.	
 13 | # 
 14 | # Redistribution and use in source and binary forms, with or without
 15 | # modification, are permitted provided that the following conditions are
 16 | # met:
 17 | # 
 18 | # 1. Redistributions of source code must retain the above copyright
 19 | # notice, this list of conditions and the following disclaimer.
 20 | # 
 21 | # 2. Redistributions in binary form must reproduce the above copyright
 22 | # notice unmodified and in its entirety, this list of conditions and the
 23 | # following disclaimer in the documentation and/or other materials provided 
 24 | # with the distribution.
 25 | # 
 26 | # 3. All advertising and press materials, printed or electronic, mentioning
 27 | # features or use of this software must display the following acknowledgement: 
 28 | # 
 29 | # 	"This product includes software developed by the Rocks(r)
 30 | # 	Cluster Group at the San Diego Supercomputer Center at the
 31 | # 	University of California, San Diego and its contributors."
 32 | # 
 33 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3,
 34 | # neither the name or logo of this software nor the names of its
 35 | # authors may be used to endorse or promote products derived from this
 36 | # software without specific prior written permission.  The name of the
 37 | # software includes the following terms, and any derivatives thereof:
 38 | # "Rocks", "Rocks Clusters", and "Avalanche Installer".  For licensing of 
 39 | # the associated name, interested parties should contact Technology 
 40 | # Transfer & Intellectual Property Services, University of California, 
 41 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910, 
 42 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu
 43 | # 
 44 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
 45 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 46 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 47 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
 48 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 49 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 50 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
 51 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 52 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
 53 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
 54 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 55 | # 
 56 | # @Copyright@
 57 | #
 58 | # $Log: mpi-ring.c,v $
 59 | # Revision 1.9  2012/11/27 00:49:01  phil
 60 | # Copyright Storm for Emerald Boa
 61 | #
 62 | # Revision 1.8  2012/05/06 05:49:10  phil
 63 | # Copyright Storm for Mamba
 64 | #
 65 | # Revision 1.7  2011/07/23 02:31:05  phil
 66 | # Viper Copyright
 67 | #
 68 | # Revision 1.6  2010/09/07 23:53:20  bruno
 69 | # star power for gb
 70 | #
 71 | # Revision 1.5  2009/05/01 19:07:18  mjk
 72 | # chimi con queso
 73 | #
 74 | # Revision 1.4  2009/02/06 00:30:54  anoop
 75 | # Oh god!! I'm a dumbass. Even the presence of
 76 | # comment chars inside a comment can terminate
 77 | # the comment. Aaaarrrgh!!!
 78 | #
 79 | # Revision 1.3  2009/02/06 00:28:05  anoop
 80 | #
 81 | # Revision 1.2  2009/01/26 22:26:50  mjk
 82 | # added missing copyright
 83 | #
 84 | */
 85 | 
 86 | #include 
 87 | #include 
 88 | #include "mpi.h"
 89 | 
 90 | 
 91 | int
 92 | main(int argc, char *argv[])
 93 | {
 94 | 	MPI_Request	sendreq;
 95 | 	MPI_Request	recvreq;
 96 | 	MPI_Status	status;
 97 | 	int		numprocs;
 98 | 	int		myid;
 99 | 	int		namelen;
100 | 	int		left, right;
101 | 	int		bufsize;
102 | 	char		processor_name[MPI_MAX_PROCESSOR_NAME];
103 | 	char		*sendbuf, *recvbuf;
104 | 
105 | 	MPI_Init(&argc, &argv);
106 | 	MPI_Comm_size(MPI_COMM_WORLD, &numprocs);
107 | 	MPI_Comm_rank(MPI_COMM_WORLD, &myid);
108 | 	MPI_Get_processor_name(processor_name, &namelen);
109 | 
110 | 	fprintf(stderr,"Process %d on %s\n", myid, processor_name);
111 | 
112 | 	right = (myid + 1) % numprocs;
113 | 	if (myid == 0) {
114 | 		left = numprocs - 1;
115 | 	} else {
116 | 		left = (myid - 1) % numprocs;
117 | 	}
118 | 
119 | 	if (argc == 2) {
120 | 		bufsize = atoi(argv[1]);
121 | 	} else {
122 | 		bufsize = 1024 * 1024;
123 | 	}
124 | 
125 | 	if ((sendbuf = (char *)malloc(bufsize)) == NULL) {
126 | 		fprintf(stderr,"Process %d on %s:malloc failed\n",
127 | 			myid, processor_name);
128 | 
129 | 		MPI_Finalize();
130 | 		exit(-1);
131 | 	}
132 | 
133 | 	if ((recvbuf = (char *)malloc(bufsize)) == NULL) {
134 | 		fprintf(stderr,"Process %d on %s:malloc failed\n",
135 | 			myid, processor_name);
136 | 
137 | 		MPI_Finalize();
138 | 		exit(-1);
139 | 	}
140 | 
141 | 	if (MPI_Isend(sendbuf, bufsize, MPI_CHAR, right, 1,
142 | 			MPI_COMM_WORLD, &sendreq) != MPI_SUCCESS) {
143 | 
144 | 		fprintf(stderr,"Process %d on %s:MPI_Isend failed\n",
145 | 			myid, processor_name);
146 | 
147 | 		MPI_Finalize();
148 | 		exit(-1);
149 | 	}
150 | 
151 | 	if (MPI_Irecv(recvbuf, bufsize, MPI_CHAR, left, 1,
152 | 			MPI_COMM_WORLD, &recvreq) != MPI_SUCCESS) {
153 | 
154 | 		fprintf(stderr,"Process %d on %s:MPI_Irecv failed\n",
155 | 			myid, processor_name);
156 | 
157 | 		MPI_Finalize();
158 | 		exit(-1);
159 | 	}
160 | 
161 | 	if (MPI_Wait(&sendreq, &status) != MPI_SUCCESS) {
162 | 		fprintf(stderr,"Process %d on %s:MPI_Wait failed:sendreq\n",
163 | 			myid, processor_name);
164 | 
165 | 		MPI_Finalize();
166 | 		exit(-1);
167 | 	}
168 | 
169 | 	fprintf(stderr,
170 | 		"Process %d on %s:successfully sent (%d) bytes to id (%d)\n",
171 | 			myid, processor_name, bufsize, right);
172 | 
173 | 	if (MPI_Wait(&recvreq, &status) != MPI_SUCCESS) {
174 | 		fprintf(stderr,"Process %d on %s:MPI_Wait failed:sendreq\n",
175 | 			myid, processor_name);
176 | 
177 | 		MPI_Finalize();
178 | 		exit(-1);
179 | 	}
180 | 
181 | 	fprintf(stderr,
182 | 		"Process %d on %s:successfully received (%d) bytes from id (%d)\n",
183 | 			myid, processor_name, bufsize, left);
184 | 
185 | 	MPI_Barrier(MPI_COMM_WORLD);
186 | 
187 | 	MPI_Finalize();
188 | }
189 | 


--------------------------------------------------------------------------------
/src/mpi-tests/mpi-verify.c:
--------------------------------------------------------------------------------
  1 | /*
  2 | # $Id: mpi-verify.c,v 1.9 2012/11/27 00:49:01 phil Exp $
  3 | #
  4 | # @Copyright@
  5 | # 
  6 | # 				Rocks(r)
  7 | # 		         www.rocksclusters.org
  8 | # 		         version 6.2 (SideWinder)
  9 | # 		         version 7.0 (Manzanita)
 10 | # 
 11 | # Copyright (c) 2000 - 2017 The Regents of the University of California.
 12 | # All rights reserved.	
 13 | # 
 14 | # Redistribution and use in source and binary forms, with or without
 15 | # modification, are permitted provided that the following conditions are
 16 | # met:
 17 | # 
 18 | # 1. Redistributions of source code must retain the above copyright
 19 | # notice, this list of conditions and the following disclaimer.
 20 | # 
 21 | # 2. Redistributions in binary form must reproduce the above copyright
 22 | # notice unmodified and in its entirety, this list of conditions and the
 23 | # following disclaimer in the documentation and/or other materials provided 
 24 | # with the distribution.
 25 | # 
 26 | # 3. All advertising and press materials, printed or electronic, mentioning
 27 | # features or use of this software must display the following acknowledgement: 
 28 | # 
 29 | # 	"This product includes software developed by the Rocks(r)
 30 | # 	Cluster Group at the San Diego Supercomputer Center at the
 31 | # 	University of California, San Diego and its contributors."
 32 | # 
 33 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3,
 34 | # neither the name or logo of this software nor the names of its
 35 | # authors may be used to endorse or promote products derived from this
 36 | # software without specific prior written permission.  The name of the
 37 | # software includes the following terms, and any derivatives thereof:
 38 | # "Rocks", "Rocks Clusters", and "Avalanche Installer".  For licensing of 
 39 | # the associated name, interested parties should contact Technology 
 40 | # Transfer & Intellectual Property Services, University of California, 
 41 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910, 
 42 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu
 43 | # 
 44 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
 45 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 46 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 47 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
 48 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 49 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 50 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
 51 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 52 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
 53 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
 54 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 55 | # 
 56 | # @Copyright@
 57 | #
 58 | # $Log: mpi-verify.c,v $
 59 | # Revision 1.9  2012/11/27 00:49:01  phil
 60 | # Copyright Storm for Emerald Boa
 61 | #
 62 | # Revision 1.8  2012/05/06 05:49:10  phil
 63 | # Copyright Storm for Mamba
 64 | #
 65 | # Revision 1.7  2011/07/23 02:31:05  phil
 66 | # Viper Copyright
 67 | #
 68 | # Revision 1.6  2010/09/07 23:53:20  bruno
 69 | # star power for gb
 70 | #
 71 | # Revision 1.5  2009/05/01 19:07:18  mjk
 72 | # chimi con queso
 73 | #
 74 | # Revision 1.4  2009/02/06 00:30:54  anoop
 75 | # Oh god!! I'm a dumbass. Even the presence of
 76 | # comment chars inside a comment can terminate
 77 | # the comment. Aaaarrrgh!!!
 78 | #
 79 | # Revision 1.3  2009/02/06 00:28:05  anoop
 80 | #
 81 | # Revision 1.2  2009/01/26 22:26:50  mjk
 82 | # added missing copyright
 83 | #
 84 | */
 85 | 
 86 | #include 
 87 | #include "mpi.h"
 88 | 
 89 | int
 90 | main(int argc, char *argv[])
 91 | {
 92 | 	int	numprocs;
 93 | 	int	myid;
 94 | 	int	namelen;
 95 | 	char	processor_name[MPI_MAX_PROCESSOR_NAME];
 96 | 
 97 | 	MPI_Init(&argc,&argv);
 98 | 	MPI_Comm_size(MPI_COMM_WORLD,&numprocs);
 99 | 	MPI_Comm_rank(MPI_COMM_WORLD,&myid);
100 | 	MPI_Get_processor_name(processor_name,&namelen);
101 | 
102 | 	fprintf(stderr,"Process %d on %s\n", myid, processor_name);
103 | 
104 | 	MPI_Barrier(MPI_COMM_WORLD);
105 | 
106 | 	MPI_Finalize();
107 | }
108 | 


--------------------------------------------------------------------------------
/src/mpi-tests/sunos.mk:
--------------------------------------------------------------------------------
1 | MPICC = $(MPIROOT)/bin/mpicc
2 | 


--------------------------------------------------------------------------------
/src/mpi-tests/version.mk:
--------------------------------------------------------------------------------
1 | NAME	= mpi-tests
2 | PKGROOT	= /opt/mpi-tests
3 | RELEASE	= 1
4 | MODULE	= rocks-openmpi
5 | MPICC	= mpicc 
6 | RPM.FILES = $(PKGROOT)
7 | 


--------------------------------------------------------------------------------
/src/mpich3/Makefile:
--------------------------------------------------------------------------------
  1 | #
  2 | # $Id: Makefile,v 1.11 2012/11/27 00:49:01 phil Exp $
  3 | #
  4 | # @Copyright@
  5 | # 
  6 | # 				Rocks(r)
  7 | # 		         www.rocksclusters.org
  8 | # 		         version 6.2 (SideWinder)
  9 | # 		         version 7.0 (Manzanita)
 10 | # 
 11 | # Copyright (c) 2000 - 2017 The Regents of the University of California.
 12 | # All rights reserved.	
 13 | # 
 14 | # Redistribution and use in source and binary forms, with or without
 15 | # modification, are permitted provided that the following conditions are
 16 | # met:
 17 | # 
 18 | # 1. Redistributions of source code must retain the above copyright
 19 | # notice, this list of conditions and the following disclaimer.
 20 | # 
 21 | # 2. Redistributions in binary form must reproduce the above copyright
 22 | # notice unmodified and in its entirety, this list of conditions and the
 23 | # following disclaimer in the documentation and/or other materials provided 
 24 | # with the distribution.
 25 | # 
 26 | # 3. All advertising and press materials, printed or electronic, mentioning
 27 | # features or use of this software must display the following acknowledgement: 
 28 | # 
 29 | # 	"This product includes software developed by the Rocks(r)
 30 | # 	Cluster Group at the San Diego Supercomputer Center at the
 31 | # 	University of California, San Diego and its contributors."
 32 | # 
 33 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3,
 34 | # neither the name or logo of this software nor the names of its
 35 | # authors may be used to endorse or promote products derived from this
 36 | # software without specific prior written permission.  The name of the
 37 | # software includes the following terms, and any derivatives thereof:
 38 | # "Rocks", "Rocks Clusters", and "Avalanche Installer".  For licensing of 
 39 | # the associated name, interested parties should contact Technology 
 40 | # Transfer & Intellectual Property Services, University of California, 
 41 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910, 
 42 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu
 43 | # 
 44 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
 45 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 46 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 47 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
 48 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 49 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 50 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
 51 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 52 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
 53 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
 54 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 55 | # 
 56 | # @Copyright@
 57 | #
 58 | # $Log: Makefile,v $
 59 | # Revision 1.11  2012/11/27 00:49:01  phil
 60 | # Copyright Storm for Emerald Boa
 61 | #
 62 | # Revision 1.10  2012/05/06 05:49:10  phil
 63 | # Copyright Storm for Mamba
 64 | #
 65 | # Revision 1.9  2012/04/27 05:00:59  phil
 66 | # Update version of mpich2
 67 | #
 68 | # Revision 1.8  2011/07/23 02:31:05  phil
 69 | # Viper Copyright
 70 | #
 71 | # Revision 1.7  2011/07/14 05:00:14  anoop
 72 | # Upgrade makefile to use new options for compiling
 73 | #
 74 | # Revision 1.6  2010/09/07 23:53:20  bruno
 75 | # star power for gb
 76 | #
 77 | # Revision 1.5  2009/05/01 19:07:18  mjk
 78 | # chimi con queso
 79 | #
 80 | # Revision 1.4  2008/10/18 00:56:10  mjk
 81 | # copyright 5.1
 82 | #
 83 | # Revision 1.3  2008/10/15 20:13:04  mjk
 84 | # - more changes to build outside of the tree
 85 | # - removed some old fds-only targets
 86 | #
 87 | # Revision 1.2  2008/03/06 23:41:54  mjk
 88 | # copyright storm on
 89 | #
 90 | # Revision 1.1  2008/03/03 18:49:13  bruno
 91 | # added mpich2
 92 | #
 93 | #
 94 | 
 95 | REDHAT.ROOT     = $(CURDIR)/../../
 96 | -include $(ROCKSROOT)/etc/Rules.mk
 97 | include Rules.mk
 98 | 
 99 | 
100 | build:
101 | 	tar xzf $(BASEDIR).tar.gz
102 | 	( 							\
103 | 		cd $(BASEDIR) ;				\
104 | 		FC=gfortran ./configure --prefix=$(PKGROOT)	\
105 | 			--with-device="ch3:nemesis" 		\
106 | 			--enable-fast --enable-fortran 		\
107 | 			--enable-shared				\
108 | 			--enable-sharedlibs=gcc 		\
109 | 			--enable-threads=runtime 		\
110 | 			--enable-romio		 		\
111 | 			--enable-smpcoll  ;			\
112 | 		$(MAKE) ;					\
113 | 	)
114 | 	
115 | install::
116 | 	mkdir -p $(ROOT)/$(PKGROOT)
117 | 	(							\
118 | 		cd $(BASEDIR) ;				\
119 | 		$(MAKE) prefix=$(ROOT)/$(PKGROOT) install ;	\
120 | 	)
121 | 	find $(ROOT) -type f -exec /bin/sed -i "s%$(ROOT)%%g" {} \;
122 | 
123 | clean::
124 | 	rm -rf $(BASEDIR)
125 | 


--------------------------------------------------------------------------------
/src/mpich3/version.mk:
--------------------------------------------------------------------------------
 1 | NAME		= mpich3-ethernet-gnu
 2 | VERSION		= 3.2
 3 | RELEASE		= 0
 4 | 
 5 | BASEDIR		= mpich-$(VERSION)
 6 | 
 7 | PKGROOT		= /opt/mpich3/gnu
 8 | COPYRIGHT	= University of Chicago
 9 | RPM.FILES	= $(PKGROOT)
10 | 


--------------------------------------------------------------------------------
/src/openmpi/Makefile:
--------------------------------------------------------------------------------
  1 | #
  2 | # $Id: Makefile,v 1.18 2012/11/27 00:49:01 phil Exp $
  3 | #
  4 | # @Copyright@
  5 | # 
  6 | # 				Rocks(r)
  7 | # 		         www.rocksclusters.org
  8 | # 		         version 6.2 (SideWinder)
  9 | # 		         version 7.0 (Manzanita)
 10 | # 
 11 | # Copyright (c) 2000 - 2017 The Regents of the University of California.
 12 | # All rights reserved.	
 13 | # 
 14 | # Redistribution and use in source and binary forms, with or without
 15 | # modification, are permitted provided that the following conditions are
 16 | # met:
 17 | # 
 18 | # 1. Redistributions of source code must retain the above copyright
 19 | # notice, this list of conditions and the following disclaimer.
 20 | # 
 21 | # 2. Redistributions in binary form must reproduce the above copyright
 22 | # notice unmodified and in its entirety, this list of conditions and the
 23 | # following disclaimer in the documentation and/or other materials provided 
 24 | # with the distribution.
 25 | # 
 26 | # 3. All advertising and press materials, printed or electronic, mentioning
 27 | # features or use of this software must display the following acknowledgement: 
 28 | # 
 29 | # 	"This product includes software developed by the Rocks(r)
 30 | # 	Cluster Group at the San Diego Supercomputer Center at the
 31 | # 	University of California, San Diego and its contributors."
 32 | # 
 33 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3,
 34 | # neither the name or logo of this software nor the names of its
 35 | # authors may be used to endorse or promote products derived from this
 36 | # software without specific prior written permission.  The name of the
 37 | # software includes the following terms, and any derivatives thereof:
 38 | # "Rocks", "Rocks Clusters", and "Avalanche Installer".  For licensing of 
 39 | # the associated name, interested parties should contact Technology 
 40 | # Transfer & Intellectual Property Services, University of California, 
 41 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910, 
 42 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu
 43 | # 
 44 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
 45 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 46 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 47 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
 48 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 49 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 50 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
 51 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 52 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
 53 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
 54 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 55 | # 
 56 | # @Copyright@
 57 | #
 58 | #
 59 | # $Log: Makefile,v $
 60 | # Revision 1.18  2012/11/27 00:49:01  phil
 61 | # Copyright Storm for Emerald Boa
 62 | #
 63 | # Revision 1.17  2012/09/30 21:58:56  phil
 64 | # Update openmpi to 1.6.2.
 65 | # Create Modules for ethernet and IB
 66 | # Add IB support - packages, openmpi configuration, udev rules
 67 | #
 68 | # Revision 1.16  2012/05/06 05:49:10  phil
 69 | # Copyright Storm for Mamba
 70 | #
 71 | # Revision 1.15  2012/04/06 19:49:49  phil
 72 | # environment modules file
 73 | #
 74 | # Revision 1.14  2011/10/07 18:52:00  anoop
 75 | # Bug fix
 76 | #
 77 | # Revision 1.13  2011/07/23 02:31:05  phil
 78 | # Viper Copyright
 79 | #
 80 | # Revision 1.12  2010/09/07 23:53:20  bruno
 81 | # star power for gb
 82 | #
 83 | # Revision 1.11  2010/03/08 04:36:50  anoop
 84 | # Upgraded OpenMPI to 1.4.1
 85 | # Added mpi-selector capability
 86 | #
 87 | # Revision 1.10  2009/05/01 19:07:18  mjk
 88 | # chimi con queso
 89 | #
 90 | # Revision 1.9  2008/10/18 00:56:10  mjk
 91 | # copyright 5.1
 92 | #
 93 | # Revision 1.8  2008/10/15 20:13:04  mjk
 94 | # - more changes to build outside of the tree
 95 | # - removed some old fds-only targets
 96 | #
 97 | # Revision 1.7  2008/04/07 23:03:02  bruno
 98 | # add openmpi back into HPC roll. the bio roll will use thie mpi environment
 99 | # to for a couple of its apps.
100 | #
101 | #
102 | 
103 | REDHAT.ROOT = $(CURDIR)/../../
104 | 
105 | -include $(ROCKSROOT)/etc/Rules.mk
106 | include Rules.mk
107 | 
108 | %: %.in
109 | 	$(SED) $(SEDSCRIPT) $^ > $@
110 | 
111 | build:
112 | 	$(CAT-COMPRESS) openmpi-$(VERSION).$(TARBALL-EXTENSION) |  $(TAR) -xf -
113 | 	(					\
114 | 		cd openmpi-$(VERSION) ;		\
115 | 		./configure --prefix=$(PKGROOT) \
116 | 			--with-verbs \
117 | 			--with-sge \
118 | 			--with-slurm \
119 | 			--enable-static ;	\
120 | 		$(MAKE) all ;			\
121 | 	)
122 | 
123 | install:: 
124 | 	(					\
125 | 		cd openmpi-$(VERSION) ;		\
126 | 		$(MAKE) prefix=$(ROOT)/$(PKGROOT) install ;	\
127 | 	)
128 | 	( find mpi-selector -type f | grep -v CVS | \
129 | 		cpio -pudv $(ROOT)/$(PKGROOT)/share/ )
130 | 
131 | clean::
132 | 	rm -rf openmpi-$(VERSION)
133 | 	rm -rf $(NAME).spec.in
134 | 
135 | 
136 | 


--------------------------------------------------------------------------------
/src/openmpi/mpi-selector/rocks-openmpi-1.4.3.csh:
--------------------------------------------------------------------------------
 1 | #!/bin/csh
 2 | #
 3 | # Adapted from the CentOS OpenMPI rpm for use with mpi-selector
 4 | 
 5 | if ("" == "`echo $path | grep /opt/openmpi/bin`") then
 6 | 	set path=(/opt/openmpi/bin $path)
 7 | endif
 8 | 
 9 | if ("1" == "$?LD_LIBRARY_PATH") then
10 | 	if ("$LD_LIBRARY_PATH" !~ */opt/openmpi/lib*) then
11 | 		setenv LD_LIBRARY_PATH /opt/openmpi/lib:$LD_LIBRARY_PATH
12 | 	endif
13 | else
14 | 	setenv LD_LIBRARY_PATH /opt/openmpi/lib
15 | endif
16 | 


--------------------------------------------------------------------------------
/src/openmpi/mpi-selector/rocks-openmpi-1.4.3.sh:
--------------------------------------------------------------------------------
 1 | #!/bin/bash
 2 | #
 3 | # Adapted from the CentOS OpenMPI rpm for use with mpi-selector
 4 | 
 5 | if [ -z "`echo $PATH | grep /opt/openmpi/bin`" ]; then
 6 |     export PATH=/opt/openmpi/bin:$PATH
 7 | fi
 8 | 
 9 | if [ -z "`echo $LD_LIBRARY_PATH | grep /opt/openmpi/lib`" ]; then
10 |     if [ -n "$LD_LIBRARY_PATH" ]; then
11 |     	export LD_LIBRARY_PATH=/opt/openmpi/lib:$LD_LIBRARY_PATH
12 |     else
13 |     	export LD_LIBRARY_PATH=/opt/openmpi/lib
14 |     fi
15 | fi
16 | 


--------------------------------------------------------------------------------
/src/openmpi/version.mk:
--------------------------------------------------------------------------------
 1 | NAME		= rocks-openmpi
 2 | VERSION		= 2.1.1
 3 | RELEASE		= 2
 4 | PKGROOT		= /opt/openmpi
 5 | 
 6 | TARBALL-EXTENSION = tar.gz
 7 | #### if a bzip2 file
 8 | ## TARBALL-EXTENSION = tar.bz2
 9 | 
10 | ifneq (,$(findstring bz2, $(TARBALL-EXTENSION)))
11 | CAT-COMPRESS = bzcat
12 | else
13 | CAT-COMPRESS = zcat
14 | endif
15 | RPM.FILES = $(PKGROOT) 
16 | 


--------------------------------------------------------------------------------
/src/pvm/Makefile:
--------------------------------------------------------------------------------
  1 | # --------------------------------------------------- -*- Makefile -*- --
  2 | # $Id: Makefile,v 1.12 2012/11/27 00:49:01 phil Exp $
  3 | #
  4 | # @Copyright@
  5 | # 
  6 | # 				Rocks(r)
  7 | # 		         www.rocksclusters.org
  8 | # 		         version 6.2 (SideWinder)
  9 | # 		         version 7.0 (Manzanita)
 10 | # 
 11 | # Copyright (c) 2000 - 2017 The Regents of the University of California.
 12 | # All rights reserved.	
 13 | # 
 14 | # Redistribution and use in source and binary forms, with or without
 15 | # modification, are permitted provided that the following conditions are
 16 | # met:
 17 | # 
 18 | # 1. Redistributions of source code must retain the above copyright
 19 | # notice, this list of conditions and the following disclaimer.
 20 | # 
 21 | # 2. Redistributions in binary form must reproduce the above copyright
 22 | # notice unmodified and in its entirety, this list of conditions and the
 23 | # following disclaimer in the documentation and/or other materials provided 
 24 | # with the distribution.
 25 | # 
 26 | # 3. All advertising and press materials, printed or electronic, mentioning
 27 | # features or use of this software must display the following acknowledgement: 
 28 | # 
 29 | # 	"This product includes software developed by the Rocks(r)
 30 | # 	Cluster Group at the San Diego Supercomputer Center at the
 31 | # 	University of California, San Diego and its contributors."
 32 | # 
 33 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3,
 34 | # neither the name or logo of this software nor the names of its
 35 | # authors may be used to endorse or promote products derived from this
 36 | # software without specific prior written permission.  The name of the
 37 | # software includes the following terms, and any derivatives thereof:
 38 | # "Rocks", "Rocks Clusters", and "Avalanche Installer".  For licensing of 
 39 | # the associated name, interested parties should contact Technology 
 40 | # Transfer & Intellectual Property Services, University of California, 
 41 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910, 
 42 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu
 43 | # 
 44 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
 45 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 46 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 47 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
 48 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 49 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 50 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
 51 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 52 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
 53 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
 54 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 55 | # 
 56 | # @Copyright@
 57 | #
 58 | # $Log: Makefile,v $
 59 | # Revision 1.12  2012/11/27 00:49:01  phil
 60 | # Copyright Storm for Emerald Boa
 61 | #
 62 | # Revision 1.11  2012/05/06 05:49:10  phil
 63 | # Copyright Storm for Mamba
 64 | #
 65 | # Revision 1.10  2011/07/23 02:31:05  phil
 66 | # Viper Copyright
 67 | #
 68 | # Revision 1.9  2010/09/07 23:53:21  bruno
 69 | # star power for gb
 70 | #
 71 | # Revision 1.8  2009/05/01 19:07:18  mjk
 72 | # chimi con queso
 73 | #
 74 | # Revision 1.7  2008/10/18 00:56:10  mjk
 75 | # copyright 5.1
 76 | #
 77 | # Revision 1.6  2008/10/15 20:13:04  mjk
 78 | # - more changes to build outside of the tree
 79 | # - removed some old fds-only targets
 80 | #
 81 | # Revision 1.5  2008/03/06 23:41:54  mjk
 82 | # copyright storm on
 83 | #
 84 | # Revision 1.4  2007/06/23 04:03:39  mjk
 85 | # mars hill copyright
 86 | #
 87 | # Revision 1.3  2007/06/07 23:08:25  phil
 88 | # Added some add examples and a small readme
 89 | #
 90 | # Revision 1.2  2007/06/07 22:00:59  phil
 91 | # Use the CentOS build of PVM
 92 | #
 93 | 
 94 | PROFILES = pvm.sh pvm.csh
 95 | ROCKS-EXAMPLES = pvm3-examples.tar Readme.rocks
 96 | 
 97 | PKGROOT	= /usr/share/pvm3
 98 | 
 99 | REDHAT.ROOT = $(PWD)/../../
100 | -include $(ROCKSROOT)/etc/Rules.mk
101 | include Rules.mk
102 | -include $(ROCKSROOT)/etc/python.mk
103 | include python.mk
104 | 
105 | build:
106 | 
107 | install::
108 | 	mkdir -p $(ROOT)/etc/profile.d
109 | 	mkdir -p $(ROOT)/$(PKGROOT)
110 | 	install -m755 $(PROFILES) $(ROOT)/etc/profile.d
111 | 	install -m644 $(ROCKS-EXAMPLES) $(ROOT)/$(PKGROOT)
112 | 
113 | clean::
114 | 	rm -rf $(NAME)-$(VERSION)
115 | 


--------------------------------------------------------------------------------
/src/pvm/Readme.rocks:
--------------------------------------------------------------------------------
 1 | 
 2 |          PVM version 3.4:  Parallel Virtual Machine System
 3 |                University of Tennessee, Knoxville TN.
 4 |            Oak Ridge National Laboratory, Oak Ridge TN.
 5 |                    Emory University, Atlanta GA.
 6 |       Authors:  J. J. Dongarra, G. E. Fagg, G. A. Geist,
 7 |                  J. A. Kohl, R. J. Manchek, P. Mucci,
 8 |          P. M. Papadopoulos, S. L. Scott, and V. S. Sunderam
 9 |                    (C) 1997 All Rights Reserved
10 | 
11 |                               NOTICE
12 | 
13 |  Permission to use, copy, modify, and distribute this software and
14 |  its documentation for any purpose and without fee is hereby granted
15 |  provided that the above copyright notice appear in all copies and
16 |  that both the copyright notice and this permission notice appear in
17 |  supporting documentation.
18 | 
19 |  Neither the Institutions (Emory University, Oak Ridge National
20 |  Laboratory, and University of Tennessee) nor the Authors make any
21 |  representations about the suitability of this software for any
22 |  purpose.  This software is provided ``as is'' without express or
23 |  implied warranty.
24 | 
25 |  PVM version 3 was funded in part by the U.S. Department of Energy,
26 |  the National Science Foundation and the State of Tennessee.
27 | 
28 | ________________________________________________________________________
29 | 
30 | PVM for Rocks Users
31 | 
32 | FAQ
33 | 1. What version of PVM is used
34 | 2. What has Rocks added or changed from PVM
35 | 3. How do I compile examples;
36 | 
37 | 
38 | 1. What version of PVM is used?
39 | As of version 4.3 of Rocks:  PVM 3.4.4 as supplied and compiled by RedHat/CentOS. Prior to version 4.3 of Rocks, a patched version of PVM was used that was for Beowulf clusters (called beolin).  The default version is the standard workstation version of PVM. It will work within a single cluster and among nodes that have direct connectivity. It does not support using PVM to glue together two (or more) clusters with private-only interfaces.
40 | 
41 | 2. What has Rocks added or changed from PVM?
42 | The basic is RPM is as-supplied by RedHat/CentOS.  We have added profiles for Bourne shell and C-shell users. This Readme is added. We have tarred up the examples directory with a slightly modified Makefile.aimk. Files added are:
43 |              /etc/profile.d/pvm.sh
44 |              /etc/profile.d/pvm.csh
45 |              /usr/share/pvm3/Readme.rocks
46 |              /usr/share/pvm3/pvm3-examples.tar
47 | 
48 | 3. How do I compile examples?
49 | The simplest thing to do is for a user in their home directory to do the following
50 |     % cd $HOME
51 |     % tar xf /usr/share/pvm3/pvm3-examples.tar
52 |     % cd pvm3/examples
53 |     % aimk timing timing_slave
54 | 
55 | The last step will create PVM executables in $HOME/pvm3/bin/$PVM_ARCH. You can then spawn and test as per the usual pvm proedures.  A quick start would be as follows
56 | 
57 | % pvm
58 | pvm> spawn -> timing 
59 | pvm> halt
60 | %
61 | 
62 | 
63 |    
64 | 


--------------------------------------------------------------------------------
/src/pvm/pvm.csh:
--------------------------------------------------------------------------------
1 | ## Set up PVM ROOT, ARCH and add to PATH
2 | setenv PVM_ROOT /usr/share/pvm3
3 | setenv PVM_ARCH `$PVM_ROOT/lib/pvmgetarch`
4 | set path=($path $PVM_ROOT/bin/$PVM_ARCH)
5 | 


--------------------------------------------------------------------------------
/src/pvm/pvm.sh:
--------------------------------------------------------------------------------
1 | ## Set up PVM ROOT, ARCH and add to PATH
2 | export PVM_ROOT=/usr/share/pvm3
3 | export PVM_ARCH=`$PVM_ROOT/lib/pvmgetarch`
4 | export PATH=$PATH:$PVM_ROOT/bin/$PVM_ARCH
5 | 


--------------------------------------------------------------------------------
/src/pvm/version.mk:
--------------------------------------------------------------------------------
1 | NAME	= rocks-pvm
2 | VERSION = 3.4.4
3 | RELEASE	= 1
4 | 


--------------------------------------------------------------------------------
/src/rocks-hpc-profile/Makefile:
--------------------------------------------------------------------------------
 1 | # --------------------------------------------------- -*- Makefile -*- --
 2 | # $Id: Makefile,v 1.3 2012/11/27 00:49:01 phil Exp $
 3 | #
 4 | # @Copyright@
 5 | # 
 6 | # 				Rocks(r)
 7 | # 		         www.rocksclusters.org
 8 | # 		         version 6.2 (SideWinder)
 9 | # 		         version 7.0 (Manzanita)
10 | # 
11 | # Copyright (c) 2000 - 2017 The Regents of the University of California.
12 | # All rights reserved.	
13 | # 
14 | # Redistribution and use in source and binary forms, with or without
15 | # modification, are permitted provided that the following conditions are
16 | # met:
17 | # 
18 | # 1. Redistributions of source code must retain the above copyright
19 | # notice, this list of conditions and the following disclaimer.
20 | # 
21 | # 2. Redistributions in binary form must reproduce the above copyright
22 | # notice unmodified and in its entirety, this list of conditions and the
23 | # following disclaimer in the documentation and/or other materials provided 
24 | # with the distribution.
25 | # 
26 | # 3. All advertising and press materials, printed or electronic, mentioning
27 | # features or use of this software must display the following acknowledgement: 
28 | # 
29 | # 	"This product includes software developed by the Rocks(r)
30 | # 	Cluster Group at the San Diego Supercomputer Center at the
31 | # 	University of California, San Diego and its contributors."
32 | # 
33 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3,
34 | # neither the name or logo of this software nor the names of its
35 | # authors may be used to endorse or promote products derived from this
36 | # software without specific prior written permission.  The name of the
37 | # software includes the following terms, and any derivatives thereof:
38 | # "Rocks", "Rocks Clusters", and "Avalanche Installer".  For licensing of 
39 | # the associated name, interested parties should contact Technology 
40 | # Transfer & Intellectual Property Services, University of California, 
41 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910, 
42 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu
43 | # 
44 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
45 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
46 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
47 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
48 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
49 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
50 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
51 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
52 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
53 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
54 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
55 | # 
56 | # @Copyright@
57 | #
58 | # $Log: Makefile,v $
59 | # Revision 1.3  2012/11/27 00:49:01  phil
60 | # Copyright Storm for Emerald Boa
61 | #
62 | # Revision 1.2  2012/05/06 05:49:10  phil
63 | # Copyright Storm for Mamba
64 | #
65 | # Revision 1.1  2012/05/06 01:11:06  phil
66 | # Add default module definition for rocks-openmpi.
67 | #
68 | # Revision 1.1  2012/05/02 21:06:43  phil
69 | # Move bio.sh bio.csh from node file to RPM
70 | #
71 | #
72 | 
73 | PROFILES = rocks-hpc.sh rocks-hpc.csh
74 | 
75 | PKGROOT		= /opt/rocks
76 | REDHAT.ROOT	= $(PWD)/../../
77 | 
78 | -include $(ROCKSROOT)/etc/Rules.mk
79 | include Rules.mk
80 | -include $(ROCKSROOT)/etc/python.mk
81 | include python.mk
82 | 
83 | build:
84 | 
85 | install::
86 | 	mkdir -p $(ROOT)/etc/profile.d
87 | 	install -m555 $(PROFILES) $(ROOT)/etc/profile.d
88 | 
89 | clean::
90 | 	rm -rf $(NAME)-$(VERSION)
91 | 


--------------------------------------------------------------------------------
/src/rocks-hpc-profile/rocks-hpc.csh:
--------------------------------------------------------------------------------
 1 | # $Id: rocks-hpc.csh,v 1.3 2012/11/27 00:49:01 phil Exp $
 2 | #
 3 | # Default Module Loading For Rocks HPC
 4 | #
 5 | # @Copyright@
 6 | # 
 7 | # 				Rocks(r)
 8 | # 		         www.rocksclusters.org
 9 | # 		         version 6.2 (SideWinder)
10 | # 		         version 7.0 (Manzanita)
11 | # 
12 | # Copyright (c) 2000 - 2017 The Regents of the University of California.
13 | # All rights reserved.	
14 | # 
15 | # Redistribution and use in source and binary forms, with or without
16 | # modification, are permitted provided that the following conditions are
17 | # met:
18 | # 
19 | # 1. Redistributions of source code must retain the above copyright
20 | # notice, this list of conditions and the following disclaimer.
21 | # 
22 | # 2. Redistributions in binary form must reproduce the above copyright
23 | # notice unmodified and in its entirety, this list of conditions and the
24 | # following disclaimer in the documentation and/or other materials provided 
25 | # with the distribution.
26 | # 
27 | # 3. All advertising and press materials, printed or electronic, mentioning
28 | # features or use of this software must display the following acknowledgement: 
29 | # 
30 | # 	"This product includes software developed by the Rocks(r)
31 | # 	Cluster Group at the San Diego Supercomputer Center at the
32 | # 	University of California, San Diego and its contributors."
33 | # 
34 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3,
35 | # neither the name or logo of this software nor the names of its
36 | # authors may be used to endorse or promote products derived from this
37 | # software without specific prior written permission.  The name of the
38 | # software includes the following terms, and any derivatives thereof:
39 | # "Rocks", "Rocks Clusters", and "Avalanche Installer".  For licensing of 
40 | # the associated name, interested parties should contact Technology 
41 | # Transfer & Intellectual Property Services, University of California, 
42 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910, 
43 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu
44 | # 
45 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
46 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
47 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
48 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
49 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
50 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
51 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
52 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
53 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
54 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
55 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
56 | # 
57 | # @Copyright@
58 | #
59 | # $Log: rocks-hpc.csh,v $
60 | # Revision 1.3  2012/11/27 00:49:01  phil
61 | # Copyright Storm for Emerald Boa
62 | #
63 | # Revision 1.2  2012/05/06 05:49:10  phil
64 | # Copyright Storm for Mamba
65 | #
66 | # Revision 1.1  2012/05/06 01:11:06  phil
67 | # Add default module definition for rocks-openmpi.
68 | #
69 | #
70 | 
71 | # Load the rocks-openmpi module if ROCKS_USER_MODULE_DEF not defined 
72 | if ( ! $?ROCKS_USER_MODULE_DEF) then
73 | 	module -s add rocks-openmpi
74 | endif
75 | 
76 | 


--------------------------------------------------------------------------------
/src/rocks-hpc-profile/rocks-hpc.sh:
--------------------------------------------------------------------------------
 1 | # $Id: rocks-hpc.sh,v 1.3 2012/11/27 00:49:01 phil Exp $
 2 | #
 3 | # load the defaults rocks-openmpi module
 4 | # @Copyright@
 5 | # 
 6 | # 				Rocks(r)
 7 | # 		         www.rocksclusters.org
 8 | # 		         version 6.2 (SideWinder)
 9 | # 		         version 7.0 (Manzanita)
10 | # 
11 | # Copyright (c) 2000 - 2017 The Regents of the University of California.
12 | # All rights reserved.	
13 | # 
14 | # Redistribution and use in source and binary forms, with or without
15 | # modification, are permitted provided that the following conditions are
16 | # met:
17 | # 
18 | # 1. Redistributions of source code must retain the above copyright
19 | # notice, this list of conditions and the following disclaimer.
20 | # 
21 | # 2. Redistributions in binary form must reproduce the above copyright
22 | # notice unmodified and in its entirety, this list of conditions and the
23 | # following disclaimer in the documentation and/or other materials provided 
24 | # with the distribution.
25 | # 
26 | # 3. All advertising and press materials, printed or electronic, mentioning
27 | # features or use of this software must display the following acknowledgement: 
28 | # 
29 | # 	"This product includes software developed by the Rocks(r)
30 | # 	Cluster Group at the San Diego Supercomputer Center at the
31 | # 	University of California, San Diego and its contributors."
32 | # 
33 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3,
34 | # neither the name or logo of this software nor the names of its
35 | # authors may be used to endorse or promote products derived from this
36 | # software without specific prior written permission.  The name of the
37 | # software includes the following terms, and any derivatives thereof:
38 | # "Rocks", "Rocks Clusters", and "Avalanche Installer".  For licensing of 
39 | # the associated name, interested parties should contact Technology 
40 | # Transfer & Intellectual Property Services, University of California, 
41 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910, 
42 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu
43 | # 
44 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
45 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
46 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
47 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
48 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
49 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
50 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
51 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
52 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
53 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
54 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
55 | # 
56 | # @Copyright@
57 | #
58 | # $Log: rocks-hpc.sh,v $
59 | # Revision 1.3  2012/11/27 00:49:01  phil
60 | # Copyright Storm for Emerald Boa
61 | #
62 | # Revision 1.2  2012/05/06 05:49:10  phil
63 | # Copyright Storm for Mamba
64 | #
65 | # Revision 1.1  2012/05/06 01:11:06  phil
66 | # Add default module definition for rocks-openmpi.
67 | #
68 | #
69 | # 
70 | 
71 | if [ -z ${ROCKS_USER_MODULE_DEF-""} ]; then
72 | 	module add rocks-openmpi 2>/dev/null
73 | fi
74 | 


--------------------------------------------------------------------------------
/src/rocks-hpc-profile/version.mk:
--------------------------------------------------------------------------------
1 | NAME		= rocks-hpc-profile
2 | RELEASE		= 1
3 | RPM.FILES	= /etc/profile.d/*
4 | 


--------------------------------------------------------------------------------
/src/rocks-openmpi-modules/Makefile:
--------------------------------------------------------------------------------
 1 | #
 2 | # $Id: Makefile,v 1.2 2012/11/27 00:49:01 phil Exp $
 3 | #
 4 | # @Copyright@
 5 | # 
 6 | # 				Rocks(r)
 7 | # 		         www.rocksclusters.org
 8 | # 		         version 6.2 (SideWinder)
 9 | # 		         version 7.0 (Manzanita)
10 | # 
11 | # Copyright (c) 2000 - 2017 The Regents of the University of California.
12 | # All rights reserved.	
13 | # 
14 | # Redistribution and use in source and binary forms, with or without
15 | # modification, are permitted provided that the following conditions are
16 | # met:
17 | # 
18 | # 1. Redistributions of source code must retain the above copyright
19 | # notice, this list of conditions and the following disclaimer.
20 | # 
21 | # 2. Redistributions in binary form must reproduce the above copyright
22 | # notice unmodified and in its entirety, this list of conditions and the
23 | # following disclaimer in the documentation and/or other materials provided 
24 | # with the distribution.
25 | # 
26 | # 3. All advertising and press materials, printed or electronic, mentioning
27 | # features or use of this software must display the following acknowledgement: 
28 | # 
29 | # 	"This product includes software developed by the Rocks(r)
30 | # 	Cluster Group at the San Diego Supercomputer Center at the
31 | # 	University of California, San Diego and its contributors."
32 | # 
33 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3,
34 | # neither the name or logo of this software nor the names of its
35 | # authors may be used to endorse or promote products derived from this
36 | # software without specific prior written permission.  The name of the
37 | # software includes the following terms, and any derivatives thereof:
38 | # "Rocks", "Rocks Clusters", and "Avalanche Installer".  For licensing of 
39 | # the associated name, interested parties should contact Technology 
40 | # Transfer & Intellectual Property Services, University of California, 
41 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910, 
42 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu
43 | # 
44 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
45 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
46 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
47 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
48 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
49 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
50 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
51 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
52 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
53 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
54 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
55 | # 
56 | # @Copyright@
57 | #
58 | #
59 | # $Log: Makefile,v $
60 | # Revision 1.2  2012/11/27 00:49:01  phil
61 | # Copyright Storm for Emerald Boa
62 | #
63 | # Revision 1.1  2012/09/30 21:58:56  phil
64 | # Update openmpi to 1.6.2.
65 | # Create Modules for ethernet and IB
66 | # Add IB support - packages, openmpi configuration, udev rules
67 | #
68 | 
69 | REDHAT.ROOT = $(CURDIR)/../../
70 | 
71 | -include $(ROCKSROOT)/etc/Rules.mk
72 | include Rules.mk
73 | 
74 | MODULESFILES = rocks-openmpi rocks-openmpi_ib
75 | 
76 | %: %.in
77 | 	$(SED) $(SEDSCRIPT) $^ > $@
78 | 
79 | pretar:: $(VERSION.MK.INCLUDE)
80 | 
81 | $(VERSION.MK.INCLUDE): 
82 | 	if [ -f $(VERSION.MK.MASTER.DIR)/$(VERSION.MK.MASTER) ]; then \
83 | 		/bin/cp $(VERSION.MK.MASTER.DIR)/$(VERSION.MK.MASTER) $@; \
84 | 	fi
85 | 
86 | build: $(MODULESFILES)
87 | 
88 | install:: $(MODULESFILES)
89 | 	mkdir -p $(ROOT)/$(PKGROOT)
90 | 	install -m 755 $(MODULESFILES) $(ROOT)/$(PKGROOT)
91 | 
92 | clean::
93 | 	rm -rf $(NAME).spec.in
94 | 	rm -rf $(MODULESFILES)
95 | 	rm -rf $(VERSION.MK.INCLUDE)
96 | 
97 | 


--------------------------------------------------------------------------------
/src/rocks-openmpi-modules/rocks-openmpi.in:
--------------------------------------------------------------------------------
 1 | #%Module1.0#####################################################################
 2 | ##
 3 | ## rocks-openmpi modulefile
 4 | ##
 5 | ## modulefiles/
 6 | ##
 7 | proc ModulesHelp { } {
 8 | 	global rocks-openmpiversion 
 9 | 
10 | 	puts stderr "\t Use /opt/rocks/openmpi as your MPI"
11 | 	puts stderr "\n\tVersion $rocks-openmpiversion\n"
12 | }
13 | 
14 | module-whatis	"Use Rocks-compiled OpenMPI with tcp,self transport"
15 | 
16 | # for Tcl script use only
17 | set	rocks-openmpiversion @VERSION@
18 | 
19 | set mpiHome /opt/openmpi
20 | setenv MPIHOME $mpiHome
21 | setenv OMPI_MCA_btl self,sm,tcp
22 | prepend-path	PATH $mpiHome/bin	
23 | prepend-path	LD_LIBRARY_PATH $mpiHome/lib	
24 | 
25 | 


--------------------------------------------------------------------------------
/src/rocks-openmpi-modules/rocks-openmpi_ib.in:
--------------------------------------------------------------------------------
 1 | #%Module1.0#####################################################################
 2 | ##
 3 | ## rocks-openmpi modulefile
 4 | ##
 5 | ## modulefiles/
 6 | ##
 7 | proc ModulesHelp { } {
 8 | 	global rocks-openmpiversion 
 9 | 
10 | 	puts stderr "\t Use /opt/rocks/openmpi as your MPI"
11 | 	puts stderr "\n\tVersion $rocks-openmpiversion\n"
12 | }
13 | 
14 | module-whatis	"Use Rocks-compiled OpenMPI with openib,dapl transports"
15 | 
16 | # for Tcl script use only
17 | set	rocks-openmpiversion @VERSION@
18 | 
19 | set mpiHome /opt/openmpi
20 | setenv MPIHOME $mpiHome
21 | prepend-path	PATH $mpiHome/bin	
22 | prepend-path	LD_LIBRARY_PATH $mpiHome/lib	
23 | 
24 | 


--------------------------------------------------------------------------------
/src/rocks-openmpi-modules/version.mk:
--------------------------------------------------------------------------------
 1 | # Get the Openmpi version from it's version.mk file. See Makefile
 2 | VERSION.MK.MASTER = version.mk
 3 | VERSION.MK.MASTER.DIR = ../openmpi
 4 | VERSION.MK.INCLUDE = openmpi.version.mk
 5 | 
 6 | include $(VERSION.MK.INCLUDE) 
 7 | NAME		= rocks-openmpi-modules
 8 | RELEASE		= 1
 9 | RPM.REQUIRES	= environment-modules
10 | PKGROOT = /usr/share/Modules/modulefiles
11 | RPM.FILES	= $(PKGROOT)/*
12 | 


--------------------------------------------------------------------------------
/src/stream/HISTORY.txt:
--------------------------------------------------------------------------------
  1 | -------------------------------------------------------------------------
  2 | 
  3 | Revisions as of Thu, Jan 17, 2013  3:50:01 PM
  4 | 
  5 | Version 5.10 of stream.c has been released.
  6 | This version includes improved validation code and will automatically
  7 | use 64-bit array indices on 64-bit systems to allow very large arrays.
  8 | 
  9 | -------------------------------------------------------------------------
 10 | 
 11 | Revisions as of Thu Feb 19 08:16:57 CST 2009
 12 | 
 13 | Note that the codes in the "Versions" subdirectory should be
 14 | considered obsolete -- the versions of stream.c and stream.f
 15 | in this main directory include the OpenMP directives and structure
 16 | for creating "TUNED" versions.  
 17 | 
 18 | Only the MPI version in the "Versions" subdirectory should be
 19 | of any interest, and I have not recently checked that version for
 20 | errors or compliance with the current versions of stream.c and
 21 | stream.f.
 22 | 
 23 | I added a simple Makefile to this directory.  It works under Cygwin
 24 | on my Windows XP box (using gcc and g77).
 25 | 
 26 | A user suggested a sneaky trick for "mysecond.c" -- instead of using
 27 | the #ifdef UNDERSCORE to generate the function name that the Fortran
 28 | compiler expects, the new version simply defines both "mysecond()"
 29 | and "mysecond_()", so it should automagically link with most Fortran
 30 | compilers.
 31 | 
 32 | -------------------------------------------------------------------------
 33 | 
 34 | Revisions as of Wed Nov 17 09:15:37 CST 2004
 35 | 
 36 | The most recent "official" versions have been renamed "stream.f" and
 37 | "stream.c" -- all other versions have been moved to the "Versions"
 38 | subdirectory.
 39 | 
 40 | The "official" timer (was "second_wall.c") has been renamed "mysecond.c".
 41 | This is embedded in the C version ("stream.c"), but still needs to be
 42 | externally linked to the FORTRAN version ("stream.f").
 43 | 
 44 | -------------------------------------------------------------------------
 45 | 
 46 | Revisions as of Tue May 27 11:51:23 CDT 2003
 47 | 
 48 | Copyright and License info added to stream_d.f, stream_mpi.f, and
 49 | stream_tuned.f
 50 | 
 51 | 
 52 | -------------------------------------------------------------------------
 53 | 
 54 | Revisions as of Tue Apr  8 10:26:48 CDT 2003
 55 | 
 56 | I changed the name of the timer interface from "second" to "mysecond"
 57 | and removed the dummy argument in all versions of the source code (but
 58 | not the "Contrib" versions).
 59 | 
 60 | 
 61 | -------------------------------------------------------------------------
 62 | 
 63 | Revisions as of Mon Feb 25 06:48:14 CST 2002
 64 | 
 65 | Added an OpenMP version of stream_d.c, called stream_d_omp.c.  This is
 66 | still not up to date with the Fortran version, which includes error
 67 | checking and advanced data flow to prevent overoptimization, but it is
 68 | a good start....
 69 | 
 70 | 
 71 | -------------------------------------------------------------------------
 72 | 
 73 | Revisions as of Tue Jun  4 16:31:31 EDT 1996
 74 | 
 75 | I have fixed an "off-by-one" error in the RMS time calculation in
 76 | stream_d.f.  This was already corrected in stream_d.c.  No results are
 77 | invalidated, since I use minimum time instead of RMS time anyway....
 78 | 
 79 | -------------------------------------------------------------------------
 80 | 
 81 | Revisions as of Fri Dec  8 14:49:56 EST 1995
 82 | 
 83 | I have renamed the timer routines to:
 84 | 	second_cpu.c
 85 | 	second_wall.c
 86 | 	second_cpu.f
 87 | 
 88 | All have a function interface named 'second' which returns a double
 89 | precision floating point number.  It should be possible to link
 90 | second_wall.c with stream_d.f without too much trouble, though the
 91 | details will depend on your environment.
 92 | 
 93 | If anyone builds versions of these timers for machines running the
 94 | Macintosh O/S or DOS/Windows, I would appreciate getting a copy.
 95 | 
 96 | To clarify:
 97 |   * For single-user machines, the wallclock timer is preferred.
 98 |   * For parallel machines, the wallclock timer is required.
 99 |   * For time-shared systems, the cpu timer is more reliable,
100 |         though less accurate.
101 |     
102 | 
103 | -------------------------------------------------------------------------
104 | 
105 | Revisions as of Wed Oct 25 09:40:32 EDT 1995
106 | 
107 | (1) NOTICE to C users:
108 | 
109 |     stream_d.c has been updated to version 4.0 (beta), and
110 |     should be functionally identical to stream_d.f
111 | 
112 |     Two timers are provided --- second_cpu.c and second_wall.c
113 |     second_cpu.c measures cpu time, while second_wall.c measures
114 |     elapsed (real) time.   
115 | 
116 |     For single-user machines, the wallclock timer is preferred.
117 |     For parallel machines, the wallclock timer is required.
118 |     For time-shared systems, the cpu timer is more reliable,
119 |     though less accurate.
120 |     
121 | (2) cstream.c has been removed -- use stream_d.c
122 | 
123 | (3) stream_wall.f has been removed --- to do parallel aggregate
124 |     bandwidth runs, comment out the definition of FUNCTION SECOND
125 |     in stream_d.f and compile/link with second_wall.c
126 | 
127 | (4) stream_offset has been deprecated.  It is still here
128 |     and usable, but stream_d.f is the "standard" version.
129 |     There are easy hooks in stream_d.f to change the
130 |     array offsets if you want to.
131 | 
132 | (5) The rules of the game are clarified as follows:
133 | 
134 |     The reference case uses array sizes of 2,000,000 elements
135 |     and no additional offsets.  I would like to see results
136 |     for this case.
137 | 
138 |     But, you are free to use any array size and any offset
139 |     you want, provided that the arrays are each bigger than
140 |     the last-level of cache.  The output will show me what
141 |     parameters you chose.
142 | 
143 |     I expect that I will report just the best number, but
144 |     if there is a serious discrepancy between the reference
145 |     case and the "best" case, I reserve the right to report 
146 |     both.
147 | 
148 |     Of course, I also reserve the right to reject any results
149 |     that I do not trust....
150 | --
151 | John D. McCalpin, Ph.D.        
152 | john@mccalpin.com
153 | 


--------------------------------------------------------------------------------
/src/stream/LICENSE.txt:
--------------------------------------------------------------------------------
 1 | *=======================================================================
 2 | *-----------------------------------------------------------------------
 3 | * Copyright 1991-2003: John D. McCalpin
 4 | *-----------------------------------------------------------------------
 5 | * License:
 6 | *  1. You are free to use this program and/or to redistribute
 7 | *     this program.
 8 | *  2. You are free to modify this program for your own use,
 9 | *     including commercial use, subject to the publication
10 | *     restrictions in item 3.
11 | *  3. You are free to publish results obtained from running this
12 | *     program, or from works that you derive from this program,
13 | *     with the following limitations:
14 | *     3a. In order to be referred to as "STREAM benchmark results",
15 | *         published results must be in conformance to the STREAM
16 | *         Run Rules, (briefly reviewed below) published at
17 | *         http://www.cs.virginia.edu/stream/ref.html
18 | *         and incorporated herein by reference.
19 | *         As the copyright holder, John McCalpin retains the
20 | *         right to determine conformity with the Run Rules.
21 | *     3b. Results based on modified source code or on runs not in
22 | *         accordance with the STREAM Run Rules must be clearly
23 | *         labelled whenever they are published.  Examples of
24 | *         proper labelling include:
25 | *         "tuned STREAM benchmark results" 
26 | *         "based on a variant of the STREAM benchmark code"
27 | *         Other comparable, clear and reasonable labelling is
28 | *         acceptable.
29 | *     3c. Submission of results to the STREAM benchmark web site
30 | *         is encouraged, but not required.
31 | *  4. Use of this program or creation of derived works based on this
32 | *     program constitutes acceptance of these licensing restrictions.
33 | *  5. Absolutely no warranty is expressed or implied.
34 | *-----------------------------------------------------------------------
35 | 


--------------------------------------------------------------------------------
/src/stream/Makefile:
--------------------------------------------------------------------------------
  1 | #
  2 | # $Id: Makefile,v 1.19 2012/11/27 00:49:01 phil Exp $
  3 | #
  4 | # @Copyright@
  5 | # 
  6 | # 				Rocks(r)
  7 | # 		         www.rocksclusters.org
  8 | # 		         version 6.2 (SideWinder)
  9 | # 		         version 7.0 (Manzanita)
 10 | # 
 11 | # Copyright (c) 2000 - 2017 The Regents of the University of California.
 12 | # All rights reserved.	
 13 | # 
 14 | # Redistribution and use in source and binary forms, with or without
 15 | # modification, are permitted provided that the following conditions are
 16 | # met:
 17 | # 
 18 | # 1. Redistributions of source code must retain the above copyright
 19 | # notice, this list of conditions and the following disclaimer.
 20 | # 
 21 | # 2. Redistributions in binary form must reproduce the above copyright
 22 | # notice unmodified and in its entirety, this list of conditions and the
 23 | # following disclaimer in the documentation and/or other materials provided 
 24 | # with the distribution.
 25 | # 
 26 | # 3. All advertising and press materials, printed or electronic, mentioning
 27 | # features or use of this software must display the following acknowledgement: 
 28 | # 
 29 | # 	"This product includes software developed by the Rocks(r)
 30 | # 	Cluster Group at the San Diego Supercomputer Center at the
 31 | # 	University of California, San Diego and its contributors."
 32 | # 
 33 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3,
 34 | # neither the name or logo of this software nor the names of its
 35 | # authors may be used to endorse or promote products derived from this
 36 | # software without specific prior written permission.  The name of the
 37 | # software includes the following terms, and any derivatives thereof:
 38 | # "Rocks", "Rocks Clusters", and "Avalanche Installer".  For licensing of 
 39 | # the associated name, interested parties should contact Technology 
 40 | # Transfer & Intellectual Property Services, University of California, 
 41 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910, 
 42 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu
 43 | # 
 44 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
 45 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 46 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 47 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
 48 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 49 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 50 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
 51 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 52 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
 53 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
 54 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 55 | # 
 56 | # @Copyright@
 57 | #
 58 | # $Log: Makefile,v $
 59 | # Revision 1.19  2012/11/27 00:49:01  phil
 60 | # Copyright Storm for Emerald Boa
 61 | #
 62 | # Revision 1.18  2012/05/06 05:49:10  phil
 63 | # Copyright Storm for Mamba
 64 | #
 65 | # Revision 1.17  2012/05/06 01:11:06  phil
 66 | # Add default module definition for rocks-openmpi.
 67 | #
 68 | # Revision 1.16  2011/07/23 02:31:06  phil
 69 | # Viper Copyright
 70 | #
 71 | # Revision 1.15  2010/09/07 23:53:21  bruno
 72 | # star power for gb
 73 | #
 74 | # Revision 1.14  2009/05/04 17:56:00  phil
 75 | # Update to streams 5.9. Supports OpenMP Threads
 76 | #
 77 | # Revision 1.13  2009/05/01 19:07:18  mjk
 78 | # chimi con queso
 79 | #
 80 | # Revision 1.12  2008/10/18 00:56:10  mjk
 81 | # copyright 5.1
 82 | #
 83 | # Revision 1.11  2008/10/15 20:13:05  mjk
 84 | # - more changes to build outside of the tree
 85 | # - removed some old fds-only targets
 86 | #
 87 | # Revision 1.10  2008/05/21 17:46:56  anoop
 88 | # Merginig code from mercurial.
 89 | # This change makes the HPC roll more solaris friendly
 90 | #
 91 | # Revision 1.9  2008/03/06 23:41:54  mjk
 92 | # copyright storm on
 93 | #
 94 | # Revision 1.8  2007/06/23 04:03:41  mjk
 95 | # mars hill copyright
 96 | #
 97 | # Revision 1.7  2007/01/17 15:19:49  bruno
 98 | # nuked spec file for stream
 99 | #
100 | #
101 | 
102 | 
103 | RPM.EXTRAS=%define __os_install_post /usr/lib/rpm/brp-compress
104 | REDHAT.ROOT     = $(CURDIR)/../../
105 | -include $(ROCKSROOT)/etc/Rules.mk
106 | include Rules.mk
107 | -include $(OS).mk
108 | 
109 | SUPPORTFILES = READ.ME HISTORY.txt LICENSE.txt ROCKS.txt
110 | CODEFILES = stream.c stream.f mysecond.c Makefile linux.mk sunos.mk version.mk
111 | 
112 | build: stream stream_f
113 | 
114 | stream: stream.o
115 | 	$(CC) $(CFLAGS) -o $@ $^
116 | 
117 | stream.o: stream.c
118 | 	$(CC) $(CFLAGS) -c -DN=$(MEMSIZE) -o$@ $^
119 | 
120 | stream_f: stream.f mysecond.o
121 | 	$(CC) $(CFLAGS) -c mysecond.c
122 | 	$(FORTRAN) $(FFLAGS) -c stream.f -o stream_f.o
123 | 	$(FORTRAN) stream_f.o mysecond.o -o stream_f
124 | 
125 | 	
126 | install::
127 | 	mkdir -p $(ROOT)/$(PKGROOT)/bin
128 | 	$(INSTALL) -m555 stream stream_f $(ROOT)/$(PKGROOT)/bin
129 | 	mkdir -p $(ROOT)/$(PKGROOT)/docs
130 | 	$(INSTALL) -m644 $(SUPPORTFILES) $(CODEFILES) $(ROOT)/$(PKGROOT)/docs
131 | 
132 | 
133 | clean::
134 | 	$(RM) -f *.o
135 | 	$(RM) -f stream stream_f
136 | 	$(RM) -f $(NAME).spec.in
137 | 
138 | 


--------------------------------------------------------------------------------
/src/stream/Makefile.stream:
--------------------------------------------------------------------------------
 1 | CC = gcc
 2 | CFLAGS = -O2
 3 | 
 4 | FF = g77
 5 | FFLAGS = -O2
 6 | 
 7 | all: stream_f.exe stream_c.exe
 8 | 
 9 | stream_f.exe: stream.f mysecond.o
10 | 	$(CC) $(CFLAGS) -c mysecond.c
11 | 	$(FF) $(FFLAGS) -c stream.f
12 | 	$(FF) $(FFLAGS) stream.o mysecond.o -o stream_f.exe
13 | 
14 | stream_c.exe: stream.c
15 | 	$(CC) $(CFLAGS) stream.c -o stream_c.exe
16 | 
17 | clean:
18 | 	rm -f stream_f.exe stream_c.exe *.o
19 | 
20 | # an example of a more complex build line for the Intel icc compiler
21 | stream.icc: stream.c
22 | 	icc -O3 -xCORE-AVX2 -ffreestanding -qopenmp -DSTREAM_ARRAY_SIZE=80000000 -DNTIMES=20 stream.c -o stream.omp.AVX2.80M.20x.icc
23 | 


--------------------------------------------------------------------------------
/src/stream/READ.ME:
--------------------------------------------------------------------------------
  1 | ===============================================
  2 | 
  3 | STREAM is the de facto industry standard benchmark
  4 | for measuring sustained memory bandwidth.
  5 | 
  6 | Documentation for STREAM is on the web at:
  7 |    http://www.cs.virginia.edu/stream/ref.html
  8 | 
  9 | ===============================================
 10 | NEWS
 11 | ===============================================
 12 | UPDATE: October 28 2014:
 13 | 
 14 | "stream_mpi.c" released in the Versions directory.
 15 | 
 16 | Based on Version 5.10 of stream.c, stream_mpi.c
 17 | brings the following new features:
 18 | * MPI implementation that *distributes* the arrays
 19 |   across all MPI ranks. (The older Fortran version
 20 |   of STREAM in MPI *replicates* the arrays across
 21 |   all MPI ranks.)
 22 | * Data is allocated using "posix_memalign" 
 23 |   rather than using static arrays.  Different
 24 |   compiler flags may be needed for both portability
 25 |   and optimization.
 26 |   See the READ.ME file in the Versions directory
 27 |   for more details.
 28 | * Error checking and timing done by all ranks and
 29 |   gathered by rank 0 for processing and output.
 30 | * Timing code uses barriers to ensure correct
 31 |   operation even when multiple MPI ranks run on
 32 |   shared memory systems.
 33 | 
 34 | NOTE: MPI is not a preferred implementation for
 35 |   STREAM, which is intended to measure memory
 36 |   bandwidth in shared-memory systems.  In stream_mpi,
 37 |   the MPI calls are only used to properly synchronize
 38 |   the timers (using MPI_Barrier) and to gather
 39 |   timing and error data, so the performance should 
 40 |   scale linearly with the size of the cluster.
 41 |   But it may be useful, and was an interesting 
 42 |   exercise to develop and debug.
 43 | 
 44 | ===============================================
 45 | UPDATE: January 17 2013:
 46 | 
 47 | Version 5.10 of stream.c is finally available!
 48 | 
 49 | There are no changes to what is being measured, but
 50 | a number of long-awaited improvements have been made:
 51 | 
 52 | * Updated validation code does not suffer from 
 53 |   accumulated roundoff error for large arrays.
 54 | * Defining the preprocessor variable "VERBOSE"
 55 |   when compiling will (1) cause the code to print the
 56 |   measured average relative absolute error (rather than
 57 |   simply printing "Solution Validates", and (2) print
 58 |   the first 10 array entries with relative error exceeding
 59 |   the error tolerance.
 60 | * Array index variables have been upgraded from
 61 |   "int" to "ssize_t" to allow arrays with more
 62 |   than 2 billion elements on 64-bit systems.
 63 | * Substantial improvements to the comments in 
 64 |   the source on how to configure/compile/run the
 65 |   benchmark.
 66 | * The proprocessor variable controlling the array
 67 |   size has been changed from "N" to "STREAM_ARRAY_SIZE".
 68 | * A new preprocessor variable "STREAM_TYPE" can be
 69 |   used to override the data type from the default
 70 |   "double" to "float".
 71 |   This mechanism could also be used to change to 
 72 |   non-floating-point types, but several "printf"
 73 |   statements would need to have their formats changed
 74 |   to accomodate the modified data type.
 75 | * Some small changes in output, including printing
 76 |   array sizes is GiB as well as MiB.
 77 | * Change to the default output format to print fewer
 78 |   decimals for the bandwidth and more decimals for
 79 |   the min/max/avg execution times.
 80 | 
 81 | 
 82 | ===============================================
 83 | UPDATE: February 19 2009:
 84 | 
 85 | The most recent "official" versions have been renamed
 86 | "stream.f" and "stream.c" -- all other versions have
 87 | been moved to the "Versions" subdirectory and should be
 88 | considered obsolete.
 89 | 
 90 | The "official" timer (was "second_wall.c") has been
 91 | renamed "mysecond.c".   This is embedded in the C version
 92 | ("stream.c"), but still needs to be externally linked to
 93 | the FORTRAN version ("stream.f").  The new version defines
 94 | entry points both with and without trailing underscores,
 95 | so it *should* link automagically with any Fortran compiler.
 96 | 
 97 | ===============================================
 98 | 
 99 | STREAM is a project of "Dr. Bandwidth":
100 | 	John D. McCalpin, Ph.D.
101 | 	john@mccalpin.com
102 | 
103 | ===============================================
104 | 
105 | The STREAM web and ftp sites are currently hosted at
106 | the Department of Computer Science at the University of
107 | Virginia under the generous sponsorship of Professor Bill
108 | Wulf and Professor Alan Batson.
109 | 
110 | ===============================================
111 | 


--------------------------------------------------------------------------------
/src/stream/ROCKS.txt:
--------------------------------------------------------------------------------
 1 | $Id: ROCKS.txt,v 1.2 2009/05/04 20:47:38 phil Exp $
 2 | This is the Rocks-compiled version of streams. 
 3 | Streams is from the University of Virginia. See Reference section below  
 4 | 
 5 | I. Running
 6 | $ /opt/stream/bin/stream
 7 | 
 8 | By default this will allocate a thread for each CPU (core it detects
 9 | in the system).  You can can adjust this for the C
10 | version. It has been compiled with -fopenmp, to run explicitly four
11 | threads 
12 | 
13 | $ export OMP_NUM_THREADS=4
14 | $ /opt/stream/bin/stream
15 | 
16 | 
17 | II. Recompiling
18 | The doc directory contains the files used to create streams and the specific
19 | compiler parameters. Openmp threading is on  by default for the C version, 
20 | off for the fortran version 
21 | 
22 | To recompile streams (Tested only on a Rocks Frontend) :
23 | 	1. edit .mk   (1<<32)).
18 | 
19 | * Update the Fortran MPI version of STREAM to catch up with the functionality
20 |   and features of the C version 5.10
21 | 


--------------------------------------------------------------------------------
/src/stream/Versions/READ.ME:
--------------------------------------------------------------------------------
  1 | ===============================================
  2 | STREAM is the de facto industry standard benchmark
  3 |    for measuring sustained memory bandwidth.
  4 | Documentation for STREAM is on the web at:
  5 |    http://www.cs.virginia.edu/stream/ref.html
  6 | ===============================================
  7 | ===============================================
  8 | This "Versions" directory holds several variants of
  9 | STREAM that are sometimes useful.
 10 | ===============================================
 11 | ===============================================
 12 | Potentially Useful Versions:
 13 |     2014-Oct-21  stream_mpi.c
 14 |     2014-Oct-21  stream_5-10_posix_memalign.c
 15 |     2014-Feb-14  stream_mpi.f
 16 |     2012-Aug-14  stream_windows.c
 17 | 
 18 | All older versions have been moved to the "Old"
 19 | directory and should not be used.
 20 |     2009-Mar-14  stream_omp.c
 21 |     2004-Dec-12  stream_tuned.f
 22 |     2003-May-27  stream_d.f
 23 |     2003-Apr-08  second_cpu.f
 24 |     2003-Apr-08  second_cpu.c
 25 |     2003-Jan-10  stream_d.c
 26 | ===============================================
 27 | NEWS AND NOTES
 28 | ===============================================
 29 | UPDATE: October 28 2014:
 30 | 
 31 | "stream_mpi.c" released.
 32 | Based on Version 5.10 of stream.c, stream_mpi.c
 33 | brings the following new features:
 34 | * MPI implementation that *distributes* the arrays
 35 |   across all MPI ranks. (The older Fortran version
 36 |   of STREAM in MPI *replicates* the arrays across
 37 |   all MPI ranks.)
 38 | * Data is allocated using "posix_memalign" 
 39 |   rather than using static arrays.  Different
 40 |   compiler flags may be needed for both portability
 41 |   and optimization.
 42 |   For example, on the TACC Stampede system using
 43 |   the Intel compilers, my standard compile line
 44 |   for a 4-node run is:
 45 | 	-----------------------------------------
 46 | 	mpicc -O3 -ffreestanding -openmp -mcmodel=medium -restrict -opt-streaming-stores always  \
 47 | 	    -DSTREAM_ARRAY_SIZE=80000000 -DNTIMES=20 -DVERBOSE   \
 48 | 	    stream_mpi.c -o stream_mpi
 49 | 
 50 | 	Notes on flags:
 51 | 	    -O3                                 works OK, as does -O2 in most cases
 52 | 	    -ffreestanding                      don't replace the Copy kernel with a library version
 53 | 	    -openmp                             use OpenMP
 54 | 	    -mcmodel=medium                     allow arrays to be bigger than 4 GiB
 55 | 	    -restrict                           allow use of the C99 "restrict" keyword
 56 | 	    -opt-streaming-stores always        force streaming stores
 57 | 
 58 | 	Notes on preprocessor variables:
 59 | 	    STREAM_ARRAY_SIZE                   elements per array (distributed across all ranks)
 60 | 	    NTIMES                              number of iterations to run
 61 | 	    VERBOSE                             print startup and shutdown timing information
 62 | 	-----------------------------------------
 63 | * Error checking and timing done by all ranks and
 64 |   gathered by rank 0 for processing and output.
 65 | * Timing code uses barriers to ensure correct
 66 |   operation even when multiple MPI ranks run on
 67 |   shared memory systems.
 68 | 
 69 | NOTE: MPI is not a preferred implementation for
 70 |   STREAM, which is intended to measure memory
 71 |   bandwidth in shared-memory systems.  In stream_mpi,
 72 |   the MPI calls are only used to properly synchronize
 73 |   the timers (using MPI_Barrier) and to gather
 74 |   timing and error data, so the performance should 
 75 |   scale linearly with the size of the cluster.
 76 |   But it may be useful, and was an interesting 
 77 |   exercise to develop and debug.
 78 | 
 79 | ===============================================
 80 | UPDATE: January 17 2013:
 81 | 
 82 | Version 5.10 of stream.c is finally available!
 83 | 
 84 | There are no changes to what is being measured, but
 85 | a number of long-awaited improvements have been made:
 86 | 
 87 | * Updated validation code does not suffer from 
 88 |   accumulated roundoff error for large arrays.
 89 | * Defining the preprocessor variable "VERBOSE"
 90 |   when compiling will (1) cause the code to print the
 91 |   measured average relative absolute error (rather than
 92 |   simply printing "Solution Validates", and (2) print
 93 |   the first 10 array entries with relative error exceeding
 94 |   the error tolerance.
 95 | * Array index variables have been upgraded from
 96 |   "int" to "ssize_t" to allow arrays with more
 97 |   than 2 billion elements on 64-bit systems.
 98 | * Substantial improvements to the comments in 
 99 |   the source on how to configure/compile/run the
100 |   benchmark.
101 | * The proprocessor variable controlling the array
102 |   size has been changed from "N" to "STREAM_ARRAY_SIZE".
103 | * A new preprocessor variable "STREAM_TYPE" can be
104 |   used to override the data type from the default
105 |   "double" to "float".
106 |   This mechanism could also be used to change to 
107 |   non-floating-point types, but several "printf"
108 |   statements would need to have their formats changed
109 |   to accomodate the modified data type.
110 | * Some small changes in output, including printing
111 |   array sizes is GiB as well as MiB.
112 | * Change to the default output format to print fewer
113 |   decimals for the bandwidth and more decimals for
114 |   the min/max/avg execution times.
115 | ===============================================
116 | STREAM is a project of "Dr. Bandwidth":
117 | 	John D. McCalpin, Ph.D.
118 | 	john@mccalpin.com
119 | ===============================================
120 | The STREAM web and ftp sites are currently hosted at
121 | the Department of Computer Science at the University of
122 | Virginia under the generous sponsorship of Professor Bill
123 | Wulf and Professor Alan Batson.
124 | ===============================================
125 | 


--------------------------------------------------------------------------------
/src/stream/Versions/second_cpu.c:
--------------------------------------------------------------------------------
 1 | #include 
 2 | #include 
 3 | #include 
 4 | #include 
 5 | 
 6 | double mysecond()
 7 | {
 8 |     long sec;
 9 |     double secx;
10 |     struct tms realbuf;
11 | 
12 |     times(&realbuf);
13 |     secx = ( realbuf.tms_stime + realbuf.tms_utime ) / (float) CLK_TCK;
14 |     return ((double) secx);
15 | }
16 | 


--------------------------------------------------------------------------------
/src/stream/Versions/second_cpu.f:
--------------------------------------------------------------------------------
 1 | *-------------------------------------
 2 | * Sample timing routine
 3 | *       This code works on Sun and Silicon Graphics machines.
 4 | *       DOUBLE PRECISION function mysecond()
 5 | *       real arg(2)
 6 | *       mysecond = etime(arg)
 7 | *       end
 8 | * Sample timing routine
 9 | *       This code works on IBM RS/6000 machines
10 |       DOUBLE PRECISION FUNCTION mysecond()
11 | C     ..
12 | C     .. External Functions ..
13 |       INTEGER mclock
14 |       EXTERNAL mclock
15 | C     ..
16 |       mysecond = mclock()*0.01D0
17 |       END
18 | 
19 | 


--------------------------------------------------------------------------------
/src/stream/Versions/stream_d.c:
--------------------------------------------------------------------------------
  1 | # include 
  2 | # include 
  3 | # include 
  4 | # include 
  5 | # include 
  6 | 
  7 | /*
  8 |  * Program: Stream
  9 |  * Programmer: Joe R. Zagar
 10 |  * Revision: 4.0-BETA, October 24, 1995
 11 |  * Original code developed by John D. McCalpin
 12 |  *
 13 |  * This program measures memory transfer rates in MB/s for simple 
 14 |  * computational kernels coded in C.  These numbers reveal the quality
 15 |  * of code generation for simple uncacheable kernels as well as showing
 16 |  * the cost of floating-point operations relative to memory accesses.
 17 |  *
 18 |  * INSTRUCTIONS:
 19 |  *
 20 |  *	1) Stream requires a good bit of memory to run.  Adjust the
 21 |  *          value of 'N' (below) to give a 'timing calibration' of 
 22 |  *          at least 20 clock-ticks.  This will provide rate estimates
 23 |  *          that should be good to about 5% precision.
 24 |  */
 25 | 
 26 | # define N	2000000
 27 | # define NTIMES	10
 28 | # define OFFSET	0
 29 | 
 30 | /*
 31 |  *	3) Compile the code with full optimization.  Many compilers
 32 |  *	   generate unreasonably bad code before the optimizer tightens
 33 |  *	   things up.  If the results are unreasonably good, on the
 34 |  *	   other hand, the optimizer might be too smart for me!
 35 |  *
 36 |  *         Try compiling with:
 37 |  *               cc -O stream_d.c second_wall.c -o stream_d -lm
 38 |  *
 39 |  *         This is known to work on Cray, SGI, IBM, and Sun machines.
 40 |  *
 41 |  *
 42 |  *	4) Mail the results to mccalpin@cs.virginia.edu
 43 |  *	   Be sure to include:
 44 |  *		a) computer hardware model number and software revision
 45 |  *		b) the compiler flags
 46 |  *		c) all of the output from the test case.
 47 |  * Thanks!
 48 |  *
 49 |  */
 50 | 
 51 | # define HLINE "-------------------------------------------------------------\n"
 52 | 
 53 | # ifndef MIN
 54 | # define MIN(x,y) ((x)<(y)?(x):(y))
 55 | # endif
 56 | # ifndef MAX
 57 | # define MAX(x,y) ((x)>(y)?(x):(y))
 58 | # endif
 59 | 
 60 | static double	a[N+OFFSET],
 61 | 		b[N+OFFSET],
 62 | 		c[N+OFFSET];
 63 | 
 64 | static double	rmstime[4] = {0}, maxtime[4] = {0},
 65 | 		mintime[4] = {FLT_MAX,FLT_MAX,FLT_MAX,FLT_MAX};
 66 | 
 67 | static char	*label[4] = {"Copy:      ", "Scale:     ",
 68 |     "Add:       ", "Triad:     "};
 69 | 
 70 | static double	bytes[4] = {
 71 |     2 * sizeof(double) * N,
 72 |     2 * sizeof(double) * N,
 73 |     3 * sizeof(double) * N,
 74 |     3 * sizeof(double) * N
 75 |     };
 76 | 
 77 | extern double mysecond();
 78 | 
 79 | int
 80 | main()
 81 |     {
 82 |     int			quantum, checktick();
 83 |     int			BytesPerWord;
 84 |     register int	j, k;
 85 |     double		scalar, t, times[4][NTIMES];
 86 | 
 87 |     /* --- SETUP --- determine precision and check timing --- */
 88 | 
 89 |     printf(HLINE);
 90 |     BytesPerWord = sizeof(double);
 91 |     printf("This system uses %d bytes per DOUBLE PRECISION word.\n",
 92 | 	BytesPerWord);
 93 | 
 94 |     printf(HLINE);
 95 |     printf("Array size = %d, Offset = %d\n" , N, OFFSET);
 96 |     printf("Total memory required = %.1f MB.\n",
 97 | 	(3 * N * BytesPerWord) / 1048576.0);
 98 |     printf("Each test is run %d times, but only\n", NTIMES);
 99 |     printf("the *best* time for each is used.\n");
100 | 
101 |     /* Get initial value for system clock. */
102 | 
103 |     for (j=0; j= 1) 
112 | 	printf("Your clock granularity/precision appears to be "
113 | 	    "%d microseconds.\n", quantum);
114 |     else
115 | 	printf("Your clock granularity appears to be "
116 | 	    "less than one microsecond.\n");
117 | 
118 |     t = mysecond();
119 |     for (j = 0; j < N; j++)
120 | 	a[j] = 2.0E0 * a[j];
121 |     t = 1.0E6 * (mysecond() - t);
122 | 
123 |     printf("Each test below will take on the order"
124 | 	" of %d microseconds.\n", (int) t  );
125 |     printf("   (= %d clock ticks)\n", (int) (t/quantum) );
126 |     printf("Increase the size of the arrays if this shows that\n");
127 |     printf("you are not getting at least 20 clock ticks per test.\n");
128 | 
129 |     printf(HLINE);
130 | 
131 |     printf("WARNING -- The above is only a rough guideline.\n");
132 |     printf("For best results, please be sure you know the\n");
133 |     printf("precision of your system timer.\n");
134 |     printf(HLINE);
135 |     
136 |     /*	--- MAIN LOOP --- repeat test cases NTIMES times --- */
137 | 
138 |     scalar = 3.0;
139 |     for (k=0; k
 44 | # include 
 45 | # include 
 46 | # include 
 47 | # include 
 48 | 
 49 | /* INSTRUCTIONS:
 50 |  *
 51 |  *	1) Stream requires a good bit of memory to run.  Adjust the
 52 |  *          value of 'N' (below) to give a 'timing calibration' of 
 53 |  *          at least 20 clock-ticks.  This will provide rate estimates
 54 |  *          that should be good to about 5% precision.
 55 |  */
 56 | 
 57 | # define N	2000000
 58 | # define NTIMES	10
 59 | # define OFFSET	0
 60 | 
 61 | /*
 62 |  *	3) Compile the code with full optimization.  Many compilers
 63 |  *	   generate unreasonably bad code before the optimizer tightens
 64 |  *	   things up.  If the results are unreasonably good, on the
 65 |  *	   other hand, the optimizer might be too smart for me!
 66 |  *
 67 |  *         Try compiling with:
 68 |  *               cc -O stream_omp.c -o stream_omp
 69 |  *
 70 |  *         This is known to work on Cray, SGI, IBM, and Sun machines.
 71 |  *
 72 |  *
 73 |  *	4) Mail the results to mccalpin@cs.virginia.edu
 74 |  *	   Be sure to include:
 75 |  *		a) computer hardware model number and software revision
 76 |  *		b) the compiler flags
 77 |  *		c) all of the output from the test case.
 78 |  * Thanks!
 79 |  *
 80 |  */
 81 | 
 82 | # define HLINE "-------------------------------------------------------------\n"
 83 | 
 84 | # ifndef MIN
 85 | # define MIN(x,y) ((x)<(y)?(x):(y))
 86 | # endif
 87 | # ifndef MAX
 88 | # define MAX(x,y) ((x)>(y)?(x):(y))
 89 | # endif
 90 | 
 91 | static double	a[N+OFFSET],
 92 | 		b[N+OFFSET],
 93 | 		c[N+OFFSET];
 94 | 
 95 | static double	avgtime[4] = {0}, maxtime[4] = {0},
 96 | 		mintime[4] = {FLT_MAX,FLT_MAX,FLT_MAX,FLT_MAX};
 97 | 
 98 | static char	*label[4] = {"Copy:      ", "Scale:     ",
 99 |     "Add:       ", "Triad:     "};
100 | 
101 | static double	bytes[4] = {
102 |     2 * sizeof(double) * N,
103 |     2 * sizeof(double) * N,
104 |     3 * sizeof(double) * N,
105 |     3 * sizeof(double) * N
106 |     };
107 | 
108 | extern double mysecond();
109 | extern void checkSTREAMresults();
110 | #ifdef TUNED
111 | extern void tuned_STREAM_Copy();
112 | extern void tuned_STREAM_Scale(double scalar);
113 | extern void tuned_STREAM_Add();
114 | extern void tuned_STREAM_Triad(double scalar);
115 | #endif
116 | int
117 | main()
118 |     {
119 |     int			quantum, checktick();
120 |     int			BytesPerWord;
121 |     register int	j, k;
122 |     double		scalar, t, times[4][NTIMES];
123 | 
124 |     /* --- SETUP --- determine precision and check timing --- */
125 | 
126 |     printf(HLINE);
127 |     BytesPerWord = sizeof(double);
128 |     printf("This system uses %d bytes per DOUBLE PRECISION word.\n",
129 | 	BytesPerWord);
130 | 
131 |     printf(HLINE);
132 |     printf("Array size = %d, Offset = %d\n" , N, OFFSET);
133 |     printf("Total memory required = %.1f MB.\n",
134 | 	(3.0 * BytesPerWord) * ( (double) N / 1048576.0));
135 |     printf("Each test is run %d times, but only\n", NTIMES);
136 |     printf("the *best* time for each is used.\n");
137 | 
138 | #ifdef _OPENMP
139 |     printf(HLINE);
140 | #pragma omp parallel private(k)
141 |     {
142 |     k = omp_get_num_threads();
143 |     printf ("Number of Threads requested = %i\n",k);
144 |     }
145 | #endif
146 | 
147 |     /* Get initial value for system clock. */
148 | #pragma omp parallel for
149 |     for (j=0; j= 1) 
158 | 	printf("Your clock granularity/precision appears to be "
159 | 	    "%d microseconds.\n", quantum);
160 |     else
161 | 	printf("Your clock granularity appears to be "
162 | 	    "less than one microsecond.\n");
163 | 
164 |     t = mysecond();
165 | #pragma omp parallel for
166 |     for (j = 0; j < N; j++)
167 | 	a[j] = 2.0E0 * a[j];
168 |     t = 1.0E6 * (mysecond() - t);
169 | 
170 |     printf("Each test below will take on the order"
171 | 	" of %d microseconds.\n", (int) t  );
172 |     printf("   (= %d clock ticks)\n", (int) (t/quantum) );
173 |     printf("Increase the size of the arrays if this shows that\n");
174 |     printf("you are not getting at least 20 clock ticks per test.\n");
175 | 
176 |     printf(HLINE);
177 | 
178 |     printf("WARNING -- The above is only a rough guideline.\n");
179 |     printf("For best results, please be sure you know the\n");
180 |     printf("precision of your system timer.\n");
181 |     printf(HLINE);
182 |     
183 |     /*	--- MAIN LOOP --- repeat test cases NTIMES times --- */
184 | 
185 |     scalar = 3.0;
186 |     for (k=0; k
298 | 
299 | double mysecond()
300 | {
301 |         struct timeval tp;
302 |         struct timezone tzp;
303 |         int i;
304 | 
305 |         i = gettimeofday(&tp,&tzp);
306 |         return ( (double) tp.tv_sec + (double) tp.tv_usec * 1.e-6 );
307 | }
308 | 
309 | void checkSTREAMresults ()
310 | {
311 | 	double aj,bj,cj,scalar;
312 | 	double asum,bsum,csum;
313 | 	double epsilon;
314 | 	int	j,k;
315 | 
316 |     /* reproduce initialization */
317 | 	aj = 1.0;
318 | 	bj = 2.0;
319 | 	cj = 0.0;
320 |     /* a[] is modified during timing check */
321 | 	aj = 2.0E0 * aj;
322 |     /* now execute timing loop */
323 | 	scalar = 3.0;
324 | 	for (k=0; k= 0 ? (a) : -(a))
350 | 	epsilon = 1.e-8;
351 | 
352 | 	if (abs(aj-asum)/asum > epsilon) {
353 | 		printf ("Failed Validation on array a[]\n");
354 | 		printf ("        Expected  : %f \n",aj);
355 | 		printf ("        Observed  : %f \n",asum);
356 | 	}
357 | 	else if (abs(bj-bsum)/bsum > epsilon) {
358 | 		printf ("Failed Validation on array b[]\n");
359 | 		printf ("        Expected  : %f \n",bj);
360 | 		printf ("        Observed  : %f \n",bsum);
361 | 	}
362 | 	else if (abs(cj-csum)/csum > epsilon) {
363 | 		printf ("Failed Validation on array c[]\n");
364 | 		printf ("        Expected  : %f \n",cj);
365 | 		printf ("        Observed  : %f \n",csum);
366 | 	}
367 | 	else {
368 | 		printf ("Solution Validates\n");
369 | 	}
370 | }
371 | 
372 | void tuned_STREAM_Copy()
373 | {
374 | 	int j;
375 | #pragma omp parallel for
376 |         for (j=0; j
 9 | 
10 | double mysecond()
11 | {
12 | /* struct timeval { long        tv_sec;
13 |             long        tv_usec;        };
14 | 
15 | struct timezone { int   tz_minuteswest;
16 |              int        tz_dsttime;      };     */
17 | 
18 |         struct timeval tp;
19 |         struct timezone tzp;
20 |         int i;
21 | 
22 |         i = gettimeofday(&tp,&tzp);
23 |         return ( (double) tp.tv_sec + (double) tp.tv_usec * 1.e-6 );
24 | }
25 | 
26 | double mysecond_() {return mysecond();}
27 | 
28 | 


--------------------------------------------------------------------------------
/src/stream/sunos.mk:
--------------------------------------------------------------------------------
1 | stream:
2 | CFLAGS = -O3
3 | FORTRAN = f95
4 | FFLAGS = -03
5 | MEMSIZE=10000000
6 | 


--------------------------------------------------------------------------------
/src/stream/version.mk:
--------------------------------------------------------------------------------
1 | NAME	= stream
2 | VERSION	= 5.10
3 | RELEASE	= 1
4 | 
5 | PKGROOT	= /opt/stream
6 | RPM.FILES = $(PKGROOT)
7 | 


--------------------------------------------------------------------------------
/src/sunos.mk:
--------------------------------------------------------------------------------
1 | SRCDIRS = iozone iperf mpi-tests \
2 | 	  stream sun-ct
3 | 


--------------------------------------------------------------------------------
/src/usersguide/Makefile:
--------------------------------------------------------------------------------
  1 | # 
  2 | # $Id: Makefile,v 1.28 2012/11/27 00:49:01 phil Exp $
  3 | #
  4 | # @Copyright@
  5 | # 
  6 | # 				Rocks(r)
  7 | # 		         www.rocksclusters.org
  8 | # 		         version 6.2 (SideWinder)
  9 | # 		         version 7.0 (Manzanita)
 10 | # 
 11 | # Copyright (c) 2000 - 2017 The Regents of the University of California.
 12 | # All rights reserved.	
 13 | # 
 14 | # Redistribution and use in source and binary forms, with or without
 15 | # modification, are permitted provided that the following conditions are
 16 | # met:
 17 | # 
 18 | # 1. Redistributions of source code must retain the above copyright
 19 | # notice, this list of conditions and the following disclaimer.
 20 | # 
 21 | # 2. Redistributions in binary form must reproduce the above copyright
 22 | # notice unmodified and in its entirety, this list of conditions and the
 23 | # following disclaimer in the documentation and/or other materials provided 
 24 | # with the distribution.
 25 | # 
 26 | # 3. All advertising and press materials, printed or electronic, mentioning
 27 | # features or use of this software must display the following acknowledgement: 
 28 | # 
 29 | # 	"This product includes software developed by the Rocks(r)
 30 | # 	Cluster Group at the San Diego Supercomputer Center at the
 31 | # 	University of California, San Diego and its contributors."
 32 | # 
 33 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3,
 34 | # neither the name or logo of this software nor the names of its
 35 | # authors may be used to endorse or promote products derived from this
 36 | # software without specific prior written permission.  The name of the
 37 | # software includes the following terms, and any derivatives thereof:
 38 | # "Rocks", "Rocks Clusters", and "Avalanche Installer".  For licensing of 
 39 | # the associated name, interested parties should contact Technology 
 40 | # Transfer & Intellectual Property Services, University of California, 
 41 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910, 
 42 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu
 43 | # 
 44 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
 45 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 46 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 47 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
 48 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 49 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 50 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
 51 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 52 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
 53 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
 54 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 55 | # 
 56 | # @Copyright@
 57 | #
 58 | # $Log: Makefile,v $
 59 | # Revision 1.28  2012/11/27 00:49:01  phil
 60 | # Copyright Storm for Emerald Boa
 61 | #
 62 | # Revision 1.27  2012/05/06 05:49:10  phil
 63 | # Copyright Storm for Mamba
 64 | #
 65 | # Revision 1.26  2011/07/23 02:31:07  phil
 66 | # Viper Copyright
 67 | #
 68 | # Revision 1.25  2010/09/07 23:53:21  bruno
 69 | # star power for gb
 70 | #
 71 | # Revision 1.24  2010/03/25 17:08:56  bruno
 72 | # doc bug
 73 | #
 74 | # Revision 1.23  2009/05/01 19:07:19  mjk
 75 | # chimi con queso
 76 | #
 77 | # Revision 1.22  2008/10/18 00:56:10  mjk
 78 | # copyright 5.1
 79 | #
 80 | # Revision 1.21  2008/10/15 20:13:05  mjk
 81 | # - more changes to build outside of the tree
 82 | # - removed some old fds-only targets
 83 | #
 84 | # Revision 1.20  2008/04/14 22:31:08  bruno
 85 | # new HPC roll user's guide
 86 | #
 87 | # Revision 1.15  2008/03/06 23:41:29  mjk
 88 | # copyright storm on
 89 | #
 90 | # Revision 1.14  2007/06/23 04:03:17  mjk
 91 | # mars hill copyright
 92 | #
 93 | # Revision 1.13  2006/09/19 18:45:24  mjk
 94 | # fix roll manual name
 95 | #
 96 | # Revision 1.12  2006/09/14 23:54:35  mjk
 97 | # *** empty log message ***
 98 | #
 99 | # Revision 1.11  2006/09/11 22:46:54  mjk
100 | # monkey face copyright
101 | #
102 | # Revision 1.10  2006/09/11 22:23:14  bruno
103 | # no more jpg images
104 | #
105 | # Revision 1.9  2006/08/10 00:09:22  mjk
106 | # 4.2 copyright
107 | #
108 | # Revision 1.8  2005/10/18 20:20:30  bruno
109 | # automatically set the copyright date
110 | #
111 | # Revision 1.7  2005/10/12 18:08:24  mjk
112 | # final copyright for 4.1
113 | #
114 | # Revision 1.6  2005/09/16 01:02:04  mjk
115 | # updated copyright
116 | #
117 | # Revision 1.5  2005/05/24 21:21:38  mjk
118 | # update copyright, release is not any closer
119 | #
120 | # Revision 1.4  2005/04/05 20:28:22  nadya
121 | # move logic of creating rocks.dsl, rocks.css and stylesheet-images to Rules.mk
122 | # Add target predoc in order to make docs in a local directory
123 | #
124 | # Revision 1.3  2004/10/21 01:31:52  mjk
125 | # *** empty log message ***
126 | #
127 | # Revision 1.2  2004/10/21 01:21:13  mjk
128 | # fix version
129 | #
130 | # Revision 1.1  2004/05/20 23:21:28  bruno
131 | # added documentation
132 | #
133 | #
134 | 
135 | REDHAT.ROOT     = $(PWD)/../../
136 | 
137 | -include $(ROCKSROOT)/etc/Rules.mk
138 | include Rules.mk
139 | 
140 | default: $(NAME).spec ../$(NAME)-$(VERSION).tar.gz
141 | 
142 | html: predoc
143 | 	jw --backend html --dsl $(PWD)/rocks.dsl#html index.sgml 
144 | 
145 | pdf: predoc
146 | 	jw --backend pdf --dsl $(PWD)/rocks.dsl#print index.sgml
147 | 
148 | build: html pdf
149 | 
150 | install:: build
151 | 	mkdir -p $(ROOT)/$(PKGROOT)/images
152 | 	mkdir -p $(ROOT)/$(PKGROOT)/stylesheet-images
153 | 	install -ma+r index.pdf 	$(ROOT)/$(PKGROOT)/$(NAME).pdf
154 | 	install -ma+r *.html    	$(ROOT)/$(PKGROOT)/
155 | 	install -ma+r images/*.png	$(ROOT)/$(PKGROOT)/images/
156 | 	install -ma+r stylesheet-images/{*.gif,*.png} \
157 | 		$(ROOT)/$(PKGROOT)/stylesheet-images/
158 | 	install -ma+r rocks.css $(ROOT)/$(PKGROOT)/
159 | 
160 | clean::
161 | 	rm -f *.html
162 | 	rm -f index.pdf
163 | 
164 | 
165 | 


--------------------------------------------------------------------------------
/src/usersguide/appendix.sgml:
--------------------------------------------------------------------------------
  1 | 
 31 | 
 32 | 
 33 | &rocks; Copyright
 34 | 
 35 | 
 36 | &rockscopyright;
 37 | 
 38 | 
 39 | 
 40 | 
 41 | 
 42 | Third Party Copyrights and Licenses
 43 | 
 44 | &source-roll-copyright-disclaimer;
 45 | 
 46 | 
iozone 47 | Original Author: William Norcott (wnorcott@us.oracle.com) 48 | 4 Dunlap Drive 49 | Nashua, NH 03060 50 | 51 | Enhancements: Don Capps (capps@iozone.org) 52 | 7417 Crenshaw 53 | Plano, TX 75025 54 | 55 | Copyright 1991, 1992, 1994, 1998, 1999, 2002 William D. Norcott 56 | 57 | License to freely use and distribute this software is hereby granted 58 | by the author, subject to the condition that this copyright notice 59 | remains intact. The author retains the exclusive right to publish 60 | derivative works based on this work, including, but not limited to, 61 | revised versions of this work. 62 |
63 | 64 |
iperf 65 | 77 | Mark Gates 78 | Ajay Tirumala 79 | Jim Ferguson 80 | Jon Dugan 81 | Feng Qin 82 | Kevin Gibbs 83 | National Laboratory for Applied Network Research 84 | National Center for Supercomputing Applications 85 | University of Illinois at Urbana-Champaign 86 | http://www.ncsa.uiuc.edu 87 | 88 | Permission is hereby granted, free of charge, to any person obtaining a 89 | copy of this software (Iperf) and associated documentation files (the 90 | "Software"), to deal in the Software without restriction, including 91 | without limitation the rights to use, copy, modify, merge, publish, 92 | distribute, sublicense, and/or sell copies of the Software, and to 93 | permit persons to whom the Software is furnished to do so, subject to 94 | the following conditions: 95 | 96 | * Redistributions of source code must retain the above copyright 97 | notice, this list of conditions and the following disclaimers. 98 | 99 | * Redistributions in binary form must reproduce the above copyright 100 | notice, this list of conditions and the following disclaimers in 101 | the documentation and/or other materials provided with the 102 | distribution. 103 | 104 | * Neither the names of the University of Illinois, NCSA, nor the 105 | names of its contributors may be used to endorse or promote 106 | products derived from this Software without specific prior written 107 | permission. 108 | 109 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 110 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 111 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 112 | IN NO EVENT SHALL THE CONTIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 113 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 114 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 115 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 116 | ]]> 117 |
118 | 119 |
MPICH 120 | 165 |
166 | 167 |
MPICH2 168 | 206 |
207 | 208 |
OpenMPI 209 | 276 |
277 | 278 |
PVM 279 | 306 |
307 | 308 |
stream 309 | 339 |
340 | 341 |
342 | -------------------------------------------------------------------------------- /src/usersguide/images/hpc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocksclusters/hpc/28a3cf574eb892c85a834613d28588bce0035fac/src/usersguide/images/hpc.png -------------------------------------------------------------------------------- /src/usersguide/index.sgml: -------------------------------------------------------------------------------- 1 | 26 | 28 | %entities; 29 | ]> 30 | 31 | 32 | 33 | 34 | &roll-hpc; Users Guide 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | &document-version; 45 | &document-pubdate; 46 | 47 | &document-year; 48 | &document-copyright; 49 | 50 | 51 | 52 | (PDF version) 53 | 54 | 55 | 56 | 57 | This document is subject to the &rocks; License 58 | (see ). 59 | 60 | 61 | 62 | 63 | 64 | &source-preface; 65 | &source-roll-overview; 66 | &source-installing; 67 | &source-using; 68 | &source-appendix; 69 | 70 | 71 | -------------------------------------------------------------------------------- /src/usersguide/installing.sgml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Installing 5 | 6 | &source-roll-installing-standard; 7 | 8 | &source-roll-installing-onthefly; 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/usersguide/interactive.sgml: -------------------------------------------------------------------------------- 1 |
2 | Environment Modules for OpenMPI 3 | 4 | 5 | As of Rocks 5.5 and 6.0 (Mamba), Environment Modules are utilized to control 6 | MPI path names. By default the rocks-openmpi module is loaded and 7 | is openmpi compiled with gnu compiler and the ethernet device. 8 | 9 | 10 | 11 | 12 | 13 | 14 | To see the currently loaded modules: 15 | 16 | 17 | 18 | % module list 19 | Currently Loaded Modulefiles: 20 | 1) rocks-openmpi 21 | % 22 | 23 | 24 | 25 | 26 | 27 | To see available modules: 28 | 29 | 30 | 31 | % module avail 32 | ------------------------ /usr/share/Modules/modulefiles ------------------------ 33 | dot module-info null use.own 34 | module-cvs modules rocks-openmpi 35 | 36 | ------------------------ /usr/share/Modules/modulefiles ------------------------ 37 | dot module-info null use.own 38 | module-cvs modules rocks-openmpi 39 | % 40 | 41 | 42 | 43 | 44 | 45 | 46 | To NOT load the Rocks default module Definition. Set the environment 47 | variable ROCKS_MODULE_USER_DEF to a non-zero string. 48 | 49 | 50 | 51 | export ROCKS_USER_MODULE_DEF=True 52 | 53 | 54 | if modules are already loaded, then ROCKS_USER_MODULE_DEF will not 55 | unload already loaded modules. If you do not want the Rocks default then set the above definition in your $HOME/.bashrc or $HOME/.cshrc files 56 | 57 | 58 | 59 | 60 | 61 |
62 | 63 |
64 | Using mpirun from OpenMPI 65 | 66 | 67 | To interactively launch a test OpenMPI program on two processors: 68 | 69 | 70 | 71 | 72 | 73 | 74 | Create a file in your home directory named 75 | machines, 76 | and put two entries in it, such as: 77 | 78 | 79 | 80 | compute-0-0 81 | compute-0-1 82 | 83 | 84 | 85 | 86 | 87 | Now launch the job from the frontend: 88 | 89 | 90 | 91 | $ ssh-agent $SHELL 92 | $ ssh-add 93 | $ /opt/openmpi/bin/mpirun -np 2 -machinefile machines /opt/mpi-tests/bin/mpi-ring 94 | 95 | 96 | 97 | 98 | 99 | You must run MPI programs as a regular user (that is, not root). 100 | 101 | 102 | 103 | If you don't have a user account on the cluster, create one 104 | for yourself, and propogate the information to the compute nodes with: 105 | 106 | 107 | # useradd username 108 | # rocks sync users 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 |
119 | 120 | 121 |
122 | Using mpirun from MPICH 123 | 124 | 125 | To interactively launch a test MPICH program on two processors: 126 | 127 | 128 | 129 | 130 | 131 | 132 | Create a file in your home directory named 133 | machines, 134 | and put two entries in it, such as: 135 | 136 | 137 | 138 | compute-0-0 139 | compute-0-1 140 | 141 | 142 | 143 | 144 | 145 | Compile a test program using the MPICH environment: 146 | 147 | 148 | 149 | $ cd $HOME 150 | $ mkdir mpich-test 151 | $ cd mpich-test 152 | $ cp /opt/mpi-tests/src/mpi-ring.c . 153 | $ /opt/mpich/gnu/bin/mpicc -o mpi-ring mpi-ring.c -lm 154 | 155 | 156 | 157 | 158 | 159 | Now launch the job from the frontend: 160 | 161 | 162 | 163 | $ ssh-agent $SHELL 164 | $ ssh-add 165 | $ /opt/mpich/gnu/bin/mpirun -nolocal -np 2 -machinefile $HOME/machines \ 166 | $HOME/mpich-test/mpi-ring 167 | 168 | 169 | 170 | 171 | 172 | You must run MPI programs as a regular user (that is, not root). 173 | 174 | 175 | 176 | If you don't have a user account on the cluster, create one 177 | for yourself, and propogate the information to the compute nodes with: 178 | 179 | 180 | # useradd username 181 | # rocks sync users 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 |
192 | 193 | -------------------------------------------------------------------------------- /src/usersguide/preface.sgml: -------------------------------------------------------------------------------- 1 | 2 | Preface 3 | 4 | 5 | 6 | The primary purpose of the HPC Roll is to provide configured software 7 | tools that can be used to run parallel applications on your cluster. 8 | 9 | 10 | 11 | 12 | The following software packages are included in the HPC Roll: 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | MPI over ethernet environments (OpenMPI, MPICH, MPICH2) 21 | 22 | 23 | 24 | 25 | 26 | PVM 27 | 28 | 29 | 30 | 31 | 32 | Benchmarks (stream, iperf, IOzone) 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /src/usersguide/using.sgml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Using 4 | 5 | &source-interactive; 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/usersguide/version.mk: -------------------------------------------------------------------------------- 1 | NAME = roll-$(ROLL)-usersguide 2 | RELEASE = 0 3 | RPM.ARCH = noarch 4 | PKGROOT = /var/www/html/roll-documentation/hpc/$(VERSION) 5 | 6 | SUMMARY_COMPATIBLE = $(VERSION) 7 | SUMMARY_MAINTAINER = Rocks Group 8 | SUMMARY_ARCHITECTURE = i386, x86_64 9 | 10 | ROLL_REQUIRES = base kernel os 11 | ROLL_CONFLICTS = 12 | 13 | RPM.FILES = $(PKGROOT) 14 | -------------------------------------------------------------------------------- /version.mk: -------------------------------------------------------------------------------- 1 | ROLLNAME = hpc 2 | RELEASE = 0 3 | COLOR = green 4 | 5 | REDHAT.ROOT = $(PWD) 6 | --------------------------------------------------------------------------------