Skip to content

Cuda support - How to recognize .cu files and set clang conditional clang compiler flags -x cuda #778

@pdales

Description

@pdales

Hello,

I am having trouble integrating ECC with Cuda .cu files.

First is recognizing .cu files. I have tried adding back the cuda flag in valid_lang_syntaxes but ECC still not recognizing .cu files.
CPP": ["C++", "C++11", "cuda-c++"],

Also I tried instead setting the filename to .cpp and adding these flags to the common_flags

"-I/opt/cuda/include",
"-x", "cuda",

but the "-x", "cuda" breaks compilation somehow.

Is there a way to get ECC to recognize .cu files and have clang correctly interpret them as cuda files so things like "blockDim" and "vectorAdd<<<blocksPerGrid.." are not seen as errors.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions