Skip to content

Commit

Permalink
Merge Run the CUDA tests with a few configurations
Browse files Browse the repository at this point in the history
Use `amdci` to run some CUDA tests.

Thanks to the new card, we can use `amdci` to run some CUDA tests.
In order to not overload the machines, I only use it with CUDA 11.0 for now.

Related PR: #781
  • Loading branch information
tcojean authored Jun 5, 2021
2 parents b621017 + bbe132a commit 0a75db1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
14 changes: 6 additions & 8 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ include:
- if [ -n "${CUDA_ARCH}" ]; then
CUDA_ARCH_STR=-DGINKGO_CUDA_ARCHITECTURES=${CUDA_ARCH};
CUDA_HOST_STR=-DCMAKE_CUDA_HOST_COMPILER=$(which ${CXX_COMPILER});
export CUDA_VISIBLE_DEVICES=$((RANDOM % 2));
fi
- cmake ${CI_PROJECT_DIR}${CI_PROJECT_DIR_SUFFIX}
-GNinja
Expand Down Expand Up @@ -98,7 +97,6 @@ include:
- if [ -n "${CUDA_ARCH}" ]; then
CUDA_ARCH_STR=-DGINKGO_CUDA_ARCHITECTURES=${CUDA_ARCH};
CUDA_HOST_STR=-DCMAKE_CUDA_HOST_COMPILER=$(which ${CXX_COMPILER});
export CUDA_VISIBLE_DEVICES=$((RANDOM % 2));
fi
- if [ -n "${SYCL_DEVICE_FILTER}" ]; then export SYCL_DEVICE_FILTER; fi
- cmake ${CI_PROJECT_DIR}${CI_PROJECT_DIR_SUFFIX}
Expand Down Expand Up @@ -509,7 +507,7 @@ build/cuda102/intel/cuda/debug/static:

# cuda 11.0 and friends
build/cuda110/gcc/cuda/debug/shared:
<<: *default_build
<<: *default_build_with_test
extends:
- .full_test_condition
- .use_gko-cuda110-gnu9-llvm9-intel2020
Expand All @@ -519,10 +517,10 @@ build/cuda110/gcc/cuda/debug/shared:
BUILD_CUDA: "ON"
BUILD_TYPE: "Debug"
FAST_TESTS: "ON"
CUDA_ARCH: 35
CUDA_ARCH: 61

build/cuda110/clang/cuda/release/static:
<<: *default_build
<<: *default_build_with_test
extends:
- .full_test_condition
- .use_gko-cuda110-gnu9-llvm9-intel2020
Expand All @@ -534,10 +532,10 @@ build/cuda110/clang/cuda/release/static:
BUILD_CUDA: "ON"
BUILD_TYPE: "Release"
BUILD_SHARED_LIBS: "OFF"
CUDA_ARCH: 35
CUDA_ARCH: 61

build/cuda110/intel/cuda/debug/static:
<<: *default_build
<<: *default_build_with_test
extends:
- .quick_test_condition
- .use_gko-cuda110-gnu9-llvm9-intel2020
Expand All @@ -550,7 +548,7 @@ build/cuda110/intel/cuda/debug/static:
BUILD_TYPE: "Debug"
FAST_TESTS: "ON"
BUILD_SHARED_LIBS: "OFF"
CUDA_ARCH: 35
CUDA_ARCH: 61

# HIP AMD
build/amd/gcc/hip/debug/shared:
Expand Down
3 changes: 1 addition & 2 deletions .gitlab/image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@
image: ginkgohub/cuda:110-gnu9-llvm9-intel2020
tags:
- private_ci
- controller
- cpu
- nvidia-gpu

.use_gko-amd-gnu8-llvm7:
image: ginkgohub/rocm:gnu8-llvm7
Expand Down

0 comments on commit 0a75db1

Please sign in to comment.