From 7c6443b53a003d3cda2fa50955f77159ea943690 Mon Sep 17 00:00:00 2001 From: Nathan Hanford Date: Thu, 7 Aug 2025 16:29:05 -0700 Subject: [PATCH] small tweaks to increase portability --- mpigraph-1.6/mpiBench/crunch_mpiBench | 11 ++++++----- mpigraph-1.6/mpiGraph/crunch_mpiGraph | 11 ++++++----- mpigraph-1.6/mpiGraph/mpiGraph.c | 10 +++++----- 3 files changed, 17 insertions(+), 15 deletions(-) diff --git a/mpigraph-1.6/mpiBench/crunch_mpiBench b/mpigraph-1.6/mpiBench/crunch_mpiBench index 762f210..daf9f98 100755 --- a/mpigraph-1.6/mpiBench/crunch_mpiBench +++ b/mpigraph-1.6/mpiBench/crunch_mpiBench @@ -1,4 +1,5 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl +use warnings; use strict; # Copyright (c) 2007-2008, Lawrence Livermore National Security (LLNS), LLC @@ -13,15 +14,15 @@ use strict; # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: -# â* Redistributions of source code must retain the above copyright notice, this +# * Redistributions of source code must retain the above copyright notice, this # list of conditions and the disclaimer below. -# â* Redistributions in binary form must reproduce the above copyright notice, +# * Redistributions in binary form must reproduce the above copyright notice, # this list of conditions and the disclaimer (as noted below) in the documentation # and/or other materials provided with the distribution. -# â* Neither the name of the LLNL nor the names of its contributors may be used to +# * Neither the name of the LLNL nor the names of its contributors may be used to # endorse or promote products derived from this software without specific prior # written permission. -# â* +# * # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. diff --git a/mpigraph-1.6/mpiGraph/crunch_mpiGraph b/mpigraph-1.6/mpiGraph/crunch_mpiGraph index 39101c1..f4e3b6d 100755 --- a/mpigraph-1.6/mpiGraph/crunch_mpiGraph +++ b/mpigraph-1.6/mpiGraph/crunch_mpiGraph @@ -1,4 +1,5 @@ -#!/usr/local/bin/perl -w +#!/usr/bin/env perl +use warnings; # Copyright (c) 2007, Lawrence Livermore National Security (LLNS), LLC # Produced at the Lawrence Livermore National Laboratory (LLNL) @@ -12,15 +13,15 @@ # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: -# â* Redistributions of source code must retain the above copyright notice, this +# * Redistributions of source code must retain the above copyright notice, this # list of conditions and the disclaimer below. -# â* Redistributions in binary form must reproduce the above copyright notice, +# * Redistributions in binary form must reproduce the above copyright notice, # this list of conditions and the disclaimer (as noted below) in the documentation # and/or other materials provided with the distribution. -# â* Neither the name of the LLNL nor the names of its contributors may be used to +# * Neither the name of the LLNL nor the names of its contributors may be used to # endorse or promote products derived from this software without specific prior # written permission. -# â* +# * # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. diff --git a/mpigraph-1.6/mpiGraph/mpiGraph.c b/mpigraph-1.6/mpiGraph/mpiGraph.c index 736b699..f0c072a 100644 --- a/mpigraph-1.6/mpiGraph/mpiGraph.c +++ b/mpigraph-1.6/mpiGraph/mpiGraph.c @@ -11,15 +11,15 @@ Please also read the Additional BSD Notice below. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: -â* Redistributions of source code must retain the above copyright notice, this +�* Redistributions of source code must retain the above copyright notice, this list of conditions and the disclaimer below. -â* Redistributions in binary form must reproduce the above copyright notice, +�* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the disclaimer (as noted below) in the documentation and/or other materials provided with the distribution. -â* Neither the name of the LLNL nor the names of its contributors may be used to +�* Neither the name of the LLNL nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. -â* +�* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. @@ -66,7 +66,7 @@ Additional BSD Notice #include #include #include -#include +#include /*#include "/usr/global/tools/tests/include/print_mpi_resources.h"*/ char hostname[256]; char* hostnames;