Skip to content

fix(kernels): rename kernel_add in fused_encoder_bwd#87

Merged
dndungu merged 1 commit intomainfrom
fix/encoder-bwd-symbol-clash
Apr 10, 2026
Merged

fix(kernels): rename kernel_add in fused_encoder_bwd#87
dndungu merged 1 commit intomainfrom
fix/encoder-bwd-symbol-clash

Conversation

@dndungu
Copy link
Copy Markdown
Contributor

@dndungu dndungu commented Apr 10, 2026

Summary

  • Rename kernel_add to kernel_enc_bwd_add in fused_encoder_bwd.cu to avoid duplicate symbol error when linking with elementwise.cu into libkernels.so.

Test plan

  • Verified kernel compilation on DGX: nvcc -O3 --use_fast_math -arch=sm_121 compiles both fused_encoder_fwd.cu and fused_encoder_bwd.cu
  • Verified linking: nvcc -shared -o libkernels.so *.pic.o -lcublas succeeds (libkernels.so = 2.4MB)
  • Verified PatchTST benchmark: 28K×20×10 = 39.9s, 4.0s/epoch, 99.9% convergence

…clash

The fused encoder backward file defined kernel_add which clashes with
the same symbol in elementwise.cu when linking into libkernels.so.
Rename to kernel_enc_bwd_add to avoid the duplicate symbol error.
@dndungu dndungu merged commit 716bbd6 into main Apr 10, 2026
1 check passed
@dndungu dndungu deleted the fix/encoder-bwd-symbol-clash branch April 10, 2026 20:43
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.

1 participant