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

Fix atomic and barrier on NVRTC. #194

Merged
merged 2 commits into from
Aug 10, 2021
Merged

Fix atomic and barrier on NVRTC. #194

merged 2 commits into from
Aug 10, 2021

Conversation

wmaxey
Copy link
Member

@wmaxey wmaxey commented Aug 10, 2021

Something in NVRTC has changed that requires a new method of querying if the barrier layout is messy.

Atomics are unable to select a proper backend when built with NVRTC. This is fixed with a stub include of what is in atomic_base.h.

@wmaxey wmaxey requested a review from griwes August 10, 2021 02:23
Comment on lines +100 to +101
#elif defined(_LIBCUDACXX_COMPILER_NVRTC)
# include "atomic_nvrtc.h"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooooh. It's because prior to the refactor, all the host bits were ifdef'd out, but now we depend on storage types and whatnot from __host? Makes sense.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, we should make an abstraction for storage. I remember attempting to do that and finding it too difficult to remove the scope parameter in the same change.

@wmaxey wmaxey merged commit 9575eff into main Aug 10, 2021
@wmaxey wmaxey deleted the bugfix/atomic_nvrtc branch August 10, 2021 21:12
wmaxey added a commit that referenced this pull request Aug 10, 2021
wmaxey added a commit that referenced this pull request Oct 2, 2021
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.

None yet

2 participants