Skip to content

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

Merged
hjabird merged 2 commits intouxlfoundation:developfrom
hjabird:hjab/portfft_check_target_support
Jun 17, 2024
Merged

[DFT][CMake] Check CUDA support with portFFT before using it as a target#511
hjabird merged 2 commits intouxlfoundation:developfrom
hjabird:hjab/portfft_check_target_support

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.

@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 uxlfoundation:develop Jun 17, 2024
normallytangent pushed a commit to normallytangent/oneMKL that referenced this pull request Aug 6, 2024
…get (uxlfoundation#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 uxlfoundation#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