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

Remove std::vector completely #5

Merged
merged 8 commits into from
May 2, 2024
Merged

Remove std::vector completely #5

merged 8 commits into from
May 2, 2024

Conversation

monk-04
Copy link
Member

@monk-04 monk-04 commented May 2, 2024

These objects held the bspline basis set object (uf3_pair_bspline and uf3_triplet_bspline) for 2- and 3-body interaction at UFBS2b[itype][jtype] and UFBS3b[itype][jtype][ktype].

These std::vectors were removed. New arrays (cached_constants_2b, cached_constants_2b_deri, cached_constants_3b, cached_constants_3b_deri) were added that hold the cached coefficients of the bspline basis set.

In the compute function, instead of calling the 'eval' method of UFBS2b[itype][jtype] or UFBS3b[itype][jtype][ktype], the bsplines are computed directly. This led to a speed-up of about ~30% for the CPU code.

The UF3Impl PIMPLE was also removed as it is no longer needed.

The memory_usage function needs to be updated.

These objects held the bspline basis set object (uf3_pair_bspline and uf3_triplet_bspline) for 2- and 3-body interaction at UFBS2b[itype][jtype] and UFBS3b[itype][jtype][ktype].
These std:vectors were removed. New arrays (cached_constants_2b, cached_constants_2b_deri, cached_constants_3b, cached_constants_3b_deri) were added that holds the cached coefficients of the bspline basis set. The UF3Impl PIMPLE was also removed as it is not longer needed. The memory_usage function needs to updated
…ssors was getting some weird errors.

Deleted commented (dead) code.
Updated the memory_usage function.
Reordered some functions to refelect the calling order
@monk-04
Copy link
Member Author

monk-04 commented May 2, 2024

The memory_usage function has been updated

@monk-04 monk-04 marked this pull request as ready for review May 2, 2024 23:29
@monk-04
Copy link
Member Author

monk-04 commented May 2, 2024

Looks good to me!

@monk-04 monk-04 merged commit 94ab3c2 into uf3:ml-uf3 May 2, 2024
@monk-04 monk-04 deleted the ml-uf3 branch May 2, 2024 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant