[wip] charmpp : fix build prefix, introduce new property charmarch#15666
[wip] charmpp : fix build prefix, introduce new property charmarch#15666scheibelp merged 43 commits intospack:developfrom
Conversation
|
Looks good imo. I'm not sure about the namd/pthreads issue, but this might be better in a separate PR? Regarding the |
|
Any update on #15186 (comment) ? I'll fix the flake8 issues soon. |
| # https://github.com/UIUC-PPL/charm/issues/2477 | ||
| variant( | ||
| "ucx-pmi", | ||
| default="simplePMI", |
There was a problem hiding this comment.
As far as I know, PMIx is the version with the best support in Charm++ currently, maybe this could be the default.
There was a problem hiding this comment.
For both ucx and non-ucx installs ?
There was a problem hiding this comment.
I think PMI is only used when building with ucx, but @nitbhat may be able to confirm.
|
Also pinging @nitbhat for review. |
|
Looks like the |
As far as I know, it is still supported. Do you get an error when building with it? |
I think this is saying that Side note: I merged #16003 but had to revert it because of other test interactions that have cropped up since that PR was created. There is a WIP PR at #16429. I anticipate finishing it by 5/5 |
The exact quote from the Thus, it's a (runtime?) dependency of I also added the git repo for Should I keep the git url for now and let the fetch options be fixed later or remove it ? Thanks for cleaning up the mpi tests! Once #16429 is merged, the CI for this can be re-run. |
This fixes some errors with setting up test configuration. These errors do not cause current Spack tests to fail but do create red herring issues elsewhere (see #15666). Fixing these errors leads to more errors in tests that depended on the original misconfigured state, so those are also addressed here. This is an update to #16003 which accounts for some unit tests with conflicting config/mutable_config fixtures. These conflicts were not exposed until the mutable_config fixture was fixed. Details are included below. The change which builds on #16003 is prefixed with "(new)". * For tests that use the real Spack package repository, the config needs to avoid using MPI providers that are not intended to be installed by Spack. Without this, it is possible that Spack tests which concretize the MPI virtual will end up trying to use an implementation that it shouldn't (e.g. one that is always provided externally). See #15666 for an example. * The mutable_config test fixture was not initializing the scope roots to the right directories (so the resulting config was empty). * The current_host fixture in the concretize.py tests was using the config fixture rather than mutable_config, and was polluting the config cache for other tests. * One test in concretize.py was clearing a nonexistent cache (PackagePrefs._packages_config_cache). This reference has been removed. * The test 'test_preferred_compilers' was was depending on cross test config pollution to succeed. The initial spec before concretization has been updated to updated to be explicit about the desired result. * (new) For tests that use install_mockery and mutable_config, replace install_mockery with a separate install_mockery_mutable_config fixture that is exactly the same as install_mockery but uses the mutable_config fixture to avoid conflicts.
|
@scheibelp : Any clue as to why the tests detect |
Let me try closing/reopening this - I'm trying to remember when the CI decides to rebase on develop and I think closing/reopening is one of the cases where it does. |
|
Looks like that didn't work, would merging develop into this branch help ? |
Yes that would work for sure - thanks! |
|
@alalazo just pointed out to me that there's a test that actually needs to be updated here: @s-sajid-ali would you be able to update that unit test? |
|
@scheibelp : That fixed the issue! Could this PR get a final review now that the tests pass? |
|
LGTM - thanks! |
* charmc: make sure to link against pthread when using CkLoop Should help with issues such as the one seen here: spack/spack#15666 * dont link when SMP or Windows
fixes #15803
Rationale : As explained in #15186 (comment)
I had to add
-lpthreadas without this I was getting errors regarding undefined symbols. I temporarily commented out thebackend=mpi providesas this was causing concretization errors (when building with+openmpi/pmixas specified innamdinstructions). What would be the long term fix for this ?Successfully built spec documented here.
Sanity check :
Requesting @matthiasdiener for review !