LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   blacs scalapack (https://www.linuxquestions.org/questions/linux-newbie-8/blacs-scalapack-694244/)

catrina 01-01-2009 09:00 AM

blacs scalapack
 
Hi everyone,

In order to run a program in paralell, I have to install blacs and scalapack. I have downloaded both on opensuse 11 with gfortran compiler. But it seems that I have to modify some files according to my system.

Could anyone let me know in detaiol what I should do, cause I could not do it alone reading the installation guide.

Regards,
Catrina

TB0ne 01-02-2009 09:18 AM

Quote:

Originally Posted by catrina (Post 3393455)
Hi everyone,

In order to run a program in paralell, I have to install blacs and scalapack. I have downloaded both on opensuse 11 with gfortran compiler. But it seems that I have to modify some files according to my system.

Could anyone let me know in detaiol what I should do, cause I could not do it alone reading the installation guide.

Your question is very vague. You're going to have to provide more information than "I have to modify some files according to my system".

You don't say what version/distro of Linux you have, or what you've tried so far, so how can anyone tell you what you need to do? If you have the installation guide, that's the best resource to go by. If you have specific questions or problems, post them along with complete information.

knudfl 01-02-2009 11:01 AM

Welcome to Linux Questions.

1) There are some ( few ) packages for Suse 11 :
# 'zypper search lapack blas libblas blacs scalapack'
> > lapack, lapack-man, liblapack3,
libblas3, blas, blas-man .
( The selection is much better for other Linux's
e.g. Debian, Ubuntu, Fedora, PCLinuxOS )

2) gfortran : If you need g77, f77 then cd /usr/bin
# ln -s gfortran-4.3 g77, # ln -s gfortran-4.3 f77 .

3) And the "file editing instructions" :
Google .. blacs linux .. EDIT > >
EDIT http://www.nottingham.ac.uk/is/servi...calapack.phtml

http://www.netlib.org/blacs/
http://www.netlib.org/blacs/archives/
http://www.netlib.org/blacs/BLACS/Papers.html

Google .. LaPack linux ..
http://seehuhn.de/pages/linear

4) Another option for changing files : use the source and the patches
[blacs-mpi_1.1.orig.tar.gz], [blacs-mpi_1.1-28.diff.gz] from
http://packages.debian.org/lenny/blacs1gf-lam
and other black's just search 'blacs' on the site.

[lapack_3.1.1.orig.tar.gz], [lapack_3.1.1-1.diff.gz]
http://packages.debian.org/lenny/liblapack-dev
and 'scalapack' is searchable too.

The patches are supposed to make the editing :
'patch -p0 < "file.diff"

Good Luck !
....

catrina 01-03-2009 12:59 AM

blacs scalapack
 
Hello all,

Sorry, I have no systematic knowledge of linux and also I am very new to the forum.

I have already downloaded 'blacs' and 'scalapack' from the websites you have mentioned.

As I said I am using opensuse 11, gfortran compiler and openmpi. Now I want to install blacs and scalapack.

In the Installation guide of blcs it has said that we have to modify the suitable Bmakes. Therefore I have modified 'Bmake.MPI-LINUX' and I have put it at the end of this thread. Please kindly have a look at it.

After this modification, I have to write 'make', but still it asks me to modify bmake ?!?! Could you kindly let me know what I should do to have blcs installed?

Regards,

#=============================================================================
#====================== SECTION 1: PATHS AND LIBRARIES =======================
#=============================================================================
# The following macros specify the name and location of libraries required by
# the BLACS and its tester.
#=============================================================================

# --------------------------------------
# Make sure we've got a consistent shell
# --------------------------------------
SHELL = /bin/sh

# -----------------------------
# The top level BLACS directory
# -----------------------------
BTOPdir = $HOME/tmp/BLACS

# ---------------------------------------------------------------------------
# The communication library your BLACS have been written for.
# Known choices (and the machines they run on) are:
#
# COMMLIB MACHINE
# ....... ..............................................................
# CMMD Thinking Machine's CM-5
# MPI Wide variety of systems
# MPL IBM's SP series (SP1 and SP2)
# NX Intel's supercomputer series (iPSC2, iPSC/860, DELTA, PARAGON)
# PVM Most unix machines; See PVM User's Guide for details
# ---------------------------------------------------------------------------
COMMLIB = MPI

# -------------------------------------------------------------
# The platform identifier to suffix to the end of library names
# -------------------------------------------------------------
PLAT = LINUX

# ----------------------------------------------------------
# Name and location of the BLACS library. See section 2 for
# details on BLACS debug level (BLACSDBGLVL).
# ----------------------------------------------------------
BLACSdir = $(BTOPdir)/LIB
BLACSDBGLVL = 0
BLACSFINIT = $(BLACSdir)/blacsF77init_$(COMMLIB)-$(PLAT)-$(BLACSDBGLVL).a
BLACSCINIT = $(BLACSdir)/blacsCinit_$(COMMLIB)-$(PLAT)-$(BLACSDBGLVL).a
BLACSLIB = $(BLACSdir)/blacs_$(COMMLIB)-$(PLAT)-$(BLACSDBGLVL).a

# -------------------------------------
# Name and location of the MPI library.
# -------------------------------------
MPIdir = /home/sara/openmpi-1.2.8
MPILIBdir =
MPIINCdir = $/home/sara/openmpi-1.2.8/include
MPILIB =

# -------------------------------------
# All libraries required by the tester.
# -------------------------------------
BTLIBS = $(BLACSFINIT) $(BLACSLIB) $(BLACSFINIT) $(MPILIB)

# ----------------------------------------------------------------
# The directory to put the installation help routines' executables
# ----------------------------------------------------------------
INSTdir = $(BTOPdir)/INSTALL/EXE

# ------------------------------------------------
# The name and location of the tester's executable
# ------------------------------------------------
TESTdir = $(BTOPdir)/TESTING/EXE
FTESTexe = $(TESTdir)/xFbtest_$(COMMLIB)-$(PLAT)-$(BLACSDBGLVL)
CTESTexe = $(TESTdir)/xCbtest_$(COMMLIB)-$(PLAT)-$(BLACSDBGLVL)
#=============================================================================
#=============================== End SECTION 1 ===============================
#=============================================================================


#=============================================================================
#========================= SECTION 2: BLACS INTERNALS ========================
#=============================================================================
# The following macro definitions set preprocessor values for the BLACS.
# The file Bconfig.h sets these values if they are not set by the makefile.
# User's compiling only the tester can skip this entire section.
# NOTE: The MPI defaults have been set for MPICH.
#=============================================================================

# -----------------------------------------------------------------------
# The directory to find the required communication library include files,
# if they are required by your system.
# -----------------------------------------------------------------------
SYSINC =

# ---------------------------------------------------------------------------
# The Fortran 77 to C interface to be used. If you are unsure of the correct
# setting for your platform, compile and run BLACS/INSTALL/xintface.
# Choices are: Add_, NoChange, UpCase, or f77IsF2C.
# ---------------------------------------------------------------------------
INTFACE = -Df77IsF2C

# ------------------------------------------------------------------------
# Allows the user to vary the topologies that the BLACS default topologies
# (TOP = ' ') correspond to. If you wish to use a particular topology
# (as opposed to letting the BLACS make the choice), uncomment the
# following macros, and replace the character in single quotes with the
# topology of your choice.
# ------------------------------------------------------------------------
# DEFBSTOP = -DDefBSTop="'1'"
# DEFCOMBTOP = -DDefCombTop="'1'"

# -------------------------------------------------------------------
# If your MPI_Send is locally-blocking, substitute the following line
# for the empty macro definition below.
# SENDIS = -DSndIsLocBlk
# -------------------------------------------------------------------
SENDIS =

# --------------------------------------------------------------------
# If your MPI handles packing of non-contiguous messages by copying to
# another buffer or sending extra bytes, better performance may be
# obtained by replacing the empty macro definition below with the
# macro definition on the following line.
# BUFF = -DNoMpiBuff
# --------------------------------------------------------------------
BUFF =

