123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207 |
- #
- # -- High Performance Computing Linpack Benchmark (HPL)
- # HPL - 2.0 - September 10, 2008
- # Antoine P. Petitet
- # University of Tennessee, Knoxville
- # Innovative Computing Laboratory
- # (C) Copyright 2000-2008 All Rights Reserved
- #
- # -- Copyright notice and Licensing terms:
- #
- # Redistribution and use in source and binary forms, with or without
- # modification, are permitted provided that the following conditions
- # are met:
- #
- # 1. Redistributions of source code must retain the above copyright
- # notice, this list of conditions and the following disclaimer.
- #
- # 2. Redistributions in binary form must reproduce the above copyright
- # notice, this list of conditions, and the following disclaimer in the
- # documentation and/or other materials provided with the distribution.
- #
- # 3. All advertising materials mentioning features or use of this
- # software must display the following acknowledgement:
- # This product includes software developed at the University of
- # Tennessee, Knoxville, Innovative Computing Laboratory.
- #
- # 4. The name of the University, the name of the Laboratory, or the
- # names of its contributors may not be used to endorse or promote
- # products derived from this software without specific written
- # permission.
- #
- # -- Disclaimer:
- #
- # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY
- # OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- # DATA OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- # ######################################################################
- #
- arch = UNKNOWN
- #
- PARS= arch=$(arch) \
- CFLAGS="$(CFLAGS)" \
- CCOMPILE=$(CCOMPILE) \
- BMC=$(BMC) \
- LINUX=$(LINUX) \
- BMCOBJS=$(BMCOBJS) \
- OPENMPOBJS=$(OPENMPOBJS) \
- LINUXOBJS=$(LINUXOBJS) \
- RCCEROOT=$(RCCEROOT) \
- RCCEINCLUDE=$(RCCEINCLUDE) \
- RCKINCLUDE=$(RCKINCLUDE) \
- RCCE_LIB_SRC=$(RCCE_LIB_SRC) \
- RCCEOBJS="$(RCCEOBJS)"
- #
- include Make.$(arch)
- #
- ## build ###############################################################
- #
- build_src :
- ( $(CD) src/auxil/$(arch); $(MAKE) $(PARS) )
- ( $(CD) src/blas/$(arch); $(MAKE) $(PARS) )
- ( $(CD) src/comm/$(arch); $(MAKE) $(PARS) )
- ( $(CD) src/grid/$(arch); $(MAKE) $(PARS) )
- ( $(CD) src/panel/$(arch); $(MAKE) $(PARS) )
- ( $(CD) src/pauxil/$(arch); $(MAKE) $(PARS) )
- ( $(CD) src/pfact/$(arch); $(MAKE) $(PARS) )
- ( $(CD) src/pgesv/$(arch); $(MAKE) $(PARS) )
- #
- build_tst :
- ( $(CD) testing/matgen/$(arch); $(MAKE) $(PARS) )
- ( $(CD) testing/timer/$(arch); $(MAKE) $(PARS) )
- ( $(CD) testing/pmatgen/$(arch); $(MAKE) $(PARS) )
- ( $(CD) testing/ptimer/$(arch); $(MAKE) $(PARS) )
- ( $(CD) testing/ptest/$(arch); $(MAKE) $(PARS) )
- #( SPMS_make_cd`' testing/test/$(arch); SPMS_make_make`' )
- #
- ## startup #############################################################
- #
- startup_dir :
- - $(MKDIR) include/$(arch)
- - $(MKDIR) lib
- - $(MKDIR) lib/$(arch)
- - $(MKDIR) bin
- - $(MKDIR) bin/$(arch)
- #
- startup_src :
- - $(MAKE) -f Make.top leaf le=src/auxil arch=$(arch)
- - $(MAKE) -f Make.top leaf le=src/blas arch=$(arch)
- - $(MAKE) -f Make.top leaf le=src/comm arch=$(arch)
- - $(MAKE) -f Make.top leaf le=src/grid arch=$(arch)
- - $(MAKE) -f Make.top leaf le=src/panel arch=$(arch)
- - $(MAKE) -f Make.top leaf le=src/pauxil arch=$(arch)
- - $(MAKE) -f Make.top leaf le=src/pfact arch=$(arch)
- - $(MAKE) -f Make.top leaf le=src/pgesv arch=$(arch)
- #
- startup_tst :
- - $(MAKE) -f Make.top leaf le=testing/matgen arch=$(arch)
- - $(MAKE) -f Make.top leaf le=testing/timer arch=$(arch)
- - $(MAKE) -f Make.top leaf le=testing/pmatgen arch=$(arch)
- - $(MAKE) -f Make.top leaf le=testing/ptimer arch=$(arch)
- - $(MAKE) -f Make.top leaf le=testing/ptest arch=$(arch)
- #- SPMS_make_make`' -f Make.top leaf le=testing/test arch=$(arch)
- #
- ## refresh #############################################################
- #
- refresh_src :
- - $(CP) makes/Make.auxil src/auxil/$(arch)/Makefile
- - $(CP) makes/Make.blas src/blas/$(arch)/Makefile
- - $(CP) makes/Make.comm src/comm/$(arch)/Makefile
- - $(CP) makes/Make.grid src/grid/$(arch)/Makefile
- - $(CP) makes/Make.panel src/panel/$(arch)/Makefile
- - $(CP) makes/Make.pauxil src/pauxil/$(arch)/Makefile
- - $(CP) makes/Make.pfact src/pfact/$(arch)/Makefile
- - $(CP) makes/Make.pgesv src/pgesv/$(arch)/Makefile
- #
- refresh_tst :
- - $(CP) makes/Make.matgen testing/matgen/$(arch)/Makefile
- - $(CP) makes/Make.timer testing/timer/$(arch)/Makefile
- - $(CP) makes/Make.pmatgen testing/pmatgen/$(arch)/Makefile
- - $(CP) makes/Make.ptimer testing/ptimer/$(arch)/Makefile
- - $(CP) makes/Make.ptest testing/ptest/$(arch)/Makefile
- #- SPMS_make_cp`' makes/Make.test testing/test/$(arch)/Makefile
- #
- ## clean ###############################################################
- #
- clean_src :
- - ( $(CD) src/auxil/$(arch); $(MAKE) clean )
- - ( $(CD) src/blas/$(arch); $(MAKE) clean )
- - ( $(CD) src/comm/$(arch); $(MAKE) clean )
- - ( $(CD) src/grid/$(arch); $(MAKE) clean )
- - ( $(CD) src/panel/$(arch); $(MAKE) clean )
- - ( $(CD) src/pauxil/$(arch); $(MAKE) clean )
- - ( $(CD) src/pfact/$(arch); $(MAKE) clean )
- - ( $(CD) src/pgesv/$(arch); $(MAKE) clean )
- #
- clean_tst :
- - ( $(CD) testing/matgen/$(arch); $(MAKE) clean )
- - ( $(CD) testing/timer/$(arch); $(MAKE) clean )
- - ( $(CD) testing/pmatgen/$(arch); $(MAKE) clean )
- - ( $(CD) testing/ptimer/$(arch); $(MAKE) clean )
- - ( $(CD) testing/ptest/$(arch); $(MAKE) clean )
- #- ( SPMS_make_cd`' testing/test/$(arch); SPMS_make_make`' clean )
- #
- ## clean_arch ##########################################################
- #
- clean_arch_src :
- - $(RM) -r src/auxil/$(arch)
- - $(RM) -r src/blas/$(arch)
- - $(RM) -r src/comm/$(arch)
- - $(RM) -r src/grid/$(arch)
- - $(RM) -r src/panel/$(arch)
- - $(RM) -r src/pauxil/$(arch)
- - $(RM) -r src/pfact/$(arch)
- - $(RM) -r src/pgesv/$(arch)
- #
- clean_arch_tst :
- - $(RM) -r testing/matgen/$(arch)
- - $(RM) -r testing/timer/$(arch)
- - $(RM) -r testing/pmatgen/$(arch)
- - $(RM) -r testing/ptimer/$(arch)
- - $(RM) -r testing/ptest/$(arch)
- #- SPMS_make_rm`' -r testing/test/$(arch)
- #
- ## clean_arch_all ######################################################
- #
- clean_arch_all :
- - $(MAKE) -f Make.top clean_arch_src arch=$(arch)
- - $(MAKE) -f Make.top clean_arch_tst arch=$(arch)
- - $(RM) -r bin/$(arch) include/$(arch) lib/$(arch)
- #
- ## clean_guard #########################################################
- #
- clean_guard_src :
- - ( $(CD) src/auxil/$(arch); $(RM) *.grd )
- - ( $(CD) src/blas/$(arch); $(RM) *.grd )
- - ( $(CD) src/comm/$(arch); $(RM) *.grd )
- - ( $(CD) src/grid/$(arch); $(RM) *.grd )
- - ( $(CD) src/panel/$(arch); $(RM) *.grd )
- - ( $(CD) src/pauxil/$(arch); $(RM) *.grd )
- - ( $(CD) src/pfact/$(arch); $(RM) *.grd )
- - ( $(CD) src/pgesv/$(arch); $(RM) *.grd )
- #
- clean_guard_tst :
- - ( $(CD) testing/matgen/$(arch); $(RM) *.grd )
- - ( $(CD) testing/timer/$(arch); $(RM) *.grd )
- - ( $(CD) testing/pmatgen/$(arch); $(RM) *.grd )
- - ( $(CD) testing/ptimer/$(arch); $(RM) *.grd )
- - ( $(CD) testing/ptest/$(arch); $(RM) *.grd )
- #- ( SPMS_make_cd`' testing/test/$(arch); SPMS_make_rm`' *.grd )
- #
- ## misc ################################################################
- #
- leaf :
- - ( $(CD) $(le) ; $(MKDIR) $(arch) )
- - ( $(CD) $(le)/$(arch) ; \
- $(LN_S) $(TOPdir)/Make.$(arch) Make.inc )
- #
- ########################################################################
|