/usr/include/suitesparse/cholmod_gpu_kernels.h is in libsuitesparse-dev 1:4.4.6-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | /* ========================================================================== */
/* === Include/cholmod_gpu_kernels.h ======================================== */
/* ========================================================================== */
/* -----------------------------------------------------------------------------
* CHOLMOD/Include/cholmod_gpu_kernels.h.
* Copyright (C) 2014, Timothy A. Davis
* CHOLMOD/Include/cholmod_gpu.h and the CHOLMOD GPU Module are licensed under
* Version 2.0 of the GNU General Public License. See gpl.txt for a text of
* the license. CHOLMOD is also available under other licenses; contact
* authors for details.
* http://www.suitesparse.com
* -------------------------------------------------------------------------- */
/* -----------------------------------------------------------------------------
* CUDA kernel support routines for CHOLMOD
* -------------------------------------------------------------------------- */
#ifndef CHOLMODGPUKERNELS_H
#define CHOLMODGPUKERNELS_H
/* make it easy for C++ programs to include CHOLMOD */
#ifdef __cplusplus
extern "C" {
#endif
#include "SuiteSparse_config.h"
int createMapOnDevice ( Int *d_Map, Int *d_Ls, Int psi, Int nsrow );
int createRelativeMapOnDevice ( Int *d_Map, Int *d_Ls, Int *d_RelativeMap,
Int pdi1, Int ndrow, cudaStream_t astream );
int addUpateOnDevice ( double *d_A, double *devPtrC, Int *d_RelativeMap,
Int ndrow1, Int ndrow2, Int nsrow, cudaStream_t astream );
int addComplexUpateOnDevice ( double *d_A, double *devPtrC, Int *d_RelativeMap,
Int ndrow1, Int ndrow2, Int nsrow, cudaStream_t astream );
int sumAOnDevice ( double *a1, double *a2, const double alpha, int nsrow,
int nscol );
int sumComplexAOnDevice ( double *a1, double *a2, const double alpha,
int nsrow, int nscol );
#ifdef __cplusplus
}
#endif
#endif
|