# -----------------------------------------------------------------------
# If you know something about your system, you may make it easier for the
# BLACS to translate between C and fortran communicators. If the empty
# macro defininition is left alone, this translation will cause the C
# BLACS to globally block for MPI_COMM_WORLD on calls to BLACS_GRIDINIT
# and BLACS_GRIDMAP. If you choose one of the options for translating
# the context, neither the C or fortran calls will globally block.
# If you are using MPICH, or a derivitive system, you can replace the
# empty macro definition below with the following (note that if you let
# MPICH do the translation between C and fortran, you must also indicate
# here if your system has pointers that are longer than integers. If so,
# define -DPOINTER_64_BITS=1.) For help on setting TRANSCOMM, you can
# run BLACS/INSTALL/xtc_CsameF77 and BLACS/INSTALL/xtc_UseMpich as
# explained in BLACS/INSTALL/README.
# TRANSCOMM = -DUseMpich
#
# If you know that your MPI uses the same handles for fortran and C
# communicators, you can replace the empty macro definition below with
# the macro definition on the following line.
TRANSCOMM = -DCSameF77
# -----------------------------------------------------------------------
# TRANSCOMM = -DUseMpi2

# --------------------------------------------------------------------------
# You may choose to have the BLACS internally call either the C or Fortran77
# interface to MPI by varying the following macro. If TRANSCOMM is left
# empty, the C interface BLACS_GRIDMAP/BLACS_GRIDINIT will globally-block if
# you choose to use the fortran internals, and the fortran interface will
# block if you choose to use the C internals. It is recommended that the
# user leave this macro definition blank, unless there is a strong reason
# to prefer one MPI interface over the other.
# WHATMPI = -DUseF77Mpi
# WHATMPI = -DUseCMpi
# --------------------------------------------------------------------------
WHATMPI =

# ---------------------------------------------------------------------------
# Some early versions of MPICH and its derivatives cannot handle user defined
# zero byte data types. If your system has this problem (compile and run
# BLACS/INSTALL/xsyserrors to check if unsure), replace the empty macro
# definition below with the macro definition on the following line.
# SYSERRORS = -DZeroByteTypeBug
# ---------------------------------------------------------------------------
SYSERRORS =

# ------------------------------------------------------------------
# These macros set the debug level for the BLACS. The fastest
# code is produced by BlacsDebugLvl 0. Higher levels provide
# more debug information at the cost of performance. Present levels
# of debug are:
# 0 : No debug information
# 1 : Mainly parameter checking.
# ------------------------------------------------------------------
DEBUGLVL = -DBlacsDebugLvl=$(BLACSDBGLVL)

# -------------------------------------------------------------------------
# All BLACS definitions needed for compile (DEFS1 contains definitions used
# by all BLACS versions).
# -------------------------------------------------------------------------
DEFS1 = -DSYSINC $(SYSINC) $(INTFACE) $(DEFBSTOP) $(DEFCOMBTOP) $(DEBUGLVL)
BLACSDEFS = $(DEFS1) $(SENDIS) $(BUFF) $(TRANSCOMM) $(WHATMPI) $(SYSERRORS)
#=============================================================================
#=============================== End SECTION 2 ===============================
#=============================================================================


#=============================================================================
#=========================== SECTION 3: COMPILERS ============================
#=============================================================================
# The following macros specify compilers, linker/loaders, the archiver,
# and their options. Some of the fortran files need to be compiled with no
# optimization. This is the F77NO_OPTFLAG. The usage of the remaining
# macros should be obvious from the names.
#=============================================================================
F77 = mpif77

F77NO_OPTFLAGS =
F77FLAGS = $(F77NO_OPTFLAGS) -O
F77LOADER = $(F77)
F77LOADFLAGS =
CC = mpicc
CCFLAGS = -O4
CCLOADER = $(CC)
CCLOADFLAGS =

# --------------------------------------------------------------------------
# The archiver and the flag(s) to use when building an archive (library).
# Also the ranlib routine. If your system has no ranlib, set RANLIB = echo.
# --------------------------------------------------------------------------
ARCH = ar
ARCHFLAGS = r
RANLIB = ranlib

#=============================================================================
#=============================== End SECTION 3 ===============================
#=============================================================================

knudfl 01-03-2009 02:24 AM

I intended to show an alternative instruction for scalapack,
this is the correct address ( instead of the misprint )

http://www.nottingham.ac.uk/is/servi...calapack.phtml

See § 5 : "Edit Bmake.inc as follows"

Scalapack, blacs is software, I never have worked with, may
be I can have a look at it in a few days.
....

Tinkster 01-03-2009 12:05 PM

And an administrative note: please use size and colour tags
sparingly - that [ size=3 ] rendered the post almost unreadable.


Cheers,
Tink


All times are GMT -5. The time now is 08:17 AM.