Repository navigation
Add nvhpc devcontainer to CI - #1488
Conversation
68065db to
e935ce5
Compare
|
/ok to test |
| } | ||
|
|
||
| TEST_NV_DIAG_SUPPRESS(174) // expression has no effect | ||
| #if !defined(TEST_COMPILER_NVHPC) // NVHPC seems unable to silence the warning |
There was a problem hiding this comment.
@dkolsen-pgi I tried all versions of the #pragma suppression and would always get a warning here
There was a problem hiding this comment.
In my quick tests, _Pragma("diag_suppress expr_has_no_effect") suppresses the warning from both NVCC and NVC++ (including when NVC++ is the host compiler for NVCC). But _Pragma("nv_diag_suppress expr_has_no_effect") only suppresses the warning from NVCC. I don't know whether TEST_NV_DIAG_SUPPRESS expands to use nv_diag_suppress or diag_suppress when NVC++ is the host compiler for NVCC, but from the comment I am guessing it is nv_diag_suppress.
NVCC recognizes both diag_suppress and nv_diag_suppress. NVC++ recognizes only diag_suppress. The numeric arguments, such as 174, are different between the two compilers (for historical reasons), but the named arguments should work in both.
There was a problem hiding this comment.
I tested it and it seems to not work if I put it in a macro, I believe this is the same issue as with our system header pragmas
There was a problem hiding this comment.
In my testing, putting the pragma in a macro works fine.
$ cat noeffect.cpp
#define _TEST_TOSTRING2(x) #x
#define _TEST_TOSTRING(x) _TEST_TOSTRING2(x)
#define TEST_NV_DIAG_SUPPRESS(WARNING) _Pragma(_TEST_TOSTRING(diag_suppress WARNING))
int main() {
int a = 10, b = 42;
TEST_NV_DIAG_SUPPRESS(expr_has_no_effect)
{
a + b;
}
return a + b;
}
$ nvc++ noeffect.cpp
$ nvcc -ccbin nvc++ -x cu noeffect.cpp
$ In the CI test environment, does TEST_NV_DIAG_SUPPRESS expand to use diag_suppress or nv_diag_suppress ?
🟨 CI finished in 3h 25m: Pass: 97%/435 | Total: 5d 02h | Avg: 16m 51s | Max: 1h 07m | Hits: 69%/478184
|
| 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: 435)
| # | Runner |
|---|---|
| 319 | linux-amd64-cpu16 |
| 65 | linux-amd64-gpu-v100-latest-1 |
| 28 | linux-arm64-cpu16 |
| 23 | windows-amd64-cpu16 |
🟨 CI finished in 4h 35m: Pass: 99%/435 | Total: 5d 17h | Avg: 18m 54s | Max: 1h 22m | Hits: 60%/489990
|
| 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: 435)
| # | Runner |
|---|---|
| 319 | linux-amd64-cpu16 |
| 65 | linux-amd64-gpu-v100-latest-1 |
| 28 | linux-arm64-cpu16 |
| 23 | windows-amd64-cpu16 |
There was a problem hiding this comment.
Thinking about this more, I think we should only enable the nvc++ jobs in nightly CI since nvc++ doesn't support sccache.
edit: @robertmaynard tells me nvc++ should be supported as of: mozilla/sccache#1889
The hit rate for the nvhpc jobs in this PR is really bad though:

