From 1544237bd1164908a26caacd73a6b03700bc4f4b Mon Sep 17 00:00:00 2001 From: Moe Jette <jette1@llnl.gov> Date: Fri, 1 Aug 2008 17:44:58 +0000 Subject: [PATCH] Remove sbatch test for script size being no larger than 64k bytes. The current limit is 4GB. --- NEWS | 4 +++- src/sbatch/sbatch.c | 3 --- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/NEWS b/NEWS index 30950a40648..46ae875c494 100644 --- a/NEWS +++ b/NEWS @@ -12,8 +12,10 @@ documents those changes that are of interest to users and admins. -- Added Python module to process hostslists as used by SLURM. See contribs/python/hostlist. Supplied by Kent Engstrom, National Supercomputer Centre, Sweden. - -- Report abormal task termination message (restored functionality present + -- Report task termination due to signal (restored functionality present in slurm v1.2). + -- Remove sbatch test for script size being no larger than 64k bytes. + The current limit is 4GB. * Changes in SLURM 1.3.6 ======================== diff --git a/src/sbatch/sbatch.c b/src/sbatch/sbatch.c index 92d42e91df7..8da2c794443 100644 --- a/src/sbatch/sbatch.c +++ b/src/sbatch/sbatch.c @@ -421,9 +421,6 @@ static void *get_script_buffer(const char *filename, int *size) if (script_size == 0) { error("Batch script is empty!"); goto fail; - } else if (script_size >= 0xffff) { - error("Job script exceeds size supported by slurm"); - goto fail; } else if (xstring_is_whitespace(buf)) { error("Batch script contains only whitespace!"); goto fail; -- GitLab