Skip to content

Commit f5e8be9

Browse files
v5.1.2
1 parent ccf4c9e commit f5e8be9

File tree

1,117 files changed

+520384
-2533
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,117 files changed

+520384
-2533
lines changed

.gitignore

Lines changed: 0 additions & 222 deletions
This file was deleted.

AMD/Doc/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ distclean: clean
2323
#------------------------------------------------------------------------------
2424

2525
AMD_UserGuide.pdf: AMD_UserGuide.tex AMD_UserGuide.bib ../Include/amd.h
26-
echo '\begin{verbatim}' > amd_h.tex
26+
echo '\\begin{verbatim}' > amd_h.tex
2727
expand -8 ../Include/amd.h >> amd_h.tex
28-
echo '\end{verbatim}' >> amd_h.tex
28+
echo '\\end{verbatim}' >> amd_h.tex
2929
pdflatex AMD_UserGuide
3030
bibtex AMD_UserGuide
3131
pdflatex AMD_UserGuide

CAMD/Doc/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ distclean: clean
2323
#------------------------------------------------------------------------------
2424

2525
CAMD_UserGuide.pdf: CAMD_UserGuide.tex CAMD_UserGuide.bib ../Include/camd.h
26-
echo '\begin{verbatim}' > camd_h.tex
26+
echo '\\begin{verbatim}' > camd_h.tex
2727
expand -8 ../Include/camd.h >> camd_h.tex
28-
echo '\end{verbatim}' >> camd_h.tex
28+
echo '\\end{verbatim}' >> camd_h.tex
2929
pdflatex CAMD_UserGuide
3030
bibtex CAMD_UserGuide
3131
pdflatex CAMD_UserGuide

CSparse/Lib/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
# CSparse/Lib. It does not install it for system-wide usage.
1616

1717
LIBRARY = libcsparse
18+
CF = $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -O
1819

19-
CF = $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -O -fPIC
2020
I = -I../Include
2121
RANLIB = ranlib
2222
ARCHIVE = $(AR) $(ARFLAGS)

ChangeLog

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
Dec 23, 2017: SuiteSparse 5.1.2
2+
3+
* improved build process for GraphBLAS
4+
* minor change to CSparse/Lib/Makefile, no change in CSparse version
5+
6+
Dec 17, 2017: SuiteSparse 5.1.1
7+
8+
* GraphBLAS added to top-level SuiteSparse/Makefile
9+
* GraphBLAS 1.1.1: bug fix to *assign, split AxB for faster compile,
10+
added memory usage statistics, AxB performance improvment
11+
* minor update to [AMD CAMD KLU]/Doc/Makefile's, no change to
12+
version numbers of AMD, CAMD, or KLU
13+
114
Dec 1, 2017: SuiteSparse 5.1.0
215

316
* GraphBLAS 1.1.0

GraphBLAS/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ Test/log.txt
4848
Doc/GraphBLAS_UserGuide.log
4949
Doc/GraphBLAS_UserGuide.out
5050
Tcov/cover_GB_2type_template.c
51+
Tcov/cover_GB_AxB.c
5152
Tcov/cover_GB_AxB_compare_template.c
5253
Tcov/cover_GB_AxB_factory.c
5354
Tcov/cover_GB_AxB_template.c

GraphBLAS/CMakeLists.txt

Lines changed: 50 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ cmake_minimum_required ( VERSION 2.8.12 )
3737

3838
project ( graphblas )
3939

40+
include ( GNUInstallDirs )
41+
4042
if ( CMAKE_VERSION VERSION_GREATER "3.0" )
4143
cmake_policy ( SET CMP0042 NEW )
4244
endif ( )
@@ -51,20 +53,20 @@ endif ( )
5153
set ( CMAKE_INCLUDE_CURRENT_DIR ON )
5254

5355
# include directories for both graphblas and graphblasdemo libraries
54-
include_directories ( Source/Template Include Demo/Include )
56+
include_directories ( Source/Template Source Source/Generated Include Demo/Include )
5557

