Coverage for  / home / jenkins / .local / lib / python3.10 / site-packages / hyper_multicore / shmem / __init__.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.13.1, created at 2026-11-15 05:03 +0800

1# Copyright 2026 Huawei Technologies Co., Ltd 

2# 

3# Licensed under the Apache License, Version 2.0 (the "License"); 

4# you may not use this file except in compliance with the License. 

5# You may obtain a copy of the License at 

6# 

7# http://www.apache.org/licenses/LICENSE-2.0 

8# 

9# Unless required by applicable law or agreed to in writing, software 

10# distributed under the License is distributed on an "AS IS" BASIS, 

11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 

12# See the License for the specific language governing permissions and 

13# limitations under the License. 

14# ============================================================================ 

15"""Process-wide one-sided SHMEM communication for the MultiCore component.""" 

16 

17from ._api import ( 

18 all_gather, 

19 barrier, 

20 empty, 

21 free, 

22 get, 

23 host_barrier, 

24 put, 

25 signal, 

26 wait_signal, 

27) 

28from ._debug import debug_state 

29from ._lifecycle import _restart 

30from ._lifecycle import acquire, release, root_members 

31 

32__all__ = [ 

33 "acquire", 

34 "all_gather", 

35 "barrier", 

36 "debug_state", 

37 "empty", 

38 "free", 

39 "get", 

40 "host_barrier", 

41 "put", 

42 "release", 

43 "root_members", 

44 "signal", 

45 "wait_signal", 

46]