Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

__noinline__ Macro Definition causes clang++ Compile Error #1703

Closed
@explocion

Description

@explocion

I'm working with clang++ 13.0 and CUDA Toolkit 11.6. It seems to me that there's probably some problem with the __noinline__ macro. In thrust, it is used as __attribute__((__noinline__)) which expects __noinline__ expand to noinline. However, with clang++, __noinline__ expands to __attribute__((noinline)), which makes __attribute__((__attribute__((noinline)))) and cause a compile error. This happens when I compile with following arguments with main.cu including <thust/system/cuda/pointer.h>.

clang++ --cuda-gpu-arch=sm_86 -std=c++17 -o main main.cu

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions