Skip to content

Commit

Permalink
[OpenCL] Added polyfill to test OpenCL code without OpenCL
Browse files Browse the repository at this point in the history
  • Loading branch information
dmed256 committed Jun 27, 2019
1 parent 58fadc2 commit 756005e
Show file tree
Hide file tree
Showing 10 changed files with 444 additions and 109 deletions.
10 changes: 3 additions & 7 deletions include/occa/modes/opencl/device.hpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
#include <occa/defines.hpp>

#if OCCA_OPENCL_ENABLED
# ifndef OCCA_MODES_OPENCL_DEVICE_HEADER
# define OCCA_MODES_OPENCL_DEVICE_HEADER
#ifndef OCCA_MODES_OPENCL_DEVICE_HEADER
#define OCCA_MODES_OPENCL_DEVICE_HEADER

#include <occa/core/launchedDevice.hpp>
#include <occa/modes/opencl/headers.hpp>
#include <occa/modes/opencl/polyfill.hpp>

namespace occa {
namespace opencl {
Expand Down Expand Up @@ -97,5 +94,4 @@ namespace occa {
}
}

# endif
#endif
10 changes: 0 additions & 10 deletions include/occa/modes/opencl/headers.hpp

This file was deleted.

10 changes: 3 additions & 7 deletions include/occa/modes/opencl/kernel.hpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
#include <occa/defines.hpp>

#if OCCA_OPENCL_ENABLED
# ifndef OCCA_MODES_OPENCL_KERNEL_HEADER
# define OCCA_MODES_OPENCL_KERNEL_HEADER
#ifndef OCCA_MODES_OPENCL_KERNEL_HEADER
#define OCCA_MODES_OPENCL_KERNEL_HEADER

#include <occa/core/launchedKernel.hpp>
#include <occa/modes/opencl/headers.hpp>
#include <occa/modes/opencl/polyfill.hpp>
#include <occa/modes/opencl/utils.hpp>

namespace occa {
Expand Down Expand Up @@ -46,5 +43,4 @@ namespace occa {
}
}

# endif
#endif
10 changes: 3 additions & 7 deletions include/occa/modes/opencl/memory.hpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
#include <occa/defines.hpp>

#if OCCA_OPENCL_ENABLED
# ifndef OCCA_MODES_OPENCL_MEMORY_HEADER
# define OCCA_MODES_OPENCL_MEMORY_HEADER
#ifndef OCCA_MODES_OPENCL_MEMORY_HEADER
#define OCCA_MODES_OPENCL_MEMORY_HEADER

#include <occa/core/memory.hpp>
#include <occa/modes/opencl/headers.hpp>
#include <occa/modes/opencl/polyfill.hpp>

namespace occa {
namespace opencl {
Expand Down Expand Up @@ -61,5 +58,4 @@ namespace occa {
}
}

# endif
#endif
Loading

0 comments on commit 756005e

Please sign in to comment.