From: ribes Date: Thu, 14 Apr 2011 14:19:42 +0000 (+0000) Subject: Adding a new specific parameter for LoadLeveler X-Git-Tag: V6_3_0a1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Ftags%2FV6_3_0a1;p=modules%2Fkernel.git Adding a new specific parameter for LoadLeveler name = LoadLevelerJobType value = loadleveler job type (usualy is serial, mpi, bluegene, ...) --- diff --git a/salome_adm/unix/config_files/check_libbatch.m4 b/salome_adm/unix/config_files/check_libbatch.m4 index 8c5ec95af..089dc070d 100644 --- a/salome_adm/unix/config_files/check_libbatch.m4 +++ b/salome_adm/unix/config_files/check_libbatch.m4 @@ -53,14 +53,14 @@ LOCAL_INCLUDES="" LOCAL_LIBS="" if test "x$LIBBATCH_DIR" != "x" ; then - LOCAL_INCLUDES="-I$LIBBATCH_DIR/include" + LOCAL_INCLUDES="-I$LIBBATCH_DIR/include/Batch" if test "x$LIBBATCH_DIR" = "x/usr" ; then LOCAL_LIBS="-lBatch" else LOCAL_LIBS="-L$LIBBATCH_DIR/lib -lBatch" fi else - LOCAL_INCLUDES="-I/usr/include" + LOCAL_INCLUDES="-I/usr/include/Batch" LOCAL_LIBS="-lBatch" fi diff --git a/src/Launcher/BatchTest.cxx b/src/Launcher/BatchTest.cxx index 80f59953e..53a765bf0 100644 --- a/src/Launcher/BatchTest.cxx +++ b/src/Launcher/BatchTest.cxx @@ -24,8 +24,8 @@ #include "Launcher.hxx" #ifdef WITH_LIBBATCH -#include -#include +#include +#include #endif #include "utilities.h" diff --git a/src/Launcher/Launcher.cxx b/src/Launcher/Launcher.cxx index e416a934c..672212ba7 100644 --- a/src/Launcher/Launcher.cxx +++ b/src/Launcher/Launcher.cxx @@ -21,10 +21,10 @@ // #ifdef WITH_LIBBATCH -#include -#include -#include -#include +#include +#include +#include +#include #endif #include "Basics_Utils.hxx" diff --git a/src/Launcher/Launcher_Job.cxx b/src/Launcher/Launcher_Job.cxx index d2023ae12..72594b8da 100644 --- a/src/Launcher/Launcher_Job.cxx +++ b/src/Launcher/Launcher_Job.cxx @@ -23,7 +23,7 @@ #include "Launcher.hxx" #ifdef WITH_LIBBATCH -#include +#include #endif Launcher::Job::Job() @@ -507,6 +507,10 @@ Launcher::Job::common_job_params() if (_queue != "") params[Batch::QUEUE] = _queue; + // Specific parameters + std::map::iterator it = _specific_parameters.find("LoalLevelerJobType"); + if (it != _specific_parameters.end()) + params[Batch::LL_JOBTYPE] = it->second; return params; } diff --git a/src/Launcher/Launcher_Job.hxx b/src/Launcher/Launcher_Job.hxx index eeba823a7..ae169ad44 100644 --- a/src/Launcher/Launcher_Job.hxx +++ b/src/Launcher/Launcher_Job.hxx @@ -38,10 +38,10 @@ #include #ifdef WITH_LIBBATCH -#include -#include -#include -#include +#include +#include +#include +#include #endif #include