Ejemplo n.º 1
0
                pspace.num_cores_per_rank = 1
                pspace.num_threads_per_rank = params_pspace_num_cores_per_rank[
                    -1]
                pspace.num_ranks = 1

                # Setup parallelization
                p.setup_parallelization([pspace, ptime])

                if verbose:
                    pspace.print()
                    ptime.print()
                    p.parallelization.print()

                if len(tsm) > 4:
                    s = tsm[4]
                    p.load_from_dict(tsm[4])

                p.parallelization.max_wallclock_seconds = estimateWallclockTime(
                    p)

                p.gen_jobscript_directory('job_benchref_' + p.getUniqueID())

                p.reference_job_unique_id = p.job_unique_id

            #
            # Create job scripts
            #
            for tsm in ts_methods[1:]:
                p.runtime.timestepping_method = tsm[0]
                p.runtime.timestepping_order = tsm[1]
                p.runtime.timestepping_order2 = tsm[2]
Ejemplo n.º 2
0
            pspace = JobParallelizationDimOptions('space')
            pspace.num_cores_per_rank = 1
            pspace.num_threads_per_rank = params_pspace_num_cores_per_rank[-1]
            pspace.num_ranks = 1

            # Setup parallelization
            jg.setup_parallelization([pspace, ptime])

            if verbose:
                pspace.print()
                ptime.print()
                jg.parallelization.print()

            if len(tsm) > 4:
                s = tsm[4]
                jg.load_from_dict(tsm[4])

            jg.reference_job = True
            jg.parallelization.max_wallclock_seconds = estimateWallclockTime(
                jg)

            _a = jg.runtime.max_wallclock_time
            #jg.runtime.max_wallclock_time = 2*24*60*60       # 30 minutes max

            jg.reference_job_unique_id = None
            jg.gen_jobscript_directory('job_benchref_' + jg.getUniqueID())
            jg.reference_job = False

            jg.runtime.max_wallclock_time = _a

            jg.reference_job_unique_id = jg.job_unique_id