diff options
author | Iwan Kawrakow <iwan.kawrakow@gmail.com> | 2024-07-24 20:11:42 +0300 |
---|---|---|
committer | Iwan Kawrakow <iwan.kawrakow@gmail.com> | 2024-07-24 20:11:42 +0300 |
commit | 770f3585c2a6a1b047689a7635f27140239268bc (patch) | |
tree | ac1b8adfce365ed4461f564a8c52d6e739fba07d | |
parent | 9eee03f4eec5a67042c7c192fbf28994fabae5b8 (diff) |
Add copyright notices
Only on the files where I have contributed in a significant way,
or the files I wrote myself.
-rw-r--r-- | examples/imatrix/imatrix.cpp | 7 | ||||
-rw-r--r-- | ggml-common.h | 7 | ||||
-rw-r--r-- | ggml-cuda/convert.cu | 7 | ||||
-rw-r--r-- | ggml-cuda/vecdotq.cuh | 7 | ||||
-rw-r--r-- | ggml-metal.m | 7 | ||||
-rw-r--r-- | ggml-metal.metal | 7 | ||||
-rw-r--r-- | ggml-quants.c | 7 | ||||
-rw-r--r-- | ggml-quants.h | 7 | ||||
-rw-r--r-- | ggml.c | 6 | ||||
-rw-r--r-- | iqk-quantize.cpp | 15 | ||||
-rw-r--r-- | iqk_mul_mat.cpp | 14 | ||||
-rw-r--r-- | iqk_mul_mat.h | 6 |
12 files changed, 74 insertions, 23 deletions
diff --git a/examples/imatrix/imatrix.cpp b/examples/imatrix/imatrix.cpp index c7d73cdb..8afc6aa7 100644 --- a/examples/imatrix/imatrix.cpp +++ b/examples/imatrix/imatrix.cpp @@ -1,3 +1,10 @@ +// +// Copyright (C) 2024 Iwan Kawrakow +// Copyright (C) 2023-2024 The ggml authors +// MIT license +// SPDX-License-Identifier: MIT +// + #include "common.h" #include "llama.h" diff --git a/ggml-common.h b/ggml-common.h index 0c94fee2..5b901c21 100644 --- a/ggml-common.h +++ b/ggml-common.h @@ -1,3 +1,10 @@ +// +// Copyright (C) 2023-2024 The ggml authors +// Copyright (C) 2024 Iwan Kawrakow +// MIT license +// SPDX-License-Identifier: MIT +// + #ifndef GGML_COMMON_DECL #if defined(GGML_COMMON_DECL_C) diff --git a/ggml-cuda/convert.cu b/ggml-cuda/convert.cu index 4a67c498..66e68a52 100644 --- a/ggml-cuda/convert.cu +++ b/ggml-cuda/convert.cu @@ -1,3 +1,10 @@ +// +// Copyright (C) 2023-2024 The ggml authors +// Copyright (C) 2024 Iwan Kawrakow +// MIT license +// SPDX-License-Identifier: MIT +// + #include "convert.cuh" #include "dequantize.cuh" diff --git a/ggml-cuda/vecdotq.cuh b/ggml-cuda/vecdotq.cuh index f0133e07..b8dd0bdf 100644 --- a/ggml-cuda/vecdotq.cuh +++ b/ggml-cuda/vecdotq.cuh @@ -1,3 +1,10 @@ +// +// Copyright (C) 2023-2024 The ggml authors +// Copyright (C) 2024 Iwan Kawrakow +// MIT license +// SPDX-License-Identifier: MIT +// + #include "common.cuh" static __device__ __forceinline__ int get_int_from_int8(const int8_t * x8, const int & i32) { diff --git a/ggml-metal.m b/ggml-metal.m index 6c630f7b..ca36839b 100644 --- a/ggml-metal.m +++ b/ggml-metal.m @@ -1,3 +1,10 @@ +// +// Copyright (C) 2023-2024 The ggml authors +// Copyright (C) 2024 Iwan Kawrakow +// MIT license +// SPDX-License-Identifier: MIT +// + #import "ggml-metal.h" #import "ggml-backend-impl.h" diff --git a/ggml-metal.metal b/ggml-metal.metal index 2bf6894a..287b00f0 100644 --- a/ggml-metal.metal +++ b/ggml-metal.metal @@ -1,3 +1,10 @@ +// +// Copyright (C) 2023-2024 The ggml authors +// Copyright (C) 2024 Iwan Kawrakow +// MIT license +// SPDX-License-Identifier: MIT +// + #define GGML_COMMON_DECL_METAL #define GGML_COMMON_IMPL_METAL #include "ggml-common.h" diff --git a/ggml-quants.c b/ggml-quants.c index 6821af0d..fe0b4f98 100644 --- a/ggml-quants.c +++ b/ggml-quants.c @@ -1,3 +1,10 @@ +// +// Copyright (C) 2023-2024 The ggml authors +// Copyright (C) 2024 Iwan Kawrakow +// MIT license +// SPDX-License-Identifier: MIT +// + #define GGML_COMMON_IMPL_C #include "ggml-common.h" diff --git a/ggml-quants.h b/ggml-quants.h index 00d64cff..0b928e78 100644 --- a/ggml-quants.h +++ b/ggml-quants.h @@ -1,3 +1,10 @@ +// +// Copyright (C) 2023-2024 The ggml authors +// Copyright (C) 2024 Iwan Kawrakow +// MIT license +// SPDX-License-Identifier: MIT +// + #pragma once #define GGML_COMMON_DECL_C @@ -1,3 +1,9 @@ +// +// Copyright (C) 2023-2024 The ggml authors +// Copyright (C) 2024 Iwan Kawrakow +// MIT license +// SPDX-License-Identifier: MIT +// #define _CRT_SECURE_NO_DEPRECATE // Disables ridiculous "unsafe" warnings on Windows #define _USE_MATH_DEFINES // For M_PI on MSVC diff --git a/iqk-quantize.cpp b/iqk-quantize.cpp index 08089152..7be21ff9 100644 --- a/iqk-quantize.cpp +++ b/iqk-quantize.cpp @@ -1,17 +1,8 @@ // -// Copyright 2024 Iwan Kawrakow +// Copyright (C) 2024 Iwan Kawrakow +// MIT license +// SPDX-License-Identifier: MIT // -// 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. #if GGML_USE_IQK_MULMAT #include "iqk_mul_mat.h" diff --git a/iqk_mul_mat.cpp b/iqk_mul_mat.cpp index 83ef6d5b..1dee6ef3 100644 --- a/iqk_mul_mat.cpp +++ b/iqk_mul_mat.cpp @@ -1,19 +1,11 @@ // -*- mode:c++;indent-tabs-mode:nil;c-basic-offset:4;coding:utf-8 -*- // vi: set et ft=cpp fenc=utf-8 :vi // -// Copyright 2024 Iwan Kawrakow // -// 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 +// Copyright (C) 2024 Iwan Kawrakow +// MIT license +// SPDX-License-Identifier: MIT // -// 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. #if defined IQK_IMPLEMENT #undef IQK_IMPLEMENT diff --git a/iqk_mul_mat.h b/iqk_mul_mat.h index c1db5eee..5e79991b 100644 --- a/iqk_mul_mat.h +++ b/iqk_mul_mat.h @@ -1,3 +1,9 @@ +// +// Copyright (C) 2024 Iwan Kawrakow +// MIT license +// SPDX-License-Identifier: MIT +// + #pragma once #include <stdint.h> #include <stdbool.h> |