Skip to content

Commit

Permalink
fix some more nvidia licenses that get erased (facebookresearch#3977)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebookresearch#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
  • Loading branch information
Michael Norris authored and facebook-github-bot committed Oct 22, 2024
1 parent 56a383f commit da20af4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion benchs/bench_ivfflat_raft.py
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
5 changes: 3 additions & 2 deletions benchs/bench_ivfpq_raft.py
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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))
n_cols, nlist, M, args.bits_per_code, n_add, n_rows, args.nprobe, args.k, classical_gpu_search_time, raft_gpu_search_time))
3 changes: 2 additions & 1 deletion faiss/gpu/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion faiss/gpu/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit da20af4

Please sign in to comment.