Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DFT][CMake] Check CUDA support with portFFT before using it as a target #511

Merged
merged 2 commits into from
Jun 17, 2024

Conversation

hjabird
Copy link
Contributor

@hjabird hjabird commented Jun 12, 2024

Description

  • The portFFT backends targets Nvidia by default
  • In some situations, this causes a failure whilst compiling (CUDA might not be installed)
  • This checks the target is supported before use

This solves the issue in the PR at #495 (comment)

Checklist

All Submissions

  • [N/A] Do all unit tests pass locally? Attach a log.
  • [N/A] Have you formatted the code using clang-format?

* The portFFT backends targets Nvidia by default
* In some situations, this causes a failure whilst compiling (CUDA might not be installed)
* This checks the target is supported before use
Copy link
Contributor

@Rbiessy Rbiessy left a comment

Choose a reason for hiding this comment

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

Can you also remove the CMAKE_CXX_FLAGS in the GitHub CI for portFFT? https://github.com/oneapi-src/oneMKL/blob/develop/.github/workflows/pr.yml#L27
I think the CI in the PR will take these changes into account.

src/dft/backends/portfft/CMakeLists.txt Show resolved Hide resolved
@hjabird
Copy link
Contributor Author

hjabird commented Jun 12, 2024

Can you also remove the CMAKE_CXX_FLAGS in the GitHub CI for portFFT? https://github.com/oneapi-src/oneMKL/blob/develop/.github/workflows/pr.yml#L27 I think the CI in the PR will take these changes into account.

Done in 78a3eb5

@hjabird
Copy link
Contributor Author

hjabird commented Jun 13, 2024

@mkrainiuk, @rscohn2 It'd be great to have your input.

@rscohn2
Copy link
Member

rscohn2 commented Jun 13, 2024

Looks good. It will simplify use for non nvidia users.

@hjabird hjabird merged commit 6c23467 into oneapi-src:develop Jun 17, 2024
6 checks passed
normallytangent pushed a commit to normallytangent/oneMKL that referenced this pull request Aug 6, 2024
…get (oneapi-src#511)

* The portFFT backends targets Nvidia by default
* In some situations, this causes a failure whilst compiling (CUDA might not be installed)
* This checks the target is supported before use

This solves the issue in PR oneapi-src#495
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.

3 participants