本当は怖いHPC

HPC屋の趣味&実益ブログ

OpenMP

OpenMPでのbreak

2ch「OpenMPプログラミング」スレ304より引用。OpenMPループ内でのbreakは許可されていないが、自分でループ範囲を決めてフラグを立てることで同じことが可能。 // from http://hibari.2ch.net/test/read.cgi/tech/1102483474/304 #include <stdio.h> #include <omp.h> #defi</omp.h></stdio.h>…

【広告】