summaryrefslogtreecommitdiff
path: root/src/kernel_preprocessor.hpp
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2017-11-25 10:24:05 +0100
committerCedric Nugteren <web@cedricnugteren.nl>2017-11-25 10:24:05 +0100
commitc0c6d00b1238b3d0aec7d3669fb7287f5939c8b7 (patch)
treee40b3b8a6de2cbe9f946ac9fdf3e3f1d4dd6d1ff /src/kernel_preprocessor.hpp
parentebce82e650c48ffcac6fc83530173af94ae36fd6 (diff)
Added stub for a preprocessor and a corresponding compilation test
Diffstat (limited to 'src/kernel_preprocessor.hpp')
-rw-r--r--src/kernel_preprocessor.hpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/kernel_preprocessor.hpp b/src/kernel_preprocessor.hpp
new file mode 100644
index 00000000..6a9a8a38
--- /dev/null
+++ b/src/kernel_preprocessor.hpp
@@ -0,0 +1,33 @@
+
+// =================================================================================================
+// This file is part of the CLBlast project. The project is licensed under Apache Version 2.0. This
+// project loosely follows the Google C++ styleguide and uses a tab-size of two spaces and a max-
+// width of 100 characters per line.
+//
+// Author(s):
+// Cedric Nugteren <www.cedricnugteren.nl>
+//
+// This file contains the a simple pre-processor for the OpenCL kernels. This pre-processor is used
+// in cases where the vendor's OpenCL compiler falls short in loop unrolling and array-to-register
+// promotion. This pre-processor is specific for the CLBlast code making many assumptions.
+//
+// =================================================================================================
+
+#ifndef CLBLAST_KERNEL_PREPROCESSOR_H_
+#define CLBLAST_KERNEL_PREPROCESSOR_H_
+
+#include <string>
+#include <vector>
+
+#include "utilities/utilities.hpp"
+
+namespace clblast {
+// =================================================================================================
+
+std::string PreprocessKernelSource(const std::string& kernel_source);
+
+// =================================================================================================
+} // namespace clblast
+
+// CLBLAST_KERNEL_PREPROCESSOR_H_
+#endif