Skip to content

Fix DDLA GPU compilation - #14

Merged
PeizeLin merged 2 commits into
abacusmodeling:masterfrom
Stardust0831:fix/gpu-ddla-accumulation
Oct 22, 2026
Merged

PeizeLin merged 2 commits into
abacusmodeling:masterfrom
Stardust0831:fix/gpu-ddla-accumulation

Conversation

@Stardust0831

@Stardust0831 Stardust0831 commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

The DDLA GPU path fails to compile against DDLA v0.0.4 due to an incorrect function name and a stale cleanup call.

  • Restore ddla::DEVICE_CHECK calls incorrectly renamed in 123517d.
  • Replace destroy_lock_result with destroy_lock and destroy_Ds_result, following the helper split in 6ce3c84.

Validated CPU-only and DDLA v0.0.4/CUDA builds on an NVIDIA V100 with GCC 13.3. Standalone tests checked all 18 contractions with the default fac_add_Ds = 1, empty and seeded outputs, float, double, complex<float> and complex<double>, and 1/4 OpenMP threads. Both CPU modes and the GPU mode passed.

Signed and scaled accumulation requires a separate fix.

Related: deepmodeling/abacus-develop#8169.

@maki49

maki49 commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Agreed. My local branch has verified the same fix.

@userchba

Copy link
Copy Markdown
Contributor

I agree with the device_check fix, the Ds_result_thread need @PeizeLin 's review

Use the external ddla::DEVICE_CHECK function exposed by DDLA v0.0.4. The LibRI macro rename in 123517d incorrectly changed these calls as well.
Follow the cleanup API split from 6ce3c84, releasing locks and removing empty result entries through the same helpers as the CPU paths.
@Stardust0831
Stardust0831 force-pushed the fix/gpu-ddla-accumulation branch from 155fa24 to e2f92bc Compare October 21, 2026 16:37
@Stardust0831 Stardust0831 changed the title Fix DDLA GPU compilation and contraction accumulation Fix DDLA GPU compilation Oct 21, 2026
@PeizeLin
PeizeLin merged commit d891fd9 into abacusmodeling:master Oct 22, 2026
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