Changeset 906
- Timestamp:
- Dec 12, 2014, 4:52:47 PM (10 years ago)
- Location:
- branches/reconfiguration/platforms/tsar_generic_iob
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/reconfiguration/platforms/tsar_generic_iob/Makefile
r904 r906 1 1 TAGS := cscope.out 2 3 2 SOCLIB_CC_ARGS := 4 SOCLIB_CC_ARGS += "-b caba:reconf:vci_xicu"5 3 6 4 all: simul.x … … 8 6 9 7 simul.x: top.cpp top.desc 10 soclib-cc $(SOCLIB_CC_ARGS) - p top.desc -I. -o simul.x8 soclib-cc $(SOCLIB_CC_ARGS) -P -p top.desc -I. -o simul.x 11 9 12 10 $(TAGS): top.desc -
branches/reconfiguration/platforms/tsar_generic_iob/scripts/onerun.py
r904 r906 8 8 import faultyprocs 9 9 import argparse 10 import multiprocessing 10 11 11 12 def run(args): … … 86 87 os.environ["SOCLIB_TTY"] = "FILES" 87 88 88 if (args.x * args.y) <= 4: 89 ompthreads = args.x * args.y 90 elif (args.x * args.y) <= 16: 91 ompthreads = 4 92 else: 93 ompthreads = 8 89 ompthreads = (args.x * args.y) / 4 90 cpucount = multiprocessing.cpu_count() 91 if ompthreads > cpucount: ompthreads = cpucount 94 92 95 93 print "[ run.py ] starting simulation" -
branches/reconfiguration/platforms/tsar_generic_iob/soclib.conf
r865 r906 1 1 # append compilation flags 2 2 cflags = config.default.toolchain.cflags 3 cflags.extend(['-DUSE_OPENMP=0']) 3 if config.default == config.envsystemcassomp: 4 cflags.extend(['-DUSE_OPENMP=1']) 5 else: 6 cflags.extend(['-DUSE_OPENMP=0']) 4 7 #cflags.extend(['-ggdb']) 5 8 config.default.toolchain.set("cflags", cflags) -
branches/reconfiguration/platforms/tsar_generic_iob/top.cpp
r904 r906 513 513 omp_set_dynamic(false); 514 514 omp_set_num_threads(threads_nr); 515 std::cerr << "Built with openmp version " << _OPENMP << std::endl; 515 std::cerr << "Built with openmp version " << _OPENMP 516 << " / numthreads = " << threads_nr << std::endl; 516 517 #endif 517 518 … … 1503 1504 1504 1505 // cycles between stats 1505 const size_t stats_period = 1 00000;1506 const size_t stats_period = 150000; 1506 1507 const size_t simul_period = debug_ok ? debug_period : stats_period; 1507 1508
Note: See TracChangeset
for help on using the changeset viewer.