-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from ucns3d-team/feature/fix-docker-builder
Feature/fix docker builder
- Loading branch information
Showing
33 changed files
with
150 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Setup for archer Supercomputer | ||
|
||
These are libraries that work with gnu and cray ftn compilers on archer. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
## Makefile to be build in Docker. | ||
|
||
##intel | ||
# F90=mpiifort | ||
#GFORTRAN | ||
F90=mpif90 | ||
LD=$(F90) | ||
# ifdef HPCTOOLKIT | ||
# $(info HPCToolkit is loaded - building version for profiling) | ||
# DBGFLAGS=-g -debug inline-debug-info | ||
# else | ||
# $(info HPCToolkit is not loaded - building release version) | ||
# DBGFLAGS= | ||
# endif | ||
|
||
|
||
#intel MKL | ||
# BLASFLAGS= -I${MKLROOT}/include | ||
# BLASLIBS= -Wl,--start-group ${MKLROOT}/lib/intel64/libmkl_intel_lp64.a ${MKLROOT}/lib/intel64/libmkl_sequential.a ${MKLROOT}/lib/intel64/libmkl_core.a -Wl,--end-group -lpthread -lm -ldl | ||
|
||
BLASFLAGS= -I /usr/include/x86_64-linux-gnu/openblas-pthread #Ensure that you include your BLAS library path here | ||
BLASLIBS= /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.a #Ensure that you include your BLAS library path here | ||
GKLIB= /root/local/lib/libGKlib.a | ||
METISLIB= /root/local/lib/libmetis.a | ||
PARMETISLIB= /root/local/lib/libparmetis.a | ||
|
||
|
||
#amdblis aocl | ||
#BLASFLAGS= -I/opt/hlrs/non-spack/libraries/aocl-gcc/2.1.0/amd-blis/include/ | ||
#BLASLIBS= /opt/hlrs/non-spack/libraries/aocl-gcc/2.1.0/amd-blis/lib/libblis.a | ||
|
||
# OFLAGS= | ||
# #intel compilers | ||
# # debug run | ||
# #FFLAGS=-i4 -r8 -O0 -g -debug all -xHost -traceback -qopenmp -qopenmp-link=static $(BLASFLAGS) -check bounds -fp-model strict -debug inline-debug-info -zero | ||
# # production run | ||
# #FFLAGS=-i4 -r8 -ipo -march=core-avx2 -mtune=core-avx2 -O3 -fp-model precise -zero -qopenmp -qopenmp-link=static $(BLASFLAGS) #amd zen | ||
# FFLAGS=-i4 -r8 -ipo -xHost -O3 -fp-model precise -zero -qopenmp -qopenmp-link=static $(BLASFLAGS) | ||
|
||
|
||
#gfortran | ||
#debug run | ||
#FFLAGS=-ffree-line-length-none -fdefault-real-8 -fopenmp -Wall -fbounds-check -finit-local-zero -fdump-parse-tree -fdump-core -fbacktrace -fdefault-double-8 -fbackslash -O0 -fcray-pointer -Wno-lto-type-mismatch -fPIE $(BLASFLAGS) | ||
#production run | ||
FFLAGS=-fdefault-real-8 -fdefault-double-8 -fbackslash -fopenmp -ffree-line-length-none -finit-local-zero -fimplicit-none -flto -fcray-pointer -O3 -march=native -Wno-lto-type-mismatch -fPIE $(BLASFLAGS) | ||
|
||
#aocl | ||
#FFLAGS= -O3 -Mfreeform -Mallocatable=03 -Mdaz -fdefault-real-8 -fopenmp -mavx2 -march=znver2 $(BLASFLAGS) | ||
#FFLAGS= -O2 -mp -fdefault-real-8 -flto -fopenmp -mavx2 -march=znver2 $(BLASFLAGS) | ||
|
||
#gnu hybrid static dynamic | ||
# LIBS = -Wl,-Bstatic libparmetis.a libmetis.a libtecio.a $(BLASLIBS) -Wl,-Bdynamic -lstdc++ -lpthread -lm -ldl -lc -lmpi | ||
LIBS = -Wl,-V,-Bstatic libtecio.a $(BLASLIBS) $(GKLIB) $(METISLIB) $(PARMETISLIB) -Wl,-Bdynamic -lstdc++ -lpthread -lm -ldl -lc -lmpi | ||
|
||
|
||
#intel static linking | ||
# LIBS = libparmetis.a libmetis.a libtecio.a $(BLASLIBS) -lstdc++ | ||
|
||
include Makefile_common | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Static libraries required to compile and run UCNS3D | ||
|
||
Precompiled metis, parmetis and tecplot static libraries. They can be used to link during compilation. |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
# Scripts to translate input formats | ||
|
||
these translators can be compiled with the following command to translate meshes generated in STAR CD format or UGRID format | ||
to native UCNS3D binary format | ||
|
||
compile with | ||
|
||
ifort -i4 -r8 "name of .f90 file" | ||
compile with and run | ||
|
||
execute | ||
``` | ||
ifort -i4 -r8 ".f90" | ||
``` |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,19 @@ | ||
## Makefile to be build in Docker. | ||
# Makefile to be build with Docker. | ||
|
||
##intel | ||
# F90=mpiifort | ||
#GFORTRAN | ||
F90=mpif90 | ||
LD=$(F90) | ||
# ifdef HPCTOOLKIT | ||
# $(info HPCToolkit is loaded - building version for profiling) | ||
# DBGFLAGS=-g -debug inline-debug-info | ||
# else | ||
# $(info HPCToolkit is not loaded - building release version) | ||
# DBGFLAGS= | ||
# endif | ||
|
||
|
||
#intel MKL | ||
# BLASFLAGS= -I${MKLROOT}/include | ||
# BLASLIBS= -Wl,--start-group ${MKLROOT}/lib/intel64/libmkl_intel_lp64.a ${MKLROOT}/lib/intel64/libmkl_sequential.a ${MKLROOT}/lib/intel64/libmkl_core.a -Wl,--end-group -lpthread -lm -ldl | ||
|
||
BLASFLAGS= -I /usr/include/x86_64-linux-gnu/openblas-pthread #Ensure that you include your BLAS library path here | ||
BLASLIBS= /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.a #Ensure that you include your BLAS library path here | ||
#PARMETISLIBS= /root/local/lib/libparmetis.a | ||
|
||
#amdblis aocl | ||
#BLASFLAGS= -I/opt/hlrs/non-spack/libraries/aocl-gcc/2.1.0/amd-blis/include/ | ||
#BLASLIBS= /opt/hlrs/non-spack/libraries/aocl-gcc/2.1.0/amd-blis/lib/libblis.a | ||
|
||
# OFLAGS= | ||
# #intel compilers | ||
# # debug run | ||
# #FFLAGS=-i4 -r8 -O0 -g -debug all -xHost -traceback -qopenmp -qopenmp-link=static $(BLASFLAGS) -check bounds -fp-model strict -debug inline-debug-info -zero | ||
# # production run | ||
# #FFLAGS=-i4 -r8 -ipo -march=core-avx2 -mtune=core-avx2 -O3 -fp-model precise -zero -qopenmp -qopenmp-link=static $(BLASFLAGS) #amd zen | ||
# FFLAGS=-i4 -r8 -ipo -xHost -O3 -fp-model precise -zero -qopenmp -qopenmp-link=static $(BLASFLAGS) | ||
GKLIB= /root/local/lib/libGKlib.a | ||
METISLIB= /root/local/lib/libmetis.a | ||
PARMETISLIB= /root/local/lib/libparmetis.a | ||
|
||
|
||
#gfortran | ||
#debug run | ||
#FFLAGS=-ffree-line-length-none -fdefault-real-8 -fopenmp -Wall -fbounds-check -finit-local-zero -fdump-parse-tree -fdump-core -fbacktrace -fdefault-double-8 -fbackslash -O0 -fcray-pointer -Wno-lto-type-mismatch -fPIE $(BLASFLAGS) | ||
#production run | ||
FFLAGS=-fdefault-real-8 -fdefault-double-8 -fbackslash -fopenmp -ffree-line-length-none -finit-local-zero -fimplicit-none -flto -fcray-pointer -O3 -march=native -Wno-lto-type-mismatch -fPIE $(BLASFLAGS) | ||
|
||
#aocl | ||
#FFLAGS= -O3 -Mfreeform -Mallocatable=03 -Mdaz -fdefault-real-8 -fopenmp -mavx2 -march=znver2 $(BLASFLAGS) | ||
#FFLAGS= -O2 -mp -fdefault-real-8 -flto -fopenmp -mavx2 -march=znver2 $(BLASFLAGS) | ||
|
||
#gnu hybrid static dynamic | ||
LIBS = -Wl,-Bstatic libparmetis.a libmetis.a libtecio.a $(BLASLIBS) -Wl,-Bdynamic -lstdc++ -lpthread -lm -ldl -lc -lmpi | ||
|
||
#intel static linking | ||
# LIBS = libparmetis.a libmetis.a libtecio.a $(BLASLIBS) -lstdc++ | ||
LIBS = -Wl,-V,-Bstatic libtecio.a $(BLASLIBS) $(GKLIB) $(METISLIB) $(PARMETISLIB) -Wl,-Bdynamic -lstdc++ -lpthread -lm -ldl -lc -lmpi | ||
|
||
include Makefile.common | ||
include Makefile_common | ||
|
||
|
||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.