You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have developed a structured 2D hydrocode in Julia. The code has been array-vectorized.
Performance is not so bad, but below Matlab. Typical instruction lines for such computational codes are :
Hi,
I have developed a structured 2D hydrocode in Julia. The code has been array-vectorized.
Performance is not so bad, but below Matlab. Typical instruction lines for such computational codes are :
const LEFT = [1, 1:N];
const RIGT = [1:N, N];
...
up = max(u_intx, 0.0);
phix_rho = rho_lag[LEFT, :] .* up + rho_lag[RIGT, :] .* (u_intx-up);
...
U.rho = U.rho - (dt/h) * (phix_rho[2:N+1, :] - phix_rho[1:N, :]) - (dt/h) * (phiy_rho[:, 2:N+1] - phiy_rho[:, 1:N]);
How to improve performance ? Is it scheduled in the next releases to improve array-based vector code ?
Best regards, florian
The text was updated successfully, but these errors were encountered: