From da20af4ca5cf7e077270f7443bd1a01c7db2cbb0 Mon Sep 17 00:00:00 2001 From: Michael Norris Date: Mon, 21 Oct 2024 18:36:33 -0700 Subject: [PATCH] fix some more nvidia licenses that get erased (#3977) Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/3977 These were getting erased in D64484165. Similar to D64481766, we need to add lint ignore to not erase Nvidia license. Without the changes in this diff to ignore lint, screenshots show these 4 files erase the license when running the lint command: Before lint: {F1941712401} After lint: {F1941712573} Reviewed By: asadoughi Differential Revision: D64712875 fbshipit-source-id: ada63a8d2f3e4af6c58971f83053b0eb443908d8 --- benchs/bench_ivfflat_raft.py | 3 ++- benchs/bench_ivfpq_raft.py | 5 +++-- faiss/gpu/CMakeLists.txt | 3 ++- faiss/gpu/test/CMakeLists.txt | 3 ++- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/benchs/bench_ivfflat_raft.py b/benchs/bench_ivfflat_raft.py index 9ebfcb342..d8e299165 100644 --- a/benchs/bench_ivfflat_raft.py +++ b/benchs/bench_ivfflat_raft.py @@ -1,4 +1,5 @@ -# Copyright (c) Facebook, Inc. and its affiliates. +# @lint-ignore-every LICENSELINT +# Copyright (c) Meta Platforms, 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. diff --git a/benchs/bench_ivfpq_raft.py b/benchs/bench_ivfpq_raft.py index 3494a1874..96a9ab151 100644 --- a/benchs/bench_ivfpq_raft.py +++ b/benchs/bench_ivfpq_raft.py @@ -1,4 +1,5 @@ -# Copyright (c) Facebook, Inc. and its affiliates. +# @lint-ignore-every LICENSELINT +# Copyright (c) Meta Platforms, 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. @@ -165,4 +166,4 @@ if args.bm_search: classical_gpu_search_time = bench_search_milliseconds( index, xb, queryVecs, args.nprobe, args.k, False) print("Method: IVFPQ, Operation: SEARCH, dim: %d, n_centroids: %d, numSubQuantizers %d, bitsPerCode %d, numVecs: %d, numQuery: %d, nprobe: %d, k: %d, classical GPU search time: %.3f milliseconds, RAFT enabled GPU search time: %.3f milliseconds" % ( - n_cols, nlist, M, args.bits_per_code, n_add, n_rows, args.nprobe, args.k, classical_gpu_search_time, raft_gpu_search_time)) \ No newline at end of file + n_cols, nlist, M, args.bits_per_code, n_add, n_rows, args.nprobe, args.k, classical_gpu_search_time, raft_gpu_search_time)) diff --git a/faiss/gpu/CMakeLists.txt b/faiss/gpu/CMakeLists.txt index b84362266..351782775 100644 --- a/faiss/gpu/CMakeLists.txt +++ b/faiss/gpu/CMakeLists.txt @@ -1,4 +1,5 @@ -# Copyright (c) Facebook, Inc. and its affiliates. +# @lint-ignore-every LICENSELINT +# Copyright (c) Meta Platforms, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the diff --git a/faiss/gpu/test/CMakeLists.txt b/faiss/gpu/test/CMakeLists.txt index 073403e13..8c44e5360 100644 --- a/faiss/gpu/test/CMakeLists.txt +++ b/faiss/gpu/test/CMakeLists.txt @@ -1,4 +1,5 @@ -# Copyright (c) Facebook, Inc. and its affiliates. +# @lint-ignore-every LICENSELINT +# Copyright (c) Meta Platforms, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the