Ticket 11308 - Question on 20.11 release notes regarding SPANK plugins
Summary: Question on 20.11 release notes regarding SPANK plugins
Status: RESOLVED INFOGIVEN
Alias: None
Product: Slurm
Classification: Unclassified
Component: Documentation (show other tickets)
Version: 20.11.5
Hardware: Linux Linux
: 4 - Minor Issue
Assignee: Marshall Garey
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2021-04-06 16:07 MDT by Felix Abecassis
Modified: 2021-08-19 10:32 MDT (History)
2 users (show)

See Also:
Site: NVIDIA (PSLA)
Slinky Site: ---
Alineos Sites: ---
Atos/Eviden Sites: ---
Confidential Site: ---
Coreweave sites: ---
Cray Sites: ---
DS9 clusters: ---
Google sites: ---
HPCnow Sites: ---
HPE Sites: ---
IBM Sites: ---
NOAA SIte: ---
NoveTech Sites: ---
Nvidia HWinf-CS Sites: ---
OCF Sites: ---
Recursion Pharma Sites: ---
SFW Sites: ---
SNIC sites: ---
Tzag Elita Sites: ---
Linux Distro: ---
Machine Name:
CLE Version:
Version Fixed:
Target Release: ---
DevPrio: ---
Emory-Cloud Sites: ---


Attachments

Note You need to log in before you can comment on or make changes to this ticket.
Description Felix Abecassis 2021-04-06 16:07:11 MDT
This one should be very quick to resolve.

When looking at RELEASE_NOTES on the slurm-20.11 branch, we noticed the following text: https://github.com/SchedMD/slurm/blob/80f9ae058595742e5967ef62218aa6e9bcc8e550/RELEASE_NOTES#L18-L19

> If using SPANK plugins that use the Slurm APIs, they should be recompiled when
upgrading Slurm to a new major release.

Could you clarify what is meant here? It seems to me that the SPANK interface has been ABI forward-compatible for a while now, is there a compatibility breakage that occurred with 20.11, or perhaps a general concern, thus warranting this recommendation?

Or perhaps the "Slurm APIs" refer to plugins using Slurm functions that are outside of the SPANK API and therefore not ABI stable? e.g. functions from slurm.h
Comment 1 Marshall Garey 2021-04-07 10:12:01 MDT
Yes, Slurm APIs referes to the functions found in the slurm.h file, specifically the ones starting with "slurm". For example, the function "slurm_init()" is a Slurm API that needs to be called before any other Slurm API. So, Look out for SPANK plugins calling any function called "slurm_*" and make sure those are recompiled.

The sentence you referred to in RELEASE_NOTES isn't specific to 20.11. It's always in RELEASE_NOTES.

"If using SPANK plugins that use the Slurm APIs, they should be recompiled when
upgrading Slurm to a new major release."

The parts of RELEASE_NOTES that are specific to each version:

* Everything below that sentence (starting with "NOTE")
* The version numbers in the part discussing what versions are compatible with the latest release, since obviously they will change on every release

Although you man not need to recompile SPANK plugins that don't call "slurm_*" functions, I recommend recompiling them anyway on every major version upgrade.
Comment 2 Felix Abecassis 2021-04-07 10:32:35 MDT
> So, Look out for SPANK plugins calling any function called "slurm_*" and make sure those are recompiled.

Well, except for the SPANK logging functions :)
https://github.com/SchedMD/slurm/blob/slurm-20-11-5-1/slurm/spank.h#L412-L431

Thanks for the answer, I didn't realize there was SPANK plugins out there using the slurm.h API in addition to the spank.h API.

Closing as INFOGIVEN.