Thanks for the update. I don’t know how the PyCharm debugger is working, but regarding the error you are seeing:
Indexing.cu:605: block: [1,0,0], thread: [127,0,0] Assertion `srcIndex < srcSelectDimSize` failed.

an indexing operation is failing.
You could either execute the code on the CPU to get a better error message or run the code via CUDA_LAUNCH_BLOCKING=1 python script.py args, which should point to the line of code, which is raising this error.