~yade-dev/yade/trunk

« back to all changes in this revision

Viewing changes to examples/test/triax-perf/triax-perf.py

  • Committer: jakob at tu-freiberg
  • Date: 2012-03-12 14:52:28 UTC
  • Revision ID: jakob@ifgt.tu-freiberg.de-20120312145228-epa2srwt96k4qq1r
move all model examples to example folder, fixed all examples, that are not in test folder

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Performance test for running
 
2
#
 
3
#  1. Regular TriaxialTest with 3 independent dispatchers (geom, phys, constitutive law)
 
4
#  2. TriaxialTest with InteractionLoop (common loop and functor cache)
 
5
#
 
6
# Run the test like this:
 
7
#
 
8
#  yade-trunk-opt-multi -j1 triax-perf.table triax-perf.py
 
9
#
 
10
# The -j1 ensures that only 1 job will run at time
 
11
# (even if other cores are free, access to memory is limiting if running multiple jobs at time)
 
12
#
 
13
# You have to collect the results by hand from log files, or run sh mkTextTable.sh and use
 
14
# triax-perf.ods to get comparison
 
15
#
 
16
utils.readParamsFromTable(fast=False,noTableOk=True)
 
17
TriaxialTest(numberOfGrains=50000,fast=fast,noFiles=True).load()
 
18
O.run(10,True) # filter out initialization
 
19
O.timingEnabled=True
 
20
O.run(200,True)
 
21
from yade import timing
 
22
timing.stats()
 
23
print 'ForceContainer synced %d times'%(O.bexSyncCount)
 
24