Skip to content

Commit

Permalink
OSS legal requirements (#2698)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #2698

Add headers about copyright.

Reviewed By: algoriddle

Differential Revision: D43085637

fbshipit-source-id: 5a57876b7047097ffe01cd79322674625d9bca34
  • Loading branch information
Alexandr Guzhva authored and facebook-github-bot committed Feb 7, 2023
1 parent e7d5577 commit 868e17f
Show file tree
Hide file tree
Showing 30 changed files with 197 additions and 11 deletions.
7 changes: 7 additions & 0 deletions benchs/bench_cppcontrib_sa_decode.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

#include <omp.h>

#include <algorithm>
Expand Down
7 changes: 7 additions & 0 deletions benchs/bench_pq_transposed_centroid_table.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
#!/usr/bin/env python3

# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

import faiss
import time
import random
Expand Down
7 changes: 6 additions & 1 deletion demos/demo_residual_quantizer.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

#include <climits>
#include <cstdio>
Expand Down
7 changes: 7 additions & 0 deletions faiss/IndexRowwiseMinMax.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

#include <faiss/IndexRowwiseMinMax.h>

#include <cstdint>
Expand Down
7 changes: 7 additions & 0 deletions faiss/IndexRowwiseMinMax.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

#pragma once

#include <cstdint>
Expand Down
7 changes: 6 additions & 1 deletion faiss/cppcontrib/SaDecodeKernels.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

#pragma once

Expand Down
7 changes: 7 additions & 0 deletions faiss/cppcontrib/detail/CoarseBitType.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

#pragma once

#include <cstdint>
Expand Down
7 changes: 7 additions & 0 deletions faiss/cppcontrib/detail/UintReader.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

#pragma once

#include <cstdint>
Expand Down
8 changes: 7 additions & 1 deletion faiss/cppcontrib/sa_decode/Level2-avx2-inl.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

#ifndef LEVEL2_AVX2_INL_H
#define LEVEL2_AVX2_INL_H

Expand Down
8 changes: 7 additions & 1 deletion faiss/cppcontrib/sa_decode/Level2-inl.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

#ifndef LEVEL2_INL_H
#define LEVEL2_INL_H

Expand Down
8 changes: 7 additions & 1 deletion faiss/cppcontrib/sa_decode/Level2-neon-inl.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

#ifndef LEVEL2_NEON_INL_H
#define LEVEL2_NEON_INL_H

Expand Down
7 changes: 7 additions & 0 deletions faiss/cppcontrib/sa_decode/MinMax-inl.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

#pragma once

#include <cstddef>
Expand Down
7 changes: 7 additions & 0 deletions faiss/cppcontrib/sa_decode/MinMaxFP16-inl.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

#pragma once

#include <cstddef>
Expand Down
7 changes: 6 additions & 1 deletion faiss/cppcontrib/sa_decode/PQ-avx2-inl.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

#ifndef PQ_AVX2_INL_H
#define PQ_AVX2_INL_H
Expand Down
8 changes: 7 additions & 1 deletion faiss/cppcontrib/sa_decode/PQ-inl.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

#ifndef PQ_INL_H
#define PQ_INL_H

Expand Down
8 changes: 7 additions & 1 deletion faiss/cppcontrib/sa_decode/PQ-neon-inl.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

#ifndef PQ_NEON_INL_H
#define PQ_NEON_INL_H

Expand Down
7 changes: 6 additions & 1 deletion faiss/impl/Quantizer.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

#pragma once

Expand Down
7 changes: 7 additions & 0 deletions faiss/utils/approx_topk/approx_topk.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

// This file contains an implementation of approximate top-k search
// using heap. It was initially created for a beam search.
//
Expand Down
7 changes: 7 additions & 0 deletions faiss/utils/approx_topk/avx2-inl.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

#pragma once

#include <immintrin.h>
Expand Down
7 changes: 7 additions & 0 deletions faiss/utils/approx_topk/generic.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

#pragma once

#include <algorithm>
Expand Down
7 changes: 7 additions & 0 deletions faiss/utils/distances_fused/distances_fused.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

#include <faiss/utils/distances_fused/distances_fused.h>

#include <faiss/impl/platform_macros.h>
Expand Down
7 changes: 7 additions & 0 deletions faiss/utils/fp16-fp16c.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

#pragma once

#include <immintrin.h>
Expand Down
7 changes: 7 additions & 0 deletions faiss/utils/fp16-inl.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

#pragma once

#include <algorithm>
Expand Down
7 changes: 7 additions & 0 deletions faiss/utils/fp16.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

#pragma once

#include <cstdint>
Expand Down
7 changes: 7 additions & 0 deletions tests/test_approx_topk.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

#include <gtest/gtest.h>

#include <chrono>
Expand Down
2 changes: 1 addition & 1 deletion tests/test_clone.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (c) Meta Platforms, Inc. and affiliates.
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
Expand Down
7 changes: 6 additions & 1 deletion tests/test_cppcontrib_sa_decode.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

#include <gtest/gtest.h>

Expand Down
7 changes: 7 additions & 0 deletions tests/test_cppcontrib_uintreader.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

// This test was designed to be run using valgrind or ASAN to test the
// correctness of memory accesses.

Expand Down
5 changes: 5 additions & 0 deletions tests/test_merge_index.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

import unittest
import faiss
import numpy as np
Expand Down
7 changes: 7 additions & 0 deletions tests/test_simdlib.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

#include <gtest/gtest.h>

#include <faiss/utils/simdlib.h>
Expand Down

0 comments on commit 868e17f

Please sign in to comment.