r38257 - in /packages/pastix/trunk/debian: config-mpi-nosmp.in rules

saramito-guest at users.alioth.debian.org saramito-guest at users.alioth.debian.org
Mon Mar 28 04:56:39 UTC 2011


Author: saramito-guest
Date: Mon Mar 28 04:56:26 2011
New Revision: 38257

URL: http://svn.debian.org/wsvn/debian-science/?sc=1&rev=38257
Log:
pastix mpi


Added:
    packages/pastix/trunk/debian/config-mpi-nosmp.in
Modified:
    packages/pastix/trunk/debian/rules

Added: packages/pastix/trunk/debian/config-mpi-nosmp.in
URL: http://svn.debian.org/wsvn/debian-science/packages/pastix/trunk/debian/config-mpi-nosmp.in?rev=38257&op=file
==============================================================================
--- packages/pastix/trunk/debian/config-mpi-nosmp.in (added)
+++ packages/pastix/trunk/debian/config-mpi-nosmp.in Mon Mar 28 04:56:26 2011
@@ -1,0 +1,196 @@
+HOSTARCH    = i686_pc_linux
+VERSIONBIT  = _32bit
+EXEEXT      =
+OBJEXT      = .o
+LIBEXT      = .a
+CCPROG      = gcc -Wall
+CFPROG      = gfortran
+CF90PROG    = gfortran -ffree-form
+MCFPROG     = mpif90 
+CF90CCPOPT  = -ffree-form -x f95-cpp-input
+# Compilation options for optimization (make expor)
+CCFOPT      = -O3
+# Compilation options for debug (make | make debug)
+CCFDEB      = -g3
+
+LKFOPT      =
+MKPROG      = make 
+MPCCPROG    = mpicc -Wall
+CPP         = cpp
+ARFLAGS     = ruv
+ARPROG      = ar
+EXTRALIB    = /usr/lib/libgfortran.so.3 -lm -lrt
+
+VERSIONMPI  = _mpi
+VERSIONSMP  = _smp
+VERSIONSCH  = _static
+VERSIONINT  = _int
+VERSIONPRC  = _simple
+VERSIONFLT  = _real
+VERSIONORD  = _scotch
+
+###################################################################
+#                          INTEGER TYPE                           #
+###################################################################
+# uncomment the following lines for integer type support (Only 1)
+
+#VERSIONINT  = _long
+#CCTYPES     = -DFORCE_LONG -DLONG
+#---------------------------
+#VERSIONINT  = _int32
+#CCTYPES     = -DFORCE_INT32 -DINTSIZE32
+#---------------------------
+#VERSIONINT  = _int64
+#CCTYPES     = -DFORCE_INT64 -DINTSSIZE64
+
+###################################################################
+#                           FLOAT TYPE                            #
+###################################################################
+CCTYPESFLT  = 
+# uncomment the following lines for double precision support
+VERSIONPRC  = _double
+CCTYPESFLT := $(CCTYPESFLT) -DFORCE_DOUBLE -DPREC_DOUBLE
+
+# uncomment the following lines for float=complex support
+#VERSIONFLT  = _complex
+#CCTYPESFLT := $(CCTYPESFLT) -DFORCE_COMPLEX -DTYPE_COMPLEX
+
+
+###################################################################
+#                          MPI/THREADS                            #
+###################################################################
+
+# uncomment the following lines for sequential (NOMPI) version
+#VERSIONMPI  = _nompi
+#CCTYPES    := $(CCTYPES) -DFORCE_NOMPI
+#MPCCPROG    = $(CCPROG)
+#MCFPROG     = $(CFPROG)
+
+# uncomment the following lines for non-threaded (NOSMP) version
+#VERSIONSMP  = _nosmp
+#CCTYPES    := $(CCTYPES) -DFORCE_NOSMP
+
+# Uncomment the following line to enable a progression thread
+#CCPASTIX   := $(CCPASTIX) -DTHREAD_COMM
+
+# Uncomment the following line if your MPI doesn't support MPI_THREAD_MULTIPLE level
+#CCPASTIX   := $(CCPASTIX) -DPASTIX_FUNNELED
+
+# Uncomment the following line if your MPI doesn't support MPI_Datatype correctly
+#CCPASTIX   := $(CCPASTIX) -DNO_MPI_TYPE
+
+CCPASTIX   := $(CCPASTIX) -I/usr/include/openmpi
+
+###################################################################
+#                          Options                                #
+###################################################################
+
+# Uncomment the following lines for NUMA-aware allocation (recommended)
+CCPASTIX   := $(CCPASTIX) -DNUMA_ALLOC
+
+# Show memory usage statistics
+#CCPASTIX   := $(CCPASTIX) -DMEMORY_USAGE
+
+# Show memory usage statistics in solver
+#CCPASTIX   := $(CCPASTIX) -DSTATS_SOPALIN
+
+# Uncomment following line for dynamic thread scheduling support
+#CCPASTIX   := $(CCPASTIX) -DPASTIX_DYNSCHED 
+
+# Uncomment the following lines for Out-of-core
+#CCPASTIX   := $(CCPASTIX) -DOOC -DOOC_NOCOEFINIT -DOOC_DETECT_DEADLOCKS
+
+###################################################################
+#                      GRAPH PARTITIONING                         #
+###################################################################
+
+# uncomment the following lines for using metis ordering 
+#VERSIONORD  = _metis
+#METIS_HOME  = ${HOME}/metis-4.0
+#CCPASTIX   := $(CCPASTIX) -DMETIS -I$(METIS_HOME)/Lib
+#EXTRALIB   := $(EXTRALIB) -L$(METIS_HOME) -lmetis 
+
+# Scotch always needed to compile
+SCOTCH_HOME ?= /usr
+SCOTCH_INC ?= $(SCOTCH_HOME)/include/scotch
+SCOTCH_LIB ?= $(SCOTCH_HOME)/lib
+# uncomment on of this blocks					     
+#scotch								     
+#CCPASTIX   := $(CCPASTIX) -I$(SCOTCH_INC) -DWITH_SCOTCH			     
+#EXTRALIB   := $(EXTRALIB) -L$(SCOTCH_LIB) -lscotch -lscotcherrexit -lz
+#ptscotch							     
+CCPASTIX   := $(CCPASTIX) -I$(SCOTCH_INC) -DDISTRIBUTED -DWITH_SCOTCH -DSCOTCH_PTSCOTCH
+EXTRALIB   := $(EXTRALIB) -L$(SCOTCH_LIB) -lptscotch -lscotch -lscotcherrexit -lz
+
+###################################################################
+#                Portable Hardware Locality                       #
+###################################################################
+# If HwLoc library is available, uncomment the following lines to bind correctly threads on cpus
+#HWLOC_HOME ?= /opt/hwloc/
+#HWLOC_INC  ?= $(HWLOC_HOME)/include
+#HWLOC_LIB  ?= $(HWLOC_HOME)/lib
+#CCPASTIX   := $(CCPASTIX) -I$(HWLOC_INC) -DWITH_HWLOC 
+#EXTRALIB   := $(EXTRALIB) -L$(HWLOC_LIB) -lhwloc
+
+###################################################################
+#                             MARCEL                              #
+###################################################################
+
+# Uncomment following lines for marcel thread support
+#VERSIONSMP := $(VERSIONSMP)_marcel
+#CCPASTIX   := $(CCPASTIX) `pm2-config --cflags` -I${PM2_ROOT}/marcel/include/pthread
+#EXTRALIB   := $(EXTRALIB) `pm2-config --libs`
+# ---- Thread Posix ------
+EXTRALIB   := $(EXTRALIB) -lpthread
+
+# Uncomment following line for bubblesched framework support (need marcel support)
+#VERSIONSCH  = _dyn
+#CCPASTIX   := $(CCPASTIX) -DPASTIX_BUBBLESCHED 
+
+###################################################################
+#                              BLAS                               #
+###################################################################
+
+# Choose Blas library (Only 1)
+# Do not forget to set BLAS_HOME if it is not in your environnement
+# BLAS_HOME=/path/to/blas
+#----  Blas    ----
+BLASLIB  = -lblas
+#---- Gotoblas ----
+#BLASLIB  = -L${BLAS_HOME} -lgoto
+#----  MKL     ----
+#Uncomment the correct line
+#BLASLIB  = -L$(BLAS_HOME) -lmkl_intel_lp64 -lmkl_sequential -lmkl_core
+#BLASLIB  = -L$(BLAS_HOME) -lmkl_intel -lmkl_sequential -lmkl_core
+#----  Acml    ----
+#BLASLIB  = -L$(BLAS_HOME) -lacml
+
+###################################################################
+#                         PYTHON WRAPPER                          #
+###################################################################
+#MPI4PY_DIR    = 
+#MPI4PY_INC    = $(MPI4PY_DIR)/src/include/
+#MPI4PY_LIBDIR = $(MPI4PY_DIR)/build/lib.linux-x86_64-2.6/
+#CCTYPES      := $(CCTYPES) -fPIC
+
+###################################################################
+#                          DO NOT TOUCH                           #
+###################################################################
+
+FOPT      := $(CCFOPT)
+FDEB      := $(CCFDEB)
+CCHEAD    := $(CCPROG) $(CCTYPES) $(CCFOPT)
+CCFOPT    := $(CCFOPT) $(CCTYPES) $(CCPASTIX)
+CCFDEB    := $(CCFDEB) $(CCTYPES) $(CCPASTIX)
+
+
+###################################################################
+#                        MURGE COMPATIBILITY                      #
+###################################################################
+
+MAKE     = $(MKPROG)
+CC       = $(MPCCPROG)
+CFLAGS   = $(CCFOPT) $(CCTYPESFLT)
+FC       = $(MCFPROG) 
+FFLAGS   = $(CCFOPT)
+LDFLAGS  = $(EXTRALIB) $(BLASLIB)

