getGridSize =
function(N, perBlock = getDeviceProperties(1L)@maxThreadsPerBlock)
{
gr = ceiling(N/prod(perBlock))
tmp = 2^ceiling(log(gr, 2))
list(grid = tmp, block = perBlock)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.