Skip to content

Commit b9b2298

Browse files
Andreas Heuermannadrpo
authored andcommitted
[CRuntime] Option to build with USE_PARJAC on Windows
On Windows systems run $ make -f Makefile.omdev.mingw omc -j4 USE_PARJAC=yes to build with paralle jacobians evaluation.
1 parent 2cbdc11 commit b9b2298

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

OMCompiler/SimulationRuntime/c/Makefile.omdev.mingw

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ CONFIG_CFLAGS = -O2 -falign-functions -mstackrealign -msse2 -mfpmath=sse \
2323
-I$(OMDEV)/include/lis -I$(top_builddir)/ -I$(builddir_inc)/ -I. \
2424
-Wall -Wno-unused-variable
2525
CXXFLAGS = $(CFLAGS)
26+
OMPCC = $(CC) -fopenmp
27+
OMPCFLAGS= -fopenmp
2628

2729
# Not needed since we already set fpmath
2830
FPMATHFORTRAN =
@@ -44,6 +46,14 @@ OBJ_EXT=.o
4446
endif
4547
endif
4648

49+
# USE_PARJAC=yes to enable parallel Jacobians
50+
ifeq ($(USE_PARJAC),yes)
51+
CFLAGS+=$(OMPCFLAGS) -DUSE_PARJAC
52+
LDFLAGS+=$(OMPCFLAGS)
53+
else
54+
OMPCFLAGS=
55+
endif
56+
4757
defaultMakefileTarget = Makefile.omdev.mingw
4858

4959
include Makefile.common

0 commit comments

Comments
 (0)