COMPASS  5.4.4
End-to-end AO simulation tool using GPU acceleration
carma_cusparse.h
Go to the documentation of this file.
1 // -----------------------------------------------------------------------------
2 // This file is part of COMPASS <https://anr-compass.github.io/compass/>
3 //
4 // Copyright (C) 2011-2023 COMPASS Team <https://github.com/ANR-COMPASS>
5 // All rights reserved.
6 
7 // -----------------------------------------------------------------------------
8 
15 
16 #ifndef CARMA_SPARSE_H_
17 #define CARMA_SPARSE_H_
18 
19 #include <cuda_runtime_api.h>
20 /* Using updated (v2) interfaces to cublas */
21 #include <cusparse_v2.h>
22 #include <string>
23 
24 #define carma_check_cusparse_status(status) \
25  carma_check_cusparse_status_v2(status, __LINE__, __FILE__)
26 
27 cusparseStatus_t carma_check_cusparse_status_v2(cusparseStatus_t status, int line,
28  std::string file);
29 cusparseStatus_t carma_init_cusparse(cusparseHandle_t *cusparse_handle);
30 cusparseStatus_t carma_shutdown_cusparse(cusparseHandle_t cusparse_handle);
31 
32 cusparseOperation_t carma_char2cusparse_operation(char operation);
33 
34 /*
35  * _____ _____ __ __ ____ _ _ _____ _____ ____
36  *|_ _| ____| \/ | _ \| | / \|_ _| ____/ ___|
37  * | | | _| | |\/| | |_) | | / _ \ | | | _| \___ \
38  * | | | |___| | | | __/| |___ / ___ \| | | |___ ___) |
39  * |_| |_____|_| |_|_| |_____/_/ \_\_| |_____|____/
40  *
41  */
42 
43 #endif /* CARMA_SPARSE_H_ */
cusparseOperation_t carma_char2cusparse_operation(char operation)
cusparseStatus_t carma_init_cusparse(cusparseHandle_t *cusparse_handle)
cusparseStatus_t carma_shutdown_cusparse(cusparseHandle_t cusparse_handle)
cusparseStatus_t carma_check_cusparse_status_v2(cusparseStatus_t status, int line, std::string file)