Commit 7b6fd68b authored by Pavel Kus's avatar Pavel Kus
Browse files

minor change in cuda_v2 interface wrappers

parent 0417cb1d
......@@ -72,9 +72,9 @@
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));
*cublas_handle = (intptr_t) malloc(sizeof(cublasHandle_t));
// printf("in c: %p\n", *cublas_handle);
cublasStatus_t status = cublasCreate((cublasHandle_t*) *cublas_handle);
if (status == CUBLAS_STATUS_SUCCESS) {
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