Hi Sagnik,
This could indicate an inconsistent (CUDA toolkit, nvidia driver and/or pycuda) system state, similar to the the situation described in this thread:
If you would like some help identifying the problem, please post: