Commit bd2fcaf8 authored by Philip Carns's avatar Philip Carns

add module file for Cray installations


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@585 3b7491f3-a168-0410-bf4b-c445ed680a29
parent 65939543
...@@ -16,6 +16,7 @@ LD = @LD@ ...@@ -16,6 +16,7 @@ LD = @LD@
DISABLE_LDPRELOAD = @DISABLE_LDPRELOAD@ DISABLE_LDPRELOAD = @DISABLE_LDPRELOAD@
DARSHAN_LOG_FORMAT = $(srcdir)/../darshan-log-format.h DARSHAN_LOG_FORMAT = $(srcdir)/../darshan-log-format.h
DARSHAN_VERSION = @DARSHAN_VERSION@
ifndef DISABLE_LDPRELOAD ifndef DISABLE_LDPRELOAD
all: lib/libdarshan.so all: lib/libdarshan.so
...@@ -99,6 +100,8 @@ endif ...@@ -99,6 +100,8 @@ endif
install -m 755 darshan-gen-cxx.pl $(bindir) install -m 755 darshan-gen-cxx.pl $(bindir)
install -m 755 darshan-gen-fortran.pl $(bindir) install -m 755 darshan-gen-fortran.pl $(bindir)
install -m 755 darshan-config $(bindir) install -m 755 darshan-config $(bindir)
install -d $(datarootdir)/cray/modulefiles/darshan
install -m 755 share/cray/darshan-module $(datarootdir)/cray/modulefiles/darshan/$(DARSHAN_VERSION)
clean:: clean::
rm -f *.o *.a lib/*.o lib/*.po lib/*.a lib/*.so rm -f *.o *.a lib/*.o lib/*.po lib/*.a lib/*.so
......
This diff is collapsed.
...@@ -5,7 +5,7 @@ dnl Process this file with autoconf to produce a configure script. ...@@ -5,7 +5,7 @@ dnl Process this file with autoconf to produce a configure script.
dnl You may need to use autoheader as well if changing any DEFINEs dnl You may need to use autoheader as well if changing any DEFINEs
dnl sanity checks, output header, location of scripts used here dnl sanity checks, output header, location of scripts used here
AC_INIT([darshan-runtime], [2.x]) AC_INIT([darshan-runtime], [2.2.3-pre1])
AC_CONFIG_SRCDIR([darshan.h]) AC_CONFIG_SRCDIR([darshan.h])
AC_CONFIG_AUX_DIR(../maint/config) AC_CONFIG_AUX_DIR(../maint/config)
AC_CONFIG_HEADER(darshan-runtime-config.h) AC_CONFIG_HEADER(darshan-runtime-config.h)
...@@ -229,16 +229,20 @@ AC_CHECK_TYPE([MPIO_Request], ...@@ -229,16 +229,20 @@ AC_CHECK_TYPE([MPIO_Request],
AC_DEFINE(__D_MPI_REQUEST, MPI_Request, Generalized request type for MPI-IO) AC_DEFINE(__D_MPI_REQUEST, MPI_Request, Generalized request type for MPI-IO)
,[#include <mpi.h>]) ,[#include <mpi.h>])
DARSHAN_VERSION="AC_PACKAGE_VERSION"
AC_SUBST(darshan_lib_path) AC_SUBST(darshan_lib_path)
AC_SUBST(darshan_bin_path) AC_SUBST(darshan_bin_path)
AC_SUBST(LDFLAGS) AC_SUBST(LDFLAGS)
AC_SUBST(__CP_LOG_PATH) AC_SUBST(__CP_LOG_PATH)
AC_SUBST(CP_WRAPPERS) AC_SUBST(CP_WRAPPERS)
AC_SUBST(DISABLE_LDPRELOAD) AC_SUBST(DISABLE_LDPRELOAD)
AC_SUBST(DARSHAN_VERSION)
AC_OUTPUT(Makefile AC_OUTPUT(Makefile
darshan-mk-log-dirs.pl darshan-mk-log-dirs.pl
darshan-gen-cc.pl darshan-gen-cc.pl
darshan-gen-cxx.pl darshan-gen-cxx.pl
darshan-gen-fortran.pl darshan-gen-fortran.pl
darshan-config darshan-config
share/cray/darshan-module
) )
...@@ -60,9 +60,6 @@ ...@@ -60,9 +60,6 @@
/* Define to the one symbol short name of this package. */ /* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME #undef PACKAGE_TARNAME
/* Define to the home page for this package. */
#undef PACKAGE_URL
/* Define to the version of this package. */ /* Define to the version of this package. */
#undef PACKAGE_VERSION #undef PACKAGE_VERSION
......
#%Module
#
# Module darshan
#
set DARSHAN_LEVEL @DARSHAN_VERSION@
set DARSHAN_CURPATH @prefix@
# Note: this module just sets environment variables that are picked up by
# the system compiler scripts to enable darshan at link time
setenv CRAY_DARSHAN_VERSION $DARSHAN_LEVEL
setenv CRAY_DARSHAN_DIR $DARSHAN_CURPATH
prepend-path PATH $DARSHAN_CURPATH/bin
proc ModulesHelp { } {
global DARSHAN_CURPATH
global DARSHAN_LEVEL
puts stderr ""
puts stderr "Darshan version $DARSHAN_LEVEL"
puts stderr "Installation path $DARSHAN_CURPATH"
puts stderr "==================================================================="
puts stderr "Darshan is a low-overhead I/O characterization tool."
puts stderr "See http://www.mcs.anl.gov/darshan"
puts stderr "===================================================================\n"
puts stderr ""
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment