PoreSim 0.2
  • API
  • Simulation
  • Complex Pore Simulation
  • Simulation 2-Phase
  • Site
    • Page
        • Benchmark
          • Benchmark
    • Benchmark
      • Benchmark
    Source

    Benchmark¶

    class poresim.benchmark.Benchmark(box, np, nodes, link='./benchmark', iterator='nodes')¶

    This class extends the simulate class poresim.simulate.Simulate for benchmarking. It creates a benchmark in order to figure out the best possible number of node and processor combination to simulate with.

    Depending on the iterator, different aspects will be benchmarked. Currently following inputs are possible

    • nodes - varying number of nodes at constant CPU number

    • np - varying number of CPUs at constant node number

    Parameters:
    boxBox

    Simulation box object

    npinteger, list

    Number of processors to try

    nodesinteger, list

    Number of nodes to try

    linkstring, optional

    Simulation folder link

    iteratorstring, optional

    Aspect to be benchmarked

    Methods

    _update_config()

    Update simulation config file.

    add_box(box)

    Add simulation box to simulation dictionary.

    generate()

    Generate simulation folder.

    get_box()

    Return the simulation box dictionary.

    get_sim_dict()

    Return the simulation dictionary.

    set_box(box)

    Set the simulation box.

    set_cluster(cluster)

    Set the dictionary containing all cluster preferences.

    set_job(job)

    Set the dictionary containing all simulation information.

    set_param(param)

    Set the dictionary containing all systems parameters.

    set_sim_dict(sim_dict)

    Set the simulation dictionary.

    Back to top

    © Copyright 2023, Hamzeh Kraus.
    Created using Sphinx 7.4.6.