Skip to content

With gcc-12's libstdc++, clang-15 rc2 still cannot compile CUDA/HIP code because of __noinline__ #57544

Closed
llvm/llvm-project-release-prs
#698
@littlewu2508

Description

@littlewu2508

Although https://reviews.llvm.org/D124866 aims to fix bugs such as NVIDIA/thrust#1703 or https://bugs.gentoo.org/857126

When I tried clang-15 rc2, the issue still exists.

Reproduce method:

pure C++ test.C

#define __noinline__ __attribute__((noinline))
#include<future>

int main()
{
        return 0;
}

Run clang++ test.C

HIP code example test.hip

#include <hip/hip_runtime.h>
#include<future>

int main()
{
        return 0;
}

Run clang++ -nogpulib -nogpuinc -x hip test.hip

Both gives error: g++-v12/bits/shared_ptr_base.h:196:22: error: use of undeclared identifier 'noinline'; did you mean 'inline'?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions