https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114558

            Bug ID: 114558
           Summary: GCC 13.2.1 encountered a segmentation fault error when
                    compiling PyTorch.
           Product: gcc
           Version: 13.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: wencan at live dot cn
  Target Milestone: ---

I encountered a compilation error when compiling PyTorch.
GCC version: (GCC) 13.2.1 20240316 (Red Hat 13.2.1-7)
pytorch version: commit dd8a24b

code: 
extern "C" status_t DNNL_API dnnl_memory_desc_set_data_type(
        memory_desc_t *memory_desc, data_type_t data_type) {
    if (any_null(memory_desc)) return invalid_arguments;
    memory_desc->data_type = data_type;
    return success;
} // this line!

I downgraded gcc to 13.2.1 2023091 (Red Hat 13.2.1-3), and the issue no longer
occurred.
more info: https://github.com/pytorch/pytorch/issues/123091

Reply via email to