Commit f05b972e authored by He Guanlin's avatar He Guanlin
Browse files

Upload New File

parent e17ed1e4
#include <stdio.h>
#include <stdlib.h>
#include <cuda.h>
#include <cuda_runtime.h>
#define CHECK_CUDA_SUCCESS(exp,msg) {if ((exp) != cudaSuccess) {\
fprintf(stderr,"Error on CUDA operation (%s)\n",msg);\
exit(EXIT_FAILURE);}\
}
#define CHECK_CUBLAS_SUCCESS(exp,msg) {int r = (exp); if (r != CUBLAS_STATUS_SUCCESS) {\
fprintf(stderr,"Error (%d) on CUBLAS operation (%s)\n", r, msg);\
exit(EXIT_FAILURE);}\
}
void gpuInit(void);
void gpuFinalize(void);
void gpuSetDataOnGPU(void);
void gpuGetResultOnCPU(void);
void gpuKmeans(void);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment