diff --git a/docs/source_zh_cn/development-guide/api/python/datasystem.DsTensorClient.dev_mget.rst b/docs/source_zh_cn/development-guide/api/python/datasystem.DsTensorClient.dev_mget.rst index a0955feeb2bbbe3746f6c76db990909880112ea0..0d8efd62763e90d3277c6b06a1dc50b348ae4fdf 100644 --- a/docs/source_zh_cn/development-guide/api/python/datasystem.DsTensorClient.dev_mget.rst +++ b/docs/source_zh_cn/development-guide/api/python/datasystem.DsTensorClient.dev_mget.rst @@ -3,9 +3,7 @@ datasystem.DsTensorClient.dev_mget .. py:method:: datasystem.DsTensorClient.dev_mget(keys, tensors, sub_timeout_ms) - 获取 device 中的数据,并写入到 tensors 的 Tensor 中。数据通过 device to device 通道直接传输。 - - dev_mset 和 dev_mget 需配套使用。dev_mset 和 dev_mget 传入的 Device 内存地址不能归属于同一张 NPU 卡。 + 获取 device 中的数据,并写入到 tensors 的 Tensor 中。数据通过 device to device 通道直接传输。dev_mset 和 dev_mget 需配套使用。 dev_mget 后不会自动删除异构对象,如对象不再使用,可调用 dev_local_delete 或 dev_delete 删除。 diff --git a/docs/source_zh_cn/development-guide/api/python/datasystem.DsTensorClient.dev_recv.rst b/docs/source_zh_cn/development-guide/api/python/datasystem.DsTensorClient.dev_recv.rst index 044c3974170353aed8dc9b5264f228984d85590f..e638e945d10e595b3faf6e0929b6757e572b3ff1 100644 --- a/docs/source_zh_cn/development-guide/api/python/datasystem.DsTensorClient.dev_recv.rst +++ b/docs/source_zh_cn/development-guide/api/python/datasystem.DsTensorClient.dev_recv.rst @@ -3,9 +3,7 @@ datasystem.DsTensorClient.dev_recv .. py:method:: datasystem.DsTensorClient.dev_recv(keys, tensors) - 订阅发布到数据系统的异构对象,并接收数据写入 tensors。数据通过 device to device 通道直接传输。 - - dev_send 和 dev_recv 需配套使用。dev_send 和 dev_recv 传入的 Device 内存地址不能归属于同一张 NPU 卡。 + 订阅发布到数据系统的异构对象,并接收数据写入 tensors。数据通过 device to device 通道直接传输。dev_send 和 dev_recv 需配套使用。 通过 dev_recv 获取数据成功后,数据系统会自动删除此异构对象,不再管理此对象对应的 device 内存。 diff --git a/docs/source_zh_cn/development-guide/api/python/datasystem.DsTensorClient.dev_send.rst b/docs/source_zh_cn/development-guide/api/python/datasystem.DsTensorClient.dev_send.rst index 7a0e8849eede8cb899ef85cc016332f2d760c894..08ecf2e58c499b11407566ddc9ff1a54a58438d4 100644 --- a/docs/source_zh_cn/development-guide/api/python/datasystem.DsTensorClient.dev_send.rst +++ b/docs/source_zh_cn/development-guide/api/python/datasystem.DsTensorClient.dev_send.rst @@ -3,9 +3,7 @@ datasystem.DsTensorClient.dev_send .. py:method:: datasystem.DsTensorClient.dev_send(keys, tensors) - 将 device 上的内存发布为数据系统的异构对象。发布后的异构对象可通过 dev_recv 获取。 - - dev_send 和 dev_recv 需配套使用。dev_send 和 dev_recv 传入的 Device 内存地址不能归属于同一张 NPU 卡。 + 将 device 上的内存发布为数据系统的异构对象。发布后的异构对象可通过 dev_recv 获取。dev_send 和 dev_recv 需配套使用。 通过 dev_recv 获取数据成功后,数据系统会自动删除此异构对象,不再管理此对象对应的 device 内存。 diff --git a/docs/source_zh_cn/development-guide/api/python/datasystem.DsTensorClient.get_page_attn_layerwise_d2d.rst b/docs/source_zh_cn/development-guide/api/python/datasystem.DsTensorClient.get_page_attn_layerwise_d2d.rst index d72fa5f5a5403b57517b8a3be84410880f3183f4..a7dd179cf26ef9d71adb4917027bea15e2a113c5 100644 --- a/docs/source_zh_cn/development-guide/api/python/datasystem.DsTensorClient.get_page_attn_layerwise_d2d.rst +++ b/docs/source_zh_cn/development-guide/api/python/datasystem.DsTensorClient.get_page_attn_layerwise_d2d.rst @@ -3,11 +3,7 @@ datasystem.DsTensorClient.get_page_attn_layerwise_d2d .. py:method:: datasystem.DsTensorClient.get_page_attn_layerwise_d2d(keys, layer_tensors, block_ids) - 将 PagedAttention 的层级 Tensor 作为数据系统的异构对象放在设备上。 - - put_page_attn_layerwise_d2d 和 get_page_attn_layerwise_d2d 需配套使用。 - - put_page_attn_layerwise_d2d 和 get_page_attn_layerwise_d2d 传入的 Device 内存地址不能归属于同一张 NPU 卡。 + 将 PagedAttention 的层级 Tensor 作为数据系统的异构对象放在设备上。put_page_attn_layerwise_d2d 和 get_page_attn_layerwise_d2d 需配套使用。 通过 get_page_attn_layerwise_d2d 获取数据成功后,数据系统会自动删除此异构对象,不再管理此对象对应的 device 内存。 diff --git a/docs/source_zh_cn/development-guide/api/python/datasystem.DsTensorClient.put_page_attn_layerwise_d2d.rst b/docs/source_zh_cn/development-guide/api/python/datasystem.DsTensorClient.put_page_attn_layerwise_d2d.rst index 13be5371f08a928ddf56a26c20af7f04c9bcc9ac..968f4dd9e0a0ea4ee5067b914e8c0d9bfa8cfbbd 100644 --- a/docs/source_zh_cn/development-guide/api/python/datasystem.DsTensorClient.put_page_attn_layerwise_d2d.rst +++ b/docs/source_zh_cn/development-guide/api/python/datasystem.DsTensorClient.put_page_attn_layerwise_d2d.rst @@ -3,11 +3,7 @@ datasystem.DsTensorClient.put_page_attn_layerwise_d2d .. py:method:: datasystem.DsTensorClient.put_page_attn_layerwise_d2d(keys, layer_tensors, block_ids) - 将 PagedAttention 的层级 Tensor 发布为数据系统的异构对象。发布后的异构对象可通过 get_page_attn_layerwise_d2d 获取。 - - put_page_attn_layerwise_d2d 和 get_page_attn_layerwise_d2d 需配套使用。 - - put_page_attn_layerwise_d2d 和 get_page_attn_layerwise_d2d 传入的 Device 内存地址不能归属于同一张 NPU 卡。 + 将 PagedAttention 的层级 Tensor 发布为数据系统的异构对象。发布后的异构对象可通过 get_page_attn_layerwise_d2d 获取。put_page_attn_layerwise_d2d 和 get_page_attn_layerwise_d2d 需配套使用。 通过 get_page_attn_layerwise_d2d 获取数据成功后,数据系统会自动删除此异构对象,不再管理此对象对应的 device 内存。 diff --git a/docs/source_zh_cn/development-guide/api/python/datasystem.hetero_client.HeteroClient.dev_mget.rst b/docs/source_zh_cn/development-guide/api/python/datasystem.hetero_client.HeteroClient.dev_mget.rst index b0902526b62ac5f93f37086e6836f95df6daec4d..93bf45eaf3b707dd30cb52f27351ad63794ad592 100644 --- a/docs/source_zh_cn/development-guide/api/python/datasystem.hetero_client.HeteroClient.dev_mget.rst +++ b/docs/source_zh_cn/development-guide/api/python/datasystem.hetero_client.HeteroClient.dev_mget.rst @@ -5,8 +5,6 @@ datasystem.hetero_client.HeteroClient.dev_mget 获取 device 中的数据,并写入到 data_blob_list 中。数据通过 device to device 通道直接传输。 - dev_mset 和 dev_mget 需配套使用。dev_mset 和 dev_mget 传入的 Device 内存地址不能归属于同一张 NPU 卡。 - dev_mget 后不会自动删除异构对象,如对象不再使用,可调用 dev_local_delete 或 dev_delete 删除。 在执行 dev_mget 过程中,执行了 dev_mset 的进程不能退出,否则 dev_mget 会失败。 diff --git a/docs/source_zh_cn/development-guide/api/python/datasystem.hetero_client.HeteroClient.dev_mset.rst b/docs/source_zh_cn/development-guide/api/python/datasystem.hetero_client.HeteroClient.dev_mset.rst index 80a1fc1fba3d10952677834917ab955e99851d40..c989db877fd6f99595c63c0666e1bbd48077264f 100644 --- a/docs/source_zh_cn/development-guide/api/python/datasystem.hetero_client.HeteroClient.dev_mset.rst +++ b/docs/source_zh_cn/development-guide/api/python/datasystem.hetero_client.HeteroClient.dev_mset.rst @@ -3,9 +3,7 @@ datasystem.hetero_client.HeteroClient.dev_mset .. py:method:: datasystem.hetero_client.HeteroClient.dev_mset(keys, data_blob_list) - 通过数据系统缓存 Device 上的数据,将 data_blob_list 对应的 key 的元数据写入数据系统,可供其他 client 访问。 - - dev_mset 和 dev_mget 需配套使用。dev_mset 和 dev_mget 传入的 Device 内存地址不能归属于同一张 NPU 卡。 + 通过数据系统缓存 Device 上的数据,将 data_blob_list 对应的 key 的元数据写入数据系统,可供其他 client 访问。dev_mset 和 dev_mget 需配套使用。 dev_mget 后不会自动删除异构对象,如对象不再使用,可调用 dev_local_delete 或 dev_delete 删除。 diff --git a/docs/source_zh_cn/development-guide/example/hetero.md b/docs/source_zh_cn/development-guide/example/hetero.md index a1540d7663d6046f9a639e8a6bc915cd30cac3f8..9c3237bc7c5b50ac6ce1f43042744341e297252b 100644 --- a/docs/source_zh_cn/development-guide/example/hetero.md +++ b/docs/source_zh_cn/development-guide/example/hetero.md @@ -16,7 +16,6 @@ openYuanrong datasystem (下文中称为数据系统)的 Hetero 语义中,基 DevPublish / DevSubscribe 为异步接口,提供了返回 Future 供用户获取执行结果,每个key返回一个 Future。当 Future::Get 获取到结果为 OK 时,表示数据已经被对端接收成功。 > **注意**: -> DevPublish / DevSubscribe 传入的 Device 内存地址不能归属于同一张 NPU 卡。 > 在执行 DevSubscribe 过程中,执行了 DevPublish 的进程不能退出,否则 DevSubscribe 会失败。 > 在key,devBlobList内存地址映射关系均一致的情况下,DevPublish在同进程支持重试。 > DevSubscribe单Key的订阅超时时间为20s,多key为60s。 @@ -190,8 +189,7 @@ void HeteroDevSubscribe() **DevMSet / DevMGet**:数据缓存语义,数据生成端执行 DevMSet 将 HBM 数据发布到数据系统,数据接收端申请 HBM 内存后,执行 DevMGet 接口读取数据。当数据被读取后,数据系统不会删除对象,该数据可被反复读取。数据使用完成后需要调用 DevLocalDelete/DevDelete 删除对象。 -> **注意**: -> DevMSet / DevMGet 传入的 Device 内存地址不能归属于同一张 NPU 卡。 +> **注意**: > 在执行 DevMGet 过程中,执行了 DevMSet 的进程不能退出,否则 DevMGet 会失败。 > 在key,devBlobList内存地址映射关系均一致的情况下,DevMGet在同进程支持重试。 diff --git a/third_party/P2P-Transfer/include/communicator/P2PCommunicatorManager.h b/third_party/P2P-Transfer/include/communicator/P2PCommunicatorManager.h index a1369c41053124cb13f0b038d715243194e2048a..1acc6524a9ece4d422ebb185002c90e6efeef1e7 100644 --- a/third_party/P2P-Transfer/include/communicator/P2PCommunicatorManager.h +++ b/third_party/P2P-Transfer/include/communicator/P2PCommunicatorManager.h @@ -1,5 +1,18 @@ -/* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. + +/** + * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef P2PCOMMMANAGER_H #define P2PCOMMMANAGER_H diff --git a/third_party/P2P-Transfer/include/external/ra.h b/third_party/P2P-Transfer/include/external/ra.h index 41c9309ae460200f63dd958ca3166fb4c1474f32..dbf8f10e86f1bade3c53504421801f8590bef4b5 100644 --- a/third_party/P2P-Transfer/include/external/ra.h +++ b/third_party/P2P-Transfer/include/external/ra.h @@ -1,5 +1,18 @@ -/* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. + +/** + * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef RA_H #define RA_H diff --git a/third_party/P2P-Transfer/include/external/tsd.h b/third_party/P2P-Transfer/include/external/tsd.h index d7ac3fba28dd7c36db72d05950fda0bd892489e9..1cdcc5e75f372c131075efa985859af777158380 100644 --- a/third_party/P2P-Transfer/include/external/tsd.h +++ b/third_party/P2P-Transfer/include/external/tsd.h @@ -1,5 +1,18 @@ -/* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. + +/** + * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef TSD_H #define TSD_H diff --git a/third_party/P2P-Transfer/include/tools/host-interface.h b/third_party/P2P-Transfer/include/tools/host-interface.h index 41d6359166d9cef4c80c84a99e13fd627a5e0218..254872d6ca2619f3d1a66bc7d17241193477e6d8 100644 --- a/third_party/P2P-Transfer/include/tools/host-interface.h +++ b/third_party/P2P-Transfer/include/tools/host-interface.h @@ -1,5 +1,18 @@ -/* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. + +/** + * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef P2P_HOST_INTERFACE_H #define P2P_HOST_INTERFACE_H diff --git a/third_party/P2P-Transfer/source/communication/TcpClient.cpp b/third_party/P2P-Transfer/source/communication/TcpClient.cpp index 5134bfb616fc4541466c4403e8de4da2194cd549..36a4047d650554a9635042bc3d7b1ba14d4f9adf 100644 --- a/third_party/P2P-Transfer/source/communication/TcpClient.cpp +++ b/third_party/P2P-Transfer/source/communication/TcpClient.cpp @@ -1,5 +1,18 @@ -/* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. + +/** + * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include "communication/TcpClient.h" #include "securec.h" diff --git a/third_party/P2P-Transfer/source/communication/TcpServer.cpp b/third_party/P2P-Transfer/source/communication/TcpServer.cpp index b6dbc3be45ed0d38cc289d41deb5a3d74a03e642..4b9cbc9b465d9d08a771a4071291202e8bcd34df 100644 --- a/third_party/P2P-Transfer/source/communication/TcpServer.cpp +++ b/third_party/P2P-Transfer/source/communication/TcpServer.cpp @@ -1,5 +1,18 @@ -/* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. + +/** + * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include "communication/TcpServer.h" #include "securec.h" diff --git a/third_party/P2P-Transfer/source/communicator/P2PCommunicator.cpp b/third_party/P2P-Transfer/source/communicator/P2PCommunicator.cpp index 4c42bc6667b147b0d3a3420819d87b1cd5ac5f5a..c5f11e909def34c5b6b970c251b7424b3dd75e62 100644 --- a/third_party/P2P-Transfer/source/communicator/P2PCommunicator.cpp +++ b/third_party/P2P-Transfer/source/communicator/P2PCommunicator.cpp @@ -1,5 +1,18 @@ -/* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. + +/** + * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include "communicator/P2PCommunicator.h" #include "securec.h" diff --git a/third_party/P2P-Transfer/source/communicator/hccs-ipc/HccsReceiver.cpp b/third_party/P2P-Transfer/source/communicator/hccs-ipc/HccsReceiver.cpp index 09e486f574ac8c79c2b8742c463ff3527388ae59..7d3465485a6a3ee25f460eacaf1692f77de91c09 100644 --- a/third_party/P2P-Transfer/source/communicator/hccs-ipc/HccsReceiver.cpp +++ b/third_party/P2P-Transfer/source/communicator/hccs-ipc/HccsReceiver.cpp @@ -1,5 +1,18 @@ -/* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. + +/** + * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include "communicator/hccs-ipc/HccsReceiver.h" #include "tools/npu-error.h" diff --git a/third_party/P2P-Transfer/source/communicator/hccs-ipc/HccsSender.cpp b/third_party/P2P-Transfer/source/communicator/hccs-ipc/HccsSender.cpp index 09641861cda68e86b91b6d74775e6ced8443936d..9377cce728230016df6a884452f93da0a7631478 100644 --- a/third_party/P2P-Transfer/source/communicator/hccs-ipc/HccsSender.cpp +++ b/third_party/P2P-Transfer/source/communicator/hccs-ipc/HccsSender.cpp @@ -1,5 +1,18 @@ -/* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. + +/** + * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include "communicator/hccs-ipc/HccsSender.h" #include "tools/npu-error.h" diff --git a/third_party/P2P-Transfer/source/communicator/roce/RoceReceiver.cpp b/third_party/P2P-Transfer/source/communicator/roce/RoceReceiver.cpp index f02d078779e580ae364448ce5d99e04ef216f892..f89f95b1987fc4ab138052851e9a928bcd3b473d 100644 --- a/third_party/P2P-Transfer/source/communicator/roce/RoceReceiver.cpp +++ b/third_party/P2P-Transfer/source/communicator/roce/RoceReceiver.cpp @@ -1,5 +1,18 @@ -/* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. + +/** + * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include "communicator/roce/RoceReceiver.h" #include "tools/npu-error.h" diff --git a/third_party/P2P-Transfer/source/communicator/roce/RoceSender.cpp b/third_party/P2P-Transfer/source/communicator/roce/RoceSender.cpp index e058a526dda42aad5ca148af158ddde5c06c9e65..600db9fba75e7b1f4356d57f6896fd2618ef1357 100644 --- a/third_party/P2P-Transfer/source/communicator/roce/RoceSender.cpp +++ b/third_party/P2P-Transfer/source/communicator/roce/RoceSender.cpp @@ -1,5 +1,18 @@ -/* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. + +/** + * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include "communicator/roce/RoceSender.h" #include "tools/npu-error.h" diff --git a/third_party/P2P-Transfer/source/communicator/test.cpp b/third_party/P2P-Transfer/source/communicator/test.cpp index 867a0cd7611ed8a9ea059a06af366e948bf465a4..4a6f1b68672f5e61cab88165d99da57b3247d691 100644 --- a/third_party/P2P-Transfer/source/communicator/test.cpp +++ b/third_party/P2P-Transfer/source/communicator/test.cpp @@ -1,5 +1,18 @@ -/* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. + +/** + * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include "communicator/P2PCommunicator.h" #include "securec.h" diff --git a/third_party/P2P-Transfer/source/npu/Hccp.cpp b/third_party/P2P-Transfer/source/npu/Hccp.cpp index 6f2269fcae42529cf0772a2942295d25ba5f0969..9e60277ff183bb23a5c22f456f8ddb0b92ce15c8 100644 --- a/third_party/P2P-Transfer/source/npu/Hccp.cpp +++ b/third_party/P2P-Transfer/source/npu/Hccp.cpp @@ -1,5 +1,18 @@ -/* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. + +/** + * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include "npu/Hccp.h" #include "external/tsd.h" diff --git a/third_party/P2P-Transfer/source/npu/LocalNotify.cpp b/third_party/P2P-Transfer/source/npu/LocalNotify.cpp index 40518ee18c22e5acaffe0d7bf33f752e6363116a..c6a67fe9b1ca18afbb8e330108b7f7a2e380d5f3 100644 --- a/third_party/P2P-Transfer/source/npu/LocalNotify.cpp +++ b/third_party/P2P-Transfer/source/npu/LocalNotify.cpp @@ -1,5 +1,18 @@ -/* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. + +/** + * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include "npu/LocalNotify.h" diff --git a/third_party/P2P-Transfer/source/npu/P2PMem.cpp b/third_party/P2P-Transfer/source/npu/P2PMem.cpp index 5f59dd11761f9094b1416d86d1e7be37e744a0fe..d02fa80466df0f7382f9212dd91d7e2429dbebf9 100644 --- a/third_party/P2P-Transfer/source/npu/P2PMem.cpp +++ b/third_party/P2P-Transfer/source/npu/P2PMem.cpp @@ -1,5 +1,18 @@ -/* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. + +/** + * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include "npu/P2PMem.h" diff --git a/third_party/P2P-Transfer/source/npu/P2PNotify.cpp b/third_party/P2P-Transfer/source/npu/P2PNotify.cpp index 10524f1e04ed7fc80f3d155bfa3b801e5a9abbc0..92b238bf25f324de6d05178467ea0e35c31bc16f 100644 --- a/third_party/P2P-Transfer/source/npu/P2PNotify.cpp +++ b/third_party/P2P-Transfer/source/npu/P2PNotify.cpp @@ -1,5 +1,18 @@ -/* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. + +/** + * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include "npu/P2PNotify.h" #include "runtime/event.h" diff --git a/third_party/P2P-Transfer/source/npu/P2PStream.cpp b/third_party/P2P-Transfer/source/npu/P2PStream.cpp index 8597ff71a73dd262ee769e8b54699ee2869c5675..d71376ae558a98d8b2d924f933f33db586f94ea9 100644 --- a/third_party/P2P-Transfer/source/npu/P2PStream.cpp +++ b/third_party/P2P-Transfer/source/npu/P2PStream.cpp @@ -1,5 +1,18 @@ -/* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. + +/** + * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include "npu/P2PStream.h" diff --git a/third_party/P2P-Transfer/source/npu/PeerManager.cpp b/third_party/P2P-Transfer/source/npu/PeerManager.cpp index 22f92bbb6bb86710fad85071bbe9f535e64b215b..7f58e23962f53dcb055792b270bf4f0570858b1e 100644 --- a/third_party/P2P-Transfer/source/npu/PeerManager.cpp +++ b/third_party/P2P-Transfer/source/npu/PeerManager.cpp @@ -1,5 +1,18 @@ -/* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. + +/** + * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include "npu/PeerManager.h" diff --git a/third_party/P2P-Transfer/source/npu/RaWrapper.cpp b/third_party/P2P-Transfer/source/npu/RaWrapper.cpp index db364a3e4962527501b332a263519b70408b15d8..81d779917680ab6c4bf2fdba6eff40cd7743c4d3 100644 --- a/third_party/P2P-Transfer/source/npu/RaWrapper.cpp +++ b/third_party/P2P-Transfer/source/npu/RaWrapper.cpp @@ -1,5 +1,18 @@ -/* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. + +/** + * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include "npu/RaWrapper.h" #include diff --git a/third_party/P2P-Transfer/source/npu/RdmaErrCollector.cpp b/third_party/P2P-Transfer/source/npu/RdmaErrCollector.cpp index 567f893fa9a39888687d30f94432ee45cff15010..c6c5cefd2cdd5729cc4905a9da66c89b56aa7407 100644 --- a/third_party/P2P-Transfer/source/npu/RdmaErrCollector.cpp +++ b/third_party/P2P-Transfer/source/npu/RdmaErrCollector.cpp @@ -1,5 +1,18 @@ -/* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. + +/** + * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include "npu/RdmaErrCollector.h" #include diff --git a/third_party/P2P-Transfer/source/npu/RdmaNotify.cpp b/third_party/P2P-Transfer/source/npu/RdmaNotify.cpp index ec9bba74939228a36e0035a8c9e7102717ea926e..0320500b08d11612917808e7d7a6c88fb3ec3798 100644 --- a/third_party/P2P-Transfer/source/npu/RdmaNotify.cpp +++ b/third_party/P2P-Transfer/source/npu/RdmaNotify.cpp @@ -1,5 +1,18 @@ -/* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. + +/** + * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include "npu/RdmaNotify.h" diff --git a/third_party/P2P-Transfer/source/p2p.cpp b/third_party/P2P-Transfer/source/p2p.cpp index 2da1325f55655b4ffa873ca7c5ae96c64c07673b..26d8ef1bdd5d65a47d0534661c44c4543008fb43 100644 --- a/third_party/P2P-Transfer/source/p2p.cpp +++ b/third_party/P2P-Transfer/source/p2p.cpp @@ -1,5 +1,18 @@ -/* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. + +/** + * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/third_party/P2P-Transfer/source/tools/env.cpp b/third_party/P2P-Transfer/source/tools/env.cpp index 06a8da8c404d099ba46e1eee5a99dc121e5925f1..e9d6d3bac113bbe99201b68aab75e8b2e5c51951 100644 --- a/third_party/P2P-Transfer/source/tools/env.cpp +++ b/third_party/P2P-Transfer/source/tools/env.cpp @@ -1,5 +1,18 @@ -/* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. + +/** + * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include "tools/env.h" diff --git a/third_party/P2P-Transfer/source/tools/hccl-convert.cpp b/third_party/P2P-Transfer/source/tools/hccl-convert.cpp index ec7611654dc35defe0b8161dab0befd0fd468ed3..73df31879ba81ada77173b95c1eeb97154e0bc48 100644 --- a/third_party/P2P-Transfer/source/tools/hccl-convert.cpp +++ b/third_party/P2P-Transfer/source/tools/hccl-convert.cpp @@ -1,5 +1,18 @@ -/* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. + +/** + * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include "tools/hccl-convert.h" diff --git a/third_party/P2P-Transfer/source/tools/host-interface.cpp b/third_party/P2P-Transfer/source/tools/host-interface.cpp index c2d1f65bf80e1acd8e224f06efeaf5b907c35553..ec4f02fea1d3ce97ac8c6afd17cfe68ae39d3586 100644 --- a/third_party/P2P-Transfer/source/tools/host-interface.cpp +++ b/third_party/P2P-Transfer/source/tools/host-interface.cpp @@ -1,5 +1,18 @@ -/* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. + +/** + * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include "tools/host-interface.h" #include "tools/npu-error.h" diff --git a/third_party/P2P-Transfer/test/source/p2p-transfer_test.cpp b/third_party/P2P-Transfer/test/source/p2p-transfer_test.cpp index 3b0bc06447987afa1533d898620f3a32f06d3956..bc2784b72f07439d95d919556d4c27447bd92704 100644 --- a/third_party/P2P-Transfer/test/source/p2p-transfer_test.cpp +++ b/third_party/P2P-Transfer/test/source/p2p-transfer_test.cpp @@ -1,5 +1,18 @@ -/* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. + +/** + * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/third_party/P2P-Transfer/test/source/p2p-transfer_test_batch.cpp b/third_party/P2P-Transfer/test/source/p2p-transfer_test_batch.cpp index 0d062bbcb68ef9083cce46664caf1551b3b61914..d84f32ce0fce4c6d7687dc32cf600ac87489f574 100644 --- a/third_party/P2P-Transfer/test/source/p2p-transfer_test_batch.cpp +++ b/third_party/P2P-Transfer/test/source/p2p-transfer_test_batch.cpp @@ -1,5 +1,18 @@ -/* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. + +/** + * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/third_party/P2P-Transfer/test/source/p2p-transfer_test_batch_recv.cpp b/third_party/P2P-Transfer/test/source/p2p-transfer_test_batch_recv.cpp index fe8c28ac59e2bddb08f90a0ff74bb213253c31b5..a62b1c9b1e152ab28d5dd2c7750a19a28a081615 100644 --- a/third_party/P2P-Transfer/test/source/p2p-transfer_test_batch_recv.cpp +++ b/third_party/P2P-Transfer/test/source/p2p-transfer_test_batch_recv.cpp @@ -1,5 +1,18 @@ -/* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. + +/** + * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/third_party/P2P-Transfer/test/source/p2p-transfer_test_batch_send.cpp b/third_party/P2P-Transfer/test/source/p2p-transfer_test_batch_send.cpp index 29fc98b6711b5585828300fe2eacf3c123d2e34b..181c9fbba39090661fa4741abbb6e2b8e5de3edb 100644 --- a/third_party/P2P-Transfer/test/source/p2p-transfer_test_batch_send.cpp +++ b/third_party/P2P-Transfer/test/source/p2p-transfer_test_batch_send.cpp @@ -1,5 +1,18 @@ -/* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. + +/** + * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/third_party/P2P-Transfer/test/source/p2p-transfer_test_batch_thread.cpp b/third_party/P2P-Transfer/test/source/p2p-transfer_test_batch_thread.cpp index b40fa7883325c01c32c2feb39683b8cee7745a9c..12ecbd9238a852ffd355a579caf6fbcb2a7f7029 100644 --- a/third_party/P2P-Transfer/test/source/p2p-transfer_test_batch_thread.cpp +++ b/third_party/P2P-Transfer/test/source/p2p-transfer_test_batch_thread.cpp @@ -1,5 +1,18 @@ -/* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. + +/** + * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/third_party/P2P-Transfer/test/source/p2p-transfer_test_init.cpp b/third_party/P2P-Transfer/test/source/p2p-transfer_test_init.cpp index 0a82acdc0b99af10364cad390ac7623eadcaab00..1912cb95640c26f30a5b50f9d0d4c51a163eb55c 100644 --- a/third_party/P2P-Transfer/test/source/p2p-transfer_test_init.cpp +++ b/third_party/P2P-Transfer/test/source/p2p-transfer_test_init.cpp @@ -1,5 +1,18 @@ -/* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. + +/** + * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include diff --git a/third_party/P2P-Transfer/test/source/test-tools/barrier.h b/third_party/P2P-Transfer/test/source/test-tools/barrier.h index 583fb132164cab29208e08583055ec1b7b3dcbb0..2cce4794d80c8a5402c2a87b701fdf28d10f9b3e 100644 --- a/third_party/P2P-Transfer/test/source/test-tools/barrier.h +++ b/third_party/P2P-Transfer/test/source/test-tools/barrier.h @@ -1,5 +1,18 @@ -/* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. + +/** + * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef BARRIER_H #define BARRIER_H diff --git a/third_party/P2P-Transfer/test/source/test-tools/fifo.h b/third_party/P2P-Transfer/test/source/test-tools/fifo.h index b90cea66d7ec5dff80aa54c0d96e3d48d30a230e..48d50a86380e0154c520e033807af26ac2fca8f8 100644 --- a/third_party/P2P-Transfer/test/source/test-tools/fifo.h +++ b/third_party/P2P-Transfer/test/source/test-tools/fifo.h @@ -1,5 +1,18 @@ -/* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. + +/** + * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef FIFO_H #define FIFO_H diff --git a/third_party/P2P-Transfer/test/source/test-tools/measure.h b/third_party/P2P-Transfer/test/source/test-tools/measure.h index 9b1d4f0262cd9afd0cfaca6c1e3206e711ae83cc..9fea07935c000a1cd2757866e61befb9e8c2dd0c 100644 --- a/third_party/P2P-Transfer/test/source/test-tools/measure.h +++ b/third_party/P2P-Transfer/test/source/test-tools/measure.h @@ -1,5 +1,18 @@ -/* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. + +/** + * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef TOOLS_H #define TOOLS_H diff --git a/third_party/P2P-Transfer/test/source/test-tools/measurementSeries.h b/third_party/P2P-Transfer/test/source/test-tools/measurementSeries.h index d44948df780e92a0d71ca3ae66c90f2ac39bdfe1..0672e3c81e66f19a7863acefdb371e644d32dc2c 100644 --- a/third_party/P2P-Transfer/test/source/test-tools/measurementSeries.h +++ b/third_party/P2P-Transfer/test/source/test-tools/measurementSeries.h @@ -1,5 +1,18 @@ -/* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. + +/** + * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef MEASUREMENT_SERIES_H #define MEASUREMENT_SERIES_H diff --git a/third_party/P2P-Transfer/test/source/test-tools/tools.h b/third_party/P2P-Transfer/test/source/test-tools/tools.h index dcc0f0ac92b55520baff0eca212f92bd9248783b..983396e52db846faefecf37276c2a4b41d9a44f8 100644 --- a/third_party/P2P-Transfer/test/source/test-tools/tools.h +++ b/third_party/P2P-Transfer/test/source/test-tools/tools.h @@ -1,5 +1,18 @@ -/* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. + +/** + * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef TOOLS_H #define TOOLS_H