Skip to content

cannot compile with CUDA 7.0 RC on CentOS 7 (gcc 4.8) #17

@andrewcorrigan

Description

@andrewcorrigan

When I compile my branch of Thrust using this tuple with CUDA 7.0 RC on CentOS 7 I get the following error.

internal error: assertion failed at: thrust/thrust/detail/tuple/variadic_tuple.h(395): "/dvs/p4/build/sw/rel/gpu_drv/r346/r346_00/drivers/compiler/edg/EDG_4.9/src/expr.c", line 3108

That is referring to the line

               (sizeof...(Types) == sizeof...(UTypes)) &&

in the constructor:

    template<class... UTypes,
             class = typename std::enable_if<
               (sizeof...(Types) == sizeof...(UTypes)) &&
               __tuple_and<
                 std::is_constructible<Types,UTypes&&>...
               >::value
             >::type>
    __TUPLE_ANNOTATION
    explicit tuple(UTypes&&... args)
      : base_{std::forward<UTypes>(args)...}
    {}

I wrote a simple test code that invokes this constructor, but cannot reproduce this compiler crash independent of my large code. Jared, I wonder if you have any ideas? I imagine if I send this to the compiler team they would not be able to reproduce the crash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions