Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@JonasTrenkler
Copy link
Collaborator

@JonasTrenkler JonasTrenkler commented Apr 8, 2025

Previously OpenMP was necessary to build the project. With this, a missing OpenMP Installation should no longer fail the build.
This might be useful if a faster Accelerator like CUDA is available.

The behaviour be configured with CMAKE flags (analog to CUDA):
RAYX_ENABLE_OPENMP builds with OpenMP support if available (Default ON).
RAYX_REQUIRE_OPENMP makes it required (Default: OFF).

Rayx should already fall back to single threaded sequential execution, if the corresponding Alpaka flags for faster Accelerators are disabled (seePlatform.h).
Disabling OpenMP is only possible at compile time, there is no command line option for rayx to chose which CPU Accelerator is used.

Previously OpenMP was necessary to build the project. Missing OpenMP
should no longer fail the build. This can now be configured with CMAKE
flags analog to CUDA.
RAYX_ENABLE_OPENMP builds with OpenMP support if available (Default ON).
RAYX_REQUIRE_OPENMP makes it required (Default: OFF).
Rayx should already fall back to single threaded sequential execution if
the corresponding Alpaka flags for faster devices are disabled. (see
Platform.h)
Forces a build without OpenMP support by setting the RAYX_ENABLE_OPENMP
to OFF. No changes to the current behavior.
@JonasTrenkler JonasTrenkler self-assigned this Apr 8, 2025
@JonasTrenkler
Copy link
Collaborator Author

Optional dependency and new CMAKE flags still need to be documented in the build instructions. Probably after or as part of #340 ?

@JonasTrenkler JonasTrenkler marked this pull request as ready for review April 8, 2025 11:36
@JonasTrenkler JonasTrenkler requested a review from ichinii April 8, 2025 11:36
@JonasTrenkler JonasTrenkler merged commit 969e8b5 into master Apr 17, 2025
6 checks passed
@JonasTrenkler JonasTrenkler deleted the feature/openmp-optional branch April 17, 2025 14:42
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