Skip to content

Commit

Permalink
Enable nightly tests
Browse files Browse the repository at this point in the history
  • Loading branch information
miscco committed Aug 26, 2024
1 parent 201fc5d commit 2beac0e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 35 deletions.
43 changes: 10 additions & 33 deletions ci/matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,44 +87,21 @@ workflows:
- {jobs: ['infra'], project: 'cccl', ctk: *ctk_11_1, cxx: [*gcc-oldest, *llvm-oldest]}
- {jobs: ['infra'], project: 'cccl', ctk: *ctk_curr, cxx: [*gcc-newest, *llvm-newest]}
nightly:
# libcudacxx build fails, CUB tests fail:
- {jobs: ['build'], ctk: *ctk_11_1, gpu: 'v100', sm: 'gpu', cxx: *gcc6, std: [11], project: ['cub']}
- {jobs: ['test'], ctk: *ctk_11_1, gpu: 'v100', sm: 'gpu', cxx: *gcc6, std: [11], project: ['thrust']}
# - {jobs: ['test'], ctk: *ctk_11_1, gpu: 'v100', sm: 'gpu', cxx: *gcc6, std: [11] }

# libcudacxx build fails, CUB tests fail:
- {jobs: ['build'], ctk: *ctk_11_1, gpu: 't4', sm: 'gpu', cxx: *llvm9, std: [17], project: ['cub']}
- {jobs: ['test'], ctk: *ctk_11_1, gpu: 't4', sm: 'gpu', cxx: *llvm9, std: [17], project: ['thrust']}
# - {jobs: ['test'], ctk: *ctk_11_1, gpu: 't4', sm: 'gpu', cxx: *llvm9, std: [17] }

# CUB + libcudacxx tests fails:
- {jobs: ['build'], ctk: *ctk_11_8, gpu: 'rtx2080', sm: 'gpu', cxx: *gcc11, std: [17], project: ['libcudacxx', 'cub']}
- {jobs: ['test'], ctk: *ctk_11_8, gpu: 'rtx2080', sm: 'gpu', cxx: *gcc11, std: [17], project: ['thrust']}
# - {jobs: ['test'], ctk: *ctk_11_8, gpu: 'rtx2080', sm: 'gpu', cxx: *gcc11, std: [17] }

# libcudacxx tests fail:
- {jobs: ['build'], ctk: *ctk_curr, gpu: 'rtxa6000', sm: 'gpu', cxx: *gcc7, std: [14], project: ['libcudacxx']}
- {jobs: ['build'], ctk: *ctk_curr, gpu: 'l4', sm: 'gpu', cxx: *gcc12, std: 'all', project: ['libcudacxx']}
- {jobs: ['build'], ctk: *ctk_curr, gpu: 'rtx4090', sm: 'gpu', cxx: *llvm9, std: [11], project: ['libcudacxx']}
- {jobs: ['build'], ctk: *ctk_curr, gpu: 'h100', sm: 'gpu', cxx: *gcc12, std: [11, 20], project: ['libcudacxx']}
- {jobs: ['build'], ctk: *ctk_curr, gpu: 'h100', sm: 'gpu', cxx: *llvm16, std: [17], project: ['libcudacxx']}
- {jobs: ['test'], ctk: *ctk_curr, gpu: 'rtxa6000', sm: 'gpu', cxx: *gcc7, std: [14], project: ['cub', 'thrust']}
- {jobs: ['test'], ctk: *ctk_curr, gpu: 'l4', sm: 'gpu', cxx: *gcc12, std: 'all', project: ['cub', 'thrust']}
- {jobs: ['test'], ctk: *ctk_curr, gpu: 'rtx4090', sm: 'gpu', cxx: *llvm9, std: [11], project: ['cub', 'thrust']}
- {jobs: ['test'], ctk: *ctk_curr, gpu: 'h100', sm: 'gpu', cxx: *gcc12, std: [11, 20], project: ['cub', 'thrust']}
- {jobs: ['test'], ctk: *ctk_curr, gpu: 'h100', sm: 'gpu', cxx: *llvm16, std: [17], project: ['cub', 'thrust']}
# - {jobs: ['test'], ctk: *ctk_curr, gpu: 'rtxa6000', sm: 'gpu', cxx: *gcc7, std: [14] }
# - {jobs: ['test'], ctk: *ctk_curr, gpu: 'l4', sm: 'gpu', cxx: *gcc12, std: 'all' }
# - {jobs: ['test'], ctk: *ctk_curr, gpu: 'rtx4090', sm: 'gpu', cxx: *llvm9, std: [11] }
# - {jobs: ['test'], ctk: *ctk_curr, gpu: 'h100', sm: 'gpu', cxx: *gcc12, std: [11, 20] }
# - {jobs: ['test'], ctk: *ctk_curr, gpu: 'h100', sm: 'gpu', cxx: *llvm16, std: [17] }
- {jobs: ['test'], ctk: '11.1', gpu: 'v100', sm: 'gpu', cxx: 'gcc6', std: [11]}
- {jobs: ['test'], ctk: '11.1', gpu: 't4', sm: 'gpu', cxx: 'clang9', std: [17]}
- {jobs: ['test'], ctk: '11.8', gpu: 'rtx2080', sm: 'gpu', cxx: 'gcc11', std: [17]}
- {jobs: ['test'], ctk: 'curr', gpu: 'rtxa6000', sm: 'gpu', cxx: 'gcc7', std: [14]}
- {jobs: ['test'], ctk: 'curr', gpu: 'l4', sm: 'gpu', cxx: 'gcc12', std: 'all'}
- {jobs: ['test'], ctk: 'curr', gpu: 'rtx4090', sm: 'gpu', cxx: 'clang9', std: [11]}
# H100 runners are currently flakey, only build since those use CPU-only runners:
- {jobs: ['build'], ctk: 'curr', gpu: 'h100', sm: 'gpu', cxx: 'gcc12', std: [11, 20]}
- {jobs: ['build'], ctk: 'curr', gpu: 'h100', sm: 'gpu', cxx: 'clang16', std: [17]}

