CudaAPIError: [1] Call to cuLaunchKernel results in CUDA_ERROR_INVALID_VALUE with Numba

That is incorrect. It should be:

ANAM[blockspergrid, threadsperblock]

see here