00001 #ifndef MEMORY_HYBRID_H
00002 #define MEMORY_HYBRID_H
00003
00004 #include <stdio.h>
00005 #include <stdlib.h>
00006
00007
00008 #ifdef __cplusplus
00009 extern "C" {
00010 #endif
00011
00012 int malloc_hybrid(int size, double **A, memoryMode MEM_MODE);
00013 int free_hybrid(double *A, memoryMode MEM_MODE);
00014 int initializeMatrix(int M, int N, double *A);
00015 int initializeMatrixToZero(int M, int N, double *A);
00016 int printMatrix(int M, int N, double *A);
00017
00018 int malloc_cuda (int size, double **A, memoryMode MEM_MODE);
00019 int free_cuda (double *A, memoryMode MEM_MODE);
00020
00021 #ifdef __cplusplus
00022 }
00023 #endif
00024
00025 #endif
00026