# nvrtc:
- {jobs: ['nvrtc'], ctk: *ctk_curr, gpu: 't4', sm: 'gpu', cxx: *gcc12, std: [20], project: ['libcudacxx']}
- {jobs: ['nvrtc'], ctk: *ctk_curr, gpu: 'rtxa6000', sm: 'gpu', cxx: *gcc12, std: [20], project: ['libcudacxx']}
- {jobs: ['nvrtc'], ctk: *ctk_curr, gpu: 'l4', sm: 'gpu', cxx: *gcc12, std: 'all', project: ['libcudacxx']}
# Fails on h100:
# - {jobs: ['nvrtc'], ctk: *ctk_curr, gpu: 'h100', sm: 'gpu', cxx: *gcc12, std: [11, 20], project: ['libcudacxx']}
- {jobs: ['nvrtc'], ctk: *ctk_curr, gpu: 'h100', sm: 'gpu', cxx: *gcc12, std: [11, 20], project: ['libcudacxx']}

# Any generated jobs that match the entries in `exclude` will be removed from the final matrix for all workflows.
exclude:
Expand Down
7 changes: 5 additions & 2 deletions cub/test/catch2_test_nvrtc.cu
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ TEST_CASE("Test nvrtc", "[test][nvrtc]")
"#include <cub/block/block_radix_sort.cuh> \n"
"#include <cub/block/block_reduce.cuh> \n"
"#include <cub/block/block_scan.cuh> \n"
"#include <cub/device/dispatch/kernels/reduce.cuh> \n"
" \n"
"extern \"C\" __global__ void kernel(int *ptr, int *errors) \n"
"{ \n"
Expand Down Expand Up @@ -224,10 +225,11 @@ TEST_CASE("Test nvrtc", "[test][nvrtc]")
int ptx_version{};
cub::PtxVersion(ptx_version);
const std::string arch = std::string("-arch=sm_") + std::to_string(ptx_version / 10);
const std::string std = std::string("-std=c++") + std::to_string(_CCCL_STD_VER - 2000);

constexpr int num_includes = 5;
constexpr int num_includes = 6;
const char* includes[num_includes] = {
NVRTC_CUB_PATH, NVRTC_THRUST_PATH, NVRTC_LIBCUDACXX_PATH, NVRTC_CTK_PATH, arch.c_str()};
NVRTC_CUB_PATH, NVRTC_THRUST_PATH, NVRTC_LIBCUDACXX_PATH, NVRTC_CTK_PATH, arch.c_str(), std.c_str()};

std::size_t log_size{};
nvrtcResult compile_result = nvrtcCompileProgram(prog, num_includes, includes);
Expand Down Expand Up @@ -294,6 +296,7 @@ TEST_CASE("Test nvrtc", "[test][nvrtc]")
}

REQUIRE(CUDA_SUCCESS == cuMemFree(d_ptr));
REQUIRE(CUDA_SUCCESS == cuMemFree(d_err));
REQUIRE(CUDA_SUCCESS == cuModuleUnload(module));
REQUIRE(CUDA_SUCCESS == cuCtxDestroy(context));
}

0 comments on commit 2beac0e

Please sign in to comment.