@@ -170,54 +170,54 @@ noether-cpu:
170170# ----------------------------------------------------------------------------------------
171171# Rust + CUDA
172172# ----------------------------------------------------------------------------------------
173- # noether-rust-qfunctions:
174- # stage: test:gpu-and-float
175- # tags:
176- # - cuda
177- # interruptible: true
178- # before_script:
179- # # Environment
180- # - export COVERAGE=1 CC=gcc-14 CXX=g++-14 FC=gfortran-14 NVCC=nvcc GPU_CLANG=1
181- # - export NPROC_POOL=1
182- # - echo "-------------- nproc ---------------" && NPROC_CPU=$(nproc) && NPROC_GPU=$(($(nproc)<8?$(nproc):8)) && echo "NPROC_CPU" $NPROC_CPU && echo "NPROC_GPU" $NPROC_GPU
183- # - echo "-------------- CC ------------------" && $CC --version
184- # - echo "-------------- CXX -----------------" && $CXX --version
185- # - echo "-------------- FC ------------------" && $FC --version
186- # - echo "-------------- NVCC ----------------" && $NVCC --version
187- # - echo "-------------- Rustc ---------------" && rustc --version
188- # - echo "-------------- Clang++ -------------" && clang++ --version
189- # - echo "-------------- GCOV ----------------" && gcov-14 --version
190- # script:
191- # - rm -f .SUCCESS
192- # # Rustup
193- # - rustup update nightly
194- # - rustup component add rust-src --toolchain nightly
195- # - rustup component add llvm-tools --toolchain nightly
196- # # libCEED
197- # - make configure OPT='-g -O0 -fno-inline -march=native -ffp-contract=fast' CUDA_DIR=/usr/local/cuda-12.9
198- # - echo "-------------- libCEED -------------" && make info
199- # - make clean
200- # - make -k -j$NPROC_CPU -l$NPROC_CPU
201- # # -- libCEED only tests
202- # - echo "-------------- Rust QFunction tests -----"
203- # # Note: PETSC_DIR is set by default in GitLab runner env, unsetting to isolate core tests
204- # - export PETSC_DIR= PETSC_ARCH=
205- # - make -k -j$((NPROC_GPU / NPROC_POOL)) JUNIT_BATCH="rust-qfunction" junit search=rustqfunction
206- # # Report status
207- # - touch .SUCCESS
208- # after_script:
209- # - |
210- # if [ -f .SUCCESS ]; then
211- # lcov --directory . --capture --output-file coverage.info --ignore-errors source,mismatch;
212- # bash <(curl -s https://codecov.io/bash) -f coverage.info -t ${CODECOV_ACCESS_TOKEN} -F interface;
213- # bash <(curl -s https://codecov.io/bash) -f coverage.info -t ${CODECOV_ACCESS_TOKEN} -F gallery;
214- # bash <(curl -s https://codecov.io/bash) -f coverage.info -t ${CODECOV_ACCESS_TOKEN} -F backends;
215- # fi
216- # artifacts:
217- # paths:
218- # - build/*.junit
219- # reports:
220- # junit: build/*.junit
173+ noether-rust-qfunctions :
174+ stage : test:gpu-and-float
175+ tags :
176+ - cuda
177+ interruptible : true
178+ before_script :
179+ # Environment
180+ - export COVERAGE=1 CC=gcc-14 CXX=g++-14 FC=gfortran-14 NVCC=nvcc CEED_CLANG_CUDA_CXX=clang++-22
181+ - export NPROC_POOL=1
182+ - echo "-------------- nproc ---------------" && NPROC_CPU=$(nproc) && NPROC_GPU=$(($(nproc)<8?$(nproc):8)) && echo "NPROC_CPU" $NPROC_CPU && echo "NPROC_GPU" $NPROC_GPU
183+ - echo "-------------- CC ------------------" && $CC --version
184+ - echo "-------------- CXX -----------------" && $CXX --version
185+ - echo "-------------- FC ------------------" && $FC --version
186+ - echo "-------------- NVCC ----------------" && $NVCC --version
187+ - echo "-------------- Rustc ---------------" && rustc --version
188+ - echo "-------------- Clang++ -------------" && clang++ --version
189+ - echo "-------------- GCOV ----------------" && gcov-14 --version
190+ script :
191+ - rm -f .SUCCESS
192+ # Rustup
193+ - rustup update nightly
194+ - rustup component add rust-src --toolchain nightly
195+ - rustup component add llvm-tools --toolchain nightly
196+ # libCEED
197+ - make configure OPT='-g -O0 -fno-inline -march=native -ffp-contract=fast' CUDA_DIR=/usr/local/cuda-12.9
198+ - echo "-------------- libCEED -------------" && make info
199+ - make clean
200+ - make -k -j$NPROC_CPU -l$NPROC_CPU
201+ # -- libCEED only tests
202+ - echo "-------------- Rust QFunction tests -----"
203+ # Note: PETSC_DIR is set by default in GitLab runner env, unsetting to isolate core tests
204+ - export PETSC_DIR= PETSC_ARCH=
205+ - make -k -j$((NPROC_GPU / NPROC_POOL)) JUNIT_BATCH="rust-qfunction" junit search=rustqfunction
206+ # Report status
207+ - touch .SUCCESS
208+ after_script :
209+ - |
210+ if [ -f .SUCCESS ]; then
211+ lcov --directory . --capture --output-file coverage.info --ignore-errors source,mismatch;
212+ bash <(curl -s https://codecov.io/bash) -f coverage.info -t ${CODECOV_ACCESS_TOKEN} -F interface;
213+ bash <(curl -s https://codecov.io/bash) -f coverage.info -t ${CODECOV_ACCESS_TOKEN} -F gallery;
214+ bash <(curl -s https://codecov.io/bash) -f coverage.info -t ${CODECOV_ACCESS_TOKEN} -F backends;
215+ fi
216+ artifacts :
217+ paths :
218+ - build/*.junit
219+ reports :
220+ junit : build/*.junit
221221
222222
223223# ----------------------------------------------------------------------------------------
0 commit comments