File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 2.8.8)
2
2
project (sparsehc-dm)
3
3
4
- if (NOT CMAKE_BUILD_TYPE )
4
+ if (NOT CMAKE_BUILD_TYPE )
5
5
set (CMAKE_BUILD_TYPE Release)
6
6
endif (NOT CMAKE_BUILD_TYPE )
7
7
@@ -21,8 +21,8 @@ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
21
21
22
22
include_directories (src)
23
23
file (GLOB SOURCES "src/*.cpp" )
24
- add_executable (sparsehc-dm ${SOURCES} )
25
- target_link_libraries (sparsehc-dm ${LIBS} )
24
+ add_executable (cluster-sdm ${SOURCES} )
25
+ target_link_libraries (cluster-sdm ${LIBS} )
26
26
add_definitions (-std=c++11)
27
27
28
28
file (GLOB SHARED_SOURCES src/averagecluster.cpp src/cluster.cpp src/common.cpp src/completecluster.cpp src/dendrogram.cpp src/inmatrix.cpp src/matrix.cpp src/singlecluster.cpp)
@@ -32,4 +32,5 @@ add_dependencies(sparsehc_dm python_init)
32
32
target_link_libraries (sparsehc_dm ${LIBS} )
33
33
set_target_properties (sparsehc_dm PROPERTIES PREFIX "" SUFFIX ".so" )
34
34
35
- install (CODE "execute_process(COMMAND python ../python/setup.py install --prefix=${CMAKE_INSTALL_PREFIX} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} )" )
35
+ install (CODE "execute_process(COMMAND python ../python/setup.py install --prefix=${CMAKE_INSTALL_PREFIX} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} )" )
36
+ install (TARGETS cluster-sdm RUNTIME DESTINATION bin)
Original file line number Diff line number Diff line change @@ -36,8 +36,9 @@ Dendrogram linkage(InMatrix& mat, const std::string& method) {
36
36
// Program main
37
37
// //////////////////////////////////////////////////////////////////////////////
38
38
bool verbose = false ;
39
- void test (const unsigned nPoints,const long maxRam=2L *1024 *1024 *1024 )
39
+ void test (const unsigned nPoints,const long maxRam=4L *1024 *1024 *1024 )
40
40
{
41
+ std::cout<<" Clustering " <<nPoints<<" points." <<std::endl;
41
42
InMatrix inMat (maxRam);
42
43
using std::chrono::duration_cast;
43
44
using std::chrono::milliseconds;
@@ -73,7 +74,8 @@ int main(int argc, char **argv) {
73
74
if (!extractOptions (" --linkage=%s" , method, argc, argv))
74
75
strcat (method," complete" );
75
76
76
- InMatrix inMat (64 *1024 *1024 );
77
+ unsigned maxRam=2L *1024 *1024 *1024 ;
78
+ InMatrix inMat (maxRam);
77
79
78
80
using std::chrono::duration_cast;
79
81
using std::chrono::milliseconds;
@@ -99,7 +101,8 @@ int main(int argc, char **argv) {
99
101
double clustering=duration_cast<milliseconds>(finishedClust-finishedSort).count ()/1000.0 ;
100
102
std::cout<<" Clustering took: " <<clustering<<" s" <<std::endl;
101
103
102
- // test(40000);
104
+
105
+ // test(350000);
103
106
return 0 ;
104
107
}
105
108
You can’t perform that action at this time.
0 commit comments