编译 pytorch 出现 Segmentation fault (core dumped) 或者 internal compiler error: Segmentation fault pytorch 默认使用电脑的所有线程进行编译,通过设置环境变量 MAX_JOBS 来适当减少用于编译的线程数量。如: export MAX_JOBS=4 # 设置最多使用4个线程进行编译