Skip to content

Conversation

@dzzz2001
Copy link
Collaborator

@dzzz2001 dzzz2001 commented Feb 2, 2026

Summary

  • Extract common spherical harmonics computation into a shared header (source/source_base/kernels/cuda/sph_harm_gpu.cuh)
  • Add unified ylmcoef.h for spherical harmonics coefficients
  • Remove duplicate sph_harm implementations from gint and rt modules, replacing with the unified version
  • Reduces code duplication and ensures consistent behavior across all CUDA kernels

🤖 Generated with Claude Code

dzzz2001 and others added 4 commits February 3, 2026 02:27
Extract common spherical harmonics computation into a shared header
(sph_harm_gpu.cuh) and remove duplicate implementations from gint
and rt modules. This improves code maintainability and ensures
consistent behavior across all CUDA kernels.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@mohanchen mohanchen added Refactor Refactor ABACUS codes Useful Information Useful information for others to learn/study The Absolute Zero Reduce the "entropy" of the code to 0 labels Feb 3, 2026
@mohanchen mohanchen changed the title Refactor: Unify CUDA spherical harmonics (sph_harm) implementation Refactor: Unify CUDA spherical harmonics (sph_harm) implementation (Useful information for using Ylm in both CPU and GPU coding) Feb 3, 2026
@mohanchen mohanchen merged commit c03a934 into develop Feb 3, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Refactor Refactor ABACUS codes The Absolute Zero Reduce the "entropy" of the code to 0 Useful Information Useful information for others to learn/study

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants