[CUDAX] rename device to device_ref, add immovable device as a place to cache properties#2110
Merged
ericniebler merged 1 commit intoNVIDIA:mainfrom Jul 31, 2024
Merged
Conversation
… cache properties
pciolkosz
approved these changes
Jul 31, 2024
Contributor
🟩 CI finished in 4h 33m: Pass: 100%/56 | Total: 2h 37m | Avg: 2m 48s | Max: 12m 05s | Hits: 81%/2353
|
| Project | |
|---|---|
| CCCL Infrastructure | |
| libcu++ | |
| CUB | |
| Thrust | |
| +/- | CUDA Experimental |
| pycuda |
Modifications in project or dependencies?
| Project | |
|---|---|
| CCCL Infrastructure | |
| libcu++ | |
| CUB | |
| Thrust | |
| +/- | CUDA Experimental |
| +/- | pycuda |
🏃 Runner counts (total jobs: 56)
| # | Runner |
|---|---|
| 41 | linux-amd64-cpu16 |
| 9 | linux-amd64-gpu-v100-latest-1 |
| 4 | linux-arm64-cpu16 |
| 2 | windows-amd64-cpu16 |
miscco
approved these changes
Jul 31, 2024
pciolkosz
pushed a commit
to pciolkosz/cccl
that referenced
this pull request
Aug 4, 2024
… cache properties (NVIDIA#2110)
pciolkosz
pushed a commit
to pciolkosz/cccl
that referenced
this pull request
Aug 4, 2024
… cache properties (NVIDIA#2110)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
#2100 will add a global
cuda::devicesarray. @pciolkosz mentioned that this would be a good place to keep a primary context. it would also be an excellent place to cache device properties.to that end, we need a "heavyweight" object to represent a device. given our naming scheme, the logical name for that is
device, and the currentdeviceshould be renamed todevice_ref.refs #2081