Re: [PATCH, Fortran] Sync memory action delegated to OpenCoarrays

2015-03-10 Thread Alessandro Fanfarillo
Totally fine with me. Thanks. 2015-03-10 0:20 GMT-07:00 Tobias Burnus : > Hi Alessandro, > > Alessandro Fanfarillo wrote: >> >> Thanks for the quick response. Patch built and regtested on >> x86_64-unknown-linux-gnu. > > > Actually, I also was about to send a reworked patch myself - see attachment

Re: [PATCH, Fortran] Sync memory action delegated to OpenCoarrays

2015-03-10 Thread Tobias Burnus
Hi Alessandro, Alessandro Fanfarillo wrote: Thanks for the quick response. Patch built and regtested on x86_64-unknown-linux-gnu. Actually, I also was about to send a reworked patch myself - see attachment. Additional changes compared to your last patch: * Add the assembler statement to lib

Re: [PATCH, Fortran] Sync memory action delegated to OpenCoarrays

2015-03-09 Thread Alessandro Fanfarillo
Thanks for the quick response. Patch built and regtested on x86_64-unknown-linux-gnu. Currently the stub for sync memory in single.c invokes "asm volatile ("" : : : "memory")" but _gfortran_caf_sync_memory is not called when the code is compiled with -fcoarray=single. Please let me know if I hav

Re: [PATCH, Fortran] Sync memory action delegated to OpenCoarrays

2015-03-06 Thread Tobias Burnus
Dear Alessandro, Alessandro Fanfarillo wrote: so far a "sync memory" statement is translated into a local "__sync_synchronize ()". The attached draft patch delegates the action for sync memory (when -fcoarray=lib is used) to the external function _gfortran_caf_sync_memory() implemented in the Op

[PATCH, Fortran] Sync memory action delegated to OpenCoarrays

2015-03-06 Thread Alessandro Fanfarillo
Dear all, so far a "sync memory" statement is translated into a local "__sync_synchronize ()". The attached draft patch delegates the action for sync memory (when -fcoarray=lib is used) to the external function _gfortran_caf_sync_memory() implemented in the OpenCoarrays library. Any suggestions?