mult_kernel.h
Go to the documentation of this file.
1 /*
2  * This file is a part of TiledArray.
3  * Copyright (C) 2018 Virginia Tech
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  *
18  * Chong Peng
19  * Department of Chemistry, Virginia Tech
20  * Aug 21, 2018
21  *
22  */
23 
24 #ifndef TILEDARRAY_CUDA_MULT_KERNEL_H__INCLUDED
25 #define TILEDARRAY_CUDA_MULT_KERNEL_H__INCLUDED
26 
27 #include <TiledArray/config.h>
28 
29 #ifdef TILEDARRAY_HAS_CUDA
30 
31 namespace TiledArray {
32 
34 void mult_to_cuda_kernel(int *result, const int *arg, std::size_t n,
35  cudaStream_t stream, int device_id);
36 
37 void mult_to_cuda_kernel(float *result, const float *arg, std::size_t n,
38  cudaStream_t stream, int device_id);
39 
40 void mult_to_cuda_kernel(double *result, const double *arg, std::size_t n,
41  cudaStream_t stream, int device_id);
42 
44 void mult_cuda_kernel(int *result, const int *arg1, const int *arg2,
45  std::size_t n, cudaStream_t stream, int device_id);
46 
47 void mult_cuda_kernel(float *result, const float *arg1, const float *arg2,
48  std::size_t n, cudaStream_t stream, int device_id);
49 
50 void mult_cuda_kernel(double *result, const double *arg1, const double *arg2,
51  std::size_t n, cudaStream_t stream, int device_id);
52 
53 } // namespace TiledArray
54 
55 #endif // TILEDARRAY_HAS_CUDA
56 
57 #endif // TILEDARRAY_CUDA_MULT_KERNEL_H__INCLUDED