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

Test that backend is CUDA in temporary_allocator.inl #1015

Merged
merged 1 commit into from
Oct 28, 2019

Conversation

hwinkler
Copy link
Contributor

Test that backend is CUDA before using CUDA-specifics in temporary_allocator.inl

This allows using nvcc to compile non-CUDA backends, e.g. THRUST_DEVICE_SYSTEM_OMP.

Fixes #965

…locator.

To handle the case that we are using nvcc to compile non-CUDA, e.g.
OMP, code, test that the backend THRUST_DEVICE_SYSTEM is
THRUST_DEVICE_SYSTEM_CUDA before including and using CUDA-specific
code, terminate_with_message().
@brycelelbach brycelelbach requested a review from griwes October 28, 2019 08:01
@brycelelbach
Copy link
Collaborator

Running internal CI, but that doesn't test non-CUDA backends.

@griwes to review.

@brycelelbach brycelelbach self-requested a review October 28, 2019 18:46
@brycelelbach brycelelbach merged commit 617a4d1 into NVIDIA:master Oct 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

THRUST_CUB_NS_POSTFIX redefined when backend is THRUST_DEVICE_SYSTEM_OMP
2 participants