pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

slurm-wlm-devel: Experimental package for latest SLURM version



Module Name:	pkgsrc-wip
Committed By:	Jason W Bacon <bacon%NetBSD.org@localhost>
Pushed By:	outpaddling
Date:		Wed Jan 20 19:32:46 2021 -0600
Changeset:	1262ac3810b2281a3cbaf9629ef5fb6354b6e53c

Added Files:
	slurm-wlm-devel/DESCR
	slurm-wlm-devel/Makefile
	slurm-wlm-devel/PLIST
	slurm-wlm-devel/PLIST.Linux
	slurm-wlm-devel/distinfo
	slurm-wlm-devel/files/linux-slurm-enable
	slurm-wlm-devel/files/slurmctld.sh
	slurm-wlm-devel/files/slurmd.sh
	slurm-wlm-devel/patches/patch-etc_init.d.slurm.in
	slurm-wlm-devel/patches/patch-src_plugins_task_affinity_affinity.h
	slurm-wlm-devel/patches/patch-src_slurmd_common_task__plugin.h
	slurm-wlm-devel/patches/patch-src_slurmd_slurmd_slurmd.h
	slurm-wlm-devel/patches/patch-src_slurmd_slurmstepd_io.c
	slurm-wlm-devel/patches/patch-src_slurmd_slurmstepd_task.c

Log Message:
slurm-wlm-devel: Experimental package for latest SLURM version

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=1262ac3810b2281a3cbaf9629ef5fb6354b6e53c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 slurm-wlm-devel/DESCR                              |   7 +
 slurm-wlm-devel/Makefile                           |  95 ++++
 slurm-wlm-devel/PLIST                              | 499 +++++++++++++++++++++
 slurm-wlm-devel/PLIST.Linux                        |   6 +
 slurm-wlm-devel/distinfo                           |  14 +
 slurm-wlm-devel/files/linux-slurm-enable           |  64 +++
 slurm-wlm-devel/files/slurmctld.sh                 |  15 +
 slurm-wlm-devel/files/slurmd.sh                    |  17 +
 slurm-wlm-devel/patches/patch-etc_init.d.slurm.in  |  16 +
 .../patch-src_plugins_task_affinity_affinity.h     |  17 +
 .../patches/patch-src_slurmd_common_task__plugin.h |  23 +
 .../patches/patch-src_slurmd_slurmd_slurmd.h       |  23 +
 .../patches/patch-src_slurmd_slurmstepd_io.c       |  14 +
 .../patches/patch-src_slurmd_slurmstepd_task.c     |  19 +
 14 files changed, 829 insertions(+)

