I have written the code below in order to discover the number of threads and blocks and send them to train_kernel
function.
rows = df.shape[0]
thread_ct = (gpu.WARP_SIZE, gpu.WARP_SIZE)
block_ct = map(lambda x: int(math.ceil(float(x) / thread_ct[0])),[rows,ndims])
train_kernel[block_ct, thread_ct](Xg, yg, syn0g, syn1g, iterations)
but after execution, I face the error below:
griddim must be a sequence of integers