General: Internal code generator overhaul

This commit is contained in:
Philippe Tillet
2016-04-02 18:19:33 -04:00
parent 6ac5e1f55b
commit 7f77fba4d4
131 changed files with 5854 additions and 5721 deletions

View File

@@ -26,8 +26,8 @@
#include "helpers/ocl/infos.hpp"
#include "sys/getenv.hpp"
#include "sys/mkdir.hpp"
#include "isaac/tools/sys/getenv.hpp"
#include "isaac/tools/sys/mkdir.hpp"
namespace isaac
{
@@ -74,12 +74,12 @@ Context::Context(Device const & device) : backend_(device.backend_), device_(dev
switch(backend_)
{
case CUDA:
cuda::check(dispatch::cuCtxCreate(&h_.cu(), CU_CTX_SCHED_AUTO, device.h_.cu()));
check(dispatch::cuCtxCreate(&h_.cu(), CU_CTX_SCHED_AUTO, device.h_.cu()));
break;
case OPENCL:
cl_int err;
h_.cl() = dispatch::clCreateContext(NULL, 1, &device_.h_.cl(), NULL, NULL, &err);
ocl::check(err);
check(err);
break;
default:
throw;