summaryrefslogtreecommitdiff
path: root/src/kernel_preprocessor.cpp
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.cpp
parentebce82e650c48ffcac6fc83530173af94ae36fd6 (diff)
Added stub for a preprocessor and a corresponding compilation test
Diffstat (limited to 'src/kernel_preprocessor.cpp')
-rw-r--r--src/kernel_preprocessor.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/kernel_preprocessor.cpp b/src/kernel_preprocessor.cpp
new file mode 100644
index 00000000..999e80e2
--- /dev/null
+++ b/src/kernel_preprocessor.cpp
@@ -0,0 +1,28 @@
+
+// =================================================================================================
+// 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 implements the OpenCL kernel preprocessor (see the header for more information).
+//
+// =================================================================================================
+
+#include <vector>
+#include <chrono>
+
+#include "kernel_preprocessor.hpp"
+
+namespace clblast {
+// =================================================================================================
+
+std::string PreprocessKernelSource(const std::string& kernel_source) {
+ const auto processed_kernel = kernel_source;
+ return processed_kernel;
+}
+
+// =================================================================================================
+} // namespace clblast