Skip to content

Commit 135e62b

Browse files
authored
add c source utils functions license (#426)
1 parent 17db211 commit 135e62b

4 files changed

Lines changed: 36 additions & 1 deletion

File tree

csrc/utils/common.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
// Licensed under the BSD 3-Clause License (the "License");
32
// you may not use this file except in compliance with the License.
43
// You may obtain a copy of the License at
@@ -8,6 +7,15 @@
87
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
98
// See the License for the specific language governing permissions and
109
// limitations under the License.
10+
//
11+
// The code snippet comes from [CANN].
12+
//
13+
// Copyright (c) [2025] [CANN]. All rights reserved.
14+
//
15+
// This file contains code from [CANN], which is released under
16+
// the CANN Open Software License Agreement Version 2.0 (the "License")
17+
// See the LICENSE file in the root directory of this source tree
18+
// or at https://gitcode.com/cann/ops-nn/blob/master/LICENSE for details.
1119

1220
#ifndef UTILS_COMMON_H
1321
#define UTILS_COMMON_H

csrc/utils/defines.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@
77
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
88
// See the License for the specific language governing permissions and
99
// limitations under the License.
10+
//
11+
// The code snippet comes from [CANN].
12+
//
13+
// Copyright (c) [2025] [CANN]. All rights reserved.
14+
//
15+
// This file contains code from [CANN], which is released under
16+
// the CANN Open Software License Agreement Version 2.0 (the "License")
17+
// See the LICENSE file in the root directory of this source tree
18+
// or at https://gitcode.com/cann/ops-nn/blob/master/LICENSE for details.
1019

1120
#ifndef SGL_KERNEL_NPU_DEFINES_H
1221
#define SGL_KERNEL_NPU_DEFINES_H

csrc/utils/torch_helper.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@
77
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
88
// See the License for the specific language governing permissions and
99
// limitations under the License.
10+
//
11+
// The code snippet comes from [CANN].
12+
//
13+
// Copyright (c) [2025] [CANN]. All rights reserved.
14+
//
15+
// This file contains code from [CANN], which is released under
16+
// the CANN Open Software License Agreement Version 2.0 (the "License")
17+
// See the LICENSE file in the root directory of this source tree
18+
// or at https://gitcode.com/cann/ops-nn/blob/master/LICENSE for details.
1019

1120
#ifndef SGL_KERNEL_NPU_TORCH_NPU_HELPER_H
1221
#define SGL_KERNEL_NPU_TORCH_NPU_HELPER_H

csrc/utils/version.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@
77
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
88
// See the License for the specific language governing permissions and
99
// limitations under the License
10+
//
11+
// The code snippet comes from [CANN].
12+
//
13+
// Copyright (c) [2025] [CANN]. All rights reserved.
14+
//
15+
// This file contains code from [CANN], which is released under
16+
// the CANN Open Software License Agreement Version 2.0 (the "License")
17+
// See the LICENSE file in the root directory of this source tree
18+
// or at https://gitcode.com/cann/ops-nn/blob/master/LICENSE for details.
1019

1120
#ifndef SGL_KERNEL_NPU_VERSION_H
1221
#define SGL_KERNEL_NPU_VERSION_H

0 commit comments

Comments
 (0)