NVIDIA / cccl

CUDA Core Compute Libraries
Other
1.03k stars 123 forks source link

[DOC]: Does libcu++ support non-CUDA compilers? #1968

Closed bernhardmgruber closed 2 weeks ago

bernhardmgruber commented 2 weeks ago

Is this a duplicate?

Is this for new documentation, or an update to existing docs?

New

Describe the incorrect/future/missing documentation

The documentation of libcu++ specifies the following:

However, it does not specify whether "works in __host__ code" implies that it can be compiled by a non-CUDA compiler like g++. This is highly desirable though and appears to be existing practice. Thrust's TBB and OMP backends for example can be compiled by several non-CUDA compilers (e.g. g++, clang, icpc, msvc, nvc++, etc.) and Thrust uses libcu++ in a lot of places already.

I would like the documentation of libcu++ to explicitly point out support for non-CUDA compilers for every feature supported in __host__ code.

If this is a correction, please provide a link to the incorrect documentation. If this is a new documentation request, please link to where you have looked.

No response

bernhardmgruber commented 2 weeks ago

I just discussed this with @wmaxey and he confirmed that __host__ code should also work when being compiled with a non-CUDA compiler like g++.

jrhemstad commented 2 weeks ago

I think this may be redundant with https://github.com/NVIDIA/cccl/issues/1374

bernhardmgruber commented 2 weeks ago

I think this may be redundant with #1374

It is.