diff --git a/fbgemm_gpu/cmake/Hip.cmake b/fbgemm_gpu/cmake/Hip.cmake index 7db59ea9fe..30eedab3b6 100644 --- a/fbgemm_gpu/cmake/Hip.cmake +++ b/fbgemm_gpu/cmake/Hip.cmake @@ -1,3 +1,9 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. +# +# This source code is licensed under the BSD-style license found in the +# LICENSE file in the root directory of this source tree. + set(FBGEMM_HAVE_HIP FALSE) IF(NOT DEFINED ENV{ROCM_PATH}) diff --git a/fbgemm_gpu/docs/source/conf.py b/fbgemm_gpu/docs/source/conf.py index 78fac1a55c..997797f0ef 100644 --- a/fbgemm_gpu/docs/source/conf.py +++ b/fbgemm_gpu/docs/source/conf.py @@ -1,5 +1,6 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. +# # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. diff --git a/fbgemm_gpu/include/fbgemm_gpu/bench_utils.cuh b/fbgemm_gpu/include/fbgemm_gpu/bench_utils.cuh index 18c017d4cf..b081a059c7 100644 --- a/fbgemm_gpu/include/fbgemm_gpu/bench_utils.cuh +++ b/fbgemm_gpu/include/fbgemm_gpu/bench_utils.cuh @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #pragma once #include #include diff --git a/fbgemm_gpu/include/fbgemm_gpu/cpu_utils.h b/fbgemm_gpu/include/fbgemm_gpu/cpu_utils.h index e5f2f0cf8e..7cb7f5f79d 100644 --- a/fbgemm_gpu/include/fbgemm_gpu/cpu_utils.h +++ b/fbgemm_gpu/include/fbgemm_gpu/cpu_utils.h @@ -1,10 +1,13 @@ +// @lint-ignore-every LICENSELINT /* * Copyright (c) Meta Platforms, Inc. and affiliates. * Copyright (c) Intel Corporation. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #pragma once #include diff --git a/fbgemm_gpu/include/fbgemm_gpu/cub_namespace_postfix.cuh b/fbgemm_gpu/include/fbgemm_gpu/cub_namespace_postfix.cuh index cea3ff9138..bc29e1aede 100644 --- a/fbgemm_gpu/include/fbgemm_gpu/cub_namespace_postfix.cuh +++ b/fbgemm_gpu/include/fbgemm_gpu/cub_namespace_postfix.cuh @@ -1,6 +1,7 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ diff --git a/fbgemm_gpu/include/fbgemm_gpu/cub_namespace_prefix.cuh b/fbgemm_gpu/include/fbgemm_gpu/cub_namespace_prefix.cuh index a4b3736740..34c6d3e730 100644 --- a/fbgemm_gpu/include/fbgemm_gpu/cub_namespace_prefix.cuh +++ b/fbgemm_gpu/include/fbgemm_gpu/cub_namespace_prefix.cuh @@ -1,6 +1,7 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ diff --git a/fbgemm_gpu/include/fbgemm_gpu/cuda_utils.cuh b/fbgemm_gpu/include/fbgemm_gpu/cuda_utils.cuh index 3e637cbf24..b547141266 100644 --- a/fbgemm_gpu/include/fbgemm_gpu/cuda_utils.cuh +++ b/fbgemm_gpu/include/fbgemm_gpu/cuda_utils.cuh @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #pragma once #include #include diff --git a/fbgemm_gpu/include/fbgemm_gpu/dispatch_macros.h b/fbgemm_gpu/include/fbgemm_gpu/dispatch_macros.h index 74c29f631d..b29dca4070 100644 --- a/fbgemm_gpu/include/fbgemm_gpu/dispatch_macros.h +++ b/fbgemm_gpu/include/fbgemm_gpu/dispatch_macros.h @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define PRIVATE_CASE_TYPE_CACHE(enum_type, type, ...) \ case enum_type: { \ using cache_t = type; \ diff --git a/fbgemm_gpu/include/fbgemm_gpu/embedding_backward_template_helpers.cuh b/fbgemm_gpu/include/fbgemm_gpu/embedding_backward_template_helpers.cuh index 74b19a8f6e..c16f26f0dc 100644 --- a/fbgemm_gpu/include/fbgemm_gpu/embedding_backward_template_helpers.cuh +++ b/fbgemm_gpu/include/fbgemm_gpu/embedding_backward_template_helpers.cuh @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #pragma once #include diff --git a/fbgemm_gpu/include/fbgemm_gpu/embedding_common.h b/fbgemm_gpu/include/fbgemm_gpu/embedding_common.h index 3ecf4d19d2..bf3d547e52 100644 --- a/fbgemm_gpu/include/fbgemm_gpu/embedding_common.h +++ b/fbgemm_gpu/include/fbgemm_gpu/embedding_common.h @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #pragma once #include #include diff --git a/fbgemm_gpu/include/fbgemm_gpu/embedding_inplace_update.h b/fbgemm_gpu/include/fbgemm_gpu/embedding_inplace_update.h index cfa457d04b..4b97ed9f47 100644 --- a/fbgemm_gpu/include/fbgemm_gpu/embedding_inplace_update.h +++ b/fbgemm_gpu/include/fbgemm_gpu/embedding_inplace_update.h @@ -1,6 +1,7 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ diff --git a/fbgemm_gpu/include/fbgemm_gpu/enum_utils.h b/fbgemm_gpu/include/fbgemm_gpu/enum_utils.h index 108c43025c..80d7bcc3f0 100644 --- a/fbgemm_gpu/include/fbgemm_gpu/enum_utils.h +++ b/fbgemm_gpu/include/fbgemm_gpu/enum_utils.h @@ -1,6 +1,7 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ diff --git a/fbgemm_gpu/include/fbgemm_gpu/fbgemm_cuda_utils.cuh b/fbgemm_gpu/include/fbgemm_gpu/fbgemm_cuda_utils.cuh index a7a0e3d9b0..81338bc104 100644 --- a/fbgemm_gpu/include/fbgemm_gpu/fbgemm_cuda_utils.cuh +++ b/fbgemm_gpu/include/fbgemm_gpu/fbgemm_cuda_utils.cuh @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #pragma once #include diff --git a/fbgemm_gpu/include/fbgemm_gpu/fbgemm_tensor_accessor.h b/fbgemm_gpu/include/fbgemm_gpu/fbgemm_tensor_accessor.h index 750d315d05..831f89805a 100644 --- a/fbgemm_gpu/include/fbgemm_gpu/fbgemm_tensor_accessor.h +++ b/fbgemm_gpu/include/fbgemm_gpu/fbgemm_tensor_accessor.h @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #pragma once #include diff --git a/fbgemm_gpu/include/fbgemm_gpu/input_combine.h b/fbgemm_gpu/include/fbgemm_gpu/input_combine.h index c329d6c9d9..e0739dd4ec 100644 --- a/fbgemm_gpu/include/fbgemm_gpu/input_combine.h +++ b/fbgemm_gpu/include/fbgemm_gpu/input_combine.h @@ -1,6 +1,7 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ diff --git a/fbgemm_gpu/include/fbgemm_gpu/layout_transform_ops.cuh b/fbgemm_gpu/include/fbgemm_gpu/layout_transform_ops.cuh index 27be600ab7..b6bcd7a714 100644 --- a/fbgemm_gpu/include/fbgemm_gpu/layout_transform_ops.cuh +++ b/fbgemm_gpu/include/fbgemm_gpu/layout_transform_ops.cuh @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #pragma once #include diff --git a/fbgemm_gpu/include/fbgemm_gpu/merge_pooled_embeddings.h b/fbgemm_gpu/include/fbgemm_gpu/merge_pooled_embeddings.h index 8bd51f3f0d..7d8034aeed 100644 --- a/fbgemm_gpu/include/fbgemm_gpu/merge_pooled_embeddings.h +++ b/fbgemm_gpu/include/fbgemm_gpu/merge_pooled_embeddings.h @@ -1,6 +1,7 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ diff --git a/fbgemm_gpu/include/fbgemm_gpu/permute_pooled_embedding_ops.h b/fbgemm_gpu/include/fbgemm_gpu/permute_pooled_embedding_ops.h index 3a3068ab24..35cb345bd0 100644 --- a/fbgemm_gpu/include/fbgemm_gpu/permute_pooled_embedding_ops.h +++ b/fbgemm_gpu/include/fbgemm_gpu/permute_pooled_embedding_ops.h @@ -1,6 +1,7 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ diff --git a/fbgemm_gpu/include/fbgemm_gpu/permute_pooled_embedding_ops_split.h b/fbgemm_gpu/include/fbgemm_gpu/permute_pooled_embedding_ops_split.h index 565d2e8c42..b35297a2ba 100644 --- a/fbgemm_gpu/include/fbgemm_gpu/permute_pooled_embedding_ops_split.h +++ b/fbgemm_gpu/include/fbgemm_gpu/permute_pooled_embedding_ops_split.h @@ -1,6 +1,7 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ diff --git a/fbgemm_gpu/include/fbgemm_gpu/permute_pooled_embs_function.h b/fbgemm_gpu/include/fbgemm_gpu/permute_pooled_embs_function.h index c3ef7e463e..6eafbe306a 100644 --- a/fbgemm_gpu/include/fbgemm_gpu/permute_pooled_embs_function.h +++ b/fbgemm_gpu/include/fbgemm_gpu/permute_pooled_embs_function.h @@ -1,6 +1,7 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ diff --git a/fbgemm_gpu/include/fbgemm_gpu/permute_pooled_embs_function_split.h b/fbgemm_gpu/include/fbgemm_gpu/permute_pooled_embs_function_split.h index ff0897110f..e5938f6cba 100644 --- a/fbgemm_gpu/include/fbgemm_gpu/permute_pooled_embs_function_split.h +++ b/fbgemm_gpu/include/fbgemm_gpu/permute_pooled_embs_function_split.h @@ -1,6 +1,7 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ diff --git a/fbgemm_gpu/include/fbgemm_gpu/quantize_ops.cuh b/fbgemm_gpu/include/fbgemm_gpu/quantize_ops.cuh index b21750892a..ba16062e35 100644 --- a/fbgemm_gpu/include/fbgemm_gpu/quantize_ops.cuh +++ b/fbgemm_gpu/include/fbgemm_gpu/quantize_ops.cuh @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #pragma once namespace fbgemm_gpu { diff --git a/fbgemm_gpu/include/fbgemm_gpu/quantize_ops_utils.h b/fbgemm_gpu/include/fbgemm_gpu/quantize_ops_utils.h index 7c785a2f18..dab40cc78c 100644 --- a/fbgemm_gpu/include/fbgemm_gpu/quantize_ops_utils.h +++ b/fbgemm_gpu/include/fbgemm_gpu/quantize_ops_utils.h @@ -1,6 +1,7 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ diff --git a/fbgemm_gpu/include/fbgemm_gpu/sparse_ops.cuh b/fbgemm_gpu/include/fbgemm_gpu/sparse_ops.cuh index 47f24b76c2..5179b53dda 100644 --- a/fbgemm_gpu/include/fbgemm_gpu/sparse_ops.cuh +++ b/fbgemm_gpu/include/fbgemm_gpu/sparse_ops.cuh @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #pragma once #ifdef __HIP_PLATFORM_HCC__ diff --git a/fbgemm_gpu/include/fbgemm_gpu/sparse_ops.h b/fbgemm_gpu/include/fbgemm_gpu/sparse_ops.h index 9c2b810b2e..1d7148cf44 100644 --- a/fbgemm_gpu/include/fbgemm_gpu/sparse_ops.h +++ b/fbgemm_gpu/include/fbgemm_gpu/sparse_ops.h @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #pragma once #include diff --git a/fbgemm_gpu/include/fbgemm_gpu/sparse_ops_utils.h b/fbgemm_gpu/include/fbgemm_gpu/sparse_ops_utils.h index 9826af6608..d77a334ea0 100644 --- a/fbgemm_gpu/include/fbgemm_gpu/sparse_ops_utils.h +++ b/fbgemm_gpu/include/fbgemm_gpu/sparse_ops_utils.h @@ -1,6 +1,7 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ diff --git a/fbgemm_gpu/include/fbgemm_gpu/split_embeddings_cache_cuda.cuh b/fbgemm_gpu/include/fbgemm_gpu/split_embeddings_cache_cuda.cuh index 3532928963..d9c32ed847 100644 --- a/fbgemm_gpu/include/fbgemm_gpu/split_embeddings_cache_cuda.cuh +++ b/fbgemm_gpu/include/fbgemm_gpu/split_embeddings_cache_cuda.cuh @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #pragma once #include diff --git a/fbgemm_gpu/include/fbgemm_gpu/split_embeddings_utils.cuh b/fbgemm_gpu/include/fbgemm_gpu/split_embeddings_utils.cuh index 308fcb180a..f6a8909c40 100644 --- a/fbgemm_gpu/include/fbgemm_gpu/split_embeddings_utils.cuh +++ b/fbgemm_gpu/include/fbgemm_gpu/split_embeddings_utils.cuh @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #pragma once #include diff --git a/fbgemm_gpu/include/fbgemm_gpu/topology_utils.h b/fbgemm_gpu/include/fbgemm_gpu/topology_utils.h index b70635ea83..454027223a 100644 --- a/fbgemm_gpu/include/fbgemm_gpu/topology_utils.h +++ b/fbgemm_gpu/include/fbgemm_gpu/topology_utils.h @@ -1,6 +1,7 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ diff --git a/fbgemm_gpu/test/tensor_assert_test.cpp b/fbgemm_gpu/test/tensor_assert_test.cpp index 64f23e3714..3a89825b7a 100644 --- a/fbgemm_gpu/test/tensor_assert_test.cpp +++ b/fbgemm_gpu/test/tensor_assert_test.cpp @@ -1,7 +1,9 @@ +// @lint-ignore-every LICENSELINT /* * Copyright (c) Meta Platforms, Inc. and affiliates. * Copyright (c) Intel Corporation. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ diff --git a/src/CodeCache.h b/src/CodeCache.h index 9367792de6..c9f3c3f743 100644 --- a/src/CodeCache.h +++ b/src/CodeCache.h @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #pragma once #include #include diff --git a/src/CodeGenHelpers.h b/src/CodeGenHelpers.h index dbb3d91240..39c1c994b5 100644 --- a/src/CodeGenHelpers.h +++ b/src/CodeGenHelpers.h @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #pragma once #include #include "fbgemm/SimdUtils.h" diff --git a/src/DirectConv.h b/src/DirectConv.h index ef97c36017..ded8c2c62d 100644 --- a/src/DirectConv.h +++ b/src/DirectConv.h @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #pragma once #include #include diff --git a/src/EmbeddingSpMDM.cc b/src/EmbeddingSpMDM.cc index 58544c3a48..315281fdae 100644 --- a/src/EmbeddingSpMDM.cc +++ b/src/EmbeddingSpMDM.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include "fbgemm/FbgemmEmbedding.h" diff --git a/src/EmbeddingSpMDMAvx2.cc b/src/EmbeddingSpMDMAvx2.cc index bb20c1c88a..d616bfda8a 100644 --- a/src/EmbeddingSpMDMAvx2.cc +++ b/src/EmbeddingSpMDMAvx2.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #include #include #include "RefImplementations.h" diff --git a/src/EmbeddingSpMDMAvx512.cc b/src/EmbeddingSpMDMAvx512.cc index 352da123ae..a508975c3c 100644 --- a/src/EmbeddingSpMDMAvx512.cc +++ b/src/EmbeddingSpMDMAvx512.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include "fbgemm/FbgemmEmbedding.h" diff --git a/src/EmbeddingSpMDMNBit.cc b/src/EmbeddingSpMDMNBit.cc index 18c1178768..faab8721e6 100644 --- a/src/EmbeddingSpMDMNBit.cc +++ b/src/EmbeddingSpMDMNBit.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include "fbgemm/FbgemmEmbedding.h" diff --git a/src/ExecuteKernel.cc b/src/ExecuteKernel.cc index 8f68986998..9a5e869176 100644 --- a/src/ExecuteKernel.cc +++ b/src/ExecuteKernel.cc @@ -1,6 +1,7 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ diff --git a/src/ExecuteKernel.h b/src/ExecuteKernel.h index 08a5fcf89a..f3dd70e149 100644 --- a/src/ExecuteKernel.h +++ b/src/ExecuteKernel.h @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #pragma once #include #include "./ExecuteKernelGeneric.h" diff --git a/src/ExecuteKernelGeneric.h b/src/ExecuteKernelGeneric.h index 53d150a630..5477b87c8d 100644 --- a/src/ExecuteKernelGeneric.h +++ b/src/ExecuteKernelGeneric.h @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #pragma once #include #include "./GenerateKernel.h" diff --git a/src/ExecuteKernelU8S8.cc b/src/ExecuteKernelU8S8.cc index 66e7eb1707..1c2f5f6ae8 100644 --- a/src/ExecuteKernelU8S8.cc +++ b/src/ExecuteKernelU8S8.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #include "./ExecuteKernelU8S8.h" #include #include diff --git a/src/ExecuteKernelU8S8.h b/src/ExecuteKernelU8S8.h index 34c63c05b1..14a30ae551 100644 --- a/src/ExecuteKernelU8S8.h +++ b/src/ExecuteKernelU8S8.h @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #pragma once #include "./ExecuteKernel.h" diff --git a/src/Fbgemm.cc b/src/Fbgemm.cc index a2a90bef9c..0282f47125 100644 --- a/src/Fbgemm.cc +++ b/src/Fbgemm.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include "fbgemm/Fbgemm.h" #include diff --git a/src/FbgemmBfloat16Convert.cc b/src/FbgemmBfloat16Convert.cc index 482c97ea62..fafd325c47 100644 --- a/src/FbgemmBfloat16Convert.cc +++ b/src/FbgemmBfloat16Convert.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include "fbgemm/FbgemmConvert.h" diff --git a/src/FbgemmBfloat16ConvertAvx2.cc b/src/FbgemmBfloat16ConvertAvx2.cc index 76e4b9c4ff..f1cc785ee2 100644 --- a/src/FbgemmBfloat16ConvertAvx2.cc +++ b/src/FbgemmBfloat16ConvertAvx2.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #if defined(__x86_64__) || defined(__i386__) || \ (defined(_MSC_VER) && (defined(_M_X64) || defined(_M_IX86))) #include diff --git a/src/FbgemmBfloat16ConvertAvx512.cc b/src/FbgemmBfloat16ConvertAvx512.cc index 166720d5c6..0111bc6e7d 100644 --- a/src/FbgemmBfloat16ConvertAvx512.cc +++ b/src/FbgemmBfloat16ConvertAvx512.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #if defined(__x86_64__) || defined(__i386__) || \ (defined(_MSC_VER) && (defined(_M_X64) || defined(_M_IX86))) #include diff --git a/src/FbgemmConv.cc b/src/FbgemmConv.cc index 0d8ae53015..befa9e2e0e 100644 --- a/src/FbgemmConv.cc +++ b/src/FbgemmConv.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include #include diff --git a/src/FbgemmFP16.cc b/src/FbgemmFP16.cc index 2bd66a6866..a7b49f807c 100644 --- a/src/FbgemmFP16.cc +++ b/src/FbgemmFP16.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include #include diff --git a/src/FbgemmFP16UKernelsAvx2.cc b/src/FbgemmFP16UKernelsAvx2.cc index df37ab74b5..81d16ce723 100644 --- a/src/FbgemmFP16UKernelsAvx2.cc +++ b/src/FbgemmFP16UKernelsAvx2.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #include "./FbgemmFP16UKernelsAvx2.h" #include "./InlineAsmDefines.h" diff --git a/src/FbgemmFP16UKernelsAvx2.h b/src/FbgemmFP16UKernelsAvx2.h index b85ab99631..888bae1833 100644 --- a/src/FbgemmFP16UKernelsAvx2.h +++ b/src/FbgemmFP16UKernelsAvx2.h @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #pragma once #include #include "fbgemm/FbgemmBuild.h" diff --git a/src/FbgemmFP16UKernelsAvx512.cc b/src/FbgemmFP16UKernelsAvx512.cc index 48e46c76b3..0bd072952e 100644 --- a/src/FbgemmFP16UKernelsAvx512.cc +++ b/src/FbgemmFP16UKernelsAvx512.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #include "./FbgemmFP16UKernelsAvx512.h" #include "./InlineAsmDefines.h" diff --git a/src/FbgemmFP16UKernelsAvx512.h b/src/FbgemmFP16UKernelsAvx512.h index 496fe8f167..b227b3bcf3 100644 --- a/src/FbgemmFP16UKernelsAvx512.h +++ b/src/FbgemmFP16UKernelsAvx512.h @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #pragma once #include #include "fbgemm/FbgemmBuild.h" diff --git a/src/FbgemmFP16UKernelsAvx512_256.cc b/src/FbgemmFP16UKernelsAvx512_256.cc index 3ac31f739d..5e55b3b117 100644 --- a/src/FbgemmFP16UKernelsAvx512_256.cc +++ b/src/FbgemmFP16UKernelsAvx512_256.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #include "./FbgemmFP16UKernelsAvx512_256.h" #include "./InlineAsmDefines.h" diff --git a/src/FbgemmFP16UKernelsAvx512_256.h b/src/FbgemmFP16UKernelsAvx512_256.h index 6d3bdbb41c..d376a7d196 100644 --- a/src/FbgemmFP16UKernelsAvx512_256.h +++ b/src/FbgemmFP16UKernelsAvx512_256.h @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #pragma once #include #include "fbgemm/FbgemmBuild.h" diff --git a/src/FbgemmFP16UKernelsIntrinsicAvx2.cc b/src/FbgemmFP16UKernelsIntrinsicAvx2.cc index 4ac159eadc..8fa1aca014 100644 --- a/src/FbgemmFP16UKernelsIntrinsicAvx2.cc +++ b/src/FbgemmFP16UKernelsIntrinsicAvx2.cc @@ -1,6 +1,7 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ diff --git a/src/FbgemmFP16UKernelsIntrinsicAvx512.cc b/src/FbgemmFP16UKernelsIntrinsicAvx512.cc index ce69a5d969..585d8cd886 100644 --- a/src/FbgemmFP16UKernelsIntrinsicAvx512.cc +++ b/src/FbgemmFP16UKernelsIntrinsicAvx512.cc @@ -1,6 +1,7 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ diff --git a/src/FbgemmFP16UKernelsIntrinsicAvx512_256.cc b/src/FbgemmFP16UKernelsIntrinsicAvx512_256.cc index 3445cecc77..9ec226872c 100644 --- a/src/FbgemmFP16UKernelsIntrinsicAvx512_256.cc +++ b/src/FbgemmFP16UKernelsIntrinsicAvx512_256.cc @@ -1,6 +1,7 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ diff --git a/src/FbgemmFPCommon.cc b/src/FbgemmFPCommon.cc index e42e74ad12..fc4a9d0f80 100644 --- a/src/FbgemmFPCommon.cc +++ b/src/FbgemmFPCommon.cc @@ -1,6 +1,7 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ diff --git a/src/FbgemmFloat16Convert.cc b/src/FbgemmFloat16Convert.cc index a72ba6681e..d2d3756038 100644 --- a/src/FbgemmFloat16Convert.cc +++ b/src/FbgemmFloat16Convert.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include "fbgemm/FbgemmConvert.h" diff --git a/src/FbgemmFloat16ConvertAvx2.cc b/src/FbgemmFloat16ConvertAvx2.cc index 2fadc1cb00..5778428fc8 100644 --- a/src/FbgemmFloat16ConvertAvx2.cc +++ b/src/FbgemmFloat16ConvertAvx2.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #if defined(__x86_64__) || defined(__i386__) || \ (defined(_MSC_VER) && (defined(_M_X64) || defined(_M_IX86))) #include diff --git a/src/FbgemmFloat16ConvertAvx512.cc b/src/FbgemmFloat16ConvertAvx512.cc index 1d6e5f2a26..380eaa2713 100644 --- a/src/FbgemmFloat16ConvertAvx512.cc +++ b/src/FbgemmFloat16ConvertAvx512.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #if defined(__x86_64__) || defined(__i386__) || \ (defined(_MSC_VER) && (defined(_M_X64) || defined(_M_IX86))) #include diff --git a/src/FbgemmI64.cc b/src/FbgemmI64.cc index bc34f69943..96e978c386 100644 --- a/src/FbgemmI64.cc +++ b/src/FbgemmI64.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include "fbgemm/FbgemmI64.h" diff --git a/src/FbgemmI8Depthwise2DAvx2-inl.h b/src/FbgemmI8Depthwise2DAvx2-inl.h index 82bb8ec00e..eb557e9ea5 100644 --- a/src/FbgemmI8Depthwise2DAvx2-inl.h +++ b/src/FbgemmI8Depthwise2DAvx2-inl.h @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #pragma once #include "./FbgemmI8DepthwiseAvx2-inl.h" diff --git a/src/FbgemmI8Depthwise3DAvx2.cc b/src/FbgemmI8Depthwise3DAvx2.cc index 6b3a55d9e1..c3c32e27f8 100644 --- a/src/FbgemmI8Depthwise3DAvx2.cc +++ b/src/FbgemmI8Depthwise3DAvx2.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include "fbgemm/FbgemmI8DepthwiseAvx2.h" diff --git a/src/FbgemmI8DepthwiseAvx2-inl.h b/src/FbgemmI8DepthwiseAvx2-inl.h index 76cdf2dd4e..b85c6f7b24 100644 --- a/src/FbgemmI8DepthwiseAvx2-inl.h +++ b/src/FbgemmI8DepthwiseAvx2-inl.h @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #pragma once #include // for min and max diff --git a/src/FbgemmI8DepthwiseAvx2.cc b/src/FbgemmI8DepthwiseAvx2.cc index 5e00c4defe..aa8d706473 100644 --- a/src/FbgemmI8DepthwiseAvx2.cc +++ b/src/FbgemmI8DepthwiseAvx2.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include "fbgemm/FbgemmI8DepthwiseAvx2.h" diff --git a/src/FbgemmI8DepthwisePerChannelQuantAvx2.cc b/src/FbgemmI8DepthwisePerChannelQuantAvx2.cc index 287bf045a5..f09822393f 100644 --- a/src/FbgemmI8DepthwisePerChannelQuantAvx2.cc +++ b/src/FbgemmI8DepthwisePerChannelQuantAvx2.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include "fbgemm/FbgemmI8DepthwiseAvx2.h" diff --git a/src/FbgemmI8Spmdm.cc b/src/FbgemmI8Spmdm.cc index e8953134eb..6adecdeda8 100644 --- a/src/FbgemmI8Spmdm.cc +++ b/src/FbgemmI8Spmdm.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include "fbgemm/FbgemmI8Spmdm.h" diff --git a/src/FbgemmSparseDense.cc b/src/FbgemmSparseDense.cc index 7c01b13d52..e27c93453c 100644 --- a/src/FbgemmSparseDense.cc +++ b/src/FbgemmSparseDense.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include "fbgemm/FbgemmSparse.h" diff --git a/src/FbgemmSparseDenseAvx2.cc b/src/FbgemmSparseDenseAvx2.cc index 9369fb149a..9a33e76787 100644 --- a/src/FbgemmSparseDenseAvx2.cc +++ b/src/FbgemmSparseDenseAvx2.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include "fbgemm/FbgemmSparse.h" diff --git a/src/FbgemmSparseDenseAvx512.cc b/src/FbgemmSparseDenseAvx512.cc index 047b241970..dc505b6e8e 100644 --- a/src/FbgemmSparseDenseAvx512.cc +++ b/src/FbgemmSparseDenseAvx512.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include "fbgemm/FbgemmSparse.h" diff --git a/src/FbgemmSparseDenseInt8Avx2.cc b/src/FbgemmSparseDenseInt8Avx2.cc index fd7493c19a..b31631affe 100644 --- a/src/FbgemmSparseDenseInt8Avx2.cc +++ b/src/FbgemmSparseDenseInt8Avx2.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include "fbgemm/FbgemmSparse.h" #include "fbgemm/spmmUtilsAvx2.h" diff --git a/src/FbgemmSparseDenseInt8Avx512.cc b/src/FbgemmSparseDenseInt8Avx512.cc index 84e3f8bf07..30cdfcd7b4 100644 --- a/src/FbgemmSparseDenseInt8Avx512.cc +++ b/src/FbgemmSparseDenseInt8Avx512.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include "fbgemm/FbgemmSparse.h" diff --git a/src/FbgemmSparseDenseVectorInt8Avx512.cc b/src/FbgemmSparseDenseVectorInt8Avx512.cc index 2c2f437ef0..4e6a06deef 100644 --- a/src/FbgemmSparseDenseVectorInt8Avx512.cc +++ b/src/FbgemmSparseDenseVectorInt8Avx512.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include "fbgemm/FbgemmSparse.h" #include "fbgemm/Utils.h" diff --git a/src/GenerateI8Depthwise.cc b/src/GenerateI8Depthwise.cc index 30bbec61da..ecf71e3605 100644 --- a/src/GenerateI8Depthwise.cc +++ b/src/GenerateI8Depthwise.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #include "./GenerateI8Depthwise.h" #include diff --git a/src/GenerateI8Depthwise.h b/src/GenerateI8Depthwise.h index 01dfd75635..e8f56aa948 100644 --- a/src/GenerateI8Depthwise.h +++ b/src/GenerateI8Depthwise.h @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #pragma once #include diff --git a/src/GenerateKernel.cc b/src/GenerateKernel.cc index 1753fb1e6d..f4d78020f8 100644 --- a/src/GenerateKernel.cc +++ b/src/GenerateKernel.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #include "./GenerateKernel.h" namespace fbgemm { diff --git a/src/GenerateKernel.h b/src/GenerateKernel.h index d856f2263c..2243ea2b42 100644 --- a/src/GenerateKernel.h +++ b/src/GenerateKernel.h @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #pragma once #include #include diff --git a/src/GenerateKernelDirectConvU8S8S32ACC32.cc b/src/GenerateKernelDirectConvU8S8S32ACC32.cc index 1058d4c57b..35a02e2112 100644 --- a/src/GenerateKernelDirectConvU8S8S32ACC32.cc +++ b/src/GenerateKernelDirectConvU8S8S32ACC32.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #include #include "./CodeGenHelpers.h" #include "./DirectConv.h" diff --git a/src/GenerateKernelU8S8S32ACC16.cc b/src/GenerateKernelU8S8S32ACC16.cc index b4d3d54ead..07d19564a3 100644 --- a/src/GenerateKernelU8S8S32ACC16.cc +++ b/src/GenerateKernelU8S8S32ACC16.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #include #include "./CodeGenHelpers.h" #include "./GenerateKernel.h" diff --git a/src/GenerateKernelU8S8S32ACC16Avx512.cc b/src/GenerateKernelU8S8S32ACC16Avx512.cc index 6b98b24c5b..89cfdb01f8 100644 --- a/src/GenerateKernelU8S8S32ACC16Avx512.cc +++ b/src/GenerateKernelU8S8S32ACC16Avx512.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #include #include "./CodeGenHelpers.h" #include "./GenerateKernel.h" diff --git a/src/GenerateKernelU8S8S32ACC16Avx512VNNI.cc b/src/GenerateKernelU8S8S32ACC16Avx512VNNI.cc index 4cb362c867..901e6ced33 100644 --- a/src/GenerateKernelU8S8S32ACC16Avx512VNNI.cc +++ b/src/GenerateKernelU8S8S32ACC16Avx512VNNI.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #include #include "./GenerateKernel.h" diff --git a/src/GenerateKernelU8S8S32ACC32.cc b/src/GenerateKernelU8S8S32ACC32.cc index 50f0f9c999..063535720b 100644 --- a/src/GenerateKernelU8S8S32ACC32.cc +++ b/src/GenerateKernelU8S8S32ACC32.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #include #include "./CodeGenHelpers.h" #include "./GenerateKernel.h" diff --git a/src/GenerateKernelU8S8S32ACC32Avx512VNNI.cc b/src/GenerateKernelU8S8S32ACC32Avx512VNNI.cc index 020c904570..d73c722b95 100644 --- a/src/GenerateKernelU8S8S32ACC32Avx512VNNI.cc +++ b/src/GenerateKernelU8S8S32ACC32Avx512VNNI.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #include #include "./GenerateKernel.h" diff --git a/src/GroupwiseConv.cc b/src/GroupwiseConv.cc index c2303917be..cc7ab05661 100644 --- a/src/GroupwiseConv.cc +++ b/src/GroupwiseConv.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include "./GroupwiseConv.h" #include diff --git a/src/GroupwiseConv.h b/src/GroupwiseConv.h index dd1363a3ca..836b23be96 100644 --- a/src/GroupwiseConv.h +++ b/src/GroupwiseConv.h @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #pragma once #include #include diff --git a/src/GroupwiseConvAcc32Avx2.cc b/src/GroupwiseConvAcc32Avx2.cc index a1ce0c6b0a..e7e3dd081d 100644 --- a/src/GroupwiseConvAcc32Avx2.cc +++ b/src/GroupwiseConvAcc32Avx2.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include #include "./CodeGenHelpers.h" diff --git a/src/GroupwiseConvAcc32Avx512.cc b/src/GroupwiseConvAcc32Avx512.cc index 4becc99b37..49c71b3128 100644 --- a/src/GroupwiseConvAcc32Avx512.cc +++ b/src/GroupwiseConvAcc32Avx512.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include #include "./CodeGenHelpers.h" diff --git a/src/InlineAsmDefines.h b/src/InlineAsmDefines.h index fa3f706602..57257a69f8 100644 --- a/src/InlineAsmDefines.h +++ b/src/InlineAsmDefines.h @@ -1,6 +1,7 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ diff --git a/src/MaskAvx2.h b/src/MaskAvx2.h index ce61ffe970..cf9f31e690 100644 --- a/src/MaskAvx2.h +++ b/src/MaskAvx2.h @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #pragma once #include diff --git a/src/OptimizedKernelsAvx2.cc b/src/OptimizedKernelsAvx2.cc index 103e69493f..ec04c89ac5 100644 --- a/src/OptimizedKernelsAvx2.cc +++ b/src/OptimizedKernelsAvx2.cc @@ -1,6 +1,7 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ diff --git a/src/OptimizedKernelsAvx2.h b/src/OptimizedKernelsAvx2.h index f846caf695..bab91fcf7d 100644 --- a/src/OptimizedKernelsAvx2.h +++ b/src/OptimizedKernelsAvx2.h @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #pragma once #include // for std::int32_t diff --git a/src/PackAMatrix.cc b/src/PackAMatrix.cc index 233d489d02..259b206e4b 100644 --- a/src/PackAMatrix.cc +++ b/src/PackAMatrix.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include #include diff --git a/src/PackAWithIm2Col.cc b/src/PackAWithIm2Col.cc index bef7c835e8..63b7f069cf 100644 --- a/src/PackAWithIm2Col.cc +++ b/src/PackAWithIm2Col.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include #include diff --git a/src/PackAWithQuantRowOffset.cc b/src/PackAWithQuantRowOffset.cc index 98d90ff73f..00192ed497 100644 --- a/src/PackAWithQuantRowOffset.cc +++ b/src/PackAWithQuantRowOffset.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include #include diff --git a/src/PackAWithRowOffset.cc b/src/PackAWithRowOffset.cc index 01aa17a0dd..1f22d4df12 100644 --- a/src/PackAWithRowOffset.cc +++ b/src/PackAWithRowOffset.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include #include diff --git a/src/PackBMatrix.cc b/src/PackBMatrix.cc index 3126b9e0f1..80463c56f1 100644 --- a/src/PackBMatrix.cc +++ b/src/PackBMatrix.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include #include diff --git a/src/PackDepthwiseConvMatrixAvx2.cc b/src/PackDepthwiseConvMatrixAvx2.cc index 96f30f2c44..b018cdb585 100644 --- a/src/PackDepthwiseConvMatrixAvx2.cc +++ b/src/PackDepthwiseConvMatrixAvx2.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include "fbgemm/FbgemmI8DepthwiseAvx2.h" diff --git a/src/PackMatrix.cc b/src/PackMatrix.cc index e25807ae43..8086dddac9 100644 --- a/src/PackMatrix.cc +++ b/src/PackMatrix.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include diff --git a/src/PackWeightMatrixForGConv.cc b/src/PackWeightMatrixForGConv.cc index 7865a4268a..b9ea43e22b 100644 --- a/src/PackWeightMatrixForGConv.cc +++ b/src/PackWeightMatrixForGConv.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include #include diff --git a/src/PackWeightsForConv.cc b/src/PackWeightsForConv.cc index f3059ab718..f3cf1fc27e 100644 --- a/src/PackWeightsForConv.cc +++ b/src/PackWeightsForConv.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include "fbgemm/Fbgemm.h" diff --git a/src/PackWeightsForDirectConv.cc b/src/PackWeightsForDirectConv.cc index e20b1053c6..7d7f9a2f58 100644 --- a/src/PackWeightsForDirectConv.cc +++ b/src/PackWeightsForDirectConv.cc @@ -1,9 +1,11 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include "fbgemm/FbgemmI8DirectconvAvx2.h" diff --git a/src/QuantUtils.cc b/src/QuantUtils.cc index 5fd58c13ce..e82c5c9809 100644 --- a/src/QuantUtils.cc +++ b/src/QuantUtils.cc @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ + #define FBGEMM_EXPORTS #include #include diff --git a/src/QuantUtilsAvx2.cc b/src/QuantUtilsAvx2.cc index e96bd379fb..fe867077e7 100644 --- a/src/QuantUtilsAvx2.cc +++ b/src/QuantUtilsAvx2.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include "fbgemm/QuantUtilsAvx2.h" #if defined(__x86_64__) || defined(__i386__) || \ diff --git a/src/QuantUtilsAvx512.cc b/src/QuantUtilsAvx512.cc index e03bb04da9..96f81294e6 100644 --- a/src/QuantUtilsAvx512.cc +++ b/src/QuantUtilsAvx512.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include "fbgemm/QuantUtilsAvx512.h" #if defined(__x86_64__) || defined(__i386__) || \ diff --git a/src/RefImplementations.cc b/src/RefImplementations.cc index 1c2a7b6e15..bfbbb3a4d8 100644 --- a/src/RefImplementations.cc +++ b/src/RefImplementations.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include "./RefImplementations.h" diff --git a/src/RefImplementations.h b/src/RefImplementations.h index ce9a481f7e..1ac1561152 100644 --- a/src/RefImplementations.h +++ b/src/RefImplementations.h @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #pragma once #include diff --git a/src/RowWiseSparseAdagradFused.cc b/src/RowWiseSparseAdagradFused.cc index 244eb4a723..3de7f5f4d1 100644 --- a/src/RowWiseSparseAdagradFused.cc +++ b/src/RowWiseSparseAdagradFused.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include "fbgemm/FbgemmEmbedding.h" diff --git a/src/SparseAdagrad.cc b/src/SparseAdagrad.cc index cd2257bdd1..d08fb94c4b 100644 --- a/src/SparseAdagrad.cc +++ b/src/SparseAdagrad.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include "fbgemm/FbgemmEmbedding.h" diff --git a/src/TransposeUtils.cc b/src/TransposeUtils.cc index 98016cc508..7c3d94737b 100644 --- a/src/TransposeUtils.cc +++ b/src/TransposeUtils.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include "./TransposeUtils.h" #include diff --git a/src/TransposeUtils.h b/src/TransposeUtils.h index f8fbea12b2..a4bd8b2323 100644 --- a/src/TransposeUtils.h +++ b/src/TransposeUtils.h @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #pragma once #include "fbgemm/FbgemmBuild.h" diff --git a/src/TransposeUtilsAvx2.h b/src/TransposeUtilsAvx2.h index 7bf23d79a8..df145c8878 100644 --- a/src/TransposeUtilsAvx2.h +++ b/src/TransposeUtilsAvx2.h @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #pragma once #if defined(__x86_64__) || defined(__i386__) || \ diff --git a/src/Utils.cc b/src/Utils.cc index dee8db05bd..9403070c41 100644 --- a/src/Utils.cc +++ b/src/Utils.cc @@ -1,10 +1,13 @@ +// @lint-ignore-every LICENSELINT /* * Copyright (c) Meta Platforms, Inc. and affiliates. * Copyright (c) Intel Corporation. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include "fbgemm/Utils.h" #include diff --git a/src/UtilsAvx2.cc b/src/UtilsAvx2.cc index 8928df6666..bdbad841c7 100644 --- a/src/UtilsAvx2.cc +++ b/src/UtilsAvx2.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #if defined(__x86_64__) || defined(__i386__) || \ (defined(_MSC_VER) && (defined(_M_X64) || defined(_M_IX86))) #include diff --git a/src/UtilsAvx512.cc b/src/UtilsAvx512.cc index 742998aac5..cf00613d03 100644 --- a/src/UtilsAvx512.cc +++ b/src/UtilsAvx512.cc @@ -1,6 +1,7 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ diff --git a/src/codegen_fp16fp32.cc b/src/codegen_fp16fp32.cc index dc5320fe63..a283d93108 100644 --- a/src/codegen_fp16fp32.cc +++ b/src/codegen_fp16fp32.cc @@ -1,6 +1,7 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ diff --git a/src/spmmUtils.cc b/src/spmmUtils.cc index 30ddff8490..e9158cb010 100644 --- a/src/spmmUtils.cc +++ b/src/spmmUtils.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include "fbgemm/spmmUtils.h" #include diff --git a/src/spmmUtilsAvx2.cc b/src/spmmUtilsAvx2.cc index 9926d0e579..84086a0112 100644 --- a/src/spmmUtilsAvx2.cc +++ b/src/spmmUtilsAvx2.cc @@ -1,9 +1,11 @@ /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. + * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ + #define FBGEMM_EXPORTS #include "fbgemm/spmmUtilsAvx2.h" #if defined(__x86_64__) || defined(__i386__) || \