본문 바로가기
====Pytorch/Pytorch

cuda_launch_blocking=1.

by YGspace 2021. 12. 3.

runtimeerror: cuda error: device-side assert triggered cuda kernel errors might be asynchronously reported at some other api call,so the stacktrace below might be incorrect. for debugging consider passing cuda_launch_blocking=1.

 

소스코드 최상단에 

 

import os
os.environ['CUDA_LAUNCH_BLOCKING'] = "1"

 

댓글