HPC Magazine February 2014 - Discovering OpenACC 2.0 - part II
Listing 5: Typical use of the device_type clause.
#pragma acc loop gangs workers \ dtype(NVIDIA) num_gangs(250) num_workers(128) \ dtype(NVIDIA2) num_gangs(130) num_workers(256) \ dtype(RADEON) num_gangs(200) num_workers(64) \ dtype(XEONPHI) num_gangs(53) num_workers(8) \ dtype(*) num_gangs(100) num_workers(32) for (i=0;i<n;i++) { do_some_work(i) ; }