You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
404 B

8 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef CUDA_H
  2. #define CUDA_H
  3. #include <darknet.h>
  4. namespace DN{
  5. #ifdef GPU
  6. void check_error(cudaError_t status);
  7. cublasHandle_t blas_handle();
  8. int *cuda_make_int_array(int *x, size_t n);
  9. void cuda_random(float *x_gpu, size_t n);
  10. float cuda_compare(float *x_gpu, float *x, size_t n, char *s);
  11. dim3 cuda_gridsize(size_t n);
  12. #ifdef CUDNN
  13. cudnnHandle_t cudnn_handle();
  14. #endif
  15. #endif
  16. };
  17. #endif