|
That could be because there have been no prior runs |
🟨 CI finished in 9h 39m: Pass: 99%/435 | Total: 6d 16h | Avg: 22m 12s | Max: 1h 09m | Hits: 45%/28513
|
| 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: 435)
| # | Runner |
|---|---|
| 319 | linux-amd64-cpu16 |
| 65 | linux-amd64-gpu-v100-latest-1 |
| 28 | linux-arm64-cpu16 |
| 23 | windows-amd64-cpu16 |
🟨 CI finished in 19h 21m: Pass: 99%/435 | Total: 6d 16h | Avg: 22m 11s | Max: 1h 09m | Hits: 45%/28513
|
| 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: 435)
| # | Runner |
|---|---|
| 319 | linux-amd64-cpu16 |
| 65 | linux-amd64-gpu-v100-latest-1 |
| 28 | linux-arm64-cpu16 |
| 23 | windows-amd64-cpu16 |
|
So the hit rate went up to 35% https://github.com/NVIDIA/cccl/actions/runs/10387059801/job/28799461430?pr=1488 which is definitely not good |
🟨 CI finished in 1h 40m: Pass: 98%/382 | Total: 4d 22h | Avg: 18m 34s | Max: 59m 50s | Hits: 77%/23515
|
| Project | |
|---|---|
| +/- | CCCL Infrastructure |
| +/- | libcu++ |
| +/- | CUB |
| +/- | Thrust |
| +/- | CUDA Experimental |
| pycuda | |
| CUDA C Core Library |
Modifications in project or dependencies?
| Project | |
|---|---|
| +/- | CCCL Infrastructure |
| +/- | libcu++ |
| +/- | CUB |
| +/- | Thrust |
| +/- | CUDA Experimental |
| +/- | pycuda |
| +/- | CUDA C Core Library |
🏃 Runner counts (total jobs: 382)
| # | Runner |
|---|---|
| 311 | linux-amd64-cpu16 |
| 28 | linux-amd64-gpu-v100-latest-1 |
| 28 | linux-arm64-cpu16 |
| 15 | windows-amd64-cpu16 |
🟨 CI finished in 2h 28m: Pass: 97%/384 | Total: 8d 14h | Avg: 32m 19s | Max: 1h 19m | Hits: 10%/23540
|
| Project | |
|---|---|
| +/- | CCCL Infrastructure |
| +/- | libcu++ |
| +/- | CUB |
| +/- | Thrust |
| +/- | CUDA Experimental |
| pycuda | |
| CUDA C Core Library |
Modifications in project or dependencies?
| Project | |
|---|---|
| +/- | CCCL Infrastructure |
| +/- | libcu++ |
| +/- | CUB |
| +/- | Thrust |
| +/- | CUDA Experimental |
| +/- | pycuda |
| +/- | CUDA C Core Library |
🏃 Runner counts (total jobs: 384)
| # | Runner |
|---|---|
| 311 | linux-amd64-cpu16 |
| 30 | linux-amd64-gpu-v100-latest-1 |
| 28 | linux-arm64-cpu16 |
| 15 | windows-amd64-cpu16 |
🟨 CI finished in 2h 08m: Pass: 98%/384 | Total: 6d 10h | Avg: 24m 03s | Max: 1h 27m | Hits: 31%/23556
|
| Project | |
|---|---|
| +/- | CCCL Infrastructure |
| +/- | libcu++ |
| +/- | CUB |
| +/- | Thrust |
| +/- | CUDA Experimental |
| pycuda | |
| CUDA C Core Library |
Modifications in project or dependencies?
| Project | |
|---|---|
| +/- | CCCL Infrastructure |
| +/- | libcu++ |
| +/- | CUB |
| +/- | Thrust |
| +/- | CUDA Experimental |
| +/- | pycuda |
| +/- | CUDA C Core Library |
🏃 Runner counts (total jobs: 384)
| # | Runner |
|---|---|
| 311 | linux-amd64-cpu16 |
| 30 | linux-amd64-gpu-v100-latest-1 |
| 28 | linux-arm64-cpu16 |
| 15 | windows-amd64-cpu16 |
🟨 CI finished in 1h 50m: Pass: 98%/384 | Total: 3d 23h | Avg: 14m 58s | Max: 1h 27m | Hits: 63%/23556
|
| Project | |
|---|---|
| +/- | CCCL Infrastructure |
| +/- | libcu++ |
| +/- | CUB |
| +/- | Thrust |
| +/- | CUDA Experimental |
| pycuda | |
| CUDA C Core Library |
Modifications in project or dependencies?
| Project | |
|---|---|
| +/- | CCCL Infrastructure |
| +/- | libcu++ |
| +/- | CUB |
| +/- | Thrust |
| +/- | CUDA Experimental |
| +/- | pycuda |
| +/- | CUDA C Core Library |
🏃 Runner counts (total jobs: 384)
| # | Runner |
|---|---|
| 311 | linux-amd64-cpu16 |
| 30 | linux-amd64-gpu-v100-latest-1 |
| 28 | linux-arm64-cpu16 |
| 15 | windows-amd64-cpu16 |
🟨 CI finished in 1h 44m: Pass: 98%/386 | Total: 7d 20h | Avg: 29m 20s | Max: 1h 19m | Hits: 11%/25609
|
| Project | |
|---|---|
| +/- | CCCL Infrastructure |
| +/- | libcu++ |
| +/- | CUB |
| +/- | Thrust |
| +/- | CUDA Experimental |
| pycuda | |
| CCCL C Parallel Library |
Modifications in project or dependencies?
| Project | |
|---|---|
| +/- | CCCL Infrastructure |
| +/- | libcu++ |
| +/- | CUB |
| +/- | Thrust |
| +/- | CUDA Experimental |
| +/- | pycuda |
| +/- | CCCL C Parallel Library |
🏃 Runner counts (total jobs: 386)
| # | Runner |
|---|---|
| 312 | linux-amd64-cpu16 |
| 31 | linux-amd64-gpu-v100-latest-1 |
| 28 | linux-arm64-cpu16 |
| 15 | windows-amd64-cpu16 |
🟩 CI finished in 1h 47m: Pass: 100%/386 | Total: 2d 17h | Avg: 10m 13s | Max: 1h 19m | Hits: 20%/25621
|
| Project | |
|---|---|
| +/- | CCCL Infrastructure |
| +/- | libcu++ |
| +/- | CUB |
| +/- | Thrust |
| +/- | CUDA Experimental |
| pycuda | |
| CCCL C Parallel Library |
Modifications in project or dependencies?
| Project | |
|---|---|
| +/- | CCCL Infrastructure |
| +/- | libcu++ |
| +/- | CUB |
| +/- | Thrust |
| +/- | CUDA Experimental |
| +/- | pycuda |
| +/- | CCCL C Parallel Library |
🏃 Runner counts (total jobs: 386)
| # | Runner |
|---|---|
| 312 | linux-amd64-cpu16 |
| 31 | linux-amd64-gpu-v100-latest-1 |
| 28 | linux-arm64-cpu16 |
| 15 | windows-amd64-cpu16 |
|
@jrhemstad It seems that sccache is not really good with nvc++ as the host compiler. That said, the test times are below those of the MSVC runners, so I would like to add them to the regular test matrix anyway. We are only building so that should be fine |
|
@robertmaynard We are seeing poor sccache hit rates with nvc++ as the host compiler. Is that expected? |
🟩 CI finished in 1h 36m: Pass: 100%/386 | Total: 2d 19h | Avg: 10m 30s | Max: 1h 01m | Hits: 56%/25621
|
| Project | |
|---|---|
| +/- | CCCL Infrastructure |
| +/- | libcu++ |
| +/- | CUB |
| +/- | Thrust |
| +/- | CUDA Experimental |
| pycuda | |
| CCCL C Parallel Library |
Modifications in project or dependencies?
| Project | |
|---|---|
| +/- | CCCL Infrastructure |
| +/- | libcu++ |
| +/- | CUB |
| +/- | Thrust |
| +/- | CUDA Experimental |
| +/- | pycuda |
| +/- | CCCL C Parallel Library |
🏃 Runner counts (total jobs: 386)
| # | Runner |
|---|---|
| 312 | linux-amd64-cpu16 |
| 31 | linux-amd64-gpu-v100-latest-1 |
| 28 | linux-arm64-cpu16 |
| 15 | windows-amd64-cpu16 |
|
Ok the second run had a 50% hit rate which seems fine enough for me |
This adds nvhpc as the host container to our CI matrix
This adds nvhpc as the host container to our CI matrix
We also support the latest nvc++ as a host compiler, so we should test it in CI