Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 3 additions & 95 deletions autogen.pl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env perl
#
# Copyright (c) 2009-2021 Cisco Systems, Inc. All rights reserved
# Copyright (c) 2009-2022 Cisco Systems, Inc. All rights reserved
# Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2013 Mellanox Technologies, Inc.
# All rights reserved.
Expand Down Expand Up @@ -43,7 +43,6 @@
# Data structures to fill up with all the stuff we find
my $mca_found;
my $mpiext_found;
my $mpicontrib_found;
my @subdirs;

# Command line parameters
Expand Down Expand Up @@ -243,7 +242,7 @@ sub process_autogen_subdirs {
# Note: there's no real technical reason to defer
# processing the subdirs. It's more of an aesthetic
# reason -- don't interrupt the current flow of
# finding mca / ext / contribs (which is a nice, fast
# finding mca / ext (which is a nice, fast
# process). Then process the subdirs (which is a slow
# process) all at once.
push(@subdirs, "$dir/$_");
Expand Down Expand Up @@ -715,93 +714,6 @@ sub mpiext_run_global {
}
}

##############################################################################

sub mpicontrib_process {
my ($topdir, $contrib_prefix, $contribdir) = @_;

my $cdir = "$topdir/$contrib_prefix/$contribdir";
return
if (! -d $cdir);

# Process this directory (pretty much the same treatment as for
# MCA components, so it's in a sub).
my $found_contrib;

$found_contrib->{"name"} = $contribdir;

# Push the results onto the hash array
push(@{$mpicontrib_found}, $found_contrib);

# Is there an autogen.subdirs in here?
process_autogen_subdirs($cdir);
}

##############################################################################

sub mpicontrib_run_global {
my ($contrib_prefix) = @_;

my $topdir = Cwd::cwd();

my $dir = "$topdir/$contrib_prefix";
opendir(DIR, $dir) ||
my_die "Can't open $dir directory";
foreach my $d (sort(readdir(DIR))) {
# Skip any non-directory, "base", or any dir that begins with "."
next
if (! -d "$dir/$d" || $d eq "base" || substr($d, 0, 1) eq ".");

# If this directory has a configure.m4, then it's an
# contrib.
if (-f "$dir/$d/configure.m4") {
verbose "=== Found $d MPI contrib";

# Check ignore status
if (ignored("$dir/$d")) {
verbose " (ignored)\n";
} else {
verbose "\n";
mpicontrib_process($topdir, $contrib_prefix, $d);
}
}
}
closedir(DIR);
debug_dump($mpicontrib_found);

#-----------------------------------------------------------------------

$m4 .= "\n$dnl_line
$dnl_line
$dnl_line

dnl Open MPI contrib information
$dnl_line\n\n";

# Array for all the m4_includes that we'll need to pick up the
# configure.m4's.
my @includes;
my $m4_config_contrib_list;

# Troll through each of the found contribs
foreach my $contrib (@{$mpicontrib_found}) {
my $c = $contrib->{name};
push(@includes, "$contrib_prefix/$c/configure.m4");
$m4_config_contrib_list .= ", $c";
}

$m4_config_contrib_list =~ s/^, //;

# List the M4 and no configure contribs
$m4 .= "dnl List of all MPI contribs
m4_define([ompi_mpicontrib_list], [$m4_config_contrib_list])\n";
# List out all the m4_include
$m4 .= "\ndnl List of configure.m4 files to include\n";
foreach my $i (@includes) {
$m4 .= "m4_include([$i])\n";
}
}

##############################################################################
# Find and remove stale files

Expand Down Expand Up @@ -1672,15 +1584,11 @@ sub replace_config_sub_guess {

#---------------------------------------------------------------------------

# Find MPI extensions and contribs
# Find MPI extensions
if (!$no_ompi_arg) {
++$step;
verbose "\n$step. Searching for Open MPI extensions\n\n";
mpiext_run_global("ompi/mpiext");

++$step;
verbose "\n$step. Searching for Open MPI contribs\n\n";
mpicontrib_run_global("ompi/contrib");
}

#---------------------------------------------------------------------------
Expand Down
140 changes: 0 additions & 140 deletions config/ompi_contrib.m4

This file was deleted.

29 changes: 0 additions & 29 deletions config/ompi_setup_contrib.m4

This file was deleted.

9 changes: 0 additions & 9 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1255,15 +1255,6 @@ m4_ifdef([project_ompi], [OMPI_SETUP_MPI_EXT])
# checkpoint results
AC_CACHE_SAVE

##################################
# Contributed software
##################################

m4_ifdef([project_ompi], [OMPI_SETUP_CONTRIB])

# checkpoint results
AC_CACHE_SAVE

##################################
# Visibility
##################################
Expand Down
4 changes: 1 addition & 3 deletions ompi/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# University of Stuttgart. All rights reserved.
# Copyright (c) 2004-2005 The Regents of the University of California.
# All rights reserved.
# Copyright (c) 2008-2019 Cisco Systems, Inc. All rights reserved
# Copyright (c) 2008-2022 Cisco Systems, Inc. All rights reserved
# Copyright (c) 2008 Sun Microsystems, Inc. All rights reserved.
# Copyright (c) 2010-2011 Sandia National Laboratories. All rights reserved.
# Copyright (c) 2013-2015 Los Alamos National Security, LLC. All rights
Expand Down Expand Up @@ -92,7 +92,6 @@ SUBDIRS = \
mpi/fortran/use-mpi-f08 \
mpi/fortran/mpiext-use-mpi-f08 \
$(MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS) \
$(OMPI_CONTRIB_SUBDIRS) \
mpi/man/man3 \
mpi/man/man5

Expand Down Expand Up @@ -128,7 +127,6 @@ DIST_SUBDIRS = \
$(OMPI_MPIEXT_ALL_SUBDIRS) \
$(MCA_ompi_FRAMEWORKS_SUBDIRS) \
$(MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS) \
$(OMPI_CONTRIB_DIST_SUBDIRS) \
mpi/man/man3 \
mpi/man/man5

Expand Down
19 changes: 0 additions & 19 deletions ompi/contrib/README.md

This file was deleted.

Loading