Opened 20 months ago

Last modified 17 months ago

#988 new defect

gcc has long compile times for sasmodels

Reported by: pkienzle Owned by:
Priority: major Milestone: SasView 4.3.0
Component: SasView Keywords:
Cc: Work Package: SasView Bug Fixing

Description

Compile time per sasmodels model on gcc is now 10-15 seconds (gcc 4.8.4) compared to 0.2 seconds on clang and 0.33 seconds on tinycc. This slows the travis tests considerably.

Change History (2)

comment:1 Changed 19 months ago by pkienzle

This is due to the use of tgmath.h; compilation with math.h rather than tgmath.h drops the compile time for gcc 4.8.4 down to 0.2 seconds.

Proper handling without tgmath will require using sinf, cosf, … instead of sin, cos, … when running in single precision, which could be done via regular expression substitution.

Single precision is 2-3 times faster than double precision on the CPU.

comment:2 Changed 17 months ago by butler

  • Milestone changed from SasView 4.2.0 to SasView 4.3.0
Note: See TracTickets for help on using tickets.