Skip to content

Commit

Permalink
v5.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
DrTimothyAldenDavis committed Oct 19, 2019
1 parent ccf4c9e commit f5e8be9
Show file tree
Hide file tree
Showing 1,117 changed files with 520,384 additions and 2,533 deletions.
222 changes: 0 additions & 222 deletions .gitignore

This file was deleted.

4 changes: 2 additions & 2 deletions AMD/Doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ distclean: clean
#------------------------------------------------------------------------------

AMD_UserGuide.pdf: AMD_UserGuide.tex AMD_UserGuide.bib ../Include/amd.h
echo '\begin{verbatim}' > amd_h.tex
echo '\\begin{verbatim}' > amd_h.tex
expand -8 ../Include/amd.h >> amd_h.tex
echo '\end{verbatim}' >> amd_h.tex
echo '\\end{verbatim}' >> amd_h.tex
pdflatex AMD_UserGuide
bibtex AMD_UserGuide
pdflatex AMD_UserGuide
Expand Down
4 changes: 2 additions & 2 deletions CAMD/Doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ distclean: clean
#------------------------------------------------------------------------------

CAMD_UserGuide.pdf: CAMD_UserGuide.tex CAMD_UserGuide.bib ../Include/camd.h
echo '\begin{verbatim}' > camd_h.tex
echo '\\begin{verbatim}' > camd_h.tex
expand -8 ../Include/camd.h >> camd_h.tex
echo '\end{verbatim}' >> camd_h.tex
echo '\\end{verbatim}' >> camd_h.tex
pdflatex CAMD_UserGuide
bibtex CAMD_UserGuide
pdflatex CAMD_UserGuide
Expand Down
2 changes: 1 addition & 1 deletion CSparse/Lib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
# CSparse/Lib. It does not install it for system-wide usage.

LIBRARY = libcsparse
CF = $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -O

CF = $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -O -fPIC
I = -I../Include
RANLIB = ranlib
ARCHIVE = $(AR) $(ARFLAGS)
Expand Down
13 changes: 13 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
Dec 23, 2017: SuiteSparse 5.1.2

* improved build process for GraphBLAS
* minor change to CSparse/Lib/Makefile, no change in CSparse version

Dec 17, 2017: SuiteSparse 5.1.1

* GraphBLAS added to top-level SuiteSparse/Makefile
* GraphBLAS 1.1.1: bug fix to *assign, split AxB for faster compile,
added memory usage statistics, AxB performance improvment
* minor update to [AMD CAMD KLU]/Doc/Makefile's, no change to
version numbers of AMD, CAMD, or KLU

Dec 1, 2017: SuiteSparse 5.1.0

* GraphBLAS 1.1.0
Expand Down
1 change: 1 addition & 0 deletions GraphBLAS/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ Test/log.txt
Doc/GraphBLAS_UserGuide.log
Doc/GraphBLAS_UserGuide.out
Tcov/cover_GB_2type_template.c
Tcov/cover_GB_AxB.c
Tcov/cover_GB_AxB_compare_template.c
Tcov/cover_GB_AxB_factory.c
Tcov/cover_GB_AxB_template.c
Expand Down
60 changes: 50 additions & 10 deletions GraphBLAS/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ cmake_minimum_required ( VERSION 2.8.12 )

project ( graphblas )

include ( GNUInstallDirs )

if ( CMAKE_VERSION VERSION_GREATER "3.0" )
cmake_policy ( SET CMP0042 NEW )
endif ( )
Expand All @@ -51,20 +53,20 @@ endif ( )
set ( CMAKE_INCLUDE_CURRENT_DIR ON )

# include directories for both graphblas and graphblasdemo libraries
include_directories ( Source/Template Include Demo/Include )
include_directories ( Source/Template Source Source/Generated Include Demo/Include )

