|
|
@ -28,6 +28,10 @@ MainWindow::MainWindow(QWidget *parent) |
|
|
|
.getDevicesByContext( |
|
|
|
_CLContext)[0]); |
|
|
|
|
|
|
|
_scratchPad = new Buffer(_CLContext, CL_MEM_READ_WRITE, 1024); |
|
|
|
_scratch = new double[128]; |
|
|
|
CLQueue.enqueueWriteBuffer(*_scratchPad, CL_TRUE, 0, 1024, _scratch); |
|
|
|
|
|
|
|
registerStrategies(); |
|
|
|
_strategy = Q_NULLPTR; |
|
|
|
} |
|
|
@ -182,7 +186,8 @@ void MainWindow::on_btn_test_clicked() |
|
|
|
update_field(&_scenGenOutput.outputWidth, OUT_WIDTH); |
|
|
|
update_field(&_scenGenOutput.outputHeight, OUT_HEIGHT); |
|
|
|
_strategy->cpuProcess(_scenGenOutput); |
|
|
|
auto outFrame = _strategy->processKernel(inFrame); |
|
|
|
|
|
|
|
auto outFrame = _strategy->processKernel(inFrame, _scratchPad); |
|
|
|
|
|
|
|
char *out; |
|
|
|
out = (char*)malloc(OUT_WIDTH * OUT_WIDTH * sizeof (char) * sizeof (myflt)); |
|
|
|