Compiler Flags
Dear all,
yesterday I played around with several compiler flags to see their effect on execution speed of LIGGGHTS. I measured the execution time of the example movingMeshGran in LIGGGHTS 1.4.6 on my desktop machine (Intel Core i7-2600 with 8GB RAM, gcc 4.4.3) with the command
time liggghts < in.movingMeshGran > /dev/null
Results:
no optimization: 1m27.898s
-O : 0m55.417s
-O2 : 0m47.635s
-O2 -ffast-math -march=native -funroll-loops : 0m44.454s
-O2 -ffast-math -march=native -funroll-loops -finline-functions: real 0m44.415s
-O3 : 0m47.273s
Forums:
- Read more about Compiler Flags
- Log in or register to post comments