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

Remove remnants of RAJA module usage #1150

Closed
kab163 opened this issue Nov 2, 2021 · 6 comments
Closed

Remove remnants of RAJA module usage #1150

kab163 opened this issue Nov 2, 2021 · 6 comments

Comments

@kab163
Copy link
Contributor

kab163 commented Nov 2, 2021

After reviewing PR #1119, we discovered that the -fmodules flag was never actually being used. Although a user could turn on ENABLE_MODULES, the if statement in SetUpCompiler.cmake only checked a non-existent "RAJA_ENABLE_MODULES" option, making the if statement never evaluate to true and the -fmodules flag was never used. However, PR #1119 created a RAJA_ENABLE_MODULES option, and we discovered this broke the RAJA build.

That option was subsequently taken out of the PR branch, but we should document in the user guide how to enable the modules for CMake and regular make based build systems. This should be done for the next release.

@kab163
Copy link
Contributor Author

kab163 commented Nov 5, 2021

@rhornung67 David made the point that since the ENABLE_MODULES flag never worked in RAJA develop, nobody was really using it anyways. The cmake prefix PR exposed this bug and took out the modules option, but just in case anybody does try to use the new version of that flag, RAJA_ENABLE_MODULES, it gives the deprecated warning and a message that the "-fmodules" flag could be added manually.

if (RAJA_ENABLE_MODULES)
message(WARNING "RAJA_ENABLE_MODULES is deprecated, please add the -fmodules flag manually if desired.")
set(RAJA_ENABLE_MODULES Off CACHE BOOL "" FORCE)
endif()
Given all that, do you think any more should be done to document this?

@kab163
Copy link
Contributor Author

kab163 commented Nov 5, 2021

One note though - maybe we should remove the module map file stuff after next release (so maybe there is something to do for this issue - almost forgot about that).

@rhornung67
Copy link
Member

We need to rip this stuff out.

@rhornung67 rhornung67 self-assigned this Apr 18, 2023
@rhornung67 rhornung67 changed the title Document how to enable RAJA Modules Remove remnants of RAJA module usage Apr 18, 2023
@rhornung67
Copy link
Member

@kab163 this can be closed, right?

@kab163
Copy link
Contributor Author

kab163 commented Mar 7, 2024

@kab163 this can be closed, right?

yes!

@kab163
Copy link
Contributor Author

kab163 commented Mar 7, 2024

Fixed with #1592

@kab163 kab163 closed this as completed Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants