diff options
author | CNugteren <web@cedricnugteren.nl> | 2015-07-19 13:44:37 +0200 |
---|---|---|
committer | CNugteren <web@cedricnugteren.nl> | 2015-07-19 13:44:37 +0200 |
commit | 4e499a67c1eb9f7cc4a79e75046aa0315b5df87d (patch) | |
tree | 7d24d5069cf6145ce73a621d254bf17da7752ace /include | |
parent | 250f8ab2953fd6730ce97c2e5ab464d22efb639c (diff) |
The kernel source string is now a routine's member variable
Diffstat (limited to 'include')
-rw-r--r-- | include/internal/routine.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/internal/routine.h b/include/internal/routine.h index 49a36c10..7b605d48 100644 --- a/include/internal/routine.h +++ b/include/internal/routine.h @@ -58,11 +58,11 @@ class Routine { static constexpr bool ErrorIn(const StatusCode s) { return (s != StatusCode::kSuccess); } // Base class constructor - explicit Routine(CommandQueue &queue, Event &event, + explicit Routine(CommandQueue &queue, Event &event, const std::string &name, const std::vector<std::string> &routines, const Precision precision); // Set-up phase of the kernel - StatusCode SetUp(const std::string &routine_source); + StatusCode SetUp(); protected: @@ -107,6 +107,10 @@ class Routine { // a derived class. const Precision precision_; + // The routine's name and its kernel-source in string form + const std::string routine_name_; + std::string source_string_; + // The OpenCL objects, accessible only from derived classes CommandQueue queue_; Event event_; |