# Do concurrent: can loop variable be specified in \`local\`?

**URL:** <https://fortran-lang.discourse.group/t/do-concurrent-can-loop-variable-be-specified-in-local/8396>\
**Category:** Help\
**Created:** [July 27, 2024, 11:16am UTC](https://fortran-lang.discourse.group/t/do-concurrent-can-loop-variable-be-specified-in-local/8396 "2024-07-27T11:16:59Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![ivanpribec](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/ivanpribec/32/3290_2.png) [@ivanpribec](https://fortran-lang.discourse.group/u/ivanpribec)\
**Post date:** [October 5, 2024, 1:18pm UTC](https://fortran-lang.discourse.group/t/do-concurrent-can-loop-variable-be-specified-in-local/8396/19 "2024-10-05T13:18:24Z")

</div>

> [@JohnCampbell](#):
>
> b) provide some documentation of which Fortran compilers support multi-threaded do concurrent,

Check this post:

> [@DO CONCURRENT: compiler flags to enable parallelization](https://fortran-lang.discourse.group/t/do-concurrent-compiler-flags-to-enable-parallelization/4300/6):
>
> I summarized some do concurrent related information in [this thread](https://fortran-lang.discourse.group/t/simplify-loop-on-an-array-of-derived-type/7095/9) and thought it is worth reposting here: Multi-threaded do concurrent (CPU) Compiler Parallel flag Information Number of threads Underlying implementation gfortran -ftree-parallelize-loops=n -fopt-info-loop using the parallel flag OpenMP/pthreads nvfortran -stdpar=multicore -Minfo=stdpar,accel ACC\_NUM\_CORES OpenACC ifort (deprecated) -parallel -qopt-report -qopt-report-phase=par OMP\_NUM\_THREADS, -par-num-threads=n Op…

---

_[View the full topic](https://fortran-lang.discourse.group/t/do-concurrent-can-loop-variable-be-specified-in-local/8396)._
