<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Tue, Jan 8, 2019 at 5:25 PM Ilia Mirkin <<a href="mailto:imirkin@alum.mit.edu">imirkin@alum.mit.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Why does this need to be in p_state? And who is responsible for<br>
setting it (and how will it be set)?<br></blockquote><div><br></div><div>Oh right, there is a way to get it out of p_state.h if needed.</div><div><br></div><div>It should be set to 0 by default.</div><div><br></div><div>If your thread block is 8x8x1, but you need to launch 10x8x1 threads, set partial_block = {2, 0, 0}. It will launch the following thread blocks:</div><div></div><div>8x8x1</div><div>2x8x1</div><div><br></div><div>It's the same as launching 16x8x1 threads and doing this at the beginning of the compute shader:</div><div>  if (globalThreadID.x >= 10) return;<br></div><div><br></div><div>Marek</div></div></div>