Skip to content

cutlass fails to build w/ nvcc unless -std=c++11 is set in NVCC_FLAGS #12

@Artem-B

Description

@Artem-B

CUTLASS fails to build with default compiler options and CUDA-9.2, where NVCC defaults to -std=c++14. Build works if compiled with -std=c++11.

/usr/local/google/home/tra/work/cuda/cutlass-1.0/cutlass/util/platform.h(310): error: namespace "std" has no member "bool_constant"

std::bool_constant should be available since C++11, so it's somewhat puzzling that the build works in c++11 mode, but not in c++14.

Reproduction:
System running recent debian distribution.
$ git clone https://github.com/NVIDIA/cutlass.git cutlass-1.0
$ mkdir cutlass-1.0/build
$ cd cutlass-1.0/build
$ cmake -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-9.2 ..
$ make VERBOSE=1

Full build log: https://pastebin.com/i9VmjZGV

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions