The CUDA_LAUNCH_BLOCKING=1 env variable just makes sure to call all CUDA operations synchronously, so that an error message should point to the right line of code in the stack trace.
Did you get any errors? If so, could you post the stack trace?