Hello, we are building hardware for ultrasonic diagnostics. We got fixed grid of emiters and detectors, algorythm to build image (or 3d model) from diagnostics is to minimize error bitween diagnostics result and simulation of kWaveFirstOrder, so we need to run kWaveFirstOrder multiple times. Do you have any hints to make GPU code faster for our case?
k-Wave
A MATLAB toolbox for the time-domain
simulation of acoustic wave fields
Hint to make GPU version faster for fixed setup
(3 posts) (2 voices)-
Posted 4 years ago #
-
Also can we and how could we throw away matlab?
Posted 4 years ago # -
Hi mattspr,
Are you using the C++/CUDA code? This doesn't require MATLAB to run. You can create the input HDF5 file using any programming language with HDF5 support (there are some python examples on the forum). Altnernatively, you can compile MATLAB code (e.g., using
mcc
) and then running it only requires the MATLAB runtime (which can be freely distributed).What is the slow part in your simulation? If it's the actual calculation (i.e., running k-Wave), then there's not much to be done unfortunately, as the C++/CUDA code is already pretty optimised. If it's saving / reading the input and output files, then in principle you could modify the C++/CUDA code so that the required input matrices are generated internally, rather than being loaded from a HDF5 file, although that would take quite a bit of work.
Hope that helps,
Brad
Posted 4 years ago #
Reply
You must log in to post.