darknet  v3
cuda.h
Go to the documentation of this file.
1 #ifndef CUDA_H
2 #define CUDA_H
3 
4 #include "darknet.h"
5 
6 #ifdef GPU
7 
8 void check_error(cudaError_t status);
9 cublasHandle_t blas_handle();
10 int *cuda_make_int_array(int *x, size_t n);
11 void cuda_random(float *x_gpu, size_t n);
12 float cuda_compare(float *x_gpu, float *x, size_t n, char *s);
13 dim3 cuda_gridsize(size_t n);
14 
15 #ifdef CUDNN
16 cudnnHandle_t cudnn_handle();
17 #endif
18 
19 #endif
20 #endif