From 932c49509372573dfd4a0a380d493a8b9276a71a Mon Sep 17 00:00:00 2001 From: Tim Davis Date: Fri, 2 Aug 2024 22:28:08 -0500 Subject: [PATCH 1/2] KLU test coverage when CUDA is in use --- KLU/Tcov/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/KLU/Tcov/Makefile b/KLU/Tcov/Makefile index 14474247fb..48d61cc68c 100644 --- a/KLU/Tcov/Makefile +++ b/KLU/Tcov/Makefile @@ -22,7 +22,7 @@ LDLIBS = -L../../lib \ -lm -lrt \ -Wl,-rpath=../../lib -lstdc++ -I = -I../../include/suitesparse -I../Include -I../User -I../../BTF/Include -I../Source +I = -I../../include/suitesparse -I../Include -I../User -I../../BTF/Include -I../Source -I/usr/local/cuda/include all: klutest klultest - ./klultests > klultests.out From 725152e7b58d7202b58abb98405afa23143ef498 Mon Sep 17 00:00:00 2001 From: Tim Davis Date: Fri, 2 Aug 2024 23:38:04 -0500 Subject: [PATCH 2/2] test coverage for SPQR and UMFPACK (Tcov) --- SPQR/Tcov/Makefile | 13 +++++++------ UMFPACK/Tcov/Makefile | 6 +++--- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/SPQR/Tcov/Makefile b/SPQR/Tcov/Makefile index 6661325feb..f84cb0ab5b 100644 --- a/SPQR/Tcov/Makefile +++ b/SPQR/Tcov/Makefile @@ -54,7 +54,7 @@ CF = -pg -g --coverage -fprofile-abs-path -O0 \ CUDA_LIB = $(CUDART_LIB) $(CUBLAS_LIB) NVCC = /usr/local/cuda/bin/nvcc -g --profile --generate-line-info $(NV20) \ - -Xcompiler -fprofile-arcs -Xcompiler -ftest-coverage + -Xcompiler -fprofile-arcs -Xcompiler -ftest-coverage -DSPQR_HAS_CUDA #------------------------------------------------------------------------------- @@ -163,11 +163,12 @@ endif $(OBJ): $(INC) -I = -I../../CHOLMOD/Include -I../../SuiteSparse_config -I../Include -I../../include/suitesparse +I = -I../../CHOLMOD/Include -I../../SuiteSparse_config -I../Include -I../../include/suitesparse ifneq ($(GPU_CONFIG),) - I += -I../../SuiteSparse_GPURuntime/Include \ - -I../../GPUQREngine/Include $(CUDA_INC) + I += -I../GPURuntime/Include \ + -I../GPUQREngine/Include $(CUDA_INC) \ + -isystem /usr/local/cuda/include endif C = $(CXX) $(CF) $(I) $(GPU_CONFIG) @@ -365,7 +366,7 @@ spqrgpu_computeFrontStaging.o: ../SPQRGPU/spqrgpu_computeFrontStaging.cpp # SuiteSparse_GPURuntime #------------------------------------------------------------------------------- -GPURUNTIME = ../../SuiteSparse_GPURuntime +GPURUNTIME = ../GPURuntime GPURUNSRC = $(GPURUNTIME)/Source GPURUNINC = -I$(GPURUNTIME)/Include -I../../SuiteSparse_config @@ -398,7 +399,7 @@ SuiteSparseGPU_Workspace_transfer.o: \ # GPUQREngine #------------------------------------------------------------------------------- -GPUQR = ../../GPUQREngine +GPUQR = ../GPUQREngine GPUQRSRC = $(GPUQR)/Source GPUQRDEMO = $(GPUQR)/Demo GPUQRINC = $(GPURUNINC) -I$(GPUQR)/Include diff --git a/UMFPACK/Tcov/Makefile b/UMFPACK/Tcov/Makefile index d8919967fc..c795040e32 100644 --- a/UMFPACK/Tcov/Makefile +++ b/UMFPACK/Tcov/Makefile @@ -27,7 +27,7 @@ SUITESPARSE ?= $(realpath $(CURDIR)/../..) CF = $(OPTION) -g --coverage -fprofile-abs-path -std=c11 -DTESTING -fopenmp \ -DBLAS32 -I = -I../../include/suitesparse -I../Include -I../../UMFPACK/Source -I../../AMD/Include +I = -I../../include/suitesparse -I../Include -I../../UMFPACK/Source -I../../AMD/Include -isystem /usr/local/cuda/include BLAS = -lblas FLIB = $(LAPACK) $(BLAS) @@ -41,8 +41,8 @@ CLIB = $(SUITESPARSE)/SuiteSparse_config/build/libsuitesparseconfig.a \ $(SUITESPARSE)/CCOLAMD/build/libccolamd.a # dynamic libraries (if CUDA is needed for CHOLMOD): Linux only -CLIB = -L../../lib -lsuitesparseconfig -lcholmod -lamd -lcolamd -lccolamd -lcamd \ - -Wl,--rpath=$(SUITESPARSE)/lib +CLIB = -L../../lib -lsuitesparseconfig -lcholmod -lamd -lcolamd -lccolamd \ + -lcamd -Wl,--rpath=$(SUITESPARSE)/lib LIBS = $(FLIB) $(CLIB) -lm -lrt