-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathmain.cpp
More file actions
46 lines (36 loc) · 943 Bytes
/
main.cpp
File metadata and controls
46 lines (36 loc) · 943 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#include <iostream>
#include <iomanip>
#include <fstream>
#include <list>
#include <set>
#include <map>
#include <utility>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "cuda.h"
#include <opencv2/opencv.hpp>
#include "convRunner.h"
#include "helpers.h"
using namespace std;
using namespace cv;
void deviceStuff();
int main (int argc,char **argv)
{
deviceStuff();
testConvolution(); //use Lena.png. Save convolved images to ./results/<implementation name>.png
//testConvolution_withDummyImg(640, 480);
//testConvolution_withDummyImg(512, 512);
testConvolution_withDummyImg(9216, 9216); //9216x9216 image, like FairchildImaging CCD595
return 0;
}
//hard-code device preferences here.
void deviceStuff()
{
//cudaSetDevice(2);
int device;
cudaGetDevice(&device);
cudaDeviceProp prop;
cudaGetDeviceProperties(&prop, device);
printf("deviceName = %s \n", prop.name);
}