OpenClCode.cpp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #include "OpenClCode.h"
  2. #include "opencl/float.h"
  3. #include "opencl/double.h"
  4. #include "opencl/doublefloat.h"
  5. #include "opencl/doubledouble.h"
  6. #include "opencl/quaddouble.h"
  7. #include "opencl/fixed64.h"
  8. #include "opencl/fixed128.h"
  9. #include "opencl/fixed512.h"
  10. namespace mnd
  11. {
  12. std::string getFloat_cl() {
  13. return std::string{ (char*) float_cl, float_cl_len };
  14. }
  15. std::string getDouble_cl() {
  16. return std::string{ (char*) double_cl, double_cl_len };
  17. }
  18. std::string getDoubleFloat_cl() {
  19. return std::string{ (char*) doublefloat_cl, doublefloat_cl_len };
  20. }
  21. std::string getDoubleDouble_cl() {
  22. return std::string{ (char*) doubledouble_cl, doubledouble_cl_len };
  23. }
  24. std::string getQuadDouble_cl() {
  25. return std::string{ (char*) quaddouble_cl, quaddouble_cl_len };
  26. }
  27. std::string getFixed64_cl() {
  28. return std::string{ (char*) fixed64_cl, fixed64_cl_len };
  29. }
  30. std::string getFixed128_cl() {
  31. return std::string{ (char*) fixed128_cl, fixed128_cl_len };
  32. }
  33. std::string getFixed512_cl() {
  34. return std::string{ (char*) fixed512_cl, fixed512_cl_len };
  35. }
  36. }