1 /* 2 * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana 3 * University Research and Technology 4 * Corporation. All rights reserved. 5 * Copyright (c) 2004-2011 The University of Tennessee and The University 6 * of Tennessee Research Foundation. All rights 7 * reserved. 8 * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, 9 * University of Stuttgart. All rights reserved. 10 * Copyright (c) 2004-2005 The Regents of the University of California. 11 * All rights reserved. 12 * Copyright (c) 2008-2011 University of Houston. All rights reserved. 13 * Copyright (c) 2012-2013 Los Alamos National Security, Inc. All rights reserved. 14 * Copyright (c) 2015 Research Organization for Information Science 15 * and Technology (RIST). All rights reserved. 16 * $COPYRIGHT$ 17 * 18 * Additional copyrights may follow 19 * 20 * $HEADER$ 21 */ 22 23 24 #include "ompi_config.h" 25 #include <stdio.h> 26 27 #include "ompi/mca/mca.h" 28 #include "opal/mca/base/base.h" 29 #include "opal/mca/base/mca_base_framework.h" 30 31 #include "ompi/mca/sharedfp/sharedfp.h" 32 #include "ompi/mca/sharedfp/base/base.h" 33 34 35 /* 36 * The following file was created by configure. It contains extern 37 * statements and the definition of an array of pointers to each 38 * component's public mca_base_component_t struct. 39 */ 40 #include "ompi/mca/sharedfp/base/static-components.h" 41 42 /* 43 * Global variables 44 */ 45 mca_sharedfp_base_module_t mca_sharedfp = {0}; 46 47 static int mca_sharedfp_base_close(void) 48 { 49 return mca_base_framework_components_close(&ompi_sharedfp_base_framework, NULL); 50 } 51 52 /* 53 * Function for finding and opening either all MCA components, or the one 54 * that was specifically requested via a MCA parameter. 55 */ 56 static int mca_sharedfp_base_open(mca_base_open_flag_t flags) 57 { 58 /* Open up all available components */ 59 return mca_base_framework_components_open(&ompi_sharedfp_base_framework, flags); 60 } 61 62 MCA_BASE_FRAMEWORK_DECLARE(ompi, sharedfp, "OMPI Shared Files", NULL, 63 mca_sharedfp_base_open, mca_sharedfp_base_close, 64 mca_sharedfp_base_static_components, 0); 65