/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD+Patents license found in the * LICENSE file in the root directory of this source tree. */ // Copyright 2004-present Facebook. All Rights Reserved. #pragma once #include "../utils/Float16.cuh" #include "../utils/Tensor.cuh" namespace faiss { namespace gpu { // output[x][i] += input[i] for all x void runSumAlongColumns(Tensor& input, Tensor& output, cudaStream_t stream); #ifdef FAISS_USE_FLOAT16 void runSumAlongColumns(Tensor& input, Tensor& output, cudaStream_t stream); #endif // output[x][i] = input[i] for all x void runAssignAlongColumns(Tensor& input, Tensor& output, cudaStream_t stream); #ifdef FAISS_USE_FLOAT16 void runAssignAlongColumns(Tensor& input, Tensor& output, cudaStream_t stream); #endif // output[i][x] += input[i] for all x void runSumAlongRows(Tensor& input, Tensor& output, cudaStream_t stream); #ifdef FAISS_USE_FLOAT16 void runSumAlongRows(Tensor& input, Tensor& output, cudaStream_t stream); #endif } } // namespace