Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vectorized code performance #11220

Closed
floriandevuyst opened this issue May 10, 2015 · 4 comments
Closed

Vectorized code performance #11220

floriandevuyst opened this issue May 10, 2015 · 4 comments

Comments

@floriandevuyst
Copy link

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

@floriandevuyst
Copy link
Author

NB : I can let the code to Julia core developers as a miniapp for performance assessment and LLVM improvement in you want,

Regards, florian

@timholy
Copy link
Sponsor Member

timholy commented May 10, 2015

This is better posted as a question on julia-users. See the many existing pull requests on arrays, and #7941.

@timholy timholy closed this as completed May 10, 2015
@JeffBezanson
Copy link
Sponsor Member

See also #1168

@floriandevuyst
Copy link
Author

Thank you for the link,

Regards, florian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants