def launch_kernel(self, df, args, chunks, tpb): chunks = self.normalize_chunks(len(df), chunks) blkct = cudautils.optimal_block_count(chunks.size) self.kernel[blkct, tpb](len(df), chunks, *args)
def launch_kernel(self, df, args): blksz = 64 blkct = cudautils.optimal_block_count(len(df) // blksz) self.kernel[blkct, blksz](*args)