Modified: packages/pastix/trunk/debian/rules
URL: http://svn.debian.org/wsvn/debian-science/packages/pastix/trunk/debian/rules?rev=38257&op=diff
==============================================================================
--- packages/pastix/trunk/debian/rules (original)
+++ packages/pastix/trunk/debian/rules Mon Mar 28 04:56:26 2011
@@ -1,10 +1,8 @@
 #!/usr/bin/make -f
-# -*- makefile -*-
-# Sample debian/rules that uses debhelper.
-# This file was originally written by Joey Hess and Craig Small.
-# As a special exception, when this file is copied by dh-make into a
-# dh-make output file, you may use that output file without restriction.
-# This special exception was added by Craig Small in version 0.37 of dh-make.
+#
+# TODO:
+# - versions mpi-nosmp & mpi-smp simultanees
+# - idem pour smp
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
@@ -31,7 +29,8 @@
 configure-stamp:
 	dh_testdir
 	# add here commands
-	cp debian/config-seq-nosmp.in src/config.in
+#	cp debian/config-seq-nosmp.in src/config.in
+	cp debian/config-mpi-nosmp.in src/config.in
 	cp debian/ChangeLog ChangeLog
 	touch configure-stamp
 
@@ -63,7 +62,8 @@
 	cp -p install/*.h             $(CURDIR)/$(TMPDIR)/usr/include/pastix
 	cp -p install/*.inc           $(CURDIR)/$(TMPDIR)/usr/include/pastix
 	mkdirhier                     $(CURDIR)/$(TMPDIR)/usr/lib
-	cp -p install/*.a             $(CURDIR)/$(TMPDIR)/usr/lib
+	cp install/libpastix.a        $(CURDIR)/$(TMPDIR)/usr/lib/libpastix_mpi_nosmp.a
+	cp install/libpastix_murge.a  $(CURDIR)/$(TMPDIR)/usr/lib/libpastix_murge_mpi_nosmp.a
 	mkdirhier                     $(CURDIR)/$(TMPDIR)/usr/bin
 	cp -p install/p*.sh           $(CURDIR)/$(TMPDIR)/usr/bin/pastix-conf
 	mkdirhier                     $(CURDIR)/$(TMPDIR)/usr/share/man/man1




More information about the debian-science-commits mailing list