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

Weird memory allocation numbers #260

Closed
PetrKryslUCSD opened this issue Dec 9, 2019 · 4 comments
Closed

Weird memory allocation numbers #260

PetrKryslUCSD opened this issue Dec 9, 2019 · 4 comments

Comments

@PetrKryslUCSD
Copy link

With Julia 1.3, julia --track-allocation=user. The measurement was collected during a second run, after clearing the malloc data after the first run. Code fragment from a .mem file:

        0     lambda = E * nu / (1 + nu) / (1 - 2*(nu));
        0     mu = E / 2. / (1+nu);
   860578     mI = diagm(0=>[1, 1, 1, 0.5, 0.5, 0.5]);
      768     m1m1 = _m1*_m1';
  3499241     I3 = [1.0 0 0; 0 1.0 0; 0 0 1.0]
     2016     b = [0.0 0 0; 0 0.0 0; 0 0 0.0]
     2016     sigma = [0.0 0 0; 0 0.0 0; 0 0 0.0]
     6560     return MatDeforNeohookean(mr, mass_density, E, nu, lambda, mu,
        - 		              tangentmoduli3d!, update3d!, 
        - 		              deepcopy(mI), deepcopy(m1m1), deepcopy(I3), deepcopy(b), deepcopy(sigma))

How does one interpret the above? The function with this code is called once.
Where does all the allocation come from?

@DilumAluthge
Copy link
Member

Is this the raw output that you get from julia --track-allocation=user?

If so, you should open this issue on the main JuliaLang/julia repository.

@PetrKryslUCSD
Copy link
Author

Good point, done. Thank you.

@DilumAluthge
Copy link
Member

This issue has been cross-posted to JuliaLang/julia#34054

@vtjnash
Copy link
Member

vtjnash commented Jan 6, 2020

Closing as this is being tracked upstream now

@vtjnash vtjnash closed this as completed Jan 6, 2020
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