Hi,
When I change kspaceFirstOrder2D() to kspaceFirstOrder2DG(), Matlab reports the following error:
Should I have to install compiler?
My PC system is below
======================================
OS : Window 10
CPU : Intel(R) Core(TM) i7-8700K
GPU : NVIDIA GeForce GTX 1080
======================================
=======Command window=================
>>example_us_beam_patterns
k-Wave Transducer Properties
transducer position: [1 6 16]
transducer width: 14.5455mm (32 grid points)
number of elements: 32
number of active elements: 32 (elements 1 to 32)
element width: 454.5455um (1 grid points)
element spacing (kerf): 0m (0 grid points)
element pitch: 454.5455um (1 grid points)
element length: 5.4545mm (12 grid points)
sound speed: 1540m/s
focus distance: 20mm
elevation focus distance: 19mm
steering angle: 0 degrees
steering angle max: auto degrees
Running k-Wave simulation...
start time: 14-Mar-2020 10:59:07
reference sound speed: 1540m/s
prepending transducer.input_signal with 10 leading zeros
appending transducer.input_signal with 10 trailing zeros
dt: 88.5478ns, t_end: 44.9823us, time steps: 509
input grid size: 88 by 44 by 44 grid points (40 by 20 by 20mm)
maximum supported frequency: 1.694MHz
expanding computational grid...
computational grid size: 128 by 64 by 64 grid points
precomputation completed in 0.091849s
saving input files to disk...
completed in 1.042s
+---------------------------------------------------------------+
| kspaceFirstOrder-CUDA v1.3 |
+---------------------------------------------------------------+
| Reading simulation configuration: Failed |
+---------------------------------------------------------------+
+---------------------------------------------------------------+
| !!! K-Wave experienced a fatal error !!! |
+---------------------------------------------------------------+
| Error: File C:\Users\최영수\AppData\Local\Temp\kwave_input_ |
| data14-Mar-2020-10-59-07.h5 was not found or cannot |
| be opened.: iostream stream error |
+---------------------------------------------------------------+
| Execution terminated |
+---------------------------------------------------------------+
Error using h5readc
The filename specified was either not found on the MATLAB path or it contains unsupported characters.
Error in h5read (line 66)
[data,var_class] = h5readc(Filename,Dataset,start,count,stride);
Error in kspaceFirstOrder3DC (line 569)
Nx = h5read(output_filename, '/Nx');
Error in kspaceFirstOrder3DG (line 69)
sensor_data = kspaceFirstOrder3DC(varargin{:});
Error in example_us_beam_patterns (line 180)
sensor_data = kspaceFirstOrder3DG(kgrid, medium, transducer, sensor, input_args{:});