sourceryinstitute / OpenCoarrays

A parallel application binary interface for Fortran 2018 compilers.
http://www.opencoarrays.org
BSD 3-Clause "New" or "Revised" License
244 stars 58 forks source link

tests dis_transpose: test passed #1

Closed WeiLiPenguin closed 9 years ago

WeiLiPenguin commented 9 years ago

the line: test passed should be Test passed?

2/12 Test  #2: distributed_transpose ............***Failed  Required regular expression not found.Regex=[Test passed.

Thanks for your cool project!

WeiLiPenguin commented 9 years ago

seems some of the test Makefile not give the right "opencoarrays_dir", If the tests should run before install or use the "just" compiled libcaf_mpi.a ?

opencoarrays_dir=../../../../mpi/

or the compile CMakeLists.txt control the make?

WeiLiPenguin commented 9 years ago

tests/integration/pde_solvers/navier-stokes seems not have a "Test passed" to used by ctest?

WeiLiPenguin commented 9 years ago

navier-stokes/CMakeLists.txt:

mpi-shear.F90 should change to mpi-shear.f90 ? and add target_link_libraries( mpi_navier_stokes ${CMAKE_CURRENT_SOURCE_DIR}/lib${fft_library}.a ) after line 26?

sourceryinstitute commented 9 years ago

Hi Weili,

Thanks for downloading and building OpenCoarrays. We're working on the tests. For now, it is safe to ignore test failures. All current failures are trivial failures in the sense that we just need to insert a statement printing out the string CTest expects to see in the test output to indicate a successful. I will likely do this next week. We will also be adding several additional tests soon.

If you reached the point of running the tests, then presumably OpenCoarrays built successfully and you're ready to start using it.

Damian

Sent from my iPhone

On May 29, 2015, at 3:32 AM, WeiLi notifications@github.com wrote:

the line: test passed should be Test passed?

2/12 Test #2: distributed_transpose ............***Failed Required regular expression not found.Regex=[Test passed. Thanks for your cool project!

— Reply to this email directly or view it on GitHub.

WeiLiPenguin commented 9 years ago

Thank you and nice to see a new commit,

is that possible to use intel compile for opencoarrays? by using a "home made" fortran translator? or do you have any plan related to that?

sourceryinstitute commented 9 years ago

Hi WeiLi,

It should be possible to compile OpenCoarrays with the Intel compiler. Although the Intel compiler won’t generate any calls to OpenCoarrays directly, you can probably invoke some of the OpenCoarrays procedures in your source code using Fortran’s C-interoperability features. When you mentioned a homemade Fortran translator, were you referring to translating the C header files into Fortran interface blocks? Presumably that would be the way to go.

OpenCoarrays supports most or all of the collective subroutines that are proposed to become part of Fortran 2015 but are not yet supported by the Intel compiler. These collectives could be of use to you. We have found that the OpenCoarrays collectives outperform even reasonably sophisticated collective communication procedures that a competent parallel programmer would write manually in Fortran 2008 to accomplish various reductions and broadcasts, for example. See the link to the draft Technical Specification 18508 on www.opencoarrays.org http://www.opencoarrays.org/ for more information on the Fortran 2015 collective subroutines.

We would very much like to see compiler vendors employ OpenCoarrays so it would be great for you to let Intel know you’re interested and why. We have had interactions with most Fortran compiler vendors and are hopeful that several will eventually adopt OpenCoarrays, but we are much more likely to convince the ones who don’t yet support coarray Fortran (CAF) than those that have already invested resources into supporting it.

Besides the fact that OpenCoarrays has helped GNU leapfrog existing CAF implementations in terms of certain features (such as the collectives), one aim of OpenCoarrays is also to make a design statement that application developers are well-served by allowing them to decided which communication library (e.g., MPI, GASNet, etc.) best suits the needs their application and their hardware platform.

If any of the above interests you, please let Intel know by submitting a feature request via Intel’s Premier Support and/or the Intel Developer Forum.


Damian Rouson, Ph.D., P.E. Founder & President, Sourcery, Inc. 510-600-2992 (mobile) http://www.sourceryinstitute.org http://rouson.youcanbook.me

On May 29, 2015, at 6:14 AM, WeiLi notifications@github.com wrote:

Thank you and nice to see a new commit,

is that possible to use intel compile for opencoarrays? by using a "home made" fortran translator? or do you have any plan related to that?

— Reply to this email directly or view it on GitHub https://github.com/sourceryinstitute/opencoarrays/issues/1#issuecomment-106765453.

WeiLiPenguin commented 9 years ago

Thank you for the reply. "home made" fortran translator. I mean like the gfortran parsing the source file to generate the calling _gfortran_caf_co_xxx, If I am right. Can I get the gfortran parsed source file? could you please try to explain how it worked in gfortran, but maybe I am not clever to understand it.

afanfa commented 9 years ago

What you are trying to do makes totally sense. I used to do it when the compiler didn't have support for some features. If you want to see what GNU Fortran does just compile your file with the -fdump-tree-original flag. You'll see the parsed code and the invocations to opencoarrays.

On Mon, Jun 1, 2015 at 9:58 PM, WeiLi notifications@github.com wrote:

Thank you for the reply. "home made" fortran translator. I mean like the gfortran parsing the source file to generate the calling _gfortran_caf_co_xxx, If I am right. Can I get the gfortran parsed source file? could you please try to explain how it worked in gfortran, but maybe I am not clever to understand it.

— Reply to this email directly or view it on GitHub https://github.com/sourceryinstitute/opencoarrays/issues/1#issuecomment-107688226 .

Alessandro Fanfarillo