Skip to content

Commit 36b0d18

Browse files
q10facebook-github-bot
authored andcommitted
Enable LICENSELINT in FBGEMM, pt. 2 (#1761)
Summary: Pull Request resolved: #1761 - Run license-lint on fbgemm source files Reviewed By: shintaro-iwasaki Differential Revision: D45796375 fbshipit-source-id: 80256aa2f4bae527873f1c5ad93e8a07c27e581b
1 parent 394ada3 commit 36b0d18

File tree

89 files changed

+200
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+200
-2
lines changed

bench/AlignedVec.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree.
7+
*/
8+
19
#pragma once
210

311
#include <cassert>

bench/BenchUtils.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
* All rights reserved.
4+
*
45
* This source code is licensed under the BSD-style license found in the
56
* LICENSE file in the root directory of this source tree.
67
*/
8+
79
#include "./BenchUtils.h"
810

911
#include <algorithm>

bench/BenchUtils.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
* All rights reserved.
4+
*
45
* This source code is licensed under the BSD-style license found in the
56
* LICENSE file in the root directory of this source tree.
67
*/
8+
79
#pragma once
810
#include <chrono>
911
#include <functional>

bench/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
2+
# All rights reserved.
3+
#
4+
# This source code is licensed under the BSD-style license found in the
5+
# LICENSE file in the root directory of this source tree.
6+
17
cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
28

39
set(CMAKE_CXX_STANDARD 17)

bench/ConvUnifiedBenchmark.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
* All rights reserved.
4+
*
45
* This source code is licensed under the BSD-style license found in the
56
* LICENSE file in the root directory of this source tree.
67
*/
8+
79
#include <algorithm>
810
#include <chrono>
911
#include <cmath>

bench/ConvertBenchmark.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
* All rights reserved.
4+
*
45
* This source code is licensed under the BSD-style license found in the
56
* LICENSE file in the root directory of this source tree.
67
*/
8+
79
#include <algorithm>
810
#include <array>
911
#include <chrono>

bench/Depthwise3DBenchmark.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
* All rights reserved.
4+
*
45
* This source code is licensed under the BSD-style license found in the
56
* LICENSE file in the root directory of this source tree.
67
*/

bench/DepthwiseBenchmark.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
* All rights reserved.
4+
*
45
* This source code is licensed under the BSD-style license found in the
56
* LICENSE file in the root directory of this source tree.
67
*/
8+
79
#include <algorithm>
810
#include <chrono>
911
#include <cmath>

bench/EmbeddingIndexRemappingBenchmark.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
* All rights reserved.
4+
*
45
* This source code is licensed under the BSD-style license found in the
56
* LICENSE file in the root directory of this source tree.
67
*/
8+
79
#include <algorithm>
810
#include <array>
911
#include <chrono>

bench/EmbeddingQuantizeBenchmark.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
* All rights reserved.
4+
*
45
* This source code is licensed under the BSD-style license found in the
56
* LICENSE file in the root directory of this source tree.
67
*/
8+
79
#include <chrono>
810
#include <initializer_list>
911
#include <iomanip>

bench/EmbeddingSpMDM8BitBenchmark.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
* All rights reserved.
4+
*
45
* This source code is licensed under the BSD-style license found in the
56
* LICENSE file in the root directory of this source tree.
67
*/
8+
79
#if defined(__x86_64__) || defined(__i386__) || \
810
(defined(_MSC_VER) && (defined(_M_X64) || defined(_M_IX86)))
911
#include <immintrin.h>

bench/EmbeddingSpMDMBenchmark.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
* All rights reserved.
4+
*
45
* This source code is licensed under the BSD-style license found in the
56
* LICENSE file in the root directory of this source tree.
67
*/
8+
79
#if defined(__x86_64__) || defined(__i386__) || \
810
(defined(_MSC_VER) && (defined(_M_X64) || defined(_M_IX86)))
911
#include <immintrin.h>

bench/EmbeddingSpMDMNBitBenchmark.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
* All rights reserved.
4+
*
45
* This source code is licensed under the BSD-style license found in the
56
* LICENSE file in the root directory of this source tree.
67
*/
8+
79
#if defined(__x86_64__) || defined(__i386__) || \
810
(defined(_MSC_VER) && (defined(_M_X64) || defined(_M_IX86)))
911
#include <immintrin.h>

bench/EmbeddingSpMDMNBitRowWiseSparseBenchmark.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
* All rights reserved.
4+
*
45
* This source code is licensed under the BSD-style license found in the
56
* LICENSE file in the root directory of this source tree.
67
*/
8+
79
#if defined(__x86_64__) || defined(__i386__) || \
810
(defined(_MSC_VER) && (defined(_M_X64) || defined(_M_IX86)))
911
#include <immintrin.h>

bench/FP16Benchmark.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
* All rights reserved.
4+
*
45
* This source code is licensed under the BSD-style license found in the
56
* LICENSE file in the root directory of this source tree.
67
*/
8+
79
#include <chrono>
810
#include <cmath>
911
#include <memory>

bench/GEMMsBenchmark.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
* All rights reserved.
4+
*
45
* This source code is licensed under the BSD-style license found in the
56
* LICENSE file in the root directory of this source tree.
67
*/
8+
79
#include <algorithm>
810
#include <chrono>
911
#include <cmath>

bench/GEMMsTunableBenchmark.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
* All rights reserved.
4+
*
45
* This source code is licensed under the BSD-style license found in the
56
* LICENSE file in the root directory of this source tree.
67
*/
8+
79
#include <cpuinfo.h>
810
#include <algorithm>
911
#include <chrono>

bench/GroupwiseConvRequantizeBenchmark.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
* All rights reserved.
4+
*
45
* This source code is licensed under the BSD-style license found in the
56
* LICENSE file in the root directory of this source tree.
67
*/
8+
79
#include <algorithm>
810
#include <chrono>
911
#include <cmath>

bench/I64Benchmark.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
* All rights reserved.
4+
*
45
* This source code is licensed under the BSD-style license found in the
56
* LICENSE file in the root directory of this source tree.
67
*/
8+
79
#include <array>
810
#include <iostream>
911
#include <limits>

bench/I8SpmdmBenchmark.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
* All rights reserved.
4+
*
45
* This source code is licensed under the BSD-style license found in the
56
* LICENSE file in the root directory of this source tree.
67
*/
8+
79
#include <algorithm>
810
#include <array>
911
#include <cassert>

bench/Im2ColFusedRequantizeBenchmark.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
* All rights reserved.
4+
*
45
* This source code is licensed under the BSD-style license found in the
56
* LICENSE file in the root directory of this source tree.
67
*/
8+
79
#include <algorithm>
810
#include <chrono>
911
#include <cmath>

bench/PackedFloatInOutBenchmark.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
* All rights reserved.
4+
*
45
* This source code is licensed under the BSD-style license found in the
56
* LICENSE file in the root directory of this source tree.
67
*/
8+
79
#include <algorithm>
810
#include <chrono>
911
#include <cmath>

bench/PackedRequantizeAcc16Benchmark.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
* All rights reserved.
4+
*
45
* This source code is licensed under the BSD-style license found in the
56
* LICENSE file in the root directory of this source tree.
67
*/
8+
79
#include <algorithm>
810
#include <chrono>
911
#include <cmath>

bench/PackedRequantizeAcc32Benchmark.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
* All rights reserved.
4+
*
45
* This source code is licensed under the BSD-style license found in the
56
* LICENSE file in the root directory of this source tree.
67
*/
8+
79
#include <algorithm>
810
#include <chrono>
911
#include <cmath>

bench/RequantizeBenchmark.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
* All rights reserved.
4+
*
45
* This source code is licensed under the BSD-style license found in the
56
* LICENSE file in the root directory of this source tree.
67
*/
8+
79
#include <chrono>
810
#include <initializer_list>
911
#include <iomanip>

bench/RowOffsetBenchmark.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
* All rights reserved.
4+
*
45
* This source code is licensed under the BSD-style license found in the
56
* LICENSE file in the root directory of this source tree.
67
*/
8+
79
#include <chrono>
810
#include <initializer_list>
911
#include <iomanip>

bench/RowwiseAdagradBenchmark.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
* All rights reserved.
4+
*
45
* This source code is licensed under the BSD-style license found in the
56
* LICENSE file in the root directory of this source tree.
67
*/
8+
79
#include <algorithm>
810
#include <cassert>
911
#include <chrono>

bench/RowwiseAdagradFusedBenchmark.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
* All rights reserved.
4+
*
45
* This source code is licensed under the BSD-style license found in the
56
* LICENSE file in the root directory of this source tree.
67
*/
8+
79
#include <algorithm>
810
#include <cassert>
911
#include <chrono>

bench/SparseAdagradBenchmark.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
* All rights reserved.
4+
*
45
* This source code is licensed under the BSD-style license found in the
56
* LICENSE file in the root directory of this source tree.
67
*/
8+
79
#include <algorithm>
810
#include <cassert>
911
#include <chrono>

bench/SparseDenseMMFP32Benchmark.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
* All rights reserved.
4+
*
45
* This source code is licensed under the BSD-style license found in the
56
* LICENSE file in the root directory of this source tree.
67
*/
8+
79
#include "bench/BenchUtils.h"
810
#include "fbgemm/FbgemmSparse.h"
911
#include "fbgemm/Utils.h"

bench/SparseDenseMMInt8Benchmark.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
* All rights reserved.
4+
*
45
* This source code is licensed under the BSD-style license found in the
56
* LICENSE file in the root directory of this source tree.
67
*/
8+
79
#include "bench/BenchUtils.h"
810
#include "fbgemm/FbgemmSparse.h"
911
#include "fbgemm/Utils.h"

bench/TransposeBenchmark.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
* All rights reserved.
4+
*
45
* This source code is licensed under the BSD-style license found in the
56
* LICENSE file in the root directory of this source tree.
67
*/
8+
79
#include <algorithm>
810
#include <chrono>
911
#include <iomanip>

include/fbgemm/ConvUtils.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
* All rights reserved.
4+
*
45
* This source code is licensed under the BSD-style license found in the
56
* LICENSE file in the root directory of this source tree.
67
*/
8+
79
#pragma once
810

911
#include <array>

0 commit comments

Comments
 (0)