Xin Tong
2012-Mar-12 12:17 UTC
[LLVMdev] GPU thread/block/grid size contraints in LLVM PTX backend
I am wondering that how does the LLVM PTX backend find out the constraints on executing GPU thread/block/grid size ( i.e. a block can at most have 1024 threads). Can anyone point me to the code ? I need information in the optimizer, how can I get it ? Thanks Xin
Che-Liang Chiou
2012-Mar-13 09:19 UTC
[LLVMdev] GPU thread/block/grid size contraints in LLVM PTX backend
You specify shader model, bit size and etc. arch-specified parameters though -march, -mattr and -mcpu, but AFAIK, PTX backend does not use the GPU thread/block/grid size information in optimization yet. On Mon, Mar 12, 2012 at 8:17 PM, Xin Tong <xerox.time.tech at gmail.com> wrote:> I am wondering that how does the LLVM PTX backend find out the > constraints on executing GPU thread/block/grid size ( i.e. a block can > at most have 1024 threads). Can anyone point me to the code ? I need > information in the optimizer, how can I get it ? > > Thanks > > Xin > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Xin Tong
2012-Mar-13 13:58 UTC
[LLVMdev] GPU thread/block/grid size contraints in LLVM PTX backend
but does it have default values ? Thanks Xin On Tue, Mar 13, 2012 at 5:19 AM, Che-Liang Chiou <clchiou at gmail.com> wrote:> You specify shader model, bit size and etc. arch-specified parameters > though -march, -mattr and -mcpu, but AFAIK, PTX backend does not use > the GPU thread/block/grid size information in optimization yet. > > On Mon, Mar 12, 2012 at 8:17 PM, Xin Tong <xerox.time.tech at gmail.com> wrote: >> I am wondering that how does the LLVM PTX backend find out the >> constraints on executing GPU thread/block/grid size ( i.e. a block can >> at most have 1024 threads). Can anyone point me to the code ? I need >> information in the optimizer, how can I get it ? >> >> Thanks >> >> Xin >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Apparently Analagous Threads
- [LLVMdev] GPU thread/block/grid size contraints in LLVM PTX backend
- [LLVMdev] GPU thread/block/grid size contraints in LLVM PTX backend
- [LLVMdev] GPU thread/block/grid size contraints in LLVM PTX backend
- [LLVMdev] Upstream PTX backend that uses target independent code generator if possible
- [LLVMdev] Upstream PTX backend that uses target independent code generator if possible