Skip to content

Commit

Permalink
[Matrix]: rename format conversion tools.
Browse files Browse the repository at this point in the history
  • Loading branch information
zheng-da committed Jan 16, 2016
1 parent 4dbf356 commit c15499a
Show file tree
Hide file tree
Showing 12 changed files with 56 additions and 27 deletions.
2 changes: 1 addition & 1 deletion matrix/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ add_library(FMatrix STATIC
if(ENABLE_TRILINOS)
subdirs(eigensolver)
endif()
subdirs(test)
subdirs(utils)
6 changes: 5 additions & 1 deletion matrix/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ OMP_FLAG = -fopenmp
CXXFLAGS += -DUSE_GZIP -I../include -I../libcommon -I../flash-graph $(OMP_FLAG)
LDFLAGS += $(OMP_FLAG)

all: libmatrix eigensolver test unit-test libmatrix-algs
all: libmatrix eigensolver test unit-test libmatrix-algs utils

libmatrix: $(OBJS)
rm -f libFMatrix.a
Expand All @@ -39,6 +39,9 @@ unit-test: libmatrix eigensolver
eigensolver: libmatrix
$(MAKE) -C eigensolver

utils: libmatrix
$(MAKE) -C utils

clean:
rm -f *.d
rm -f *.o
Expand All @@ -48,5 +51,6 @@ clean:
$(MAKE) -C test clean
$(MAKE) -C unit-test clean
$(MAKE) -C eigensolver clean
$(MAKE) -C utils clean

-include $(DEPS)
15 changes: 0 additions & 15 deletions matrix/test/CMakeLists.txt

This file was deleted.

11 changes: 1 addition & 10 deletions matrix/test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ LDFLAGS := $(OMP_FLAG) ../libmatrix-algs/libFMatrix-algs.a -L.. -lFMatrix -L../.
LDFLAGS += -lz -lnuma -laio -lcblas #-lprofiler

all: test-2d_multiply test-dense_matrix test-block_mv test-mem_vector \
el2al al22d al2crs test-sort test-eigen test-dgemm rand_mat_gen test-algs
test-sort test-eigen test-dgemm rand_mat_gen test-algs

trilinos: test-anasazi_eigen test-tpetra_multiply test-tpetra_MV_multiply

Expand All @@ -47,15 +47,6 @@ test-block_mv: test-block_mv.o ../libFMatrix.a ../eigensolver/libeigen.a
test-dense_matrix: test-dense_matrix.o ../libFMatrix.a
$(CXX) -o test-dense_matrix test-dense_matrix.o $(LDFLAGS)

el2al: el2al.o ../libFMatrix.a
$(CXX) -o el2al el2al.o $(LDFLAGS)

al22d: al22d.o fg_utils.o ../libFMatrix.a
$(CXX) -o al22d al22d.o fg_utils.o $(LDFLAGS)

al2crs: al2crs.o fg_utils.o ../libFMatrix.a
$(CXX) -o al2crs al2crs.o fg_utils.o $(LDFLAGS)

test-sort: test-sort.o ../libFMatrix.a
$(CXX) -o test-sort test-sort.o $(LDFLAGS)

Expand Down
15 changes: 15 additions & 0 deletions matrix/utils/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
project (FlashGraph)

include_directories("${PROJECT_SOURCE_DIR}")

add_executable(el2fg el2fg.cpp)
target_link_libraries(el2fg FMatrix graph safs common pthread numa aio cblas)

add_executable(fg2fm fg2fm.cpp fg_utils.cpp)
target_link_libraries(fg2fm FMatrix graph safs common pthread numa aio cblas)

find_package(hwloc)
if (hwloc_FOUND)
target_link_libraries(el2fg hwloc)
target_link_libraries(fg2fm hwloc)
endif()
34 changes: 34 additions & 0 deletions matrix/utils/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright 2016 Open Connectome Project (http://openconnecto.me)
# Written by Da Zheng ([email protected])
#
# This file is part of FlashMatrix.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

include ../../Makefile.common

OMP_FLAG = -fopenmp
CXXFLAGS += -I../../include -I../../libcommon -I../../flash-graph -I.. -I../eigensolver -I../libmatrix-algs $(OMP_FLAG)
LDFLAGS := $(OMP_FLAG) ../libmatrix-algs/libFMatrix-algs.a -L.. -lFMatrix -L../../flash-graph -lgraph -L../../libsafs -lsafs -L../../libcommon -lcommon $(LDFLAGS)
LDFLAGS += -lz -lnuma -laio -lcblas #-lprofiler

all: el2fg fg2fm fg2crs

el2fg: el2fg.o ../libFMatrix.a
$(CXX) -o el2fg el2fg.o $(LDFLAGS)

fg2fm: fg2fm.o fg_utils.o ../libFMatrix.a
$(CXX) -o fg2fm fg2fm.o fg_utils.o $(LDFLAGS)

fg2crs: fg2crs.o fg_utils.o ../libFMatrix.a
$(CXX) -o fg2crs fg2crs.o fg_utils.o $(LDFLAGS)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit c15499a

Please sign in to comment.