diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cupp11.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cupp11.hpp b/src/cupp11.hpp index 509ae3e8..a1cb1614 100644 --- a/src/cupp11.hpp +++ b/src/cupp11.hpp @@ -678,8 +678,8 @@ public: } // Regular constructor with memory management - explicit Kernel(const Program &program, const std::string &name): name_(name) { - CheckError(cuModuleGetFunction(&kernel_, program.GetModule(), name.c_str())); + explicit Kernel(const std::shared_ptr<Program> program, const std::string &name): name_(name) { + CheckError(cuModuleGetFunction(&kernel_, program->GetModule(), name.c_str())); } // Sets a kernel argument at the indicated position. This stores both the value of the argument |