Commit 14948967 authored by Swann Perarnau's avatar Swann Perarnau
Browse files

[ci/fix] support for cross-cc check programs

Extra recursive target across the repository to build the test programs
without running them. Allows us to cross-compile both the lib and the
test programs on frontend systems, without launching on the
compute nodes.

Make us of that to fix the theta ECP-CI job using icc.
parent 2dca4279
Pipeline #10932 passed with stages
in 3 minutes and 24 seconds
......@@ -86,21 +86,20 @@ make:theta-batch:
- staging
variables:
- $ECP_MIRROR == "THETA"
variables:
CC: "icc"
CFLAGS: "-xKNL"
LDFLAGS: "-qopenmp-link=static"
script:
- |
cat > aml-ci-script.sh << EOF
#!/bin/bash
module list
./autogen.sh
./configure
make -j63
make check VERBOSE=1
EOF
- cat aml-ci-script.sh
- chmod +x aml-ci-script.sh
- aprun ./aml-ci-script.sh
- ./autogen.sh
- ./configure --host=x86_64
- make
- make check-programs
- aprun make check VERBOSE=1
artifacts:
when: on_failure
paths:
- tests/*.log
- doc/tutorials/*.log
- benchmarks/*.log
- config.log
......@@ -37,3 +37,7 @@ BENCHMARKS = $(NOPREFETCH)
# all tests
check_PROGRAMS = $(BENCHMARKS)
TESTS = $(BENCHMARKS)
# phony target to allow us to compile the check programs without running the
# tests. Required for any environment where we are cross-compiling
check-programs-local: $(BENCHMARKS)
......@@ -174,6 +174,9 @@ AC_SUBST(CUDA_CFLAGS)
AC_SUBST(CUDA_LIBS)
AC_SUBST(NVCC)
# Support for cross-compiling check programs
AM_EXTRA_RECURSIVE_TARGETS([check-programs])
# Output
########
......
......@@ -53,3 +53,7 @@ UNIT_TESTS = $(HELLO_TESTS) $(AREA_TESTS) $(LAYOUT_TESTS) $(DMA_TESTS) $(TILING_
check_PROGRAMS = $(UNIT_TESTS)
TESTS = $(UNIT_TESTS)
# phony target to allow us to compile the check programs without running the
# tests. Required for any environment where we are cross-compiling
check-programs-local: $(UNIT_TESTS)
......@@ -84,3 +84,7 @@ UNIT_TESTS = $(UTILS_TESTS) \
TST_PROGS = $(UNIT_TESTS)
check_PROGRAMS = $(TST_PROGS)
TESTS = $(TST_PROGS)
# phony target to allow us to compile the check programs without running the
# tests. Required for any environment where we are cross-compiling
check-programs-local: $(TST_PROGS)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment