Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make cub NVRTC-compatible #851

Closed
l0calh05t opened this issue Mar 5, 2018 · 3 comments
Closed

Make cub NVRTC-compatible #851

l0calh05t opened this issue Mar 5, 2018 · 3 comments
Assignees
Labels
cub For all items related to CUB

Comments

@l0calh05t
Copy link

Currently, cub includes a number of system headers causing errors such as

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\vadefs.h(143): error: A function without execution space annotations (host/device/global) is considered a host function, and host functions are not allowed in JIT mode. Consider using -default-device flag to process unannotated functions as device functions in JIT mode

when attempting to use cub with NVRTC. It would be great if cub could be modified to also support use in NVRTC. (Pointers only instead of general iterators would be fine for me).

Note: while passing -default-device to NVRTC removes this particular error, other errors such as

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\vcruntime.h(81): error: identifier "push" is undefined

or

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\vcruntime.h(81): error: this declaration has no storage class or type specifier

remain. Furthermore, packaging all compiler headers is not feasible anyways.

@maddyscientist
Copy link

Just noting that cub can be compiled using nvrtc when using Jitify https://github.com/NVIDIA/jitify

@alliepiper
Copy link
Contributor

We should investigate adding this to our CI.

@jrhemstad jrhemstad added the cub For all items related to CUB label Feb 22, 2023
@github-project-automation github-project-automation bot moved this to Todo in CCCL Nov 8, 2023
@jarmak-nv jarmak-nv transferred this issue from NVIDIA/cub Nov 8, 2023
@jrhemstad
Copy link
Collaborator

closing in favor of #403

@jrhemstad jrhemstad closed this as not planned Won't fix, can't repro, duplicate, stale Nov 8, 2023
@github-project-automation github-project-automation bot moved this from Todo to Done in CCCL Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cub For all items related to CUB
Projects
Archived in project
Development

No branches or pull requests

5 participants