gitlab-ci: add nightly job testing NVHPC with Ninja on Linux
This commit is contained in:
parent
9474d02386
commit
16a5c36795
@ -237,6 +237,16 @@ t:fedora37-makefiles-nospace:
|
|||||||
CMAKE_CI_BUILD_NAME: fedora37_makefiles_nospace
|
CMAKE_CI_BUILD_NAME: fedora37_makefiles_nospace
|
||||||
CMAKE_CI_JOB_NIGHTLY: "true"
|
CMAKE_CI_JOB_NIGHTLY: "true"
|
||||||
|
|
||||||
|
t:nvhpc22.9-ninja:
|
||||||
|
extends:
|
||||||
|
- .nvhpc_ninja
|
||||||
|
- .cmake_test_linux_release
|
||||||
|
- .linux_x86_64_v3_builder_tags_cuda
|
||||||
|
- .run_dependent
|
||||||
|
- .needs_centos6_x86_64
|
||||||
|
variables:
|
||||||
|
CMAKE_CI_JOB_NIGHTLY: "true"
|
||||||
|
|
||||||
t:cuda9.2-nvidia:
|
t:cuda9.2-nvidia:
|
||||||
extends:
|
extends:
|
||||||
- .cuda9.2_nvidia
|
- .cuda9.2_nvidia
|
||||||
|
5
.gitlab/ci/configure_nvhpc_ninja.cmake
Normal file
5
.gitlab/ci/configure_nvhpc_ninja.cmake
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
set(CMake_TEST_CUDA "NVIDIA" CACHE STRING "")
|
||||||
|
|
||||||
|
set(configure_no_sccache 1)
|
||||||
|
|
||||||
|
include("${CMAKE_CURRENT_LIST_DIR}/configure_external_test.cmake")
|
@ -27,6 +27,16 @@ if ("$ENV{CMAKE_CONFIGURATION}" MATCHES "_jom")
|
|||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if ("$ENV{CMAKE_CONFIGURATION}" MATCHES "nvhpc_")
|
||||||
|
list(APPEND test_exclusions
|
||||||
|
# FIXME(#24187): This test fails with NVHPC as the CUDA host compiler.
|
||||||
|
"^CudaOnly.SeparateCompilationPTX$"
|
||||||
|
|
||||||
|
# FIXME(#24188): FindCUDAToolkit breaks on some symlink layouts.
|
||||||
|
"^Cuda.Toolkit$"
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
string(REPLACE ";" "|" test_exclusions "${test_exclusions}")
|
string(REPLACE ";" "|" test_exclusions "${test_exclusions}")
|
||||||
if (test_exclusions)
|
if (test_exclusions)
|
||||||
set(test_exclusions "(${test_exclusions})")
|
set(test_exclusions "(${test_exclusions})")
|
||||||
|
6
.gitlab/ci/docker/nvhpc22.9/Dockerfile
Normal file
6
.gitlab/ci/docker/nvhpc22.9/Dockerfile
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# https://catalog.ngc.nvidia.com/orgs/nvidia/containers/nvhpc/tags
|
||||||
|
FROM nvcr.io/nvidia/nvhpc:22.9-devel-cuda_multi-ubuntu22.04
|
||||||
|
MAINTAINER Brad King <brad.king@kitware.com>
|
||||||
|
|
||||||
|
COPY install_deps.sh /root/install_deps.sh
|
||||||
|
RUN sh /root/install_deps.sh
|
11
.gitlab/ci/docker/nvhpc22.9/install_deps.sh
Executable file
11
.gitlab/ci/docker/nvhpc22.9/install_deps.sh
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
|
||||||
|
# Install development tools.
|
||||||
|
apt-get install -y \
|
||||||
|
curl
|
||||||
|
|
||||||
|
apt-get clean
|
5
.gitlab/ci/env_nvhpc_ninja.sh
Normal file
5
.gitlab/ci/env_nvhpc_ninja.sh
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
export CC=nvc
|
||||||
|
export CXX=nvc++
|
||||||
|
export FC=nvfortran
|
||||||
|
export CUDACXX=nvcc
|
||||||
|
export CUDAHOSTCXX=nvc++
|
@ -255,6 +255,18 @@
|
|||||||
CMAKE_CONFIGURATION: inteloneapi_makefiles
|
CMAKE_CONFIGURATION: inteloneapi_makefiles
|
||||||
CMAKE_GENERATOR: "Unix Makefiles"
|
CMAKE_GENERATOR: "Unix Makefiles"
|
||||||
|
|
||||||
|
### NVHPC Compiler
|
||||||
|
|
||||||
|
.nvhpc:
|
||||||
|
image: "kitware/cmake:ci-nvhpc22.9-x86_64-2022-11-22"
|
||||||
|
variables:
|
||||||
|
CMAKE_ARCH: x86_64
|
||||||
|
|
||||||
|
.nvhpc_ninja:
|
||||||
|
extends: .nvhpc
|
||||||
|
variables:
|
||||||
|
CMAKE_CONFIGURATION: nvhpc_ninja
|
||||||
|
|
||||||
### CUDA builds
|
### CUDA builds
|
||||||
|
|
||||||
.cuda9.2:
|
.cuda9.2:
|
||||||
@ -392,6 +404,13 @@
|
|||||||
- docker
|
- docker
|
||||||
- linux
|
- linux
|
||||||
|
|
||||||
|
.linux_x86_64_v3_builder_tags_cuda:
|
||||||
|
tags:
|
||||||
|
- cmake
|
||||||
|
- cuda-rt
|
||||||
|
- docker
|
||||||
|
- linux-x86_64-v3
|
||||||
|
|
||||||
.linux_builder_tags_radeon:
|
.linux_builder_tags_radeon:
|
||||||
tags:
|
tags:
|
||||||
- cmake
|
- cmake
|
||||||
|
Loading…
Reference in New Issue
Block a user