# check which compiler is being used. If you need to make
# compiler-specific modifications, here is the place to do it.
if ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
# cmake 2.8 workaround: gcc needs to be told to do ANSI C11.
# cmake 3.0 doesn't have this problem.
set (CMAKE_C_FLAGS "-std=c11 -lm")
set (CMAKE_C_FLAGS "-std=c11 -lm -fopenmp")
if (CMAKE_C_COMPILER_VERSION VERSION_LESS 4.9)
message (FATAL_ERROR "gcc version must be at least 4.9")
endif ( )
elseif ("${CMAKE_C_COMPILER_ID}" STREQUAL "Intel")
# options for icc: also needs -std=c11
set (CMAKE_C_FLAGS "-std=c11")
set (CMAKE_C_FLAGS "-std=c11 -fopenmp")
if (CMAKE_C_COMPILER_VERSION VERSION_LESS 18.0)
message (FATAL_ERROR "icc version must be at least 18.0")
endif ( )
Expand All @@ -77,19 +79,51 @@ elseif ("${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC")
# options for MicroSoft Visual Studio
endif ( )

# create the graphblas library. Requires ANSI C11
file ( GLOB GRAPHBLAS_SOURCES "Source/*.c" )
# create the dynamic graphblas library. Requires ANSI C11
file ( GLOB GRAPHBLAS_SOURCES "Source/*.c" "Source/Generated/*.c" )
add_library ( graphblas SHARED ${GRAPHBLAS_SOURCES} )
SET_TARGET_PROPERTIES ( graphblas PROPERTIES VERSION 1.1.0
SET_TARGET_PROPERTIES ( graphblas PROPERTIES VERSION 1.1.2
SOVERSION 1
C_STANDARD_REQUIRED 11
PUBLIC_HEADER "Include/GraphBLAS.h" )
set_property ( TARGET graphblas PROPERTY C_STANDARD 11 )

# create the static graphblas library. Requires ANSI C11
add_library ( graphblas_static STATIC ${GRAPHBLAS_SOURCES} )
SET_TARGET_PROPERTIES ( graphblas_static PROPERTIES VERSION 1.1.2
OUTPUT_NAME graphblas
POSITION_INDEPENDENT_CODE OFF
SOVERSION 1
C_STANDARD_REQUIRED 11
PUBLIC_HEADER "Include/GraphBLAS.h" )
set_property ( TARGET graphblas_static PROPERTY C_STANDARD 11 )

# Notes from Sebastien Villemot ([email protected]):
# SOVERSION policy: if a binary compiled against the old version of the shared
# library needs recompiling in order to work with the new version, then a
# SO_VERSION increase # is needed. Otherwise not. Examples of the changes that
# require a SO_VERSION increase:
#
# - a public function or static variable is removed
# - the prototype of a public function changes
# - the integer value attached to a public #define or enum changes
# - the fields of a public structure are modified
#
# Examples of changes that do not require a SO_VERSION increase:
#
# - a new public function or static variable is added
# - a private function or static variable is removed or modified
# - changes in the internals of a structure that is opaque to the calling
# program (i.e. is only a pointer manipulated through public functions of
# the library)
# - a public enum is extended (by adding a new item at the end, but without
# changing the already existing items)

# graphblas installation location
install ( TARGETS graphblas
LIBRARY DESTINATION /usr/local/lib
PUBLIC_HEADER DESTINATION /usr/local/include )
install ( TARGETS graphblas graphblas_static
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} )

# Demo library
file ( GLOB DEMO_SOURCES "Demo/Source/*.c" )
Expand All @@ -98,7 +132,13 @@ SET_TARGET_PROPERTIES ( graphblasdemo PROPERTIES
C_STANDARD_REQUIRED 11 )
set_property ( TARGET graphblasdemo PROPERTY C_STANDARD 11 )

target_link_libraries ( graphblasdemo graphblas )
add_library ( graphblasdemo_static STATIC ${DEMO_SOURCES} )
SET_TARGET_PROPERTIES ( graphblasdemo_static PROPERTIES
C_STANDARD_REQUIRED 11 )
set_property ( TARGET graphblasdemo_static PROPERTY C_STANDARD 11 )

target_link_libraries ( graphblasdemo m graphblas )
target_link_libraries ( graphblasdemo_static graphblas_static )

# Demo programs
add_executable ( bfs_demo "Demo/Program/bfs_demo.c" )
Expand Down
Loading

0 comments on commit f5e8be9

Please sign in to comment.