Skip to content

Commit 83d3d11

Browse files
authored
Merge branch 'development' into dash-v0.3.0-changelog
2 parents 14d9c6b + 768a304 commit 83d3d11

File tree

4 files changed

+40
-17
lines changed

4 files changed

+40
-17
lines changed

CMakeExt/CompilerFlags.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,13 @@ if (ENABLE_DEV_COMPILER_WARNINGS
137137
endif()
138138
endif()
139139

140+
if (NOT (ENABLE_DEV_COMPILER_WARNINGS
141+
OR ENABLE_EXT_COMPILER_WARNINGS)
142+
AND NOT "${CMAKE_CXX_COMPILER_ID}" MATCHES "Cray")
143+
set(CMAKE_C_FLAGS
144+
"${CMAKE_C_FLAGS} -Wno-format")
145+
endif()
146+
140147
set (CXX_GDB_FLAG "-g"
141148
CACHE STRING "C++ compiler (clang++) debug symbols flag")
142149
if(OPENMP_FOUND)

CMakeExt/GoogleTest.cmake

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ if (BUILD_TESTS)
4848

4949
else()
5050
# Download gtest from official github repository:
51-
message(STATUS "GoogleTest: using GTest from official repository")
5251
set(GTEST_SUBMOD "${CMAKE_SOURCE_DIR}/vendor/googletest")
5352
set(GTEST_PREFIX "${CMAKE_BINARY_DIR}/gtest")
5453
set(GTEST_LOCATION "${GTEST_PREFIX}/src/GTestExternal-build/googlemock/gtest")
@@ -57,21 +56,24 @@ if (BUILD_TESTS)
5756
set(GTEST_MAINLIB "${GTEST_LOCATION}/${LIBPREFIX}gtest_main${LIBSUFFIX}")
5857

5958
# check whether the submodule has been initialized
60-
file(GLOB gtest_files "${GTEST_SUBMOD}/*")
61-
list(LENGTH gtest_files gtest_file_cnt)
59+
file(GLOB gtest_files "${GTEST_SUBMOD}/*")
60+
list(LENGTH gtest_files gtest_file_cnt)
6261
set (git_res 0)
6362
if (gtest_file_cnt EQUAL 0)
6463
# we first need to initialize the submodule
65-
message(STATUS "GoogleTest: Fetching submodule into vendor/googletest")
66-
execute_process(COMMAND git submodule update --init vendor/googletest
64+
message(STATUS "GoogleTest: using GTest from official repository")
65+
message(STATUS "GoogleTest: Fetching submodule into ${GTEST_SUBMOD}")
66+
execute_process(COMMAND git submodule update --init ${GTEST_SUBMOD}
6767
TIMEOUT 10
6868
RESULT_VARIABLE git_res
6969
OUTPUT_VARIABLE git_out
7070
ERROR_VARIABLE git_err
7171
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
7272
endif()
7373

74-
if (git_res EQUAL 0)
74+
file(GLOB gtest_git_files "${GTEST_SUBMOD}/.git*")
75+
list(LENGTH gtest_git_files gtest_git_file_cnt)
76+
if (NOT gtest_git_file_cnt EQUAL 0 AND git_res EQUAL 0)
7577
# checkout desired version
7678
message(STATUS "GoogleTest: Checking out commit ${GTEST_GIT_TAG}")
7779
execute_process(COMMAND git checkout -q ${GTEST_GIT_TAG}
@@ -82,7 +84,7 @@ if (BUILD_TESTS)
8284
if (NOT git_res EQUAL 0)
8385
# try to fetch latest commit from origin
8486
message(STATUS "GoogleTest: Checkout failed, trying to fetch latest commit")
85-
execute_process(COMMAND git submodule update --remote vendor/googletest
87+
execute_process(COMMAND git submodule update --remote ${GTEST_SUBMOD}
8688
TIMEOUT 10
8789
RESULT_VARIABLE git_res
8890
OUTPUT_VARIABLE git_out
@@ -100,6 +102,8 @@ if (BUILD_TESTS)
100102
message(WARNING "GoogleTest: Failed to checkout commit ${GTEST_GIT_TAG}: ${git_err}")
101103
endif()
102104
endif()
105+
elseif (NOT gtest_file_cnt EQUAL 0)
106+
message(STATUS "GoogleTest: using GTest available in ${GTEST_SUBMOD}")
103107
endif()
104108

105109

dash/src/Makefile

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,14 @@ CXXFLAGS+=-std=c++14
3434
LIBDASH = libdash.a
3535

3636
FILES = Distribution GlobPtr Init Logging Math Mutex StreamConversion \
37-
Team TypeInfo algorithm/SUMMA exception/StackTrace io/IOStream \
38-
util/BenchmarkParams util/Config util/Locality \
39-
util/LocalityDomain util/LocalityJSONPrinter util/TeamLocality \
40-
util/Timer util/TimestampClockPosix util/TimestampCounterPosix \
41-
util/TimestampPAPI util/Trace
37+
Team TypeInfo algorithm/SUMMA allocator/internal/Types \
38+
cpp17/polymorphic_allocator exception/StackTrace io/IOStream \
39+
memory/HBWSpace memory/HostSpace \
40+
memory/internal/MemorySpaceRegistry memory/MemorySpace \
41+
util/BenchmarkParams util/Config util/Locality \
42+
util/LocalityDomain util/LocalityJSONPrinter \
43+
util/TeamLocality util/Timer util/TimestampClockPosix \
44+
util/TimestampCounterPosix util/TimestampPAPI util/Trace
4245

4346
OBJS = $(addsuffix .o, $(FILES))
4447

@@ -68,9 +71,14 @@ clean :
6871
rm -f *~
6972
rm -f *.o
7073
rm -f algorithm/*.o
74+
rm -f allocator/*.o
75+
rm -f allocator/internal/*.o
76+
rm -f cpp17/*.o
7177
rm -f exception/*.o
72-
rm -f util/*.o
7378
rm -f io/*.o
79+
rm -f memory/*.o
80+
rm -f memory/internal/*.o
81+
rm -f util/*.o
7482
rm -f $(LIBDASH)
7583
rm -f $(STATIC_CONFIG_H)
7684

release.pl

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,16 @@
126126
# DASH scripts
127127
#
128128
"dash/scripts/*.sh",
129-
"dash/scripts/dashcc/*.in",
130-
#
129+
"dash/scripts/dashcc/*.in",
130+
#
131131
# Documentation
132132
#
133133
"doc/config/*.dox",
134-
"doc/config/*.in"
134+
"doc/config/*.in",
135+
#
136+
# GoogleTest
137+
#
138+
"vendor/googletest/*"
135139
);
136140

137141

@@ -149,7 +153,7 @@
149153
if( $file =~ /\.(c|h|cc|cpp)$/ && -e "LICENSE" ) {
150154
system("cat ./LICENSE $file > $base/$file");
151155
} else {
152-
system("cp $file $dirname");
156+
system("cp -r $file $dirname");
153157
}
154158
}
155159
}

0 commit comments

Comments
 (0)