Skip to content

Commit 4c636a2

Browse files
committed
changed default build option in release
1 parent 4b91a0a commit 4c636a2

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ MESSAGE("Linking mode: ${LINKING_MODE}")
1515
# -std=c++11
1616
#)
1717

18-
SET( CMAKE_CXX_FLAGS_RELEASE " -fPIC -O3 -ffast-math -funroll-all-loops -fpeel-loops -ftracer -funswitch-loops -funit-at-a-time" CACHE STRING "" FORCE)
18+
SET( CMAKE_CXX_FLAGS_RELEASE " -fPIC -Ofast -ffast-math -funroll-all-loops -fpeel-loops -ftracer -funswitch-loops -funit-at-a-time" CACHE STRING "" FORCE)
1919
SET( CMAKE_CXX_FLAGS_DEBUG "${GOP_WARNING_FLAGS} -fPIC -g3 -O0" CACHE STRING "" FORCE )
20-
SET( CMAKE_C_FLAGS_RELEASE " -fPIC -O3 -ffast-math -funroll-all-loops -fpeel-loops -ftracer -funswitch-loops -funit-at-a-time" CACHE STRING "" FORCE)
20+
SET( CMAKE_C_FLAGS_RELEASE " -fPIC -Ofast -ffast-math -funroll-all-loops -fpeel-loops -ftracer -funswitch-loops -funit-at-a-time" CACHE STRING "" FORCE)
2121
SET( CMAKE_C_FLAGS_DEBUG "${GOP_WARNING_FLAGS} -fPIC -g3 -O0" CACHE STRING "" FORCE )
2222

2323
find_package(OpenMP)

lib/linear/linear.h

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,17 @@ struct problem
1919
double bias; /* < 0 if no bias term */
2020
};
2121

22-
enum { L2R_LR, L2R_L2LOSS_SVC_DUAL, L2R_L2LOSS_SVC, L2R_L1LOSS_SVC_DUAL, MCSVM_CS, L1R_L2LOSS_SVC, L1R_LR, L2R_LR_DUAL, L2R_L2LOSS_SVR = 11, L2R_L2LOSS_SVR_DUAL, L2R_L1LOSS_SVR_DUAL }; /* solver_type */
22+
enum { L2R_LR,
23+
L2R_L2LOSS_SVC_DUAL,
24+
L2R_L2LOSS_SVC,
25+
L2R_L1LOSS_SVC_DUAL,
26+
MCSVM_CS,
27+
L1R_L2LOSS_SVC,
28+
L1R_LR,
29+
L2R_LR_DUAL,
30+
L2R_L2LOSS_SVR = 11,
31+
L2R_L2LOSS_SVR_DUAL,
32+
L2R_L1LOSS_SVR_DUAL }; /* solver_type */
2333

2434
struct parameter
2535
{

0 commit comments

Comments
 (0)