Compilation error for coarray on devices

3 views
Skip to first unread message

Noriyuki Kushida

unread,
Jun 9, 2020, 8:04:03 AM6/9/20
to omni-c...@googlegroups.com
Hi,

Sorry for bothering you again, but I have just encountered another error.

I would like to send a coarray which is on a device to another coarray which is also on another device.
Reading the document;
I think the following should work:
real(8),dimension(:,:),allocatable:: send[:],recv[:]
!$acc host_data use_device(send, recv)
         recv[1]=send
!$acc end host_data

but, I get the following error message at the compilation time;
PGF90-S-0155-Could not resolve generic procedure xmpf_coarray_put_generic (setValue.F90: 19)

If you can tell me how I can avoid this, please let this me know.

I am using PGI 20.04 and OMNI compiler nightly.
The compilation command is;
xmpf90 -c -O3  -xacc=pgi -Minfo=all -ta=tesla:managed,cc70 

Best regards,
Noriyuki Kushida

Masahiro Nakao

unread,
Jun 10, 2020, 10:29:46 AM6/10/20
to omni-c...@googlegroups.com
Sorry for delay.

The combination of Coarray and OpenACC in Omni Compiler does not support
allocatable arrays.
Please use fixed arrays and declare directives as described in the
specification.

Best regards,
> --
> You received this message because you are subscribed to the Google
> Groups "omni-compiler" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to omni-compile...@googlegroups.com
> <mailto:omni-compile...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/omni-compiler/CAKx-aKzMDa3v4NHzbLQpaHa4FfhrGzugqjfPaqG0FEMdA1DmwQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/omni-compiler/CAKx-aKzMDa3v4NHzbLQpaHa4FfhrGzugqjfPaqG0FEMdA1DmwQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.

--
Masahiro NAKAO
Email : masahir...@riken.jp
Researcher
RIKEN Center for Computational Science (R-CCS)

Noriyuki Kushida

unread,
Jun 10, 2020, 10:40:44 AM6/10/20
to Masahiro Nakao, omni-c...@googlegroups.com
Dear Nakao-san,

Thank you for your reply and clarification. There is no delay indeed.
I will try with a fixed array. 

Best regards,
Noriyuki Kushida

To unsubscribe from this group and stop receiving emails from it, send an email to omni-compile...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/omni-compiler/8ad4a715-b204-97d8-0acb-622f9a2bfcc4%40riken.jp.

Noriyuki Kushida

unread,
Jun 11, 2020, 11:47:02 AM6/11/20
to Masahiro Nakao, omni-c...@googlegroups.com
Dear Nakao-san,

I have another question on the same issue.
Can we combine a coarray and a normal array for communication on a device?
Namely, in the example I showed, can I use a normal array for "send"?

I think I can do this on the host memory, but when I put !$acc host_data use_device directive,
my compiler complains as
PGF90-S-0155-Could not resolve generic procedure xmpf_coarray_put_generic (setValue.F90: 20).
This happens after I switched to the fixed array.

Best regards,
Noriyuki

Noriyuki Kushida

unread,
Jun 12, 2020, 4:37:36 AM6/12/20
to Masahiro Nakao, omni-c...@googlegroups.com
I am sorry for the cumbersome I made.
I now understand the reason.
I should not include the normal array "send" in  !$acc host_data use_device directive as per the example in the specification.

Noriyuki

Masahiro Nakao

unread,
Jun 12, 2020, 10:08:15 AM6/12/20
to omni-c...@googlegroups.com
Dear Kushida-san

I'm not sure because the developer graduated,
but maybe XACC + Fortran + Coarray has not been developed yet.

Even if I try it with simple code, it fails with a segmentation fault.

We are terribly sorry to take up your time.
> <mailto:omni-compiler%2Bunsu...@googlegroups.com>
> > <mailto:omni-compile...@googlegroups.com
> <mailto:omni-compiler%2Bunsu...@googlegroups.com>>.
> Email : masahir...@riken.jp <mailto:masahir...@riken.jp>
> Researcher
> RIKEN Center for Computational Science (R-CCS)
>
> --
> You received this message because you are subscribed to the
> Google Groups "omni-compiler" group.
> To unsubscribe from this group and stop receiving emails
> from it, send an email to
> omni-compile...@googlegroups.com
> <mailto:omni-compiler%2Bunsu...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/omni-compiler/8ad4a715-b204-97d8-0acb-622f9a2bfcc4%40riken.jp.

Noriyuki Kushida

unread,
Jun 12, 2020, 10:24:23 AM6/12/20
to Masahiro Nakao, omni-c...@googlegroups.com
Dear Nakao-san,

It is totally fine with me. I would rather be happy to contribute to XACC/XMP, since those basically accelerate the development.
I am sending my sample code which I am confronting just in case.

The direct communication might be nicer, and if you added this to your todo list, it would be great.
Nonetheless, my code is working with the coarray communication on a host, there is no urgency. 

Best regards,
Noriyuki

To unsubscribe from this group and stop receiving emails from it, send an email to omni-compile...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/omni-compiler/3efa1e4f-2de2-984b-cebe-64ee8c9f1f09%40riken.jp.
coarrayDevice.tar.gz
Reply all
Reply to author
Forward
0 new messages