File: test_multinode.py

package info (click to toggle)
libfabric 2.1.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 26,108 kB
  • sloc: ansic: 387,262; python: 3,171; sh: 2,555; makefile: 1,313; cpp: 617; perl: 474; ruby: 123; asm: 27
file content (26 lines) | stat: -rw-r--r-- 948 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import pytest
from common import MultinodeTest


@pytest.mark.multinode
@pytest.mark.parametrize("x", ["msg", "rma"])
def test_multinode(cmdline_args, x):

    numproc = 3
    client_hostname_list = [cmdline_args.client_id, ] * (numproc - 1)
    client_base_command = "fi_multinode -x " + x + f" -n {numproc}"
    server_base_command = client_base_command
    test = MultinodeTest(cmdline_args, server_base_command, client_base_command,
                         client_hostname_list, run_client_asynchronously=True)
    test.run()

@pytest.mark.multinode
def test_multinode_coll(cmdline_args):

    numproc = 3
    client_hostname_list = [cmdline_args.client_id, ] * (numproc - 1)
    client_base_command = "fi_multinode_coll"
    server_base_command = client_base_command
    test = MultinodeTest(cmdline_args, server_base_command, client_base_command,
                         client_hostname_list, run_client_asynchronously=True)
    test.run()