Managed Memory using STDPAR

Running a case using Fortran StdParallelism, although I think same error occurs using ACC parallel loops directive as well. I have attached code/makefile along with a test case. If I compile code as delivered (-gpu:unified), the code runs fine as per test case. If I modify Makefile to use -gpu:managed and recompile (after doing make clean), I get following error message while running …

Failing in Thread:1
Accelerator Fatal Error: call to cuStreamSynchronize returned error 700 (CUDA_ERROR_ILLEGAL_ADDRESS): Illegal address during kernel execution
File: /storage/users/kenzakow/SIMPLE_SOLV/SendCase/CHEM_STDPAR2/chmrhs_dcpl_gpu3i.f
Function: gpucc_chemistry:580
Line: 613

I am not using cuda streams for this code and am not sure where cuStreamSynchronize() has been inserted.

ManagedMemoryIssue_TGZ.txt (441.3 KB)

This pertains to code compiled with nvfortran. please post those questions in the nvfortran section, like I previously suggested.