-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Coded first version for linking automatically ydiago library from Mu…
…rali Version 5.2.0, Revision 23111, Hash 7456c06 MODIFIED * .gitignore config/configure.ac config/m4/acx_report.m4 config/mk/global/actions/compile_external_libraries.mk config/mk/global/actions/download_external_libraries.mk config/mk/global/defs.mk.in config/report.in config/setup.in configure include/version/version.m4 lib/archive/Makefile.loc lib/archive/git.list.in lib/archive/package.list sbin/compilation/libraries.sh NEW * config/m4/yambo_diago.m4 lib/ydiago/Makefile.loc lib/ydiago/make_ydiago.inc.in Bugs: - Additions: - Changes: - Patch sent by: Davide Sangalli <[email protected]>
- Loading branch information
1 parent
7456c06
commit eb83226
Showing
17 changed files
with
244 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# | ||
# License-Identifier: GPL | ||
# | ||
# Copyright (C) 2016 The Yambo Team | ||
# | ||
# Authors (see AUTHORS file for details): AM | ||
# | ||
AC_DEFUN([AC_YDIAGO],[ | ||
# | ||
AC_ARG_WITH(ydiago-branch,[AS_HELP_STRING([--with-ydiago-branch=<branch>],[Use the <branch> of the ydiago repository.],[32])],,[with_ydiago_branch=none]) | ||
# | ||
AC_CONFIG_FILES([lib/ydiago/make_ydiago.inc:lib/ydiago/make_ydiago.inc.in]) | ||
if test x"$with_ydiago_branch" = "xnone"; then | ||
ydiago_check="D"; | ||
else | ||
ydiago_check="G"; | ||
fi | ||
YDIAGO_LIBS="${extlibs_path}/${FCKIND}/${FC}/lib/libydiago.a" | ||
AC_SUBST(YDIAGO_LIBS) | ||
AC_SUBST(ydiago_check) | ||
AC_SUBST(with_ydiago_branch) | ||
]) |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#! /bin/sh | ||
# Guess values for system-dependent variables and create Makefiles. | ||
# Generated by GNU Autoconf 2.71 for Yambo 5.2.0 r.23096 h.f147e08b32. | ||
# Generated by GNU Autoconf 2.71 for Yambo 5.2.0 r.23111 h.7456c06ea5. | ||
# | ||
# Report bugs to <[email protected]>. | ||
# | ||
|
@@ -610,8 +610,8 @@ MAKEFLAGS= | |
# Identity of this package. | ||
PACKAGE_NAME='Yambo' | ||
PACKAGE_TARNAME='yambo' | ||
PACKAGE_VERSION='5.2.0 r.23096 h.f147e08b32' | ||
PACKAGE_STRING='Yambo 5.2.0 r.23096 h.f147e08b32' | ||
PACKAGE_VERSION='5.2.0 r.23111 h.7456c06ea5' | ||
PACKAGE_STRING='Yambo 5.2.0 r.23111 h.7456c06ea5' | ||
PACKAGE_BUGREPORT='[email protected]' | ||
PACKAGE_URL='' | ||
|
||
|
@@ -808,6 +808,9 @@ internal_blas | |
FLIBS | ||
YDB_dir | ||
GIT | ||
with_ydiago_branch | ||
ydiago_check | ||
YDIAGO_LIBS | ||
with_ydriver_branch | ||
DRIVER_INCS | ||
Ydriver_check | ||
|
@@ -964,6 +967,7 @@ with_mpi_path | |
with_mpi_libdir | ||
with_mpi_includedir | ||
with_ydriver_branch | ||
with_ydiago_branch | ||
enable_ydb | ||
with_blas_libs | ||
enable_int_linalg | ||
|
@@ -1600,7 +1604,7 @@ if test "$ac_init_help" = "long"; then | |
# Omit some internal or obsolete options to make the list less imposing. | ||
# This message is too long to be a string in the A/UX 3.1 sh. | ||
cat <<_ACEOF | ||
\`configure' configures Yambo 5.2.0 r.23096 h.f147e08b32 to adapt to many kinds of systems. | ||
\`configure' configures Yambo 5.2.0 r.23111 h.7456c06ea5 to adapt to many kinds of systems. | ||
Usage: $0 [OPTION]... [VAR=VALUE]... | ||
|
@@ -1666,7 +1670,7 @@ fi | |
|
||
if test -n "$ac_init_help"; then | ||
case $ac_init_help in | ||
short | recursive ) echo "Configuration of Yambo 5.2.0 r.23096 h.f147e08b32:";; | ||
short | recursive ) echo "Configuration of Yambo 5.2.0 r.23111 h.7456c06ea5:";; | ||
esac | ||
cat <<\_ACEOF | ||
|
@@ -1732,6 +1736,7 @@ Optional Packages: | |
--with-mpi-includedir=<path> Path to the MPI include directory | ||
--with-ydriver-branch=<branch> | ||
Use the <branch> of the ydriver repository. | ||
--with-ydiago-branch=<branch> Use the <branch> of the ydiago repository. | ||
--with-blas-libs=<libs> Use BLAS libraries <libs> | ||
--with-lapack-libs=<libs> Use LAPACK libraries <libs> | ||
--with-fft-libs=<libs> Link to FFT libraries | ||
|
@@ -1876,7 +1881,7 @@ fi | |
test -n "$ac_init_help" && exit $ac_status | ||
if $ac_init_version; then | ||
cat <<\_ACEOF | ||
Yambo configure 5.2.0 r.23096 h.f147e08b32 | ||
Yambo configure 5.2.0 r.23111 h.7456c06ea5 | ||
generated by GNU Autoconf 2.71 | ||
Copyright (C) 2021 Free Software Foundation, Inc. | ||
|
@@ -2505,7 +2510,7 @@ cat >config.log <<_ACEOF | |
This file contains any messages produced by compilers while | ||
running configure, to aid debugging if configure makes a mistake. | ||
It was created by Yambo $as_me 5.2.0 r.23096 h.f147e08b32, which was | ||
It was created by Yambo $as_me 5.2.0 r.23111 h.7456c06ea5, which was | ||
generated by GNU Autoconf 2.71. Invocation command line was | ||
$ $0$ac_configure_args_raw | ||
|
@@ -3263,8 +3268,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
SVERSION="5" | ||
SSUBVERSION="2" | ||
SPATCHLEVEL="0" | ||
SREVISION="23096" | ||
SHASH="f147e08b32" | ||
SREVISION="23111" | ||
SHASH="7456c06ea5" | ||
|
||
|
||
|
||
|
@@ -4625,6 +4630,15 @@ fi | |
# | ||
|
||
|
||
# | ||
# License-Identifier: GPL | ||
# | ||
# Copyright (C) 2016 The Yambo Team | ||
# | ||
# Authors (see AUTHORS file for details): AM | ||
# | ||
|
||
|
||
# | ||
# General | ||
# | ||
|
@@ -10309,6 +10323,31 @@ fi | |
|
||
|
||
|
||
|
||
|
||
# | ||
|
||
# Check whether --with-ydiago-branch was given. | ||
if test ${with_ydiago_branch+y} | ||
then : | ||
withval=$with_ydiago_branch; | ||
else $as_nop | ||
with_ydiago_branch=none | ||
fi | ||
|
||
# | ||
ac_config_files="$ac_config_files lib/ydiago/make_ydiago.inc:lib/ydiago/make_ydiago.inc.in" | ||
|
||
if test x"$with_ydiago_branch" = "xnone"; then | ||
ydiago_check="D"; | ||
else | ||
ydiago_check="G"; | ||
fi | ||
YDIAGO_LIBS="${extlibs_path}/${FCKIND}/${FC}/lib/libydiago.a" | ||
|
||
|
||
|
||
|
||
# ============================================================================ | ||
# YDB/YAMBOpy | ||
|
||
|
@@ -15410,7 +15449,7 @@ if test x"$enable_nvtx" = "x"; then enable_nvtx="no" ; fi | |
# | ||
def_cuda="" | ||
CUDA_FLAGS="" | ||
CUDA_LIBS="-Mcudalib=cufft,cublas,cusolver" | ||
CUDA_LIBS="-cudalib=cufft,cublas,cusolver" | ||
|
||
# Available cc options: | ||
# cc20 Compile for compute capability 2.0 | ||
|
@@ -15432,12 +15471,12 @@ CUDA_LIBS="-Mcudalib=cufft,cublas,cusolver" | |
printf %s "checking for CUDA support... " >&6; } | ||
if test x"$enable_cuda" = "xyes" ; then | ||
def_cuda="-D_CUDA" | ||
CUDA_FLAGS="-Mcuda=cuda9.0,cc70,nollvm $CUDA_LIBS" | ||
CUDA_FLAGS="-cuda -gpu=cuda9.0,cc70,nollvm $CUDA_LIBS" | ||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CUDA_FLAGS" >&5 | ||
printf "%s\n" "$CUDA_FLAGS" >&6; } | ||
elif ! test x"$enable_cuda" = "x" ; then | ||
def_cuda="-D_CUDA" | ||
CUDA_FLAGS="-Mcuda=$enable_cuda $CUDA_LIBS" | ||
CUDA_FLAGS="-cuda -gpu=$enable_cuda $CUDA_LIBS" | ||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CUDA_FLAGS" >&5 | ||
printf "%s\n" "$CUDA_FLAGS" >&6; } | ||
fi | ||
|
@@ -15679,6 +15718,17 @@ fi | |
# STRIPE [LIB] from paths | ||
# | ||
|
||
TMP1=`echo $YDIAGO_LIBS | sed 's/\//+/g'` | ||
TMP2=`echo $extlibs_path/${FCKIND}/${FC} | sed 's/\//+/g'` | ||
TMP3=`echo $TMP1 | sed "s/$TMP2/\(LIB\)/g"` | ||
STRIPE=`echo $TMP3 | sed 's/+/\//g'` | ||
if [ -z "${1// }" ]; then | ||
STRIPE="$STRIPE ("LIB")" | ||
fi | ||
|
||
YDIAGO_LIBS_R=$STRIPE | ||
# | ||
|
||
TMP1=`echo $IOTK_LIBS | sed 's/\//+/g'` | ||
TMP2=`echo $extlibs_path/${FCKIND}/${FC} | sed 's/\//+/g'` | ||
TMP3=`echo $TMP1 | sed "s/$TMP2/\(LIB\)/g"` | ||
|
@@ -16578,7 +16628,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
# report actual input values of CONFIG_FILES etc. instead of their | ||
# values after options handling. | ||
ac_log=" | ||
This file was extended by Yambo $as_me 5.2.0 r.23096 h.f147e08b32, which was | ||
This file was extended by Yambo $as_me 5.2.0 r.23111 h.7456c06ea5, which was | ||
generated by GNU Autoconf 2.71. Invocation command line was | ||
CONFIG_FILES = $CONFIG_FILES | ||
|
@@ -16642,7 +16692,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\ | |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
ac_cs_config='$ac_cs_config_escaped' | ||
ac_cs_version="\\ | ||
Yambo config.status 5.2.0 r.23096 h.f147e08b32 | ||
Yambo config.status 5.2.0 r.23111 h.7456c06ea5 | ||
configured by $0, generated by GNU Autoconf 2.71, | ||
with options \\"\$ac_cs_config\\" | ||
|
@@ -16763,6 +16813,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
for ac_config_target in $ac_config_targets | ||
do | ||
case $ac_config_target in | ||
"lib/ydiago/make_ydiago.inc") CONFIG_FILES="$CONFIG_FILES lib/ydiago/make_ydiago.inc:lib/ydiago/make_ydiago.inc.in" ;; | ||
"lib/fftqe/c_defs.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/fftqe/c_defs.h:lib/fftqe/c_defs.h.in" ;; | ||
"lib/fftqe/fftqe_defs.h") CONFIG_FILES="$CONFIG_FILES lib/fftqe/fftqe_defs.h:lib/fftqe/fftqe_defs.h.in" ;; | ||
"lib/iotk/make_iotk.inc") CONFIG_FILES="$CONFIG_FILES lib/iotk/make_iotk.inc:lib/iotk/make_iotk.inc.in" ;; | ||
|
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,9 +1,9 @@ | ||
AC_INIT(Yambo, 5.2.0 r.23096 h.f147e08b32, [email protected]) | ||
AC_INIT(Yambo, 5.2.0 r.23111 h.7456c06ea5, [email protected]) | ||
SVERSION="5" | ||
SSUBVERSION="2" | ||
SPATCHLEVEL="0" | ||
SREVISION="23096" | ||
SHASH="f147e08b32" | ||
SREVISION="23111" | ||
SHASH="7456c06ea5" | ||
AC_SUBST(SVERSION) | ||
AC_SUBST(SSUBVERSION) | ||
AC_SUBST(SPATCHLEVEL) | ||
|
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 |
---|---|---|
|
@@ -7,3 +7,6 @@ | |
# | ||
[email protected]:yambo-code/Ydriver.git | ||
branch_Ydriver=@with_ydriver_branch@ | ||
|
||
[email protected]:yambo-code/Ydiago.git | ||
branch_Ydiago=@with_ydiago_branch@ |
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
Oops, something went wrong.