Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
a7fce8c9
Commit
a7fce8c9
authored
13 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Update build notes for use with GIT, not SVN
parent
66f39529
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
BUILD.NOTES
+34
-30
34 additions, 30 deletions
BUILD.NOTES
with
34 additions
and
30 deletions
BUILD.NOTES
+
34
−
30
View file @
a7fce8c9
...
@@ -23,9 +23,11 @@ then check-in the new Makefile.am and Makefile.in files
...
@@ -23,9 +23,11 @@ then check-in the new Makefile.am and Makefile.in files
Here is a step-by-step HOWTO for creating a new release of SLURM on a
Here is a step-by-step HOWTO for creating a new release of SLURM on a
Linux cluster (See BlueGene and AIX specific notes below for some differences).
Linux cluster (See BlueGene and AIX specific notes below for some differences).
0. svn co https://eris.llnl.gov/svn/slurm/trunk slurm
0. Get current copies of SLURM and buildfarm
svn co https://eris.llnl.gov/svn/chaos/private/buildfarm/trunk buildfarm
> git clone https://<user_name>@github.com/chaos/slurm.git
put the buildfarm directory in your search path
> svn co https://eris.llnl.gov/svn/chaos/private/buildfarm/trunk buildfarm
place the buildfarm directory in your search path
> export PATH=~/buildfarm:$PATH
1. Update NEWS and META files for the new release. In the META file,
1. Update NEWS and META files for the new release. In the META file,
the API, Major, Minor, Micro, Version, and Release fields must all
the API, Major, Minor, Micro, Version, and Release fields must all
by up-to-date. **** DON'T UPDATE META UNTIL RIGHT BEFORE THE TAG ****
by up-to-date. **** DON'T UPDATE META UNTIL RIGHT BEFORE THE TAG ****
...
@@ -35,39 +37,36 @@ Linux cluster (See BlueGene and AIX specific notes below for some differences).
...
@@ -35,39 +37,36 @@ Linux cluster (See BlueGene and AIX specific notes below for some differences).
files, but not to code.
files, but not to code.
- this is a prerelease (Release = 0.preX)
- this is a prerelease (Release = 0.preX)
2. Tag the repository with the appropriate name for the new version.
2. Tag the repository with the appropriate name for the new version.
svn copy https://eris.llnl.gov/svn/slurm/trunk \
> git tag -a slurm-2-3-0-0-pre5 -m "create tag v2.3.0-pre5"
https://eris.llnl.gov/svn/slurm/tags/slurm-1-2-0-0-pre3 \
> git push --tags
-m "description"
3. Use the rpm make target to create the new RPMs. This requires a .rpmmacros
3. Use the rpm make target to create the new RPMs. This requires a .rpmmacros
(.rpmrc for newer versions of rpmbuild) file containing:
(.rpmrc for newer versions of rpmbuild) file containing:
%_slurm_sysconfdir /etc/slurm
%_slurm_sysconfdir /etc/slurm
%_with_debug 1
%_with_debug 1
%_with_sgijob 1
%_with_sgijob 1
%_with_elan 1 (ONLY ON SYSTEMS WITH ELAN SWITCH)
%_with_elan 1 (ONLY ON SYSTEMS WITH ELAN SWITCH)
I usually build with using the following syntax:
Build using the following syntax:
build -s https://eris.llnl.gov/svn/slurm/tags/slurm-1-2-0-0-pre3
> build --snapshot -s <local_dir> OR
> build --nosnapshot -s <local_dir>
--nosnapshot will name the tar-ball and RPMs based upon the META file
--snapshot will name the tar-ball and RPMs based upon the META file plus a
timestamp
4. Remove the RPMs that we don't want:
4. Remove the RPMs that we don't want:
rm -f slurm-perlapi*rpm slurm-torque*rpm
>
rm -f slurm-perlapi*rpm slurm-torque*rpm
5. Move the RPMs to
5. Move the RPMs to
/usr/local/admin/rpms/llnl/RPMS-RHEL4/x86_64 (odevi, or gauss)
/usr/local/admin/rpms/llnl/RPMS-RHEL4/x86_64 (odevi, or gauss)
/usr/local/admin/rpms/llnl/RPMS-RHEL4/i386/ (adevi)
/usr/local/admin/rpms/llnl/RPMS-RHEL4/i386/ (adevi)
/usr/local/admin/rpms/llnl/RPMS-RHEL4/ia64/ (tdevi)
/usr/local/admin/rpms/llnl/RPMS-RHEL4/ia64/ (tdevi)
send an announcement email (with the latest entry from the NEWS
send an announcement email (with the latest entry from the NEWS
file) out to linux-admin@lists.llnl.gov.
file) out to linux-admin@lists.llnl.gov.
6. Copy tagged bzip file (e.g. slurm-0.6.0-0.pre3.bz2) to FTP server
6. Copy bzip file to sourceforge.net using their web interface
for external SLURM users.
7. Copy bzip file and rpms (including src.rpm) to sourceforge.net:
ncftp upload.sf.net
cd upload
put filename
Use SourceForge admin tool to add new release, including changelog.
BlueGene build notes:
BlueGene build notes:
0. If on a bgp system and you want sview export these variables
0. If on a bgp system and you want sview export these variables
export CFLAGS="-I/opt/gnome/lib/gtk-2.0/include -I/opt/gnome/lib/glib-2.0/include $CFLAGS"
>
export CFLAGS="-I/opt/gnome/lib/gtk-2.0/include -I/opt/gnome/lib/glib-2.0/include $CFLAGS"
export LIBS="-L/usr/X11R6/lib64 $LIBS"
>
export LIBS="-L/usr/X11R6/lib64 $LIBS"
export CMD_LDFLAGS='-L/usr/X11R6/lib64'
>
export CMD_LDFLAGS='-L/usr/X11R6/lib64'
export PKG_CONFIG_PATH="/opt/gnome/lib64/pkgconfig/:$PKG_CONFIG_PATH"
>
export PKG_CONFIG_PATH="/opt/gnome/lib64/pkgconfig/:$PKG_CONFIG_PATH"
1. Use the rpm make target to create the new RPMs. This requires a .rpmmacros
1. Use the rpm make target to create the new RPMs. This requires a .rpmmacros
(.rpmrc for newer versions of rpmbuild) file containing:
(.rpmrc for newer versions of rpmbuild) file containing:
%_prefix /usr
%_prefix /usr
...
@@ -76,13 +75,17 @@ BlueGene build notes:
...
@@ -76,13 +75,17 @@ BlueGene build notes:
%_without_pam 1
%_without_pam 1
%_with_debug 1
%_with_debug 1
Build on Service Node with using the following syntax
Build on Service Node with using the following syntax
rpmbuild -ta slurm-...bz2
>
rpmbuild -ta slurm-...bz2
The RPM files get written to the directory
The RPM files get written to the directory
/usr/src/packages/RPMS/ppc64
/usr/src/packages/RPMS/ppc64
To build and run on AIX:
To build and run on AIX:
0. svn co https://eris.llnl.gov/svn/slurm/trunk slurm
0. Get current copies of SLURM and buildfarm
svn co https://eris.llnl.gov/svn/buildfarm/trunk buildfarm
> git clone https://<user_name>@github.com/chaos/slurm.git
> svn co https://eris.llnl.gov/svn/chaos/private/buildfarm/trunk buildfarm
put the buildfarm directory in your search path
> export PATH=~/buildfarm:$PATH
Put the buildfarm directory in your search path
Put the buildfarm directory in your search path
Also, you will need several commands to appear FIRST in your PATH:
Also, you will need several commands to appear FIRST in your PATH:
...
@@ -93,10 +96,11 @@ To build and run on AIX:
...
@@ -93,10 +96,11 @@ To build and run on AIX:
I do this by making symlinks to those commands in the buildfarm directory,
I do this by making symlinks to those commands in the buildfarm directory,
then making the buildfarm directory the first one in my PATH.
then making the buildfarm directory the first one in my PATH.
Also, make certain that the "proctrack" rpm is installed.
Also, make certain that the "proctrack" rpm is installed.
1. export OBJECT_MODE=32
1. Export some environment variables
export PKG_CONFIG="/usr/bin/pkg-config"
> export OBJECT_MODE=32
> export PKG_CONFIG="/usr/bin/pkg-config"
2. Build with:
2. Build with:
./configure --enable-debug --prefix=/opt/freeware \
>
./configure --enable-debug --prefix=/opt/freeware \
--sysconfdir=/opt/freeware/etc/slurm \
--sysconfdir=/opt/freeware/etc/slurm \
--with-ssl=/opt/freeware --with-munge=/opt/freeware \
--with-ssl=/opt/freeware --with-munge=/opt/freeware \
--with-proctrack=/opt/freeware
--with-proctrack=/opt/freeware
...
@@ -120,10 +124,10 @@ To build and run on AIX:
...
@@ -120,10 +124,10 @@ To build and run on AIX:
%with_proctrack "--with-proctrack=/opt/freeware"
%with_proctrack "--with-proctrack=/opt/freeware"
Log in to the machine "uP". uP is currently the lowest-common-denominator
Log in to the machine "uP". uP is currently the lowest-common-denominator
AIX machine.
AIX machine.
CC=/usr/bin/gcc build -s https://eris.llnl.gov/svn/slurm/tags/slurm-1-2-0-0-pre3
>
CC=/usr/bin/gcc build -s https://eris.llnl.gov/svn/slurm/tags/slurm-1-2-0-0-pre3
4. export MP_RMLIB=./slurm_ll_api.so
4.
>
export MP_RMLIB=./slurm_ll_api.so
export CHECKPOINT=yes
>
export CHECKPOINT=yes
5. poe hostname -rmpool debug
5.
>
poe hostname -rmpool debug
6. To debug, set SLURM_LL_API_DEBUG=3 before running poe - will create a file
6. To debug, set SLURM_LL_API_DEBUG=3 before running poe - will create a file
/tmp/slurm.*
/tmp/slurm.*
It can also be helpful to use poe options "-ilevel 6 -pmdlog yes"
It can also be helpful to use poe options "-ilevel 6 -pmdlog yes"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment