Hi All,
I just discovered the k-wave toolbox and I must say that I am really impressed by its capabilities.
I am trying to modify the example 'example_tvsp_3D_simulation' so that it runs on the GPU. For this I am using GPUMat. The input parameters are adjusted as follows:
input_args = {'DisplayMask', source.p_mask, 'DataCast', 'GPUsingle',...
'CartInterp', 'nearest','DataRecast',true};
and this is the only adjustment made.
Running this example then gives
Error using .*
Number of array dimensions must match for binary array operation. (ERROR code 15)
Error in GPUtype/bsxfun (line 19)
y = feval(f,a,b);
Error in kspaceFirstOrder3D (line 822)
ux_sgx = bsxfun(@times, pml_x_sgx, ...
Error in example_tvsp_3D_simulation (line 80)
sensor_data = kspaceFirstOrder3D(kgrid, medium, source, sensor, input_args{:});
Any help would be appreciated.
Martijn