This is an automated email from the ASF dual-hosted git repository. guanmingchiu pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/mahout.git
commit b0f1977ffc76ecd64b8c1711e523acb9948b0ce9 Author: Guan-Ming (Wesley) Chiu <[email protected]> AuthorDate: Fri Dec 5 01:07:04 2025 +0800 [QDP] Update pre-commit to add license headers for Cuda (#684) --- .pre-commit-config.yaml | 8 ++++++++ qdp/qdp-kernels/src/amplitude.cu | 16 ++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3f7f74d33..d456cb831 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -49,3 +49,11 @@ repos: - testing/utils/.license-header.txt - --comment-style - "//" + - id: insert-license + name: check license headers (CUDA) + files: \.(cu|cuh)$ + args: + - --license-filepath + - testing/utils/.license-header.txt + - --comment-style + - "//" diff --git a/qdp/qdp-kernels/src/amplitude.cu b/qdp/qdp-kernels/src/amplitude.cu index c652cc70d..da2465c46 100644 --- a/qdp/qdp-kernels/src/amplitude.cu +++ b/qdp/qdp-kernels/src/amplitude.cu @@ -1,3 +1,19 @@ +// +// Licensed to the Apache Software Foundation (ASF) under one or more +// contributor license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright ownership. +// The ASF licenses this file to You 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. + // Amplitude Encoding CUDA Kernel // // This is a minimal skeleton implementation for the Core Architecture.
