Skip to content

Add Alpaka backend support for HardSigmoid, HardSwish, and Softplus - #13

Open
AdityaDRathore wants to merge 3 commits into
ML4EP:gpu/alpakafrom
AdityaDRathore:feature/hardsigmoid-hardwish-softplus-op
Open

Add Alpaka backend support for HardSigmoid, HardSwish, and Softplus#13
AdityaDRathore wants to merge 3 commits into
ML4EP:gpu/alpakafrom
AdityaDRathore:feature/hardsigmoid-hardwish-softplus-op

Conversation

@AdityaDRathore

@AdityaDRathore AdityaDRathore commented Mar 9, 2026

Copy link
Copy Markdown

this PR adds the Alpaka GPU implementations for hardsigmoid, hardswish and Softplus operators.

@sanjibansg sanjibansg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this implementation. Could you also add some tests to validate the operators, suited to the alpaka library usage.

@AdityaDRathore

Copy link
Copy Markdown
Author

Hi @sanjibansg, I have updated the PR with heterogeneous implementation for all three operators (Hardsgmoid, Hardswish, Softplus). While doing this, I found a few issues during the implementation, so to keep this PR clean I have created issues for them. #46 #47

@AdityaDRathore
AdityaDRathore changed the base branch from dev to gpu/alpaka August 5, 2026 09:23
@AdityaDRathore
AdityaDRathore force-pushed the feature/hardsigmoid-hardwish-softplus-op branch from 2feae8b to 4f5c0c7 Compare August 5, 2026 09:45
@AdityaDRathore AdityaDRathore changed the title feat: Add HardSigmoid, HardSwish, and stabilized Softplus operators Add Alpaka backend support for HardSigmoid, HardSwish, and Softplus Aug 5, 2026

@sanjibansg sanjibansg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @AdityaDRathore,
Thanks for the changes, can you fix the cmake errors listed below? So, that we can go ahead with the unit testing?

Comment thread core/CMakeLists.txt
Comment on lines +24 to +25
ROperator_HardSigmoid.hxx
ROperator_HardSwish.hxx

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ROperator_HardSigmoid.hxx
ROperator_HardSwish.hxx
SOFIE/ROperator_HardSigmoid.hxx
SOFIE/ROperator_HardSwish.hxx

Comment thread parsers/CMakeLists.txt
Comment on lines +36 to +37
ParseHardSigmoid.cxx
ParseHardSwish.cxx

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ParseHardSigmoid.cxx
ParseHardSwish.cxx
src/ParseHardSigmoid.cxx
src/ParseHardSwish.cxx

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.

2 participants