diffs:
diff --git a/slurm-wlm-devel/DESCR b/slurm-wlm-devel/DESCR
new file mode 100644
index 0000000000..655b1afe27
--- /dev/null
+++ b/slurm-wlm-devel/DESCR
@@ -0,0 +1,7 @@
+SLURM is an open-source resource manager designed for Linux clusters of
+all sizes. It provides three key functions. First it allocates exclusive
+and/or non-exclusive access to resources (computer nodes) to users for some
+duration of time so they can perform work. Second, it provides a framework
+for starting, executing, and monitoring work (typically a parallel job) on
+a set of allocated nodes. Finally, it arbitrates contention for resources
+by managing a queue of pending work.
diff --git a/slurm-wlm-devel/Makefile b/slurm-wlm-devel/Makefile
new file mode 100644
index 0000000000..63460136fc
--- /dev/null
+++ b/slurm-wlm-devel/Makefile
@@ -0,0 +1,95 @@
+# $NetBSD: Makefile,v 1.6 2018/08/22 09:46:10 wiz Exp $
+
+DISTNAME=	slurm-20.11.2
+PKGNAME=	${DISTNAME:S/-/-wlm-/}
+CATEGORIES=	parallel
+MASTER_SITES=	https://download.schedmd.com/slurm/
+MASTER_SITES+=	http://www.schedmd.com/download/latest/
+EXTRACT_SUFX=	.tar.bz2
+
+MAINTAINER=	bacon%NetBSD.org@localhost
+HOMEPAGE=	https://www.schedmd.com/
+COMMENT=	Simple Linux Utility for Resource Management
+
+LICENSE=	gnu-gpl-v2
+
+BUILD_DEPENDS+=	man2html-[0-9]*:../../textproc/man2html
+
+GNU_CONFIGURE=	yes
+USE_LANGUAGES=	c c++
+USE_LIBTOOL=	yes
+USE_TOOLS+=	bash perl pkg-config
+
+CONFIG_SHELL=		bash
+CONFIGURE_ARGS+=	--bindir=${PREFIX}/bin
+CONFIGURE_ARGS+=	--htmldir=${PREFIX}/share/doc/${PKGNAME_NOREV}/html
+CONFIGURE_ARGS+=	--with-munge=${BUILDLINK_PREFIX.munge}
+CONFIGURE_ARGS+=	--with-hwloc=${PREFIX}
+CONFIGURE_ARGS+=	--with-json=${PREFIX}
+CONFIGURE_ARGS+=	--with-libssh2=${PREFIX}
+# Future: Enable task affinity code is fully patched for NetBSD
+# CONFIGURE_ARGS.NetBSD+=	ac_cv_func_sched_setaffinity=yes
+
+REPLACE_PYTHON=		doc/html/shtml2html.py
+REPLACE_PYTHON+=	doc/man/man2html.py
+REPLACE_PYTHON+=	testsuite/expect/regression.py
+REPLACE_PYTHON+=	testsuite/expect/driveregress.py
+REPLACE_PYTHON+=	contribs/cray/csm/slurmconfgen_smw.py
+
+PKG_GROUPS=		slurm
+PKG_USERS=		slurm:slurm
+
+PKG_GECOS.slurm=	SLURM user
+PKG_SHELL.slurm=	${NOLOGIN}
+
+RCD_SCRIPTS+=		slurmd slurmctld
+
+SUBST_CLASSES+=		linuxinit
+SUBST_STAGE.linuxinit=	pre-configure
+SUBST_FILES.linuxinit=	etc/init.d.slurm.in
+SUBST_SED.linuxinit=	-e 's|^exec_prefix=|&${PREFIX}|'
+SUBST_SED.linuxinit+=	-e 's|^prefix=|&${PREFIX}|'
+SUBST_SED.linuxinit+=	-e 's|@bindir@|$${exec_prefix}/bin|'
+SUBST_SED.linuxinit+=	-e 's|@sbindir@|$${exec_prefix}/sbin|'
+SUBST_SED.linuxinit+=	-e 's|@libdir@|$${exec_prefix}/lib|'
+SUBST_SED.linuxinit+=	-e 's|@sysconfdir@|$${prefix}/etc|'
+
+# Config flag for disabling gtk does not work, so set an impossible requirement
+SUBST_CLASSES+=		gtk
+SUBST_STAGE.gtk=	pre-configure
+SUBST_SED.gtk=		-e 's|min_gtk_version=.*|min_gtk_version=2000.0.0|'
+SUBST_FILES.gtk=	configure
+
+SUBST_CLASSES+=		prefix
+SUBST_STAGE.prefix=	pre-configure
+SUBST_SED.prefix=	-e 's|/usr/local|${PREFIX}|g'
+SUBST_SED.prefix+=	-e 's|/opt/local /sw||g'
+SUBST_FILES.prefix=	configure
+
+SUBST_CLASSES+=		make-ex
+SUBST_STAGE.make-ex=	post-install
+SUBST_FILES.make-ex=	etc/Makefile
+SUBST_SED.make-ex=	-e 's|${WRKDIR}|<build-prefix>|g'
+
+INSTALLATION_DIRS+=	share/examples/slurm
+
+post-install:
+	${INSTALL_DATA} ${WRKSRC}/etc/* ${DESTDIR}${PREFIX}/share/examples/slurm
+	${RM} -f ${DESTDIR}${PREFIX}/share/examples/slurm/init.d.slurm.in.orig
+
+.include "../../www/curl/buildlink3.mk"
+.include "../../lang/python/tool.mk"
+.include "../../security/munge/buildlink3.mk" # optional
+.include "../../parallel/hwloc/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../devel/hdf5/buildlink3.mk"
+.include "../../devel/readline/buildlink3.mk"
+.include "../../archivers/lz4/buildlink3.mk"
+.include "../../textproc/json-c/buildlink3.mk"
+.include "../../security/libssh2/buildlink3.mk"
+.include "../../lang/lua/buildlink3.mk"
+.include "../../mk/mysql.buildlink3.mk"
+.include "../../mk/dlopen.buildlink3.mk"
+.include "../../mk/curses.buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/slurm-wlm-devel/PLIST b/slurm-wlm-devel/PLIST
new file mode 100644
index 0000000000..7b38d950d0
--- /dev/null
+++ b/slurm-wlm-devel/PLIST
@@ -0,0 +1,499 @@
+@comment $NetBSD$
+bin/sacct
+bin/sacctmgr
+bin/salloc
+bin/sattach
+bin/sbatch
+bin/sbcast
+bin/scancel
+bin/scontrol
+bin/sdiag
+bin/sh5util
+bin/sinfo
+bin/smap
+bin/sprio
+bin/squeue
+bin/sreport
+bin/srun
+bin/sshare
+bin/sstat
+bin/strigger
+include/slurm/pmi.h
+include/slurm/slurm.h
+include/slurm/slurm_errno.h
+include/slurm/slurmdb.h
+include/slurm/smd_ns.h
+include/slurm/spank.h
+lib/libslurm.la
+lib/slurm/accounting_storage_filetxt.la
+lib/slurm/accounting_storage_mysql.la
+lib/slurm/accounting_storage_none.la
+lib/slurm/accounting_storage_slurmdbd.la
+lib/slurm/acct_gather_energy_cray_aries.la
+lib/slurm/acct_gather_energy_ibmaem.la
+lib/slurm/acct_gather_energy_none.la
+lib/slurm/acct_gather_energy_rapl.la
+lib/slurm/acct_gather_filesystem_lustre.la
+lib/slurm/acct_gather_filesystem_none.la
+lib/slurm/acct_gather_interconnect_none.la
+lib/slurm/acct_gather_profile_hdf5.la
+lib/slurm/acct_gather_profile_influxdb.la
+lib/slurm/acct_gather_profile_none.la
+lib/slurm/auth_munge.la
+lib/slurm/auth_none.la
+lib/slurm/burst_buffer_datawarp.la
+lib/slurm/burst_buffer_generic.la
+lib/slurm/checkpoint_none.la
+lib/slurm/checkpoint_ompi.la
+lib/slurm/cli_filter_none.la
+lib/slurm/core_spec_cray_aries.la
+lib/slurm/core_spec_none.la
+lib/slurm/cred_munge.la
+lib/slurm/cred_none.la
+lib/slurm/ext_sensors_none.la
+lib/slurm/gpu_generic.la
+lib/slurm/gres_gpu.la
+lib/slurm/gres_mic.la
+lib/slurm/gres_mps.la
+lib/slurm/gres_nic.la
+lib/slurm/job_container_cncu.la
+lib/slurm/job_container_none.la
+lib/slurm/job_submit_all_partitions.la
+lib/slurm/job_submit_cray_aries.la
+lib/slurm/job_submit_defaults.la
+lib/slurm/job_submit_logging.la
+lib/slurm/job_submit_lua.la
+lib/slurm/job_submit_partition.la
+lib/slurm/job_submit_pbs.la
+lib/slurm/job_submit_require_timelimit.la
+lib/slurm/job_submit_throttle.la
+lib/slurm/jobacct_gather_linux.la
+lib/slurm/jobacct_gather_none.la
+lib/slurm/jobcomp_elasticsearch.la
+lib/slurm/jobcomp_filetxt.la
+lib/slurm/jobcomp_mysql.la
+lib/slurm/jobcomp_none.la
+lib/slurm/jobcomp_script.la
+lib/slurm/launch_slurm.la
+lib/slurm/layouts_power_cpufreq.la
+lib/slurm/layouts_power_default.la
+lib/slurm/layouts_unit_default.la
+lib/slurm/libslurmfull.la
+lib/slurm/mcs_account.la
+lib/slurm/mcs_group.la
+lib/slurm/mcs_none.la
+lib/slurm/mcs_user.la
+lib/slurm/mpi_none.la
+lib/slurm/mpi_openmpi.la
+lib/slurm/mpi_pmi2.la
+lib/slurm/node_features_knl_cray.la
+lib/slurm/node_features_knl_generic.la
+lib/slurm/power_cray_aries.la
+lib/slurm/power_none.la
+lib/slurm/preempt_none.la
+lib/slurm/preempt_partition_prio.la
+lib/slurm/preempt_qos.la
+lib/slurm/priority_basic.la
+lib/slurm/priority_multifactor.la
+lib/slurm/proctrack_linuxproc.la
+lib/slurm/proctrack_pgid.la
+lib/slurm/route_default.la
+lib/slurm/route_topology.la
+lib/slurm/sched_backfill.la
+lib/slurm/sched_builtin.la
+lib/slurm/sched_hold.la
+lib/slurm/select_cons_res.la
+lib/slurm/select_cons_tres.la
+lib/slurm/select_cray_aries.la
+lib/slurm/select_linear.la
+lib/slurm/site_factor_none.la
+lib/slurm/slurmctld_nonstop.la
+lib/slurm/spank_pbs.la
+lib/slurm/src/sattach/sattach.wrapper.c
+lib/slurm/src/srun/srun.wrapper.c
+lib/slurm/switch_generic.la
+lib/slurm/switch_none.la
+lib/slurm/task_cray_aries.la
+lib/slurm/task_none.la
+lib/slurm/topology_3d_torus.la
+lib/slurm/topology_hypercube.la
+lib/slurm/topology_node_rank.la
+lib/slurm/topology_none.la
+lib/slurm/topology_tree.la
+man/man1/sacct.1
+man/man1/sacctmgr.1
+man/man1/salloc.1
+man/man1/sattach.1
+man/man1/sbatch.1
+man/man1/sbcast.1
+man/man1/scancel.1
+man/man1/scontrol.1
+man/man1/sdiag.1
+man/man1/sh5util.1
+man/man1/sinfo.1
+man/man1/slurm.1
+man/man1/smap.1
+man/man1/sprio.1
+man/man1/squeue.1
+man/man1/sreport.1
+man/man1/srun.1
+man/man1/sshare.1
+man/man1/sstat.1
+man/man1/strigger.1
+man/man3/slurm_allocate_pack_job_blocking.3
+man/man3/slurm_allocate_resources.3
+man/man3/slurm_allocate_resources_blocking.3
+man/man3/slurm_allocation_lookup.3
+man/man3/slurm_allocation_msg_thr_create.3
+man/man3/slurm_allocation_msg_thr_destroy.3
+man/man3/slurm_api_version.3
+man/man3/slurm_checkpoint.3
+man/man3/slurm_checkpoint_able.3
+man/man3/slurm_checkpoint_complete.3
+man/man3/slurm_checkpoint_create.3
+man/man3/slurm_checkpoint_disable.3
+man/man3/slurm_checkpoint_enable.3
+man/man3/slurm_checkpoint_error.3
+man/man3/slurm_checkpoint_failed.3
+man/man3/slurm_checkpoint_restart.3
+man/man3/slurm_checkpoint_task_complete.3
+man/man3/slurm_checkpoint_tasks.3
+man/man3/slurm_checkpoint_vacate.3
+man/man3/slurm_clear_trigger.3
+man/man3/slurm_complete_job.3
+man/man3/slurm_confirm_allocation.3
+man/man3/slurm_create_partition.3
+man/man3/slurm_create_reservation.3
+man/man3/slurm_delete_partition.3
+man/man3/slurm_delete_reservation.3
+man/man3/slurm_free_ctl_conf.3
+man/man3/slurm_free_front_end_info_msg.3
+man/man3/slurm_free_job_alloc_info_response_msg.3
+man/man3/slurm_free_job_array_resp.3
+man/man3/slurm_free_job_info_msg.3
+man/man3/slurm_free_job_step_create_response_msg.3
+man/man3/slurm_free_job_step_info_response_msg.3
+man/man3/slurm_free_node_info.3
+man/man3/slurm_free_node_info_msg.3
+man/man3/slurm_free_partition_info.3
+man/man3/slurm_free_partition_info_msg.3
+man/man3/slurm_free_reservation_info_msg.3
+man/man3/slurm_free_resource_allocation_response_msg.3
+man/man3/slurm_free_slurmd_status.3
+man/man3/slurm_free_submit_response_response_msg.3
+man/man3/slurm_free_trigger_msg.3
+man/man3/slurm_get_end_time.3
+man/man3/slurm_get_errno.3
+man/man3/slurm_get_job_steps.3
+man/man3/slurm_get_rem_time.3
+man/man3/slurm_get_triggers.3
+man/man3/slurm_hostlist_create.3
+man/man3/slurm_hostlist_destroy.3
+man/man3/slurm_hostlist_shift.3
+man/man3/slurm_init_job_desc_msg.3
+man/man3/slurm_init_part_desc_msg.3
+man/man3/slurm_init_resv_desc_msg.3
+man/man3/slurm_init_trigger_msg.3
+man/man3/slurm_init_update_front_end_msg.3
+man/man3/slurm_init_update_node_msg.3
+man/man3/slurm_init_update_step_msg.3
+man/man3/slurm_job_cpus_allocated_on_node.3
+man/man3/slurm_job_cpus_allocated_on_node_id.3
+man/man3/slurm_job_step_create.3
+man/man3/slurm_job_step_launch_t_init.3
+man/man3/slurm_job_step_layout_free.3
+man/man3/slurm_job_step_layout_get.3
+man/man3/slurm_job_will_run.3
+man/man3/slurm_job_will_run2.3
+man/man3/slurm_jobinfo_ctx_get.3
+man/man3/slurm_kill_job.3
+man/man3/slurm_kill_job_step.3
+man/man3/slurm_load_ctl_conf.3
+man/man3/slurm_load_front_end.3
+man/man3/slurm_load_job.3
+man/man3/slurm_load_job_user.3
+man/man3/slurm_load_jobs.3
+man/man3/slurm_load_node.3
+man/man3/slurm_load_node_single.3
+man/man3/slurm_load_partitions.3
+man/man3/slurm_load_reservations.3
+man/man3/slurm_load_slurmd_status.3
+man/man3/slurm_notify_job.3
+man/man3/slurm_pack_job_lookup.3
+man/man3/slurm_pack_job_will_run.3
+man/man3/slurm_perror.3
+man/man3/slurm_pid2jobid.3
+man/man3/slurm_ping.3
+man/man3/slurm_print_ctl_conf.3
+man/man3/slurm_print_front_end_info_msg.3
+man/man3/slurm_print_front_end_table.3
+man/man3/slurm_print_job_info.3
+man/man3/slurm_print_job_info_msg.3
+man/man3/slurm_print_job_step_info.3
+man/man3/slurm_print_job_step_info_msg.3
+man/man3/slurm_print_node_info_msg.3
+man/man3/slurm_print_node_table.3
+man/man3/slurm_print_partition_info.3
+man/man3/slurm_print_partition_info_msg.3
+man/man3/slurm_print_reservation_info.3
+man/man3/slurm_print_reservation_info_msg.3
+man/man3/slurm_print_slurmd_status.3
+man/man3/slurm_read_hostfile.3
+man/man3/slurm_reconfigure.3
+man/man3/slurm_requeue.3
+man/man3/slurm_requeue2.3
+man/man3/slurm_resume.3
+man/man3/slurm_resume2.3
+man/man3/slurm_set_debug_level.3
+man/man3/slurm_set_trigger.3
+man/man3/slurm_shutdown.3
+man/man3/slurm_signal_job.3
+man/man3/slurm_signal_job_step.3
+man/man3/slurm_slurmd_status.3
+man/man3/slurm_sprint_front_end_table.3
+man/man3/slurm_sprint_job_info.3
+man/man3/slurm_sprint_job_step_info.3
+man/man3/slurm_sprint_node_table.3
+man/man3/slurm_sprint_partition_info.3
+man/man3/slurm_sprint_reservation_info.3
+man/man3/slurm_step_ctx_create.3
+man/man3/slurm_step_ctx_create_no_alloc.3
+man/man3/slurm_step_ctx_daemon_per_node_hack.3
+man/man3/slurm_step_ctx_destroy.3
+man/man3/slurm_step_ctx_get.3
+man/man3/slurm_step_ctx_params_t_init.3
+man/man3/slurm_step_launch.3
+man/man3/slurm_step_launch_abort.3
+man/man3/slurm_step_launch_fwd_signal.3
+man/man3/slurm_step_launch_wait_finish.3
+man/man3/slurm_step_launch_wait_start.3
+man/man3/slurm_strerror.3
+man/man3/slurm_submit_batch_job.3
+man/man3/slurm_suspend.3
+man/man3/slurm_suspend2.3
+man/man3/slurm_takeover.3
+man/man3/slurm_terminate_job.3
+man/man3/slurm_terminate_job_step.3
+man/man3/slurm_update_front_end.3
+man/man3/slurm_update_job.3
+man/man3/slurm_update_job2.3
+man/man3/slurm_update_node.3
+man/man3/slurm_update_partition.3
+man/man3/slurm_update_reservation.3
+man/man3/slurm_update_step.3
+man/man5/acct_gather.conf.5
+man/man5/burst_buffer.conf.5
+man/man5/cgroup.conf.5
+man/man5/cray.conf.5
+man/man5/ext_sensors.conf.5
+man/man5/gres.conf.5
+man/man5/knl.conf.5
+man/man5/nonstop.conf.5
+man/man5/slurm.conf.5
+man/man5/slurmdbd.conf.5
+man/man5/topology.conf.5
+man/man8/slurmctld.8
+man/man8/slurmd.8
+man/man8/slurmdbd.8
+man/man8/slurmstepd.8
+man/man8/spank.8
+sbin/slurmctld
+sbin/slurmd
+sbin/slurmdbd
+sbin/slurmstepd
+share/doc/slurm-${PKGVERSION}/html/Slurm_Entity.pdf
+share/doc/slurm-${PKGVERSION}/html/Slurm_Individual.pdf
+share/doc/slurm-${PKGVERSION}/html/accounting.html
+share/doc/slurm-${PKGVERSION}/html/accounting_storageplugins.html
+share/doc/slurm-${PKGVERSION}/html/acct_gather.conf.html
+share/doc/slurm-${PKGVERSION}/html/acct_gather_energy_plugins.html
+share/doc/slurm-${PKGVERSION}/html/acct_gather_profile_plugins.html
+share/doc/slurm-${PKGVERSION}/html/add.html
+share/doc/slurm-${PKGVERSION}/html/allocation_pies.gif
+share/doc/slurm-${PKGVERSION}/html/api.html
+share/doc/slurm-${PKGVERSION}/html/arch.gif
+share/doc/slurm-${PKGVERSION}/html/authplugins.html
+share/doc/slurm-${PKGVERSION}/html/bb_plugins.html
+share/doc/slurm-${PKGVERSION}/html/big_sys.html
+share/doc/slurm-${PKGVERSION}/html/burst_buffer.conf.html
+share/doc/slurm-${PKGVERSION}/html/burst_buffer.html
+share/doc/slurm-${PKGVERSION}/html/cgroup.conf.html
+share/doc/slurm-${PKGVERSION}/html/cgroups.html
+share/doc/slurm-${PKGVERSION}/html/checkpoint_plugins.html
+share/doc/slurm-${PKGVERSION}/html/classic_fair_share.html
+share/doc/slurm-${PKGVERSION}/html/cli_filter_plugins.html
+share/doc/slurm-${PKGVERSION}/html/coding_style.pdf
+share/doc/slurm-${PKGVERSION}/html/configurator.easy.html
+share/doc/slurm-${PKGVERSION}/html/configurator.html
+share/doc/slurm-${PKGVERSION}/html/cons_res.html
+share/doc/slurm-${PKGVERSION}/html/cons_res_share.html
+share/doc/slurm-${PKGVERSION}/html/containers.html
+share/doc/slurm-${PKGVERSION}/html/contributor.html
+share/doc/slurm-${PKGVERSION}/html/core_spec.html
+share/doc/slurm-${PKGVERSION}/html/core_spec_plugins.html
+share/doc/slurm-${PKGVERSION}/html/cpu_management.html
+share/doc/slurm-${PKGVERSION}/html/cray.conf.html
+share/doc/slurm-${PKGVERSION}/html/cray.html
+share/doc/slurm-${PKGVERSION}/html/cred_plugins.html
+share/doc/slurm-${PKGVERSION}/html/disclaimer.html
+share/doc/slurm-${PKGVERSION}/html/dist_plane.html
+share/doc/slurm-${PKGVERSION}/html/documentation.html
+share/doc/slurm-${PKGVERSION}/html/download.html
+share/doc/slurm-${PKGVERSION}/html/elastic_computing.html
+share/doc/slurm-${PKGVERSION}/html/elasticsearch.html
+share/doc/slurm-${PKGVERSION}/html/entities.gif
+share/doc/slurm-${PKGVERSION}/html/example_usage.gif
+share/doc/slurm-${PKGVERSION}/html/ext_sensors.conf.html
+share/doc/slurm-${PKGVERSION}/html/ext_sensorsplugins.html
+share/doc/slurm-${PKGVERSION}/html/fair_tree.html
+share/doc/slurm-${PKGVERSION}/html/faq.html
+share/doc/slurm-${PKGVERSION}/html/federation.html
+share/doc/slurm-${PKGVERSION}/html/fonts.css
+share/doc/slurm-${PKGVERSION}/html/fonts.ttf
+share/doc/slurm-${PKGVERSION}/html/gang_scheduling.html
+share/doc/slurm-${PKGVERSION}/html/gres.conf.html
+share/doc/slurm-${PKGVERSION}/html/gres.html
+share/doc/slurm-${PKGVERSION}/html/gres_design.html
+share/doc/slurm-${PKGVERSION}/html/gres_plugins.html
+share/doc/slurm-${PKGVERSION}/html/hdf5_job_outline.png
+share/doc/slurm-${PKGVERSION}/html/hdf5_profile_user_guide.html
+share/doc/slurm-${PKGVERSION}/html/hdf5_task_attr.png
+share/doc/slurm-${PKGVERSION}/html/heterogeneous_jobs.html
+share/doc/slurm-${PKGVERSION}/html/high_throughput.html
+share/doc/slurm-${PKGVERSION}/html/ibm_pe_fig1.png
+share/doc/slurm-${PKGVERSION}/html/ibm_pe_fig2.png
+share/doc/slurm-${PKGVERSION}/html/intel_knl.html
+share/doc/slurm-${PKGVERSION}/html/job_array.html
+share/doc/slurm-${PKGVERSION}/html/job_container_plugins.html
+share/doc/slurm-${PKGVERSION}/html/job_exit_code.html
+share/doc/slurm-${PKGVERSION}/html/job_launch.html
+share/doc/slurm-${PKGVERSION}/html/job_submit_plugins.html
+share/doc/slurm-${PKGVERSION}/html/jobacct_gatherplugins.html
+share/doc/slurm-${PKGVERSION}/html/jobcompplugins.html
+share/doc/slurm-${PKGVERSION}/html/jquery.min.js
+share/doc/slurm-${PKGVERSION}/html/k_function.gif
+share/doc/slurm-${PKGVERSION}/html/knl.conf.html
+share/doc/slurm-${PKGVERSION}/html/launch_plugins.html
+share/doc/slurm-${PKGVERSION}/html/licenses.html
+share/doc/slurm-${PKGVERSION}/html/mail.html
+share/doc/slurm-${PKGVERSION}/html/man_index.html
+share/doc/slurm-${PKGVERSION}/html/mc_support.gif
+share/doc/slurm-${PKGVERSION}/html/mc_support.html
+share/doc/slurm-${PKGVERSION}/html/mcs.html
+share/doc/slurm-${PKGVERSION}/html/mcs_plugins.html
+share/doc/slurm-${PKGVERSION}/html/meetings.html
+share/doc/slurm-${PKGVERSION}/html/mpi_guide.html
+share/doc/slurm-${PKGVERSION}/html/mpiplugins.html
+share/doc/slurm-${PKGVERSION}/html/multi_cluster.html
+share/doc/slurm-${PKGVERSION}/html/news.html
+share/doc/slurm-${PKGVERSION}/html/node_features_plugins.html
+share/doc/slurm-${PKGVERSION}/html/nonstop.conf.html
+share/doc/slurm-${PKGVERSION}/html/nss_slurm.html
+share/doc/slurm-${PKGVERSION}/html/overview.html
+share/doc/slurm-${PKGVERSION}/html/pam_slurm_adopt.html
+share/doc/slurm-${PKGVERSION}/html/plane_ex1.gif
+share/doc/slurm-${PKGVERSION}/html/plane_ex2.gif
+share/doc/slurm-${PKGVERSION}/html/plane_ex3.gif
+share/doc/slurm-${PKGVERSION}/html/plane_ex4.gif
+share/doc/slurm-${PKGVERSION}/html/plane_ex5.gif
+share/doc/slurm-${PKGVERSION}/html/plane_ex6.gif
+share/doc/slurm-${PKGVERSION}/html/plane_ex7.gif
+share/doc/slurm-${PKGVERSION}/html/platforms.html
+share/doc/slurm-${PKGVERSION}/html/plugins.html
+share/doc/slurm-${PKGVERSION}/html/power_mgmt.html
+share/doc/slurm-${PKGVERSION}/html/power_plugins.html
+share/doc/slurm-${PKGVERSION}/html/power_save.html
+share/doc/slurm-${PKGVERSION}/html/preempt.html
+share/doc/slurm-${PKGVERSION}/html/preemption_plugins.html
+share/doc/slurm-${PKGVERSION}/html/priority_multifactor.html
+share/doc/slurm-${PKGVERSION}/html/priority_multifactor3.html
+share/doc/slurm-${PKGVERSION}/html/priority_plugins.html
+share/doc/slurm-${PKGVERSION}/html/proctrack_plugins.html
+share/doc/slurm-${PKGVERSION}/html/programmer_guide.html
+share/doc/slurm-${PKGVERSION}/html/prolog_epilog.html
+share/doc/slurm-${PKGVERSION}/html/publications.html
+share/doc/slurm-${PKGVERSION}/html/qos.html
+share/doc/slurm-${PKGVERSION}/html/quickstart.html
+share/doc/slurm-${PKGVERSION}/html/quickstart_admin.html
+share/doc/slurm-${PKGVERSION}/html/reservations.html
+share/doc/slurm-${PKGVERSION}/html/reset.css
+share/doc/slurm-${PKGVERSION}/html/resource_binding.html
+share/doc/slurm-${PKGVERSION}/html/resource_limits.html
+share/doc/slurm-${PKGVERSION}/html/rosetta.html
+share/doc/slurm-${PKGVERSION}/html/route_plugin.html
+share/doc/slurm-${PKGVERSION}/html/rpc.html
+share/doc/slurm-${PKGVERSION}/html/sacct.html
+share/doc/slurm-${PKGVERSION}/html/sacctmgr.html
+share/doc/slurm-${PKGVERSION}/html/salloc.html
+share/doc/slurm-${PKGVERSION}/html/sattach.html
+share/doc/slurm-${PKGVERSION}/html/sbatch.html
+share/doc/slurm-${PKGVERSION}/html/sbcast.html
+share/doc/slurm-${PKGVERSION}/html/scancel.html
+share/doc/slurm-${PKGVERSION}/html/sched_config.html
+share/doc/slurm-${PKGVERSION}/html/schedmd.png
+share/doc/slurm-${PKGVERSION}/html/schedplugins.html
+share/doc/slurm-${PKGVERSION}/html/scontrol.html
+share/doc/slurm-${PKGVERSION}/html/sdiag.html
+share/doc/slurm-${PKGVERSION}/html/select_design.html
+share/doc/slurm-${PKGVERSION}/html/selectplugins.html
+share/doc/slurm-${PKGVERSION}/html/sh5util.html
+share/doc/slurm-${PKGVERSION}/html/sinfo.html
+share/doc/slurm-${PKGVERSION}/html/site_factor.html
+share/doc/slurm-${PKGVERSION}/html/slurm.conf.html
+share/doc/slurm-${PKGVERSION}/html/slurm.css
+share/doc/slurm-${PKGVERSION}/html/slurm.html
+share/doc/slurm-${PKGVERSION}/html/slurm_logo.png
+share/doc/slurm-${PKGVERSION}/html/slurm_ug_agenda.html
+share/doc/slurm-${PKGVERSION}/html/slurmctld.html
+share/doc/slurm-${PKGVERSION}/html/slurmctld_plugstack.html
+share/doc/slurm-${PKGVERSION}/html/slurmd.html
+share/doc/slurm-${PKGVERSION}/html/slurmdbd.conf.html
+share/doc/slurm-${PKGVERSION}/html/slurmdbd.html
+share/doc/slurm-${PKGVERSION}/html/slurmstepd.html
+share/doc/slurm-${PKGVERSION}/html/smap.html
+share/doc/slurm-${PKGVERSION}/html/spank.html
+share/doc/slurm-${PKGVERSION}/html/sprio.html
+share/doc/slurm-${PKGVERSION}/html/squeue.html
+share/doc/slurm-${PKGVERSION}/html/squeue_color.png
+share/doc/slurm-${PKGVERSION}/html/sreport.html
+share/doc/slurm-${PKGVERSION}/html/srun.html
+share/doc/slurm-${PKGVERSION}/html/sshare.html
+share/doc/slurm-${PKGVERSION}/html/sstat.html
+share/doc/slurm-${PKGVERSION}/html/strigger.html
+share/doc/slurm-${PKGVERSION}/html/style.css
+share/doc/slurm-${PKGVERSION}/html/switchplugins.html
+share/doc/slurm-${PKGVERSION}/html/taskplugins.html
+share/doc/slurm-${PKGVERSION}/html/team.html
+share/doc/slurm-${PKGVERSION}/html/testimonials.html
+share/doc/slurm-${PKGVERSION}/html/topo_ex1.gif
+share/doc/slurm-${PKGVERSION}/html/topo_ex2.gif
+share/doc/slurm-${PKGVERSION}/html/topology.conf.html
+share/doc/slurm-${PKGVERSION}/html/topology.html
+share/doc/slurm-${PKGVERSION}/html/topology_plugin.html
+share/doc/slurm-${PKGVERSION}/html/tres.html
+share/doc/slurm-${PKGVERSION}/html/troubleshoot.html
+share/doc/slurm-${PKGVERSION}/html/tutorial_intro_files.tar
+share/doc/slurm-${PKGVERSION}/html/tutorials.html
+share/doc/slurm-${PKGVERSION}/html/usage_pies.gif
+share/doc/slurm-${PKGVERSION}/html/user_permissions.html
+share/doc/slurm-${PKGVERSION}/html/wckey.html
+share/examples/slurm/Makefile
+share/examples/slurm/Makefile.am
+share/examples/slurm/Makefile.in
+share/examples/slurm/cgroup.conf.example
+share/examples/slurm/init.d.slurm
+share/examples/slurm/init.d.slurm.in
+share/examples/slurm/init.d.slurmdbd
+share/examples/slurm/init.d.slurmdbd.in
+share/examples/slurm/layouts.d.power.conf.example
+share/examples/slurm/layouts.d.power_cpufreq.conf.example
+share/examples/slurm/layouts.d.unit.conf.example
+share/examples/slurm/prolog.example
+share/examples/slurm/slurm.conf.example
+share/examples/slurm/slurmctld.service
+share/examples/slurm/slurmctld.service.in
+share/examples/slurm/slurmd.service
+share/examples/slurm/slurmd.service.in
+share/examples/slurm/slurmdbd.conf.example
+share/examples/slurm/slurmdbd.service
+share/examples/slurm/slurmdbd.service.in
diff --git a/slurm-wlm-devel/PLIST.Linux b/slurm-wlm-devel/PLIST.Linux
new file mode 100644
index 0000000000..4502136d61
--- /dev/null
+++ b/slurm-wlm-devel/PLIST.Linux
@@ -0,0 +1,6 @@
+@comment $NetBSD$
+lib/slurm/jobacct_gather_cgroup.la
+lib/slurm/proctrack_cgroup.la
+lib/slurm/switch_cray_aries.la
+lib/slurm/task_affinity.la
+lib/slurm/task_cgroup.la
diff --git a/slurm-wlm-devel/distinfo b/slurm-wlm-devel/distinfo
new file mode 100644
index 0000000000..1d447eb980
--- /dev/null
+++ b/slurm-wlm-devel/distinfo
@@ -0,0 +1,14 @@
+$NetBSD$
+
+SHA1 (slurm-20.11.2.tar.bz2) = d6859db7606dc4563619df38d059e5af0ce96bb7
+RMD160 (slurm-20.11.2.tar.bz2) = a075c56762d0ca155b0f93a0f3b7b1dbb19ea6d4
+SHA512 (slurm-20.11.2.tar.bz2) = 6743b8125733006e0e5ef0491b950efbeb05af0cf45f54a2c142ddbb57ea639615539bc1bcbd1985a850c20d268b8a995c81c5547a02404f9b6a61fee19f68ed
+Size (slurm-20.11.2.tar.bz2) = 6532310 bytes
+SHA1 (patch-etc_init.d.slurm.in) = beaedd5385b4aad04583d2bc5a23557519f74ec5
+SHA1 (patch-src_plugins_task_affinity_affinity.h) = a8fbc6182f1d7160addadadfcb174afa30c8ba80
+SHA1 (patch-src_slurmd_common_task__plugin.c) = 6049977521da86db4a437f1e76e26b3731eeef55
+SHA1 (patch-src_slurmd_common_task__plugin.h) = d4ad9f350efe1e873809adfe9dc4f559634e9ba2
+SHA1 (patch-src_slurmd_slurmd_slurmd.c) = 93f2da51d2a766a5817cc51e7de40e4ab2306649
+SHA1 (patch-src_slurmd_slurmd_slurmd.h) = a610b0bbe5b6b04be70eb2f8eac2a231139e6d1a
+SHA1 (patch-src_slurmd_slurmstepd_io.c) = b56782887621edb539be70d53dff8029a89e90ed
+SHA1 (patch-src_slurmd_slurmstepd_task.c) = 756dd8eb7201d003a6a7f01aa84b699f9a3ce11b
diff --git a/slurm-wlm-devel/files/linux-slurm-enable b/slurm-wlm-devel/files/linux-slurm-enable
new file mode 100644
index 0000000000..b162759003
--- /dev/null
+++ b/slurm-wlm-devel/files/linux-slurm-enable
@@ -0,0 +1,64 @@
+#!/bin/sh -e
+
+##########################################################################
+#   Script description:
+#       
+#   Arguments:
+#       
+#   Returns:
+#       
+#   History:
+#   Date        Name        Modification
+#   2013-12-26  root        Begin
+##########################################################################
+
+usage()
+{
+    printf "Usage: $0 node-type\n"
+    exit 1
+}
+
+
+##########################################################################
+#   Main
+##########################################################################
+
+if [ $# != 1 ]; then
+    usage
+fi
+
+node_type=$1
+#./munge-enable $node_type
+
+case $node_type in
+'head')
+    prefix='/usr/pkg-1'
+    ;;
+'compute')
+    prefix='/sharedapps/pkg-1'
+    ;;
+*)
+    printf "$0 is only for head and compute nodes.\n"
+    exit 1
+    ;;
+esac
+
+# slurm.conf
+if [ ! -e $prefix/etc/slurm.conf ]; then
+    printf "Missing $prefix/etc/slurm.conf.  Copy it from head node.\n"
+    exit 1
+fi
+
+# Init script
+#if [ ! -e /etc/init.d/slurm ]; then
+    printf "exec_prefix=/$prefix\nprefix=$prefix\n\n" \
+	> /etc/init.d/slurm
+    chmod 750 /etc/init.d/slurm
+    cat $prefix/share/examples/slurm/init.d.slurm >> /etc/init.d/slurm
+    chkconfig slurm on
+    service slurm restart
+#fi
+
+mkdir -p /var/log/slurm
+chown slurm:slurm /var/log/slurm
+
diff --git a/slurm-wlm-devel/files/slurmctld.sh b/slurm-wlm-devel/files/slurmctld.sh
new file mode 100644
index 0000000000..00f68e08f2
--- /dev/null
+++ b/slurm-wlm-devel/files/slurmctld.sh
@@ -0,0 +1,15 @@
+#!@RCD_SCRIPTS_SHELL@
+# $NetBSD: slurmctld.sh,v 1.1 2018/04/22 21:31:09 bacon Exp $
+#
+# PROVIDE: slurmctld
+# REQUIRE: DAEMON munge
+# KEYWORD: shutdown
+
+. /etc/rc.subr
+
+name="slurmctld"
+rcvar=${name}
+command="@PREFIX@/sbin/slurmctld"
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/slurm-wlm-devel/files/slurmd.sh b/slurm-wlm-devel/files/slurmd.sh
new file mode 100644
index 0000000000..8b2980a4c5
--- /dev/null
+++ b/slurm-wlm-devel/files/slurmd.sh
@@ -0,0 +1,17 @@
+#!@RCD_SCRIPTS_SHELL@
+# $NetBSD: slurmd.sh,v 1.1 2018/04/22 21:31:09 bacon Exp $
+#
+# PROVIDE: slurmd
+# REQUIRE: DAEMON munge
+# KEYWORD: shutdown
+
+. /etc/rc.subr
+
+name="slurmd"
+rcvar=${name}
+command="@PREFIX@/sbin/slurmd"
+
+slurmd_user="root"
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/slurm-wlm-devel/patches/patch-etc_init.d.slurm.in b/slurm-wlm-devel/patches/patch-etc_init.d.slurm.in
new file mode 100644
index 0000000000..209e1dc20d
--- /dev/null
+++ b/slurm-wlm-devel/patches/patch-etc_init.d.slurm.in
@@ -0,0 +1,16 @@
+$NetBSD: patch-etc_init.d.slurm.in,v 1.1 2018/04/22 21:31:09 bacon Exp $
+
+# Provide something for SUBST to replace
+
+--- etc/init.d.slurm.in.orig	2015-03-19 19:38:01.000000000 +0000
++++ etc/init.d.slurm.in
+@@ -25,6 +25,9 @@
+ # Description:       Start slurm to provide resource management
+ ### END INIT INFO
+ 
++exec_prefix=
++prefix=
++
+ BINDIR="@bindir@"
+ CONFDIR="@sysconfdir@"
+ LIBDIR="@libdir@"
diff --git a/slurm-wlm-devel/patches/patch-src_plugins_task_affinity_affinity.h b/slurm-wlm-devel/patches/patch-src_plugins_task_affinity_affinity.h
new file mode 100644
index 0000000000..2044ea53c7
--- /dev/null
+++ b/slurm-wlm-devel/patches/patch-src_plugins_task_affinity_affinity.h
@@ -0,0 +1,17 @@
+$NetBSD$
+
+# Portability
+
+--- src/plugins/task/affinity/affinity.h.orig	2020-01-26 20:44:58.750715619 +0000
++++ src/plugins/task/affinity/affinity.h
+@@ -52,6 +52,10 @@
+    typedef cpuset_t cpu_set_t;
+ #endif
+ 
++#ifdef __NetBSD__
++#define	CPU_SETSIZE	MAXCPUS
++#endif
++
+ #ifdef HAVE_SYS_PRCTL_H
+ #  include <sys/prctl.h>
+ #endif
diff --git a/slurm-wlm-devel/patches/patch-src_slurmd_common_task__plugin.h b/slurm-wlm-devel/patches/patch-src_slurmd_common_task__plugin.h
new file mode 100644
index 0000000000..192a5f02f5
--- /dev/null
+++ b/slurm-wlm-devel/patches/patch-src_slurmd_common_task__plugin.h
@@ -0,0 +1,23 @@
+$NetBSD: patch-src_slurmd_common_task__plugin.h,v 1.1 2018/04/22 21:31:09 bacon Exp $
+
+# cpuset functions not standardized across platforms
+
+--- src/slurmd/common/task_plugin.h.orig	2018-01-04 21:15:01.000000000 +0000
++++ src/slurmd/common/task_plugin.h
+@@ -42,6 +42,16 @@
+ 
+ #include "src/slurmd/slurmstepd/slurmstepd_job.h"
+ 
++// Keep in sync with slurmd/slurmd.h
++#ifdef __NetBSD__    
++#define	cpu_set_t	cpuset_t
++#define CPU_ZERO(c)	cpuset_zero((c))   
++#define CPU_SET(i,c)	cpuset_set((i),(c))
++#define CPU_ISSET(i,c)	cpuset_isset((i),(c))
++#define sched_getaffinity	sched_getaffinity_np
++#define SCHED_GETAFFINITY_THREE_ARGS
++#endif
++ 
+ /*
+  * Initialize the task plugin.
+  *
diff --git a/slurm-wlm-devel/patches/patch-src_slurmd_slurmd_slurmd.h b/slurm-wlm-devel/patches/patch-src_slurmd_slurmd_slurmd.h
new file mode 100644
index 0000000000..2efc576dae
--- /dev/null
+++ b/slurm-wlm-devel/patches/patch-src_slurmd_slurmd_slurmd.h
@@ -0,0 +1,23 @@
+$NetBSD: patch-src_slurmd_slurmd_slurmd.h,v 1.1 2018/04/22 21:31:09 bacon Exp $
+
+# cpuset functions not standardized across platforms
+
+--- src/slurmd/slurmd/slurmd.h.orig	2018-01-04 21:15:01.000000000 +0000
++++ src/slurmd/slurmd/slurmd.h
+@@ -48,6 +48,16 @@
+ #include "src/common/slurm_protocol_api.h"
+ #include "src/common/slurm_cred.h"
+ 
++// Keep in sync with common/task_plugin.h
++#ifdef __NetBSD__  
++#define CPU_ZERO(c) cpuset_zero((c))
++#define CPU_SET(i,c) cpuset_set((i),(c))
++#define CPU_ISSET(i,c) cpuset_isset((i),(c))
++#define sched_getaffinity sched_getaffinity_np
++#define sched_setaffinity sched_setaffinity_np
++#define SCHED_GETAFFINITY_THREE_ARGS
++#endif
++                        
+ #ifndef __USE_XOPEN_EXTENDED
+ extern pid_t getsid(pid_t pid);		/* missing from <unistd.h> */
+ extern pid_t getpgid(pid_t pid);
diff --git a/slurm-wlm-devel/patches/patch-src_slurmd_slurmstepd_io.c b/slurm-wlm-devel/patches/patch-src_slurmd_slurmstepd_io.c
new file mode 100644
index 0000000000..ce8fc0ad3e
--- /dev/null
+++ b/slurm-wlm-devel/patches/patch-src_slurmd_slurmstepd_io.c
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_slurmd_slurmstepd_io.c,v 1.1 2018/04/22 21:31:09 bacon Exp $
+
+# Portability
+
+--- src/slurmd/slurmstepd/io.c.orig	2018-01-05 23:43:03.000000000 +0000
++++ src/slurmd/slurmstepd/io.c
+@@ -45,6 +45,7 @@
+ #endif
+ 
+ #ifdef HAVE_UTMP_H
++#  include <time.h>
+ #  include <utmp.h>
+ #endif
+ 
diff --git a/slurm-wlm-devel/patches/patch-src_slurmd_slurmstepd_task.c b/slurm-wlm-devel/patches/patch-src_slurmd_slurmstepd_task.c
new file mode 100644
index 0000000000..d22f90c983
--- /dev/null
+++ b/slurm-wlm-devel/patches/patch-src_slurmd_slurmstepd_task.c
@@ -0,0 +1,19 @@
+$NetBSD$
+
+# Linux compat
+
+--- src/slurmd/slurmstepd/task.c.orig	2019-12-20 20:44:51.000000000 +0000
++++ src/slurmd/slurmstepd/task.c
+@@ -573,6 +573,12 @@ _make_tmpdir(stepd_step_rec_t *job)
+ 		 * still work with older systems we include this check.
+ 		 */
+ 
++/* FIXME: Come up with a real solution for EUID instead of substituting RUID */
++#if defined(__NetBSD__)
++#define eaccess(p,m) (access((p),(m)))
++#define HAVE_EACCESS 1
++#endif
++  
+ #if defined(HAVE_FACCESSAT)
+ 		else if (faccessat(AT_FDCWD, tmpdir, X_OK|W_OK, AT_EACCESS))
+ #elif defined(HAVE_EACCESS)


Home | Main Index | Thread Index | Old Index