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

Vehre/async alloc comp support #276

Merged
merged 5 commits into from
Dec 14, 2016
Merged

Conversation

zbeekman
Copy link
Collaborator

Supersedes PR #261, #259

@afanfa signed off on #261 but I wanted to clean it up and add some conditionals around the tests requiring GCC 7 so that they don't get built.

src/tests/unit/init_register/check_remote_alloced_comp_1.f90 is anticipated to fail when building with GCC 7 until #260 is finished

vehre and others added 4 commits December 13, 2016 20:04
  libcaf.h/mpi_caf.c:
  -------------------
  Changed the library API to needs of gcc-7 by adding
  the new constants for caf_register and caf_deregister.
  Changing the interface of caf_deregster to take the dereg mode and
  adding the prototype for caf_is_present().
  The inquiry function caf_is_present() is available as protoype only and
  error stops as unimplemented when called.

  tests/unit/init_register/*rename_me*:
  -------------------------------------
  Renaming to reasonable filename done.

  tests/unit/init_register/register_alloc_comp_[1-3].f90:
  -------------------------------------------------------
  Testing that allocation of (scalar|vector|matrix) components works.

  src/tests/unit/init_register/check_remote_alloced_comp_1.f90:
  -------------------------------------------------------------
  Testing that asynchronous allocation of scalar components works.
  The test fails/hangs for two reasons at the moment:
   1. caf_register is not asynchronously allocation components,
   2. caf_is_present is not implemented
  and is therefore deactivated in the testsection of the main CMakeLists.txt

  CMakeLists.txt:
  ---------------
  Added testcases.

(cherry picked from commit e3dba75 and
commit ca76a39, and then these two were
squashed. All code done by Andre/@vehre and original commit messages
tidied by @zbeekman)
 Wrap build and add test commands with conditionals
  Remove the sync_all from the `register()`, because the compiler now generates
  it after the assignment in an `ALLOCATE(, SOURCE=)` has been done.
  Comment on `MPI_Win_allocate()` implicitly synchronizing.

 (cherry picked from commit 7e917b2,
 minor wording changes to commit log from @zbeekman for clarity)
@zbeekman
Copy link
Collaborator Author

zbeekman commented Dec 14, 2016

So long as @vehre and @afanfa don't object, I'll merge this once the tests pass, since it all

looks good to me

Approved with PullApprove

@afanfa
Copy link
Contributor

afanfa commented Dec 14, 2016

No objections here. Go for it.

@zbeekman
Copy link
Collaborator Author

zbeekman commented Dec 14, 2016

still

looks good to me

Approved with PullApprove

@codecov-io
Copy link

codecov-io commented Dec 14, 2016

Current coverage is 50.38% (diff: 100%)

Merging #276 into master will not change coverage

@@             master       #276   diff @@
==========================================
  Files             2          2          
  Lines           909        909          
  Methods          42         42          
  Messages          0          0          
  Branches        195        195          
==========================================
  Hits            458        458          
  Misses          368        368          
  Partials         83         83          

Sunburst

Powered by Codecov. Last update bb700f2...4bb2863

@zbeekman zbeekman merged commit 89bd04f into master Dec 14, 2016
@zbeekman zbeekman deleted the vehre/async-alloc-comp-support branch December 14, 2016 04: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.

4 participants