About new option -ta=multicore

PGI compiler, code with openacc directives.
I wonder how many cores it used and
if can I set how many cores it used?

About question 1
I have 2 multicore(6 cores) cpus. -ta=multicore option will utilize 6 or 12 cores?

I think your questions are answered here:

[url]http://www.pgroup.com/lit/articles/insider/v6n3a1.htm[/url]

“You can control how many threads the program will use to run the parallel compute regions with the environment variable ACC_NUM_CORES. The default is to count how many cores are available on the system. For Linux targets, the runtime will only count physical cores (not hyper-threaded logical cores), and launch that many threads.”

On a dual-socket system with 6 cores per socket, -ta=multicore should use 12 cores.

Thank you very much.