1
votes

I want to compute the optimal gridsize and blocksize in order to have a high rate of occupancy for a kernel launch. I have seen that there is a function in CUDA to do so, which is this one:

cudaOccupancyMaxPotentialBlockSize() 

I am using PyCUDA and I would like to know if an equivalent function exists in PyCUDA.

1
Highest occupancy not always can be achieved with the maximum block size - that is, smaller blocks may be able to achieve higher occupancy. - void_ptr

1 Answers

1
votes

As best as I can tell, the driver API occupancy functions, including cuOccupancyMaxPotentialBlockSize, have not been implemented in PyCUDA, as of version 2015.1.3, based on a search of the Github mirror.