mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
- Raise CUDA minimum from 9.0 to 11.4 (sm_70/Volta).
- Raise HIP minimum to GFX906 (Vega 20/MI50) / ROCm 5.6.
- Remove EIGEN_HAS_{CUDA,HIP,GPU}_FP16 guards — FP16 is always available
on sm_70+ and GFX906+.
- Remove obsolete __HIP_ARCH_HAS_* preprocessor branches.
- C++14 cleanup: remove pre-C++14 workarounds in GPU code.
- Fix NVCC warnings (deprecated register keyword, unreachable code,
tautological comparisons).
- Fix HIP test execution on gfx1151.
- Update CI configuration for new minimum versions.
74 lines
2.1 KiB
YAML
74 lines
2.1 KiB
YAML
# Base configuration for windows builds.
|
|
.build:windows:
|
|
needs: []
|
|
extends: .common:windows
|
|
stage: build
|
|
variables:
|
|
EIGEN_CI_BUILD_TARGET: buildtests
|
|
# Reduce overall build size and compile time.
|
|
# Note: /d2ReducedOptimizeHugeFunctions is only available in VS 2019.
|
|
EIGEN_CI_TEST_CUSTOM_CXX_FLAGS: "/d2ReducedOptimizeHugeFunctions;/DEIGEN_STRONG_INLINE=inline;/Os"
|
|
script:
|
|
- ./ci/scripts/build.windows.script.ps1
|
|
tags:
|
|
- eigen-runner
|
|
- windows
|
|
- x86-64
|
|
rules:
|
|
- if: $CI_PIPELINE_SOURCE == "schedule" && $CI_PROJECT_NAMESPACE == "libeigen"
|
|
- if: $CI_PIPELINE_SOURCE == "web" && $CI_PROJECT_NAMESPACE == "libeigen"
|
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_PROJECT_NAMESPACE == "libeigen" && $CI_MERGE_REQUEST_LABELS =~ "/all-tests/"
|
|
|
|
cache:
|
|
key: "$CI_JOB_NAME_SLUG-$CI_COMMIT_REF_SLUG-BUILD"
|
|
paths:
|
|
- ${EIGEN_CI_BUILDDIR}/
|
|
|
|
######### MSVC #################################################################
|
|
|
|
# MSVC 14.29 (VS 2019) 32 bit
|
|
|
|
build:windows:x86:msvc-14.29:default:
|
|
extends: .build:windows
|
|
variables:
|
|
EIGEN_CI_MSVC_ARCH: "x64_x86"
|
|
|
|
# MSVC 14.29 (VS 2019) 64 bit
|
|
|
|
build:windows:x86-64:msvc-14.29:default:
|
|
extends: .build:windows
|
|
|
|
build:windows:x86-64:msvc-14.29:avx2:
|
|
extends: .build:windows
|
|
variables:
|
|
EIGEN_CI_ADDITIONAL_ARGS: "-DEIGEN_TEST_AVX2=on"
|
|
|
|
build:windows:x86-64:msvc-14.29:avx512dq:
|
|
extends: .build:windows
|
|
variables:
|
|
EIGEN_CI_ADDITIONAL_ARGS: "-DEIGEN_TEST_AVX512DQ=on"
|
|
|
|
|
|
# MSVC 14.29 (VS 2019) + CUDA
|
|
|
|
.build:windows:cuda:
|
|
extends: .build:windows
|
|
variables:
|
|
# Compute architectures present in the GitLab CI runners.
|
|
EIGEN_CI_CUDA_COMPUTE_ARCH: "70;75"
|
|
EIGEN_CI_BUILD_TARGET: buildtests_gpu
|
|
EIGEN_CI_ADDITIONAL_ARGS:
|
|
-DEIGEN_TEST_CUDA=on
|
|
-DEIGEN_CUDA_COMPUTE_ARCH=${EIGEN_CI_CUDA_COMPUTE_ARCH}
|
|
tags:
|
|
- eigen-runner
|
|
- windows
|
|
- x86-64
|
|
- cuda
|
|
|
|
# MSVC 14.29 + CUDA 12.2
|
|
build:windows:x86-64:cuda-12.2:msvc-14.29:
|
|
extends: .build:windows:cuda
|
|
variables:
|
|
EIGEN_CI_BEFORE_SCRIPT: $$env:CUDA_PATH=$$env:CUDA_PATH_V12_2
|