From bd05285cf2e0681c552eff76c2e962749f3aeaad Mon Sep 17 00:00:00 2001 From: Comment Date: Wed, 27 Nov 2013 09:10:26 +0000 Subject: gpu test --- rotord/src/rotor.h | 42 ++++++++++++++++++++++++++++++++++++++++++ working/make_cvtest | 0 working/test_gpu.c | 20 ++++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100755 working/make_cvtest create mode 100644 working/test_gpu.c diff --git a/rotord/src/rotor.h b/rotord/src/rotor.h index 75e7914..6a0996e 100644 --- a/rotord/src/rotor.h +++ b/rotord/src/rotor.h @@ -71,6 +71,48 @@ Requirements http://www.ogre3d.org/forums/viewtopic.php?f=16&t=52936 chaiscript binding to cairo + +HOW TO RE-ARCHITECT TO SUPPORT ARBITRARY TYPES OF NODES??? + +node types and inputs are templated + +Node + +typedef Node Image_node; + +Input + +rather than seperate input types we have + +map inputs + +what are the processes needed? + +rather than + +if (image_inputs[0].connection) + +we have + +if (inputs["image"].connection) + +input=(Image*)inputs["image"].get_output() + +???how to define in the graph? + + + +inputs: [ + { + type:"image", + from:"blah" + }, + { + type:"colour", + from:"blah" + } + ] + -------------------------*/ diff --git a/working/make_cvtest b/working/make_cvtest new file mode 100755 index 0000000..e69de29 diff --git a/working/test_gpu.c b/working/test_gpu.c new file mode 100644 index 0000000..592fcf9 --- /dev/null +++ b/working/test_gpu.c @@ -0,0 +1,20 @@ +//#include +#include "opencv2/opencv.hpp" +#include "opencv2/imgproc/imgproc.hpp" +#include "opencv2/highgui/highgui.hpp" +#include "opencv2/gpu/gpu.hpp" +#include +#include +#include + +int main() { + + int gpus=cv::gpu::getCudaEnabledDeviceCount(); + + if (gpus) printf("OpenCV is gpu enabled! %d GPUs found\n",gpus); + else printf("OpenCV is not gpu enabled! Check build flags and hardware\n"); + + return 0; +} + + -- cgit v1.2.3