2015-01-23 03:38:24 +03:00
|
|
|
#ifndef CUDA_H
|
|
|
|
#define CUDA_H
|
|
|
|
|
2017-06-02 06:31:13 +03:00
|
|
|
#include "darknet.h"
|
2015-01-31 09:05:23 +03:00
|
|
|
|
|
|
|
#ifdef GPU
|
|
|
|
|
2015-01-23 03:38:24 +03:00
|
|
|
void check_error(cudaError_t status);
|
|
|
|
cublasHandle_t blas_handle();
|
2017-05-29 21:59:27 +03:00
|
|
|
int *cuda_make_int_array(int *x, size_t n);
|
2016-05-13 21:59:43 +03:00
|
|
|
void cuda_random(float *x_gpu, size_t n);
|
|
|
|
float cuda_compare(float *x_gpu, float *x, size_t n, char *s);
|
2015-01-23 03:38:24 +03:00
|
|
|
dim3 cuda_gridsize(size_t n);
|
|
|
|
|
2016-05-13 21:59:43 +03:00
|
|
|
#ifdef CUDNN
|
|
|
|
cudnnHandle_t cudnn_handle();
|
|
|
|
#endif
|
|
|
|
|
2015-01-23 03:38:24 +03:00
|
|
|
#endif
|
2015-01-31 09:05:23 +03:00
|
|
|
#endif
|