5658
# check which compiler is being used. If you need to make
5759
# compiler-specific modifications, here is the place to do it.
5860
if ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
5961
# cmake 2.8 workaround: gcc needs to be told to do ANSI C11.
6062
# cmake 3.0 doesn't have this problem.
61-
set (CMAKE_C_FLAGS "-std=c11 -lm")
63+
set (CMAKE_C_FLAGS "-std=c11 -lm -fopenmp")
6264
if (CMAKE_C_COMPILER_VERSION VERSION_LESS 4.9)
6365
message (FATAL_ERROR "gcc version must be at least 4.9")
6466
endif ( )
6567
elseif ("${CMAKE_C_COMPILER_ID}" STREQUAL "Intel")
6668
# options for icc: also needs -std=c11
67-
set (CMAKE_C_FLAGS "-std=c11")
69+
set (CMAKE_C_FLAGS "-std=c11 -fopenmp")
6870
if (CMAKE_C_COMPILER_VERSION VERSION_LESS 18.0)
6971
message (FATAL_ERROR "icc version must be at least 18.0")
7072
endif ( )
@@ -77,19 +79,51 @@ elseif ("${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC")
7779
# options for MicroSoft Visual Studio
7880
endif ( )
7981

80-
# create the graphblas library. Requires ANSI C11
81-
file ( GLOB GRAPHBLAS_SOURCES "Source/*.c" )
82+
# create the dynamic graphblas library. Requires ANSI C11
83+
file ( GLOB GRAPHBLAS_SOURCES "Source/*.c" "Source/Generated/*.c" )
8284
add_library ( graphblas SHARED ${GRAPHBLAS_SOURCES} )
83-
SET_TARGET_PROPERTIES ( graphblas PROPERTIES VERSION 1.1.0
85+
SET_TARGET_PROPERTIES ( graphblas PROPERTIES VERSION 1.1.2
8486
SOVERSION 1
8587
C_STANDARD_REQUIRED 11
8688
PUBLIC_HEADER "Include/GraphBLAS.h" )
8789
set_property ( TARGET graphblas PROPERTY C_STANDARD 11 )
8890

91+
# create the static graphblas library. Requires ANSI C11
92+
add_library ( graphblas_static STATIC ${GRAPHBLAS_SOURCES} )
93+
SET_TARGET_PROPERTIES ( graphblas_static PROPERTIES VERSION 1.1.2
94+
OUTPUT_NAME graphblas
95+
POSITION_INDEPENDENT_CODE OFF
96+
SOVERSION 1
97+
C_STANDARD_REQUIRED 11
98+
PUBLIC_HEADER "Include/GraphBLAS.h" )
99+
set_property ( TARGET graphblas_static PROPERTY C_STANDARD 11 )
100+
101+
# Notes from Sebastien Villemot ([email protected]):
102+
# SOVERSION policy: if a binary compiled against the old version of the shared
103+
# library needs recompiling in order to work with the new version, then a
104+
# SO_VERSION increase # is needed. Otherwise not. Examples of the changes that
105+
# require a SO_VERSION increase:
106+
#
107+
# - a public function or static variable is removed
108+
# - the prototype of a public function changes
109+
# - the integer value attached to a public #define or enum changes
110+
# - the fields of a public structure are modified
111+
#
112+
# Examples of changes that do not require a SO_VERSION increase:
113+
#
114+
# - a new public function or static variable is added
115+
# - a private function or static variable is removed or modified
116+
# - changes in the internals of a structure that is opaque to the calling
117+
# program (i.e. is only a pointer manipulated through public functions of
118+
# the library)
119+
# - a public enum is extended (by adding a new item at the end, but without
120+
# changing the already existing items)
121+
89122
# graphblas installation location
90-
install ( TARGETS graphblas
91-
LIBRARY DESTINATION /usr/local/lib
92-
PUBLIC_HEADER DESTINATION /usr/local/include )
123+
install ( TARGETS graphblas graphblas_static
124+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
125+
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
126+
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} )
93127

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

101-
target_link_libraries ( graphblasdemo graphblas )
135+
add_library ( graphblasdemo_static STATIC ${DEMO_SOURCES} )
136+
SET_TARGET_PROPERTIES ( graphblasdemo_static PROPERTIES
137+
C_STANDARD_REQUIRED 11 )
138+
set_property ( TARGET graphblasdemo_static PROPERTY C_STANDARD 11 )
139+
140+
target_link_libraries ( graphblasdemo m graphblas )
141+
target_link_libraries ( graphblasdemo_static graphblas_static )
102142

103143
# Demo programs
104144
add_executable ( bfs_demo "Demo/Program/bfs_demo.c" )

0 commit comments

Comments
 (0)