Skip to content

Commit

Permalink
More build updates to include pxGetDiagU.c files.
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyeli committed May 16, 2016
1 parent fa79300 commit 75570b4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ if (enable_parmetislib) ## want to use parmetis
if (NOT EXISTS ${dir})
message(FATAL_ERROR "PARMETIS include directory not found: ${dir}")
endif()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -I${dir}")
endforeach()

message("-- Enabled support for PARMETIS")
Expand Down
2 changes: 1 addition & 1 deletion SRC/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ DPLUSRC = pdgssvx.o pdgssvx_ABglobal.o \
dreadhb.o dreadrb.o dreadtriple.o dreadMM.o \
pdgsequ.o pdlaqgs.o dldperm_dist.o pdlangs.o pdutil.o \
pdsymbfact_distdata.o ddistribute.o pddistribute.o \
pdgstrf.o pdgstrf2.o pxGetDiagU.o \
pdgstrf.o pdgstrf2.o pdGetDiagU.o \
pdgstrs.o pdgstrs1.o pdgstrs_lsum.o pdgstrs_Bglobal.o \
pdgsrfs.o pdgsmv.o pdgsrfs_ABXglobal.o pdgsmv_AXglobal.o

Expand Down
2 changes: 1 addition & 1 deletion make.inc.in
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ARCHFLAGS = cr
RANLIB = @CMAKE_RANLIB@

CC = @CMAKE_C_COMPILER@
CFLAGS = @CMAKE_C_FLAGS_RELEASE@ @CMAKE_C_FLAGS@
CFLAGS = @CMAKE_C_FLAGS_RELEASE@ @CMAKE_C_FLAGS@
# CFLAGS += -D${DirDefs}
# CFLAGS += @COMPILE_DEFINITIONS@
NOOPTS = -O0
Expand Down
14 changes: 7 additions & 7 deletions run_cmake_build.csh
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ if ( ! $?NERSC_HOST ) then
else
if ( "$NERSC_HOST" == "edison" ) then
setenv PARMETIS_ROOT ~/Edison/lib/parmetis-4.0.3
setenv PARMETIS_BUILD_DIR ${PARMETIS_ROOT}/shared-build
# setenv PARMETIS_BUILD_DIR ${PARMETIS_ROOT}/static-build/Linux-x86_64
# setenv PARMETIS_BUILD_DIR ${PARMETIS_ROOT}/shared-build
setenv PARMETIS_BUILD_DIR ${PARMETIS_ROOT}/static-build/Linux-x86_64
cmake .. \
-DUSE_XSDK_DEFAULTS=TRUE\
-DUSE_XSDK_DEFAULTS=FALSE\
-DTPL_PARMETIS_INCLUDE_DIRS="${PARMETIS_ROOT}/include;${PARMETIS_ROOT}/metis/include" \
-DTPL_PARMETIS_LIBRARIES="${PARMETIS_BUILD_DIR}/libparmetis/libparmetis.so;${PARMETIS_BUILD_DIR}/libmetis/libmetis.so" \
-DTPL_PARMETIS_LIBRARIES="${PARMETIS_BUILD_DIR}/libparmetis/libparmetis.a;${PARMETIS_BUILD_DIR}/libmetis/libmetis.a" \
-DCMAKE_C_FLAGS="-std=c99 -fPIC" \
-DCMAKE_EXE_LINKER_FLAGS="-shared" \
# -DCMAKE_EXE_LINKER_FLAGS="-shared" \
-DCMAKE_Fortran_COMPILER=ftn \
-Denable_blaslib=OFF \
-DTPL_BLAS_LIBRARIES=" "
# -DBUILD_SHARED_LIBS=OFF
-DTPL_BLAS_LIBRARIES=" " \
-DBUILD_SHARED_LIBS=OFF
endif

if ( "$NERSC_HOST" == "cori" ) then
Expand Down

0 comments on commit 75570b4

Please sign in to comment.