| 39 | } |
| 40 | |
| 41 | void b3FillCL::execute(b3OpenCLArray<float>& src, const float value, int n, int offset) |
| 42 | { |
| 43 | b3Assert(n > 0); |
| 44 | |
| 45 | { |
| 46 | b3LauncherCL launcher(m_commandQueue, m_fillFloatKernel, "m_fillFloatKernel"); |
| 47 | launcher.setBuffer(src.getBufferCL()); |
| 48 | launcher.setConst(n); |
| 49 | launcher.setConst(value); |
| 50 | launcher.setConst(offset); |
| 51 | |
| 52 | launcher.launch1D(n); |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | void b3FillCL::execute(b3OpenCLArray<int>& src, const int value, int n, int offset) |
| 57 | { |
no test coverage detected