Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable -O2 on travis #1393

Merged
merged 1 commit into from
Jun 7, 2017
Merged

Enable -O2 on travis #1393

merged 1 commit into from
Jun 7, 2017

Conversation

fingolfin
Copy link
Member

GAP is by default built using -O2, but on Travis, we set custom CFLAGS,
which unintentionally overrode this default.

This PR turns -O2 back on, which results in tests completing about two
times faster.

However, this leads to vecgf2.c triggering an internal compiler error in
the 32bit HPC-GAP build. To compensate, we switch that build to use clang
instead of GCC.

@fingolfin fingolfin added kind: enhancement Label for issues suggesting enhancements; and for pull requests implementing enhancements topic: tests issues or PRs related to tests labels Jun 6, 2017
GAP is by default built using -O2, but on Travis, we set custom CFLAGS, which
unintentionally overrode this default. This PR turns -O2 back on, which
results in tests completing up to two times faster.

However, this leads to vecgf2.c triggering an internal compiler error in
the 32bit HPC-GAP build. So we turn off -O2 for that.
@codecov
Copy link

codecov bot commented Jun 6, 2017

Codecov Report

Merging #1393 into master will increase coverage by 6.99%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1393      +/-   ##
==========================================
+ Coverage    55.1%   62.09%   +6.99%     
==========================================
  Files        1027     1028       +1     
  Lines      349735   351201    +1466     
  Branches    14224    14218       -6     
==========================================
+ Hits       192717   218078   +25361     
+ Misses     153642   129604   -24038     
- Partials     3376     3519     +143
Impacted Files Coverage Δ
extern/gmp/mpn/generic/sbpi1_bdiv_qr.c 86.95% <0%> (-8.7%) ⬇️
extern/gmp/mpn/generic/gcd_subdiv_step.c 42.37% <0%> (-5.09%) ⬇️
src/iostream.c 43.26% <0%> (-3.7%) ⬇️
extern/gmp/mpn/generic/remove.c 94.44% <0%> (-1.86%) ⬇️
src/objset.c 40.9% <0%> (-1.38%) ⬇️
src/systimers.c 75.6% <0%> (-0.94%) ⬇️
extern/gmp/mpz/powm.c 71.17% <0%> (-0.91%) ⬇️
hpcgap/src/gvars.c 65.85% <0%> (-0.74%) ⬇️
src/finfield.c 85.78% <0%> (-0.59%) ⬇️
hpcgap/src/stats.c 67.11% <0%> (-0.47%) ⬇️
... and 262 more

@markuspf markuspf merged commit 12f4f3a into gap-system:master Jun 7, 2017
@fingolfin fingolfin deleted the mh/ci-O2 branch June 7, 2017 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: enhancement Label for issues suggesting enhancements; and for pull requests implementing enhancements topic: tests issues or PRs related to tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants