Skip to content

optimize format_nlist_i_cpu#1717

Merged
wanghan-iapcm merged 1 commit intodeepmodeling:develfrom
njzjz:optimize-format_nlist_i_cpu
May 18, 2022
Merged

optimize format_nlist_i_cpu#1717
wanghan-iapcm merged 1 commit intodeepmodeling:develfrom
njzjz:optimize-format_nlist_i_cpu

Conversation

@njzjz
Copy link
Member

@njzjz njzjz commented May 18, 2022

  1. Compare square value instead of square root value. Square root is expensive.
  2. Compare float instead of double, considering rcut is provided as float.

ProdEnvMatA (CPU) is observed to improve over 5%.

1. Compare square value instead of square root value. Square root is expensive.
2. Compare float instead of double, considering rcut is provided as float.

`ProdEnvMatA` (CPU) is observed to improve over 5%.
@njzjz njzjz requested a review from wanghan-iapcm May 18, 2022 04:56
@codecov-commenter
Copy link

codecov-commenter commented May 18, 2022

Codecov Report

Merging #1717 (f133eb2) into devel (f1b8dca) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##            devel    #1717   +/-   ##
=======================================
  Coverage   76.03%   76.03%           
=======================================
  Files          94       94           
  Lines        7875     7875           
=======================================
  Hits         5988     5988           
  Misses       1887     1887           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f1b8dca...f133eb2. Read the comment docs.

@wanghan-iapcm wanghan-iapcm merged commit c2e6b45 into deepmodeling:devel May 18, 2022
mingzhong15 pushed a commit to mingzhong15/deepmd-kit that referenced this pull request Jan 15, 2023
1. Compare square value instead of square root value. Square root is expensive.
2. Compare float instead of double, considering rcut is provided as float.

`ProdEnvMatA` (CPU) is observed to improve over 5%.
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

Successfully merging this pull request may close these issues.

4 participants