Nicolas Winkler před 5 roky
rodič
revize
0d910351cc

+ 2 - 1
libmandel/include/ClGenerators.h

@@ -16,6 +16,7 @@ namespace mnd
     class ClGenerator;
     class ClGeneratorFloat;
     class ClGeneratorDouble;
+    class ClGeneratorDoubleDouble;
     class ClGenerator128;
 }
 
@@ -65,7 +66,7 @@ class mnd::ClGeneratorDoubleDouble : public ClGenerator
 {
 public:
     ClGeneratorDoubleDouble(cl::Device device, bool smooth);
-    virtual ~ClGeneratorDouble(void) = default;
+    virtual ~ClGeneratorDoubleDouble(void) = default;
 
     virtual void generate(const MandelInfo& info, float* data);
 protected:

+ 3 - 2
libmandel/src/ClGenerators.cpp

@@ -11,6 +11,7 @@ using namespace cl;
 using mnd::ClGenerator;
 using mnd::ClGeneratorFloat;
 using mnd::ClGeneratorDouble;
+using mnd::ClGeneratorDoubleDouble;
 using mnd::ClGenerator128;
 
 Platform getPlatform() {
@@ -324,7 +325,7 @@ ClGeneratorDoubleDouble::ClGeneratorDoubleDouble(cl::Device device, bool smooth)
 }
 
 
-void ClGeneratorDouble::generate(const mnd::MandelInfo& info, float* data)
+void ClGeneratorDoubleDouble::generate(const mnd::MandelInfo& info, float* data)
 {
     ::size_t bufferSize = info.bWidth * info.bHeight * sizeof(float);
 
@@ -346,7 +347,7 @@ void ClGeneratorDouble::generate(const mnd::MandelInfo& info, float* data)
 }
 
 
-std::string ClGeneratorDouble::getKernelCode(bool smooth) const
+std::string ClGeneratorDoubleDouble::getKernelCode(bool smooth) const
 {
     return
         "#pragma OPENCL EXTENSION cl_khr_fp64 : enable\n"