Commit c9151077 authored by Wenzhe Yu's avatar Wenzhe Yu 😎
Browse files

Fix typos in cudaFunctions.cu

parent e7cd6e73
......@@ -72,7 +72,7 @@
#ifdef WITH_GPU_VERSION
extern "C" {
int cublasCreateFromC(intptr_t *cublas_handle) {
int cublasCreateFromC(intptr_t *cublas_handle) {
// printf("in c: %p\n", *cublas_handle);
*cublas_handle = (intptr_t) malloc(sizeof(cublasHandle_t));
// printf("in c: %p\n", *cublas_handle);
......@@ -107,7 +107,7 @@ extern "C" {
return 0;
}
else{
errormessage("Error in cublasCreate: %s\n", "unknown error");
errormessage("Error in cublasDestroy: %s\n", "unknown error");
return 0;
}
}
......@@ -136,13 +136,12 @@ extern "C" {
cudaError_t cuerr = cudaDeviceSynchronize();
if (cuerr != cudaSuccess) {
errormessage("Error in cudaGetDeviceCount: %s\n",cudaGetErrorString(cuerr));
errormessage("Error in cudaDeviceSynchronize: %s\n",cudaGetErrorString(cuerr));
return 0;
}
return 1;
}
int cudaMallocFromC(intptr_t *a, size_t width_height) {
cudaError_t cuerr = cudaMalloc((void **) a, width_height);
......@@ -155,6 +154,7 @@ extern "C" {
}
return 1;
}
int cudaFreeFromC(intptr_t *a) {
#ifdef DEBUG_CUDA
printf("CUDA Free, pointer address: %p \n", a);
......@@ -180,6 +180,7 @@ extern "C" {
}
return 1;
}
int cudaFreeHostFromC(intptr_t *a) {
#ifdef DEBUG_CUDA
printf("FreeHost pointer address: %p \n", a);
......@@ -329,7 +330,6 @@ extern "C" {
}
void cublasDgemv_elpa_wrapper (intptr_t handle, char trans, int m, int n, double alpha,
const double *A, int lda, const double *x, int incx,
double beta, double *y, int incy) {
......
Supports Markdown
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