Skip to content

Commit 420b2ea

Browse files
committed
remove normal priority argument in new interface init threadpool so 2020_U3 can use the new interface
1 parent d48d005 commit 420b2ea

13 files changed

Lines changed: 15 additions & 17 deletions

lib/tbb_2020.3/STAN_CHANGES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
This file documents changes done for the stan-math project
2+
3+
- drop -g flag from makefiles for release mode builds to decrease size of binaries

lib/tbb_2020.3/build/BSD.clang.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ LINK_FLAGS = -Wl,-rpath-link=. -Wl,-rpath=. -rdynamic
3535
C_FLAGS = $(CPLUS_FLAGS)
3636

3737
ifeq ($(cfg), release)
38-
CPLUS_FLAGS = $(ITT_NOTIFY) -g -O2 -DUSE_PTHREAD
38+
CPLUS_FLAGS = $(ITT_NOTIFY) -O2 -DUSE_PTHREAD
3939
endif
4040
ifeq ($(cfg), debug)
4141
CPLUS_FLAGS = -DTBB_USE_DEBUG $(ITT_NOTIFY) -g -O0 -DUSE_PTHREAD

lib/tbb_2020.3/build/FreeBSD.gcc.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ ifneq (,$(shell gcc -dumpfullversion -dumpversion | egrep "^([6-9]|1[0-9])"))
3838
endif
3939

4040
ifeq ($(cfg), release)
41-
CPLUS_FLAGS = -g -O2 -DUSE_PTHREAD
41+
CPLUS_FLAGS = -O2 -DUSE_PTHREAD
4242
endif
4343
ifeq ($(cfg), debug)
4444
CPLUS_FLAGS = -DTBB_USE_DEBUG -g -O0 -DUSE_PTHREAD

lib/tbb_2020.3/build/SunOS.gcc.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ LIBS = -lpthread -lrt -ldl
3333
C_FLAGS = $(CPLUS_FLAGS) -x c
3434

3535
ifeq ($(cfg), release)
36-
CPLUS_FLAGS = -g -O2 -DUSE_PTHREAD
36+
CPLUS_FLAGS = -O2 -DUSE_PTHREAD
3737
endif
3838
ifeq ($(cfg), debug)
3939
CPLUS_FLAGS = -DTBB_USE_DEBUG -g -O0 -DUSE_PTHREAD

lib/tbb_2020.3/build/linux.clang.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ C_FLAGS = $(CPLUS_FLAGS)
3636

3737
ifeq ($(cfg), release)
3838
# -g is set intentionally in the release mode. It should not affect performance.
39-
CPLUS_FLAGS = -O2 -g
39+
CPLUS_FLAGS = -O2
4040
endif
4141
ifeq ($(cfg), debug)
4242
CPLUS_FLAGS = -DTBB_USE_DEBUG -O0 -g

lib/tbb_2020.3/build/linux.icc.inc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ ITT_NOTIFY = -DDO_ITT_NOTIFY
3535
ifeq (release,$(cfg))
3636
SDL_FLAGS += -D_FORTIFY_SOURCE=2
3737
# -g is set intentionally in the release mode. It should not affect performance.
38-
CPLUS_FLAGS = -O2 -g -qno-opt-report-embed
38+
CPLUS_FLAGS = -O2 -qno-opt-report-embed
3939
else
4040
CPLUS_FLAGS = -O0 -g -DTBB_USE_DEBUG
4141
endif
@@ -116,4 +116,3 @@ M_CPLUS_FLAGS = $(CPLUS_FLAGS) -fno-rtti -fno-exceptions
116116
#------------------------------------------------------------------------------
117117
# End of setting tbbmalloc data.
118118
#------------------------------------------------------------------------------
119-

lib/tbb_2020.3/build/linux.pathcc.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ C_FLAGS = $(CPLUS_FLAGS)
3838
OPENMP_FLAG = -openmp
3939

4040
ifeq ($(cfg), release)
41-
CPLUS_FLAGS = $(ITT_NOTIFY) -g -O2 -DUSE_PTHREAD
41+
CPLUS_FLAGS = $(ITT_NOTIFY) -O2 -DUSE_PTHREAD
4242
endif
4343
ifeq ($(cfg), debug)
4444
CPLUS_FLAGS = -DTBB_USE_DEBUG $(ITT_NOTIFY) -g -O0 -DUSE_PTHREAD

lib/tbb_2020.3/build/macos.clang.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ LIB_LINK_FLAGS = -dynamiclib -install_name @rpath/$(BUILDING_LIBRARY)
3535
C_FLAGS = $(CPLUS_FLAGS)
3636

3737
ifeq ($(cfg), release)
38-
CPLUS_FLAGS = -g -O2
38+
CPLUS_FLAGS = -O2
3939
else
4040
CPLUS_FLAGS = -g -O0 -DTBB_USE_DEBUG
4141
endif

lib/tbb_2020.3/build/macos.gcc.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ ifneq (,$(shell $(CONLY) -dumpfullversion -dumpversion | egrep "^([6-9]|1[0-9])
5353
endif
5454

5555
ifeq ($(cfg), release)
56-
CPLUS_FLAGS = -g -O2
56+
CPLUS_FLAGS = -O2
5757
else
5858
CPLUS_FLAGS = -g -O0 -DTBB_USE_DEBUG
5959
endif

lib/tbb_2020.3/build/macos.icc.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ endif
4949

5050
ifeq ($(cfg), release)
5151
SDL_FLAGS += -D_FORTIFY_SOURCE=2
52-
CPLUS_FLAGS = -g -O2 -fno-omit-frame-pointer -qno-opt-report-embed
52+
CPLUS_FLAGS = -O2 -fno-omit-frame-pointer -qno-opt-report-embed
5353
else
5454
CPLUS_FLAGS = -g -O0 -DTBB_USE_DEBUG
5555
endif

0 commit comments

Comments
 (0)