From 6fe4640d5cfbbebd2a3b40b688415f3a83289f47 Mon Sep 17 00:00:00 2001 From: Kumar Saurabh Arora Date: Mon, 9 Sep 2024 22:58:05 -0700 Subject: [PATCH] Fixing headers as per OSS requirement (#3847) Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/3847 same as title. Fixing headers as raised in task - P1558157110 Reviewed By: junjieqi Differential Revision: D62408917 fbshipit-source-id: 652b55dd2ba9617edeb2b05172be0f42291d7035 --- demos/rocksdb_ivf/RocksDBInvertedLists.cpp | 7 ++++++- demos/rocksdb_ivf/RocksDBInvertedLists.h | 9 ++++++++- demos/rocksdb_ivf/demo_rocksdb_ivf.cpp | 9 ++++++++- faiss/gpu/hipify.sh | 4 ++++ faiss/gpu/impl/scan/IVFInterleavedScanKernelTemplate.cu | 7 +++++++ faiss/gpu/test/test_index_cpu_to_gpu.py | 5 +++++ tests/test_common_ivf_empty_index.cpp | 7 ++++++- 7 files changed, 44 insertions(+), 4 deletions(-) diff --git a/demos/rocksdb_ivf/RocksDBInvertedLists.cpp b/demos/rocksdb_ivf/RocksDBInvertedLists.cpp index 8d692f0b54..a17c7cfd67 100644 --- a/demos/rocksdb_ivf/RocksDBInvertedLists.cpp +++ b/demos/rocksdb_ivf/RocksDBInvertedLists.cpp @@ -1,4 +1,9 @@ -// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ #include "RocksDBInvertedLists.h" diff --git a/demos/rocksdb_ivf/RocksDBInvertedLists.h b/demos/rocksdb_ivf/RocksDBInvertedLists.h index f9d70a4f97..ebaccc0670 100644 --- a/demos/rocksdb_ivf/RocksDBInvertedLists.h +++ b/demos/rocksdb_ivf/RocksDBInvertedLists.h @@ -1,4 +1,11 @@ -// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +// -*- c++ -*- #pragma once diff --git a/demos/rocksdb_ivf/demo_rocksdb_ivf.cpp b/demos/rocksdb_ivf/demo_rocksdb_ivf.cpp index 72cf39eb03..69e83fe240 100644 --- a/demos/rocksdb_ivf/demo_rocksdb_ivf.cpp +++ b/demos/rocksdb_ivf/demo_rocksdb_ivf.cpp @@ -1,4 +1,11 @@ -// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +// -*- c++ -*- #include #include diff --git a/faiss/gpu/hipify.sh b/faiss/gpu/hipify.sh index dc0af11a7e..c8d75bf2fa 100755 --- a/faiss/gpu/hipify.sh +++ b/faiss/gpu/hipify.sh @@ -1,4 +1,8 @@ #!/bin/bash +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. # go one level up from faiss/gpu top=$(dirname "${BASH_SOURCE[0]}")/.. diff --git a/faiss/gpu/impl/scan/IVFInterleavedScanKernelTemplate.cu b/faiss/gpu/impl/scan/IVFInterleavedScanKernelTemplate.cu index d25c25a780..bad10027c8 100644 --- a/faiss/gpu/impl/scan/IVFInterleavedScanKernelTemplate.cu +++ b/faiss/gpu/impl/scan/IVFInterleavedScanKernelTemplate.cu @@ -1,3 +1,10 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + #include namespace faiss { diff --git a/faiss/gpu/test/test_index_cpu_to_gpu.py b/faiss/gpu/test/test_index_cpu_to_gpu.py index 088ea2bf74..82a9fdbf05 100644 --- a/faiss/gpu/test/test_index_cpu_to_gpu.py +++ b/faiss/gpu/test/test_index_cpu_to_gpu.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import numpy as np import unittest import faiss diff --git a/tests/test_common_ivf_empty_index.cpp b/tests/test_common_ivf_empty_index.cpp index a3e33031bd..b80125c005 100644 --- a/tests/test_common_ivf_empty_index.cpp +++ b/tests/test_common_ivf_empty_index.cpp @@ -1,4 +1,9 @@ -// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ #include