[Users] CCTK_LOOP3_INT macro with Fortran and OpenMP
Miguel Zilhão
miguel.zilhao.nogueira at tecnico.ulisboa.pt
Tue Feb 25 14:14:38 CST 2020
hi Roland,
many thanks for your quick reply.
> You should leave out the "DO COLLAPSE(3)" and just use "!$OMP PARALLEL
> PRIVATE (...)". This will declare a parallel region but no looping
> construct (which loopcontrol will do internally).
ok, i've done that and also changed the final
!$OMP END PARALLEL DO
to
!$OMP END PARALLEL
is this the correct procedure? it seems to help, but there is still something not quite right... i
now have the following warning:
Warning: While tracing module dependencies: Source file for module "loopcontrol" not found
Searched in thorn directory only.
as well as a lot of
Warning: Possible change of value in conversion from INTEGER(8) to INTEGER(4) at (1) [-Wconversion]
should i worry about these? i don't seem to have them if i remove the OMP statements. in any case
i'm still unable to compile, with the error:
Error: copyprivate variable ‘int33_bndsize’ is not threadprivate or private in outer context
"int33" i assume comes from the naming of my loop (int3), but i don't have any variable called
"bndsize", so i guess this is one of the loopcontrol variables. is there anything else i could be
missing?
many thanks,
Miguel
More information about the Users
mailing list