multithreading - How to set all global variables in a Fortran module to private for OpenMP? -
i know how can set global variables in fortran module call in omp parallel
section. know threadprivate
can set list of variables private, have many global variables set. there way change default private global variables?
there no such way (as far aware of). use threadprivate
, list variables need. if have many global variables, rid of them. not sign of code design.
Comments
Post a Comment