Skip to content

Commit

Permalink
fix omp flags issue
Browse files Browse the repository at this point in the history
  • Loading branch information
wrathematics committed Nov 30, 2018
1 parent fc1ca97 commit d031076
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 27 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Release 0.5-0:
* Cleaned up some internal issues.
* Initial support for BLACS contexts with multiple MPI communicators.
* Fixed Windows build issue (Jeroen Ooms).
* Fix OMP flags issue.

Release 0.4-6:
* Fix indexing problem in pdsweep()
Expand Down
22 changes: 1 addition & 21 deletions src/Makevars.in
Original file line number Diff line number Diff line change
@@ -1,44 +1,29 @@
#################################################################

### MPI+SLAP
SPMD_CPPFLAGS = @SPMD_CPPFLAGS@
SPMD_LDFLAGS = @SPMD_LDFLAGS@

SLAP_LDFLAGS = @SLAP_LDFLAGS@


### Package flags.
PKG_CPPFLAGS = $(SPMD_CPPFLAGS) -I../inst/RNACI
PKG_CFLAGS = $(SHLIB_OPENMP_CFLAGS)
PKG_FFLAGS = $(SHLIB_OPENMP_FFLAGS)
PKG_FCFLAGS = $(SHLIB_OPENMP_FCFLAGS)


PKG_LIBS = $(SLAP_LDFLAGS) $(FLIBS) $(SPMD_LDFLAGS) \
$(SHLIB_OPENMP_CFLAGS)
PKG_LIBS = $(SLAP_LDFLAGS) $(FLIBS) $(SPMD_LDFLAGS)


### Setup R source code and objects.

BASE_OBJS = \
base/bprnt.o \
base/bprnt_c.o


EXPM_OBJS = \
base/expm/pade_coefs.o \
base/expm/matexp.o \
base/expm/p_matexp.o


LINALG_OBJS = \
base/linalg/norms.o \
base/linalg/pcrossprod.o \
base/linalg/pinverse.o \
base/linalg/prblas.o \
base/linalg/plm.o


MISC_OBJS = \
coords.o \
comm_utils.o
Expand All @@ -49,7 +34,6 @@ EXPORT_BLACS = @EXPORT_BLACS@
STATS_OBJS = \
base/stats/variance.o


UTILS = \
utils/fpmod.o \
utils/quicksort_utils.o \
Expand All @@ -65,8 +49,6 @@ EXPERIMENTAL = \
utils/subset_special.o \
utils/subset_utils.o



UTILS_OBJS = \
base/utils/blacs_util.o \
base/utils/dmat_redist.o \
Expand All @@ -76,7 +58,6 @@ UTILS_OBJS = \
base/utils/scale.o \
base/utils/special.o


R_OBJS = \
base_lm.o \
base_matexp.o \
Expand All @@ -97,7 +78,6 @@ R_OBJS = \
descinit.o \
pbdBASE_native.o


OBJECTS = $(BASE_OBJS) $(EXPM_OBJS) $(LINALG_OBJS) \
$(MISC_OBJS) $(EXPORT_BLACS) \
$(R_OBJS) $(STATS_OBJS) \
Expand Down
7 changes: 1 addition & 6 deletions src/Makevars.win
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,7 @@ MPI_LIB = $(shell ${R_SCMD} \

### Setup R package flags and substitute by configure for ${MPI_...}.
PKG_CPPFLAGS = -I"$(MPI_INCLUDE)" -I../inst/RNACI
PKG_CFLAGS = $(SHLIB_OPENMP_CFLAGS)
PKG_FFLAGS = $(SHLIB_OPENMP_FFLAGS)
PKG_FCFLAGS = $(SHLIB_OPENMP_FCFLAGS)
### Order is matter.
PKG_LIBS = "$(SLAP_LDFLAGS)" $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS) \
"$(MPI_LIB)" $(RNACI_LDFLAGS) $(SHLIB_OPENMP_CFLAGS)
PKG_LIBS = "$(SLAP_LDFLAGS)" $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS) "$(MPI_LIB)" $(RNACI_LDFLAGS)

### Setup R source code and objects.
R_SRCS_C = $(wildcard *.c) \
Expand Down

0 comments on commit d031076

Please sign in to comment.