Skip to content

Commit

Permalink
Add missing includes for std::min/std::max.
Browse files Browse the repository at this point in the history
  • Loading branch information
beauby committed Jan 7, 2021
1 parent b5c0ace commit d2c04d0
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions faiss/gpu/GpuIndex.cu
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <faiss/gpu/utils/CopyUtils.cuh>
#include <faiss/gpu/utils/DeviceUtils.h>
#include <faiss/gpu/utils/StaticUtils.h>
#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 @@ -8,6 +8,8 @@

#pragma once

#include <algorithm>

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

//
Expand Down
1 change: 1 addition & 0 deletions faiss/gpu/impl/IVFAppend.cu
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#include <algorithm>

#include <faiss/gpu/impl/IVFAppend.cuh>
#include <faiss/impl/FaissAssert.h>
Expand Down
1 change: 1 addition & 0 deletions faiss/gpu/impl/IVFFlatScan.cu
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#include <algorithm>

#include <faiss/gpu/impl/IVFFlatScan.cuh>
#include <faiss/gpu/impl/DistanceUtils.cuh>
Expand Down
1 change: 1 addition & 0 deletions faiss/gpu/impl/IVFUtils.cu
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#include <algorithm>

#include <faiss/gpu/impl/IVFUtils.cuh>
#include <faiss/gpu/utils/DeviceUtils.h>
Expand Down
1 change: 1 addition & 0 deletions faiss/gpu/impl/L2Norm.cu
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#include <algorithm>

#include <faiss/gpu/impl/L2Norm.cuh>
#include <faiss/impl/FaissAssert.h>
Expand Down
1 change: 1 addition & 0 deletions faiss/gpu/impl/PQScanMultiPassPrecomputed.cu
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <faiss/gpu/utils/MathOperators.cuh>
#include <faiss/gpu/utils/StaticUtils.h>
#include <faiss/gpu/utils/WarpPackedBits.cuh>
#include <algorithm>
#include <limits>

namespace faiss { namespace gpu {
Expand Down
1 change: 1 addition & 0 deletions faiss/gpu/impl/VectorResidual.cu
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <faiss/gpu/utils/DeviceUtils.h>
#include <faiss/gpu/utils/Tensor.cuh>
#include <faiss/gpu/utils/StaticUtils.h>
#include <algorithm>
#include <math_constants.h> // in CUDA SDK, for CUDART_NAN_F

namespace faiss { namespace gpu {
Expand Down

0 comments on commit d2c04d0

Please sign in to comment.