Closed ardastan closed 5 years ago
Hi @ardastan,
Can you try compiling using PGI 18.10 but with the flag -Mallocatable=95
? This should fix the issue.
Hi @romerojosh
Thanks for your reply. The problem was resolved with -Mallocatable=95
and it can be compiled and run now.
Just out of my curiosity as a CUDA newbie, what does -Mallocatable flag do?
Cheers,
Ali
PGI changed the allocator behavior to follow Fortran2003 semantic and there are some issues. The flag -Mallocatable=95 tells the compiler to follow Fortran95 semantic.
Hi, It seems that the decomp_info_init subroutine in decomp_2d.F90 file has some problems, particularly at the block
#ifdef USE_CUDA
starting at line 716. The calls toc_f_pointer
leads to a compilation error in pgi-18.10 with the error:By using pgi-16.5, however, the code is compiled successfully, but it fails to run when it reaches line 733 - the first call to
c_f_pointer
.Moreover, the definitions of cptr1 and cptr2 are not consistent.
Would you please take a look at these?
Many thanks. Ali