Skip to content

Segfault on CUDA when using GCC 4.9.3 and optimization -O2 #59

@neubig

Description

@neubig

Currently, when using cnn on CUDA, compiling with GCC 4.9.3, segfaults occur when using the default optimization setting of -O2. This is not a problem on GCC 4.8.*, but may be a problem on other versions of GCC.

We don't currently know the cause, but a patch fixing the bug would be welcome. If you want a quick fix, find the line including APPEND CUDA_NVCC_FLAGS in cnn/CMakeLists.txt and change -O2 to -O1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    moderate bugIssues that should be fixed but only affect less common environments or functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions