Skip to content
Snippets Groups Projects
Commit 314515ef authored by Gabriel Falk's avatar Gabriel Falk
Browse files

Upload New File

parent 09f7b9e0
Branches
Tags
No related merge requests found
#include <chrono>
#include <iostream>
#include <math.h>
#include <assert.h>
#include <cuda_runtime.h>
#include "cudaKernels.h"
#include "matrix.h"
#include "test.h"
matrix cudaInterface(matrix src1, matrix src2, int mode){
//Mode 2: A x B -> C;
double* time = (double*) malloc(sizeof(double));
if(mode == 2){
matrix dst = createMx(src2.sizeX, src1.sizeY);
matMulTileCuda(src1.head, src2.head, dst.head, src1.sizeX, src1.sizeY, src2.sizeX, src2.sizeY, time);
return dst;
}
return createMx(0, 0);
}
int main() {
// Test time Measures
test();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment