OpenClCode.cpp 1.3 KB

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