Skip to content

Reenable HIP support#250

Merged
ABandet merged 7 commits intomainfrom
feature/hipsupport
Mar 20, 2026
Merged

Reenable HIP support#250
ABandet merged 7 commits intomainfrom
feature/hipsupport

Conversation

@acitrain
Copy link
Collaborator

This PR reenable HIP support

It has been tested on AMD architecture, we just need to check performance in the future

@acitrain acitrain self-assigned this Feb 23, 2026
@acitrain acitrain added enhancement New feature or request compilation Impacts project compilation (cmake, etc.) labels Feb 23, 2026
@acitrain acitrain linked an issue Feb 23, 2026 that may be closed by this pull request
Copy link
Collaborator

@ABandet ABandet left a comment

Choose a reason for hiding this comment

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

We should have some sort of security where user cannot activate HIP and CUDA at the same time.

@acitrain
Copy link
Collaborator Author

We should have some sort of security where user cannot activate HIP and CUDA at the same time.

Yes you are right, it is done ! :)

@acitrain acitrain requested a review from ABandet February 26, 2026 14:41
@acitrain acitrain added the SCCACHE_OFF Turns of sccache in CI/CD builds label Feb 26, 2026
float const v5 = lambda * Jp1 * Jr2 + mu * Jp2 * Jr1;

#ifdef __CUDACC__
#if defined(__CUDACC__) || defined(__HIPCC__)
Copy link
Contributor

Choose a reason for hiding this comment

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

can we set a common macro ?

#define GPU_ENABLED (defined(__CUDACC__) || defined(__HIPCC__))

then reuse as

#if GPU_ENABLED

so it can be easily modified/extended if need be.

Copy link
Collaborator

@ABandet ABandet left a comment

Choose a reason for hiding this comment

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

Works on enbata (plafrim machine). But kind of slow.

@ABandet ABandet merged commit 36d61f9 into main Mar 20, 2026
5 checks passed
@ABandet ABandet deleted the feature/hipsupport branch March 20, 2026 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

compilation Impacts project compilation (cmake, etc.) enhancement New feature or request SCCACHE_OFF Turns of sccache in CI/CD builds

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HIP support

3 participants