Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PuReMD
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
SParTA
PuReMD
Commits
1f53867e
Commit
1f53867e
authored
4 years ago
by
Kurt A. O'Hearn
Browse files
Options
Downloads
Patches
Plain Diff
sPuReMD: add checks for GNU scientific library (GSL) for use during energy minimization.
parent
de86239e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile.am
+2
-2
2 additions, 2 deletions
Makefile.am
configure.ac
+29
-0
29 additions, 0 deletions
configure.ac
with
31 additions
and
2 deletions
Makefile.am
+
2
−
2
View file @
1f53867e
...
...
@@ -75,13 +75,13 @@ sPuReMD_lib_libspuremd_la_SOURCES = sPuReMD/src/allocate.c \
sPuReMD_lib_libspuremd_la_CFLAGS
=
@DFT_CFLAGS@ @CFLAGS_EXTRA@ @OMP_CFLAGS@
sPuReMD_lib_libspuremd_la_CPPFLAGS
=
-I
sPuReMD/src @CPPFLAGS_EXTRA@
sPuReMD_lib_libspuremd_la_LDFLAGS
=
-version-info
1:0:0
sPuReMD_lib_libspuremd_la_LIBADD
=
@OMP_LIBS@ @L_LIBS@ @T_LIBS@
sPuReMD_lib_libspuremd_la_LIBADD
=
@OMP_LIBS@ @L_LIBS@ @T_LIBS@
@G_LIBS@
bin_PROGRAMS
=
sPuReMD/bin/spuremd
sPuReMD_bin_spuremd_SOURCES
=
sPuReMD/src/driver.c
sPuReMD_bin_spuremd_CFLAGS
=
@DFT_CFLAGS@ @CFLAGS_EXTRA@ @OMP_CFLAGS@
sPuReMD_bin_spuremd_CPPFLAGS
=
-I
sPuReMD/src @CPPFLAGS_EXTRA@
sPuReMD_bin_spuremd_LDADD
=
sPuReMD/lib/libspuremd.la @OMP_LIBS@ @L_LIBS@ @T_LIBS@
sPuReMD_bin_spuremd_LDADD
=
sPuReMD/lib/libspuremd.la @OMP_LIBS@ @L_LIBS@ @T_LIBS@
@G_LIBS@
check_PROGRAMS
=
TESTS
=
...
...
This diff is collapsed.
Click to expand it.
configure.ac
+
29
−
0
View file @
1f53867e
...
...
@@ -290,6 +290,35 @@ if test "x${pack_serial_enabled}" = "xyes" || test "x${pack_openmp_enabled}" = "
fi
AC_SUBST([T_LIBS], ["${TENSORFLOW_LIBS}"])
# Check for GNU Scientific Library (for energy minimization)
GSL_LIBS=
AC_CHECK_HEADERS([gsl/gsl_sf_bessel.h], [GSL_FOUND_HEADERS="yes"])
if test "x${GSL_FOUND_HEADERS}" = "xyes"; then
# BUG: AC_SEARCH_LIBS fails to reset LIBS when nested in conditional statements, so do it manually
save_LIBS="${LIBS}"
AC_SEARCH_LIBS([gsl_sf_bessel_J0], [gsl],
[GSL_FOUND_LIBS="yes"], [GSL_FOUND_LIBS="no"],
[-lgslcblas -m])
LIBS="${save_LIBS}"
AS_IF([test "x${GSL_FOUND_LIBS}" != "xyes"],
[AC_MSG_WARN([
----------------------------------------------------
Unable to find GNU scientific library (GSL) on this system.
Disabling support for dependent methods.
----------------------------------------------------])])
if test "x${GSL_FOUND_HEADERS}" = "xyes" && test "x${GSL_FOUND_LIBS}" = "xyes"; then
GSL_LIBS="-lgsl -lgslcblas -m"
fi
AC_DEFINE([HAVE_GSL], [1], [Define to 1 if you have GNU scientific library (GSL) support enabled.])
else
AC_MSG_WARN([
--------------------------------------------------
Unable to find GNU scientific library (GSL) headers on this system.
Disabling support for dependent methods.
--------------------------------------------------])
fi
AC_SUBST([G_LIBS], ["${GSL_LIBS}"])
AC_LANG_POP([C])
fi
AM_CONDITIONAL([BUILD_S_OMP], [test "x${pack_serial_enabled}" = "xyes" || test "x${pack_openmp_enabled}" = "xyes"])
...
...
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