Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
amdis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iwr
amdis
Commits
447b745b
Commit
447b745b
authored
15 years ago
by
Backofen, Rainer
Browse files
Options
Downloads
Patches
Plain Diff
Shift standard definitions in Makefile needed to compile AMDiS user
programs to a central place in AMDiS directory.
parent
44de7829
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
demo/Makefile
+2
-133
2 additions, 133 deletions
demo/Makefile
with
2 additions
and
133 deletions
demo/Makefile
+
2
−
133
View file @
447b745b
...
...
@@ -18,139 +18,8 @@ AMDIS_DIR = ../AMDiS
MPI_DIR
=
# on mars, deimos or themisto, leave this field blank
MPCCI_DIR
=
# ============================================================================
# !!! Do not edit after this line !!!
# ============================================================================
PARMETIS_DIR
=
$(
AMDIS_DIR
)
/lib/ParMetis-3.1
# ============================================================================
# ===== includes pathes ======================================================
# ============================================================================
AMDIS_INCLUDE
=
-I
$(
AMDIS_DIR
)
/src
-I
$(
AMDIS_DIR
)
/compositeFEM/src
-I
$(
AMDIS_DIR
)
/lib/mtl4
MPCCI_INCLUDE
=
-I
$(
MPCCI_DIR
)
/include
PARMETIS_INCLUDE
=
-I
$(
PARMETIS_DIR
)
PARALLEL_INCLUDE
=
-I
$(
AMDIS_DIR
)
/src/parallel
INCLUDES
=
-I
.
$(
AMDIS_INCLUDE
)
$(
MPCCI_INCLUDE
)
$(
PARALLEL_INCLUDE
)
# ============================================================================
# ===== libraries ============================================================
# ============================================================================
AMDIS_LIB
=
-L
$(
AMDIS_DIR
)
/lib
-lamdis
PNG_LIB
=
-lpng
UMFPACK_LIB
=
-L
$(
AMDIS_DIR
)
/lib/AMD/Lib
-L
$(
AMDIS_DIR
)
/lib/UMFPACK/Lib
ifeq
($(strip $(USE_SERVER)), mars)
UMFPACK_LIB
+=
-lmkl
-lumfpack
-lamd
else
ifeq
($(strip $(USE_SERVER)), themisto)
UMFPACK_LIB
+=
$(
MKL_LIB
)
-lmkl
-lguide
-lpthread
-lumfpack
-lamd
else
ifeq
($(strip $(USE_SERVER)), deimos)
MPI_DIR
=
/licsoft/libraries/openmpi/1.2.6/64bit
UMFPACK_LIB
+=
-lumfpack
-lamd
-L
/licsoft/libraries/goto
-lgoto
-lpthread
else
UMFPACK_LIB
+=
-lblas
-lumfpack
-lamd
endif
endif
endif
MPCCI_LIB
=
-L
$(
MPCCI_DIR
)
/lib/linux-x86-glibc22
-lmpcci
PARMETIS_LIB
=
-L
$(
PARMETIS_DIR
)
-lparmetis
-lmetis
LIBS
=
$(
AMDIS_LIB
)
$(
PNG_LIB
)
LIBS
+=
-lboost_iostreams
-lboost_filesystem
ifeq
($(strip $(USE_UMFPACK)), 1)
LIBS
+=
$(
UMFPACK_LIB
)
endif
ifeq
($(strip $(USE_MKL)), 1)
ifeq
($(strip $(USE_SERVER)), themisto)
LIBS
+=
$(
MKL_LIB
)
else
LIBS
+=
-L
$(
MKL_LIB
)
endif
LIBS
+=
-lmkl
-lmkl_solver
-lguide
-lpthread
endif
ifeq
($(strip $(USE_MPCCI)), 1)
LIBS
+=
$(
MPCCI_LIB
)
endif
# ============================================================================
# ===== parallel or sequential ? =============================================
# ============================================================================
ifeq
($(strip $(USE_PARALLEL_AMDIS)), 1)
ifeq
($(strip $(USE_SERVER)), mars)
ifeq
($(strip $(USE_COMPILER)), gcc)
COMPILE
=
g++
else
COMPILE
=
icpc
endif
else
COMPILE
=
$(
MPI_DIR
)
/bin/mpiCC
endif
LIBS
+=
$(
PARMETIS_LIB
)
-lmpi
else
ifeq
($(strip $(USE_COMPILER)), gcc)
COMPILE
=
g++
else
COMPILE
=
icpc
endif
endif
# ============================================================================
# ===== compile flags ========================================================
# ============================================================================
ifeq
($(strip $(DEBUG)), 0)
CPPFLAGS
=
-O2
else
CPPFLAGS
=
-g
-O0
endif
ifeq
($(strip $(USE_OPENMP)), 1)
ifeq
($(strip $(USE_COMPILER)), gcc)
CPPFLAGS
+=
-fopenmp
else
CPPFLAGS
+=
-openmp
endif
endif
# ============================================================================
# ===== libtool linking ======================================================
# ============================================================================
LIBTOOL
=
$(
AMDIS_DIR
)
/libtool
LINK
=
$(
LIBTOOL
)
--mode
=
link
$(
COMPILE
)
# ============================================================================
# ===== rules ================================================================
# ============================================================================
all
:
make
$(
PROGRAMS
)
clean
:
-
rm
-rf
*
.o
-
rm
-rf
$(
PROGRAMS
)
.cc.o
:
$*.cc
$(
COMPILE
)
$(
DEFS
)
$(
INCLUDES
)
$(
CPPFLAGS
)
-c
-o
$*
.o
$^
#==== standard definitions and rules to compile AMDiS user programs ==========
include
$(AMDIS_DIR)/other/include/Makefile_AMDiS.mk
# ============================================================================
# ===== user programs ========================================================
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment