Skip to content

Commit

Permalink
Add missing includes for std::min/std::max. (#1895)
Browse files Browse the repository at this point in the history
Summary:
Closes #1876.

Pull Request resolved: #1895

Reviewed By: mdouze

Differential Revision: D28511225

Pulled By: beauby

fbshipit-source-id: 6dc6d0662983fdac7eef516f41fea1368195fb3e
  • Loading branch information
beauby authored and facebook-github-bot committed May 18, 2021
1 parent 77825c5 commit 797bc88
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions faiss/IndexResidual.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <faiss/IndexResidual.h>
#include "faiss/utils/utils.h"

#include <algorithm>
#include <cmath>
#include <cstring>

Expand Down
2 changes: 2 additions & 0 deletions faiss/gpu/GpuIndex.cu
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#include <faiss/gpu/utils/StaticUtils.h>
#include <faiss/impl/FaissAssert.h>
#include <faiss/gpu/utils/CopyUtils.cuh>

#include <algorithm>
#include <limits>
#include <memory>

Expand Down
2 changes: 2 additions & 0 deletions faiss/gpu/impl/DistanceUtils.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

#pragma once

#include <algorithm>

#include <faiss/gpu/utils/Tensor.cuh>

//
Expand Down
2 changes: 2 additions & 0 deletions faiss/gpu/impl/IVFAppend.cu
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#include <faiss/gpu/utils/WarpPackedBits.cuh>
#include <faiss/gpu/utils/WarpShuffles.cuh>

#include <algorithm>

namespace faiss {
namespace gpu {

Expand Down
2 changes: 2 additions & 0 deletions faiss/gpu/impl/IVFFlatScan.cu
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#include <faiss/gpu/utils/PtxUtils.cuh>
#include <faiss/gpu/utils/Reductions.cuh>

#include <algorithm>

namespace faiss {
namespace gpu {

Expand Down
2 changes: 2 additions & 0 deletions faiss/gpu/impl/IVFUtils.cu
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
#include <faiss/gpu/utils/Tensor.cuh>
#include <faiss/gpu/utils/ThrustAllocator.cuh>

#include <algorithm>

namespace faiss {
namespace gpu {

Expand Down
2 changes: 2 additions & 0 deletions faiss/gpu/impl/L2Norm.cu
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#include <faiss/gpu/utils/PtxUtils.cuh>
#include <faiss/gpu/utils/Reductions.cuh>

#include <algorithm>

namespace faiss {
namespace gpu {

Expand Down
2 changes: 2 additions & 0 deletions faiss/gpu/impl/PQScanMultiPassPrecomputed.cu
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#include <faiss/gpu/utils/LoadStoreOperators.cuh>
#include <faiss/gpu/utils/MathOperators.cuh>
#include <faiss/gpu/utils/WarpPackedBits.cuh>

#include <algorithm>
#include <limits>

namespace faiss {
Expand Down
2 changes: 2 additions & 0 deletions faiss/gpu/impl/VectorResidual.cu
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
#include <faiss/gpu/utils/ConversionOperators.cuh>
#include <faiss/gpu/utils/Tensor.cuh>

#include <algorithm>

namespace faiss {
namespace gpu {

Expand Down

0 comments on commit 797bc88

Please sign in to comment.