OpenClCode.cpp 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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/tripledouble.h"
  7. #include "opencl/quaddouble.h"
  8. #include "opencl/hexdouble.h"
  9. #include "opencl/fixed64.h"
  10. #include "opencl/fixed128.h"
  11. #include "opencl/fixed512.h"
  12. namespace mnd
  13. {
  14. std::string getFloat_cl() {
  15. return std::string{ (char*) float_cl, float_cl_len };
  16. }
  17. std::string getDouble_cl() {
  18. return std::string{ (char*) double_cl, double_cl_len };
  19. }
  20. std::string getDoubleFloat_cl() {
  21. return std::string{ (char*) doublefloat_cl, doublefloat_cl_len };
  22. }
  23. std::string getDoubleDouble_cl() {
  24. return std::string{ (char*) doubledouble_cl, doubledouble_cl_len };
  25. }
  26. std::string getTripleDouble_cl() {
  27. return std::string{ (char*) tripledouble_cl, tripledouble_cl_len };
  28. }
  29. std::string getQuadDouble_cl() {
  30. return std::string{ (char*) quaddouble_cl, quaddouble_cl_len };
  31. }
  32. std::string getHexDouble_cl() {
  33. return std::string{ (char*) hexdouble_cl, hexdouble_cl_len };
  34. }
  35. std::string getFixed64_cl() {
  36. return std::string{ (char*) fixed64_cl, fixed64_cl_len };
  37. }
  38. std::string getFixed128_cl() {
  39. return std::string{ (char*) fixed128_cl, fixed128_cl_len };
  40. }
  41. std::string getFixed512_cl() {
  42. return std::string{ (char*) fixed512_cl, fixed512_cl_len };
  43. }
  44. }