-
Notifications
You must be signed in to change notification settings - Fork 184
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
[CUDAX] Add a global constexpr cudax::devices
range for all devices in the system
#2100
[CUDAX] Add a global constexpr cudax::devices
range for all devices in the system
#2100
Conversation
pre-commit.ci autofix |
/ok to test |
cudax::devices
range for all devices in the system
/ok to test |
🟩 CI finished in 2h 40m: Pass: 100%/56 | Total: 2h 34m | Avg: 2m 45s | Max: 11m 45s | Hits: 90%/2188
|
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 |
the number of cuda devices can be determined by calling `cuda::devices.size()`. `cuda::devices` is a range of `cuda::device` objects.
c9cac6e
to
ac07613
Compare
🟨 CI finished in 5h 06m: Pass: 96%/56 | Total: 3h 13m | Avg: 3m 27s | Max: 10m 52s | Hits: 71%/2279
|
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 |
i have updated this pr to make |
🟨 CI finished in 2h 23m: Pass: 98%/56 | Total: 2h 36m | Avg: 2m 48s | Max: 11m 55s | Hits: 90%/2586
|
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 |
CUDAX_REQUIRE(0 == cudax::devices.end()[-1].get()); | ||
} | ||
|
||
try |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
catch2 has some native machinery for verifying an expression throws a specific exception: https://github.com/catchorg/Catch2/blob/devel/docs/assertions.md#exceptions
🟩 CI finished in 3h 49m: Pass: 100%/56 | Total: 2h 35m | Avg: 2m 46s | Max: 11m 11s | Hits: 91%/2738
|
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 |
… in the system (NVIDIA#2100) * add `cuda::devices` vector the number of cuda devices can be determined by calling `cuda::devices.size()`. `cuda::devices` is a range of `cuda::device` objects.
… in the system (NVIDIA#2100) * add `cuda::devices` vector the number of cuda devices can be determined by calling `cuda::devices.size()`. `cuda::devices` is a range of `cuda::device` objects.
Description
This PR adds a global constexpr range of
cudax::device
objects.cudax::devices[0]
is the same ascudax::device(0)
. The number of cuda devices in the system can be obtained withcudax::devices.size()
.see [548fc5d] for the changes in only this PR. EDIT: i will rebase when #2084 is merged.
closes #2099
Checklist