[LLVMdev] multi-threading in llvm

Tobias Grosser tobias at grosser.es
Mon Sep 12 09:29:53 PDT 2011


On 09/12/2011 05:23 PM, Dmitry N. Mikushin wrote:
> Recently I met the following spec:
> http://gcc.gnu.org/onlinedocs/libgomp/OMP_005fNUM_005fTHREADS.html#OMP_005fNUM_005fTHREADS
> It was new to me OpenMP actually allows to specify "the number of
> threads to use for the corresponding nested level" in the
> multidimensional loops. Is that correct in Polly this feature is not
> supported, and OpenMP clause is always applied only the the most outer
> loop?
Jep, it is not used by Polly.

> With it supported I think we can step much closer to natural
> unification of OpenMP and multidimensional compute grids of GPU
> programming models.
I would be very interested to see a use case, where this improves 
performance. In case this use case appears frequently, it would be nice 
to see work in this direction. I would be glad to contribute to relevant 
discussions.

Cheers
Tobi



More information about the llvm-dev mailing list