From 3c9b39f682d18e1241570f96cfb142ce9dc01d24 Mon Sep 17 00:00:00 2001 From: mitchellhansen Date: Thu, 11 Aug 2016 21:48:37 -0700 Subject: [PATCH] added the final kernel create function, moved around includes Next on the plate is either, abstract the cl routine, or begin digging into creating the kernel --- src/main.cpp | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 43619f3..9b871c7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,15 +1,13 @@ -#include #include #include -#include "util.hpp" -#include "RayCaster.h" -#include -#include "Curses.h" -# include #include #include +#include +#include #ifdef linux +#include +#include #elif defined _WIN32 #include @@ -20,10 +18,14 @@ # include # include - - #endif +#include "Map.h" +#include "Curses.h" +#include "util.hpp" +#include "RayCaster.h" + + const int WINDOW_X = 150; const int WINDOW_Y = 150; @@ -180,6 +182,14 @@ int main(){ return error; } + // Done initializing the kernel + cl_kernel finished_kernel = clCreateKernel(kernel_program, "kernel_name", &error); + + if (error != 0){ + std::cout << "Err: clCreateKernel returned: " << error << std::endl; + return error; + } + };