예제 #1
0
def get_platform_resources():
    """
    Return information about hardware
    """

    h = JobPlatformResources()

    #h.num_cores_per_node = multiprocessing.cpu_count()

    # There are only 2 cores, not 4 !!!
    #h.num_cores_per_node = 2

    h.num_cores_per_node = multiprocessing.cpu_count() // 2
    h.num_cores_per_node = max(1, h.num_cores_per_node)

    h.num_nodes = 1

    # TODO: So far, we only assume a single socket system as a fallback
    h.num_cores_per_socket = h.num_cores_per_node

    return h
예제 #2
0
def get_platform_resources():
    """
    Return information about hardware
    """

    h = JobPlatformResources()

    h.num_cores_per_node = 4
    # Number of nodes per job are limited
    h.num_nodes = 40
    h.num_cores_per_socket = 4
    h.max_wallclock_seconds = 8 * 60 * 60
    return h
예제 #3
0
def get_platform_resources():
    """
    Return information about hardware
    """

    r = JobPlatformResources()

    r.num_cores_per_node = 36

    # Physical number of nodes, maybe the limit is different
    r.num_nodes = 4032

    r.num_cores_per_socket = 18

    # 12h limit
    r.max_wallclock_seconds = 60*60*12
    return r
예제 #4
0
def get_platform_resources():
    """
    Return information about hardware
    """

    h = JobPlatformResources()

    # Python returned once a wrong number
    h.num_cores_per_node = multiprocessing.cpu_count()

    # Travis CI runs on a 2-core machine
    #h.num_cores_per_node = 2

    h.num_nodes = 1

    # TODO: So far, we only assume a single socket system as a fallback
    h.num_cores_per_socket = h.num_cores_per_node

    return h