Does your code just run with this error at the beginning?
If so, are you using multiple GPUs?
Could you try to run your code with CUDA_LAUNCH_BLOCKING=1 python script.py args?
I’ve never seen a “silent” CUDA error. Usually my code just explodes with error messages when I mess up some CUDA calls.