Download include/cholmod_gpu.h from camenduru/slahmr-test: direct link, hf CLI and curl.
- Browser
- Download file 2.42 kB
-
https://huggingface.co/camenduru/slahmr-test/resolve/main/include/cholmod_gpu.h
- Command line
-
hf download hf://camenduru/slahmr-test/include/cholmod_gpu.h
-
curl -L -o cholmod_gpu.h https://huggingface.co/camenduru/slahmr-test/resolve/main/include/cholmod_gpu.h
2.42 kB
| /* ========================================================================== */ | |
| /* === Include/cholmod_gpu.h ================================================ */ | |
| /* ========================================================================== */ | |
| /* ----------------------------------------------------------------------------- | |
| * CHOLMOD/Include/cholmod_gpu.h. | |
| * Copyright (C) 2014, Timothy A. Davis | |
| * http://www.suitesparse.com | |
| * -------------------------------------------------------------------------- */ | |
| /* CHOLMOD GPU module | |
| */ | |
| /* CHOLMOD_GPU_PRINTF: for printing GPU debug error messages */ | |
| /* | |
| #define CHOLMOD_GPU_PRINTF(args) printf args | |
| */ | |
| /* define supernode requirements for processing on GPU */ | |
| /* # of host supernodes to perform before checking for free pinned buffers */ | |
| typedef struct cholmod_gpu_pointers | |
| { | |
| double *h_Lx [CHOLMOD_HOST_SUPERNODE_BUFFERS] ; | |
| double *d_Lx [CHOLMOD_DEVICE_STREAMS] ; | |
| double *d_C ; | |
| double *d_A [CHOLMOD_DEVICE_STREAMS] ; | |
| void *d_Ls ; | |
| void *d_Map ; | |
| void *d_RelativeMap ; | |
| } cholmod_gpu_pointers ; | |
| int cholmod_gpu_memorysize /* GPU memory size available, 1 if no GPU */ | |
| ( | |
| size_t *total_mem, | |
| size_t *available_mem, | |
| cholmod_common *Common | |
| ) ; | |
| int cholmod_l_gpu_memorysize /* GPU memory size available, 1 if no GPU */ | |
| ( | |
| size_t *total_mem, | |
| size_t *available_mem, | |
| cholmod_common *Common | |
| ) ; | |
| int cholmod_gpu_probe ( cholmod_common *Common ) ; | |
| int cholmod_l_gpu_probe ( cholmod_common *Common ) ; | |
| int cholmod_gpu_deallocate ( cholmod_common *Common ) ; | |
| int cholmod_l_gpu_deallocate ( cholmod_common *Common ) ; | |
| void cholmod_gpu_end ( cholmod_common *Common ) ; | |
| void cholmod_l_gpu_end ( cholmod_common *Common ) ; | |
| int cholmod_gpu_allocate ( cholmod_common *Common ) ; | |
| int cholmod_l_gpu_allocate ( cholmod_common *Common ) ; | |