diff options
Diffstat (limited to 'src/kernel_preprocessor.hpp')
-rw-r--r-- | src/kernel_preprocessor.hpp | 33 |
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 |