From a3324da6a95735c7498fd169788f771d45335f48 Mon Sep 17 00:00:00 2001 From: Michael Norris Date: Mon, 21 Oct 2024 14:02:43 -0700 Subject: [PATCH] fix some more nvidia licenses that get erased Summary: 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} Differential Revision: D64712875 --- 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 9ebfcb3422..d8e299165c 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 3494a18741..96a9ab1512 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 @@ def bench_search_milliseconds(index, addVecs, queryVecs, nprobe, k, use_raft): 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 b843622661..3517827750 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 073403e13a..8c44e5360e 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