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

Bugfix for AMOEBA/HIPPO GPU #3848

Merged
merged 3 commits into from
Jul 14, 2023
Merged

Conversation

ndtrung81
Copy link
Contributor

@ndtrung81 ndtrung81 commented Jul 9, 2023

Summary

This PR is to resolve issues with the GPU version of AMOEBA/HIPPO since PR #3675 regarding changes from acctyp4 to acctyp3 in several arrays, also noting some changes that may be needed for the Intel OCL backend PR #3663.

It seems that for OpenCL the implementation of erfc() is broken on the Intel OpenCL backend, so this is replaced with the approximation used in the coul/long styles for pair styles amoeba and hippo.

Related Issue(s)

This PR is to address the issues reported in https://matsci.org/t/error-in-amoeba-gpu/49518

Author(s)

Trung Nguyen (U Chicago)

Licensing

By submitting this pull request, I agree, that my contribution will be included in LAMMPS and redistributed under either the GNU General Public License version 2 (GPL v2) or the GNU Lesser General Public License version 2.1 (LGPL v2.1).

Backward Compatibility

Implementation Notes

PR #3675 switched from acctyp4 to acctyp3 for the arrays tep and fieldp, which require changes at several places when accumulating these arrays on the CPU.

Post Submission Checklist

  • The feature or features in this pull request is complete
  • Licensing information is complete
  • Corresponding author information is complete
  • The source code follows the LAMMPS formatting guidelines
  • Suitable new documentation files and/or updates to the existing docs are included
  • The added/updated documentation is integrated and tested with the documentation build system
  • The feature has been verified to work with the conventional build system
  • The feature has been verified to work with the CMake based build system
  • Suitable tests have been added to the unittest tree.
  • A package specific README file has been included or updated
  • One or more example input decks are included

Further Information, Files, and Links

… tep, fieldp since the changes in PR lammps#3675, noting some changes with Intel OCL PR lammps#3663
@ndtrung81 ndtrung81 self-assigned this Jul 9, 2023
@ndtrung81 ndtrung81 marked this pull request as draft July 9, 2023 18:11
@akohlmey akohlmey added this to the Stable Release Summer 2023 milestone Jul 9, 2023
@akohlmey akohlmey marked this pull request as ready for review July 14, 2023 17:27
@ndtrung81 ndtrung81 assigned akohlmey and unassigned ndtrung81 Jul 14, 2023
@akohlmey akohlmey merged commit 2090d33 into lammps:develop Jul 14, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants