GithubHelp home page GithubHelp logo

xiaoyeli / superlu Goto Github PK

View Code? Open in Web Editor NEW
266.0 266.0 94.0 7.01 MB

Supernodal sparse direct solver. https://portal.nersc.gov/project/sparse/superlu/

License: Other

Makefile 0.66% C 95.77% CMake 1.06% CSS 0.98% Fortran 0.30% Shell 0.15% SourcePawn 0.04% MATLAB 1.00% NASL 0.04%

superlu's People

Contributors

alugowski avatar armstrongj avatar barrysmith avatar biswa96 avatar evan-dsa avatar fweimer-rh avatar gruenich avatar jpetermugaas avatar jrobcary avatar liuyangzhuan avatar liviofetahu avatar lysnikolaou avatar nschloe avatar prj- avatar rth avatar sethtroisi avatar sfabbro avatar smit-create avatar wo80 avatar xiaoyeli avatar zedthree avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

superlu's Issues

Errors in compiling zschur_sludist.c

Hi Sherry,
I am trying to install PDSLin(2.2.0). But I encountered some problems during compiling stage..
The package is installed on lonestar5 at TACC with the following setup (make.inc):

######################################################################

Top directory make.inc

########################################################################

home directory, where the software is located

TOP = ${HOME}
PDSLIN_TOP = $(TOP)/lib/pdslin
########################################################################

hybrid solver library name

LIB = $(PDSLIN_TOP)/lib/libpdslin.a

########################################################################

make utility

MAKE = make

########################################################################

archiver and flags to build the library

ARCH = ar
ARCHFLAGS = -cr

########################################################################

C compiler, and flags

CC = mpicc
FLAGS = -g -O0 -fopenmp -std=c99 -DWITH_PETSC

########################################################################

Fortran compiler and flags

FC = mpif90
FLIB =
FFLAGS =

########################################################################

linker to link example programs to the library

LINKER = CC -Wl,--allow-multiple-definition

########################################################################

C++ compiler (this is not needed for your standard compilation)

CPP = mpicxx

########################################################################

Libraries:

BLAS/MPI libraries, and MPI include

L_BLAS =
L_MPI =
I_MPI =

#------------------------------------------------------#

parallel partitioning library, and its header files

L_PPART = -L${TACC_PMETIS_LIB}
I_PPART = -I${TACC_PMETIS_INC} -lparmetis -lmetis

#------------------------------------------------------#

Metis library, and its header files

L_METIS = -L${TACC_METIS_LIB}
I_METIS = -I${TACC_METIS_INC} -lmetis

#------------------------------------------------------#

SuperLU_DIST library, and its header files

I_SLUDIST = -DDEBUGlevel=0 -DPRNTlevel=0 -DAdd_ -DUSE_VENDOR_BLAS -I${TACC_SUPERLU_INC}
L_SLUDIST = -L${TACC_SUPERLU_LIB}/lib

#------------------------------------------------------#

Petsc library, and its header files

double version

#I_PETSC = -I/opt/apps/intel16/cray_mpich_7_3/petsc/3.7/include

-I/opt/apps/intel16/cray_mpich_7_3/petsc/3.7/haswell-complex/include

#L_PETSC = -L/opt/apps/intel16/cray_mpich_7_3/petsc/3.7/haswell-complex/lib -llibpetsc

complex (edison: module load cray-petsc-complex)

I_ZPETSC = -I$(PETSC_DIR)/include -I${PETSC_DIR}/${PETSC_ARCH}/include
L_ZPETSC = -L${PETSC_DIR}/${PETSC_ARCH}/lib -lpetsc

#------------------------------------------------------#

Other optional libraries

HIPS to extract subdomains

I_HIPS =

L_HIPS =

serial SuperLU

I_SLU =
L_SLU =
########################################

accumulate all includes and libraries

INC = -I$(PDSLIN_TOP)/include $(I_CDF) $(I_HIPS) $(I_SLU) $(I_SLUDIST) $(I_PPART) $(I_METIS) $(I_MUMPS) $(I_ZPETSC) $(I_PATOH) $(I_MPI)
#LIBS = $(LIB) $(L_CDF) $(L_HIPS) $(L_PETSC) $(L_SLU) $(L_SLUDIST) $(L_MUMPS) $(L_PATOH) $(L_PPART) # $(L_METIS) -mkl $(L_MPI) $(FLIB)
ZLIBS = $(LIB) $(L_CDF) $(L_HIPS) $(L_ZPETSC) $(L_SLU) $(L_SLUDIST) $(L_MUMPS) $(L_PATOH) $(L_PPART) $(L_METIS) -mkl $(L_MPI) $(FLIB)

I skipped PT-SCOTCH pkg because we have ParMetis available (slightly modified the src code removing header of scotch). When I compile the src/ with:
make zlib;

It reported the following errors from zschur_sludist.c file:

mpicc -c -I/home1/02802/chang/lib/pdslin/include -DDEBUGlevel=0 -DPRNTlevel=0 -DAdd_ -DUSE_VENDOR_BLAS -I/opt/apps/intel16/cray_mpich_7_3/petsc/3.7/haswell-complex/include -I/opt/apps/intel16/cray_mpich_7_3/pmetis/4.0.2/include -lparmetis -lmetis -I/opt/apps/intel16/metis/5.0.2/include -lmetis -I/opt/apps/intel16/cray_mpich_7_3/petsc/3.7//include -I/opt/apps/intel16/cray_mpich_7_3/petsc/3.7//haswell-complex/include -g -O0 -fopenmp -std=c99 -DWITH_PETSC zschur_sludist.c
zschur_sludist.c(118): error: struct "" has no field "xrow_to_proc"
SOLVEstruct->xrow_to_proc = NULL;
^
zschur_sludist.c(213): error: struct "" has no field "xrow_to_proc"
if( SOLVEstruct->xrow_to_proc == NULL ) assert( (SOLVEstruct->xrow_to_proc = intMalloc_dist(A->nrow)) );
^
zschur_sludist.c(213): error: struct "" has no field "xrow_to_proc"
if( SOLVEstruct->xrow_to_proc == NULL ) assert( (SOLVEstruct->xrow_to_proc = intMalloc_dist(A->nrow)) );
^
zschur_sludist.c(262): error: struct "" has no field "xrow_to_proc"
SOLVEstruct->xrow_to_proc[i] = p;
^
zschur_sludist.c(276): error: struct "" has no field "xrow_to_proc"
SOLVEstruct->xrow_to_proc[i] = p+1;
^
zschur_sludist.c(305): error: struct "" has no field "xrow_to_proc"
zpdslin_slu_allocate_buffers( n, blk, SOLVEstruct->xrow_to_proc, grid, Glu_persist, SOLVEstruct );

I am not a C programmer so I am wondering what happened....
Could you help me on that?
Thanks,
Chang

enable_blaslib misnamed?

I played around with the CMake build and found the variable enable_blaslib a bit strange. If TRUE, BLAS is always built as part of SuperLU, never taken from the system. Is this intentional?

SuperLU link error with Armadillo

I build superlu for windows as following some suggestions on commenting fortran compiler. Trying to use them in my application which uses armadillo as upper layer to call superlu gives me link error . I have linked superlu with armadillo and no issues there.
Any ideas or reasoning?

How to free memory of SuperLU_dist solver?

Hi, I'm using SuperLU with MFEM to solve Stokes equations. The solver works very well. But I noticed that if I made a for loop of the part of the solver and call the solver over and over again, it starts using more and more memory. Even though I'm deleting the solver's pointer.

    HypreParMatrix *H = HypreParMatrixFromBlocks(hBlocks, &blockCoeff);

    SuperLUSolver *superlu = new SuperLUSolver(MPI_COMM_WORLD);
    Operator *SLU_A = new SuperLURowLocMatrix(*H);
    superlu->SetOperator(*SLU_A);
    superlu->SetPrintStatistics(true);
    superlu->SetSymmetricPattern(true);
    superlu->SetColumnPermutation(superlu::PARMETIS);
    superlu->SetIterativeRefine(superlu::SLU_DOUBLE);

    //Solve the linear system Ax=B
    X.Randomize();
    superlu->Mult(B, X);
    //Delete used memory
    delete H;
    delete superlu;
    delete SLU_A;

I tried to use delete[] superlu and other ways of freeing the memory but nothing works. It's important to make that work because I want to use the solver in conjunction with a time-dependent problem and I have to call it multiple times. What should I do to fix the problem?

cmake install does not find MKL blas

My PKG_CONFIG_PATH contains the .pc files for Intel MKL, but superlu_seq keeps reporting

-- Did not find or specify BLAS so configure to build internal CBLAS ...

Specifying blas libraries explicitly also fails:

cmake -D CMAKE_INSTALL_PREFIX=/work2/00434/eijkhout/superluseq/installation-5.3.0-stampede2-intel-impi '-DTPL_BLAS_LIBRARIES=/opt/intel/compilers_and_libraries_2020.1.217/linux/mkl/lib/intel64_lin/mkl_intel_lp64;/opt/intel/compilers_and_libraries_2020.1.217/linux/mkl/lib/intel64_lin/mkl_sequential;/opt/intel/compilers_and_libraries_2020.1.217/linux/mkl/lib/intel64_lin/mkl_core;/opt/intel/compilers_and_libraries_2020.1.217/linux/mkl/lib/intel64_lin/pthread' /work2/00434/eijkhout/superluseq/superluseq-5.3.0

which makes sense because:

CMake Warning:
  Manually-specified variables were not used by the project:

    TPL_BLAS_LIBRARIES

Finally, in a slightly different configuration:

-- Did not find or specify BLAS so configure to build internal CBLAS ...
CMake Error at CBLAS/CMakeLists.txt:95 (export):
  export Unknown arguments.


CMake Error at /usr/share/cmake/Modules/WriteBasicConfigVersionFile.cmake:39 (message):
  No VERSION specified for WRITE_BASIC_CONFIG_VERSION_FILE()
Call Stack (most recent call first):
  /usr/share/cmake/Modules/CMakePackageConfigHelpers.cmake:152 (write_basic_config_version_file)
  SRC/CMakeLists.txt:263 (write_basic_package_version_file)

test case will not work on Apple with shared libraries

add_library(matgen ${sources}) will not work correctly on Apple when using shared libraries because you do not provide the BLAS library that resolves the required BLAS symbols.

Current fix is running cmake with -Denable_tests=0

Biulding on lunux with ATLAS

Hi there,

I'm trying to do a cmake build on linux with a custom built ATLAS. This is installed in :

/usr/local/packages/ATLAS-3.10.3 with it's lib and include directories below there.
The lib directory contaions the libararies:
libatlas.a libf77blas.a libptcblas.a libsatlas.so
libcblas.a liblapack.a libptf77blas.a libtatlas.so

I'm running cmake with:

cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/packages/superlu-5.2.2 -DTPL_BLAS_LIBRARIES=/usr/local/packages/ATLAS-3.10.3/lib/libatlas.a

And getting the following output:

Process XSDK defaults ...
USE_XSDK_DEFAULTS = 'FALSE'
-- SuperLU will be built as a static library.
-- The C compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/local/packages/gcc-9.3.0/bin/gcc
-- Check for working C compiler: /usr/local/packages/gcc-9.3.0/bin/gcc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- The Fortran compiler identification is GNU 9.3.0
-- Check for working Fortran compiler: /usr/local/packages/gcc-9.3.0/bin/gfortran
-- Check for working Fortran compiler: /usr/local/packages/gcc-9.3.0/bin/gfortran - works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /usr/local/packages/gcc-9.3.0/bin/gfortran supports Fortran 90
-- Checking whether /usr/local/packages/gcc-9.3.0/bin/gfortran supports Fortran 90 - yes
-- Did not find or specify BLAS so configure to build internal CBLAS ...
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

TPL_BLAS_LIBRARIES

-- Build files have been written to: /storage/stsxab/CentosBuild-2020/SuperLU/superlu-5.2.2/build

What do I have to do to pursuade it to use the pre-compiled atlas libs?

Cheers.

Phill.

Issues compiling shared library

I'm trying to compile a shared library version of SuperLU. I'm using the following cmake command from the build directory

cmake -G'MSYS Makefiles' -Denable_blaslib=OFF -DCMAKE_INSTALL_PREFIX="C:/msys64/mingw64/" -DBUILD_SHARED_LIBS=TRUE ..

Running make works until it reaches Linking C shared library libmatgen.dll, where I get a lot of undefined reference to [...]-errors

[...]
[ 90%] Linking C shared library libmatgen.dll
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/matgen.dir/objects.a(slatm1.c.obj):slatm1.c:(.text+0x15d): undefined reference to `input_error'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/matgen.dir/objects.a(slatb4.c.obj):slatb4.c:(.text+0x38): undefined reference to `smach'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/matgen.dir/objects.a(slatb4.c.obj):slatb4.c:(.text+0x87): undefined reference to `smach'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/matgen.dir/objects.a(slartg.c.obj):slartg.c:(.text+0x3c): undefined reference to `smach'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/matgen.dir/objects.a(slartg.c.obj):slartg.c:(.text+0x52): undefined reference to `smach'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/matgen.dir/objects.a(slartg.c.obj):slartg.c:(.text+0x68): undefined reference to `smach'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/matgen.dir/objects.a(slartg.c.obj):slartg.c:(.text+0x9c): more undefined references to `smach' follow
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/matgen.dir/objects.a(slatms.c.obj):slatms.c:(.text+0x776): undefined reference to `input_error'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/matgen.dir/objects.a(slatms.c.obj):slatms.c:(.text+0xa83): undefined reference to `sscal_'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/matgen.dir/objects.a(slatms.c.obj):slatms.c:(.text+0xbdd): undefined reference to `scopy_'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/matgen.dir/objects.a(slatms.c.obj):slatms.c:(.text+0xca7): undefined reference to `scopy_'
[...]

I think this is some kind of linking error related to BLAS, but I haven't been able to figure it out. Any ideas?

EDIT: Compiling the static version seems to work fine, but then I get undefined reference to [...]-errors when trying to compile any program, for example EXAMPLES/superlu.c.

Using the internal BLAS instead of the installed version (cmake -G'MSYS Makefiles' -Denable_blaslib=ON -DCMAKE_INSTALL_PREFIX="C:/msys64/mingw64/" -DBUILD_SHARED_LIBS=TRUE ..) gives me the same errors, but at a different stage in the compilation

[...]
[ 16%] Building C object CBLAS/CMakeFiles/blas.dir/zher2.c.obj
[ 16%] Linking C shared library libblas.dll
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/blas.dir/objects.a(sgemv.c.obj):sgemv.c:(.text+0x117): undefined reference to `input_error'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/blas.dir/objects.a(ssymv.c.obj):ssymv.c:(.text+0xe5): undefined reference to `input_error'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/blas.dir/objects.a(strsv.c.obj):strsv.c:(.text+0x179): undefined reference to `input_error'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/blas.dir/objects.a(sger.c.obj):sger.c:(.text+0xb7): undefined reference to `input_error'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/blas.dir/objects.a(ssyr2.c.obj):ssyr2.c:(.text+0xe5): undefined reference to `input_error'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/blas.dir/objects.a(dgemv.c.obj):dgemv.c:(.text+0x117): more undefined references to `input_error' follow
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/blas.dir/objects.a(icamax.c.obj):icamax.c:(.text+0x7f): undefined reference to `r_imag'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/blas.dir/objects.a(icamax.c.obj):icamax.c:(.text+0x152): undefined reference to `r_imag'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/blas.dir/objects.a(icamax.c.obj):icamax.c:(.text+0x218): undefined reference to `r_imag'
[...]

ar: two different operation options specified

I am trying to install superlu on my ubuntu 16.04 system but I got the following error:

ar -cr /home/afrah/SuperLU_5.2.0/lib/libsuperlu_5.2.a dcomplex.o zgssv.o zgssvx.o zsp_blas2.o zsp_blas3.o zgscon.o zlangs.o zgsequ.o zlaqgs.o zpivotgrowth.o zgsrfs.o zgstrf.o zgstrs.o zcopy_to_ucol.o zsnode_dfs.o zsnode_bmod.o zpanel_dfs.o zpanel_bmod.o zreadhb.o zreadrb.o zreadtriple.o zreadMM.o zcolumn_dfs.o zcolumn_bmod.o zpivotL.o zpruneL.o zmemory.o zutil.o zmyblas2.o zgsisx.o zgsitrf.o zldperm.o ilu_zdrop_row.o ilu_zsnode_dfs.o ilu_zcolumn_dfs.o ilu_zpanel_dfs.o ilu_zcopy_to_ucol.o ilu_zpivotL.o zdiagonal.o zlacon2.o dzsum1.o izmax1.o superlu_timer.o util.o memory.o get_perm_c.o mmd.o sp_coletree.o sp_preorder.o sp_ienv.o relax_snode.o heap_relax_snode.o colamd.o ilu_relax_snode.o ilu_heap_relax_snode.o mark_relax.o mc64ad.o qselect.o input_error.o dmach.o smach.o
ranlib /home/afrah/SuperLU_5.2.0/lib/libsuperlu_5.2.a
make[1]: Leaving directory '/home/afrah/SuperLU_5.2.0/SRC'
( cd TESTING/MATGEN; make )
make[1]: Entering directory '/home/afrah/SuperLU_5.2.0/TESTING/MATGEN'
ar -cr ../-L/usr/lib -llibtmglib.a slatms.o slagge.o slagsy.o slarge.o slaror.o slarot.o slatm2.o slatm3.o slatm1.o slaran.o slarnd.o slaruv.o slabad.o slarnv.o
slatb4.o slaset.o slartg.o r_lg10.o r_sign.o pow_dd.o pow_ri.o
ar: two different operation options specified
Makefile:56: recipe for target 'single' failed
make[1]: *** [single] Error 1
make[1]: Leaving directory '/home/afrah/SuperLU_5.2.0/TESTING/MATGEN'
Makefile:39: recipe for target 'tmglib' failed
make: *** [tmglib] Error 2

here is the content of my make.inc file
`############################################################################

Program: SuperLU

Module: make.inc

Purpose: Top-level Definitions

Creation date: October 2, 1995

Modified: February 4, 1997 Version 1.0
November 15, 1997 Version 1.1
September 1, 1999 Version 2.0

############################################################################

The machine (platform) identifier to append to the library names

PLAT = _linux

The name of the libraries to be created/linked to

SuperLUroot = /home/afrah/SuperLU_5.2.0
SUPERLULIB = $(SuperLUroot)/lib/libsuperlu_5.2.a

BLASDEF = -DUSE_VENDOR_BLAS
BLASLIB = -L/usr/lib/libblas -llibblas.a

TMGLIB = -L/usr/lib -llibtmglib.a
LIBS = $(SUPERLULIB) $(BLASLIB) $(TMGLIB)

The archiver and the flag(s) to use when building archive (library)
If your system has no ranlib, set RANLIB = echo.

ARCH = ar
ARCHFLAGS = -cr
RANLIB = ranlib

CC = gcc
CFLAGS = -O3 -g
CDEFS = -DAdd_
NOOPTS = -O0
FORTRAN = /usr/bin/gfortran
FFLAGS = -O2 -g -fopenmp
LOADER = $(CC)
LOADOPTS = -fopenmp
`
Here are my ar and gcc versions:
GNU ar (GNU Binutils for Ubuntu) 2.26.1
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609

Don't use MPI_THREAD_SINGLE in a case statement

Several examples in the EXAMPLE subdirectories use MPI constants such as MPI_THREAD_SINGLE in C case statements. This leads to compiler errors with certain MPI implementations.

I have written a forwarding MPI implementation MPItrampoline. In this implementation, MPI constants such as MPI_THREAD_SINGLE are regular integer constants and are not known at compile time. Consequently, they cannot be used in a C case statement. (The MPI standard 4.0 lists in section 2.5.4 which MPI constants can be used in case statements.)

Could you change you code to use if statements instead of a switch statement? I will open a pull request for this.

Issue when calling SuperLU from threads under windows

Hello,

I am making a progran to simulate electrical circuits using Armadillo, MKL and SuperLU.
When I run my simulations in serial mode everything goes as expected; No multi-threading anywhere, all linked libraries are the single-threaded version.

However, under windows, when I run the simulation from a parrallel for loop, the cores are not beign used the 100%, indicating some sort of race condition. This is not observed for Linux or MacOS.

I even posted a SO question to see if I was doing something wrong. It is also wrth noting, that for any simulation, the sparse matrix factorization is about 45% of the runtime. So SuperLU is used a lot.

After quiete some tinkering (even compiled with MinGW, made sure every object was read-only, etc...) I found that if I change the spasolver in armadillo from "superlu" to "lapack" the 100% of all cores is used, hence superlu is the problem.

Of course, Lapack is awfully slow for my problem and I need SuperLU. Hence this question.

Is there anything I should do to make SuperLu "unlock" the threads on windows?

Is SuperLU thread-safe?

Thanks in advance.

Possible absolute path in superlu build.

Hiya,

When building superlu (on a linux-from-scratch system) I get the below error. It looks like ar is using an absolute path when it shouldn't be, but I might be doing something wrong.

regards,

Colum

/usr/bin/ar cr /home/xiaoye/Dropbox/Codes/SuperLU/SuperLU_5.2.1/build/SRC/libsuperlu.a sgssv.o sgssvx.o ssp_blas2.o ssp_blas3.o sgscon.o slangs.o sgsequ.o slaqgs.o spivotgrowth.o sgsrfs.o sgstrf.o sgstrs.o scopy_to_ucol.o ssnode_dfs.o ssnode_bmod.o spanel_dfs.o spanel_bmod.o sreadhb.o sreadrb.o sreadtriple.o scolumn_dfs.o scolumn_bmod.o spivotL.o spruneL.o smemory.o sutil.o smyblas2.o sgsisx.o sgsitrf.o sldperm.o ilu_sdrop_row.o ilu_ssnode_dfs.o ilu_scolumn_dfs.o ilu_spanel_dfs.o ilu_scopy_to_ucol.o ilu_spivotL.o sdiagonal.o slacon2.o superlu_timer.o util.o memory.o get_perm_c.o mmd.o sp_coletree.o sp_preorder.o sp_ienv.o relax_snode.o heap_relax_snode.o colamd.o ilu_relax_snode.o ilu_heap_relax_snode.o mark_relax.o mc64ad.o qselect.o input_error.o smach.o dmach.o smach.o
/usr/bin/ar: /home/xiaoye/Dropbox/Codes/SuperLU/SuperLU_5.2.1/build/SRC/libsuperlu.a: No such file or directory

New release

The last release is 4 years old. Do you plan to a make a new release? If not, which hash on the master would you recommend us to use?

Suprisingly high memory requirements in LU factorization

Hi,

I'm using armadillo to do eigendecomposition on some sparse matrices. armadillo uses SuperLU and ARPACK for this.
In particular, for the matrices I'm interested in, armadillo uses zgstrf, zgstrs, and ZNAUPD (ARPACK). I'm hitting 'Not enough memory' errors for what I would consider not especially large matrices. In particular, a small increase in matrix size requires a huge increase in memory usage.

Tracing the execution, the error happens in zgstrf.c:255. I can generate random matrices of the same size and around the same density and reliably hit the same problem. I'm guessing the fill-in is somehow related, but I don't really understand the algorithms involved.

For example, for a (2x27x666)x(2x27x666) matrix I can diagonalise comfortably with <32G of memory. Jumping to (2x28x666)x(2x28x666) requires >256G of memory; with 256G of memory I hit a 'Not enough memory' error, from zgstrf. I have access to more memory but it seems pointless to push until I know why the memory usage suddenly explodes for this small size increase.

I'm not sure if this is actually a bug, or known behaviour. I'm open to suggestions on what's going on.

Notes:

  • I'm using Hermitian matrices
  • The density is around 0.05
  • The rcond is around 1e-5
  • SuperLU v5.2

Crash in dpivotL() due to uninitialized variable

Hi Xiaoye,

When using superLU, I found a crash in dpivotL() caused by possible uninitialized variable.
The issue happens when the sparse matrix is singular, with a few all-zero rows/columns.
Where is the stacktrace:

Thread 187 "test" received signal SIGSEGV, Segmentation fault.
0x00000000199ff995 in dpivotL (jcol=0, u=1, usepr=0x2aab03dc86d4, perm_r=0x2aab0bbfd304, iperm_r=0x0, iperm_c=0x2aab02534208, pivrow=0x2aab03dc86e0, Glu=0x2aab03dc88c0, stat=0x2aab03dc8940)
    at dpivotL.c:138                                                                                                                                                                         
138             perm_r[*pivrow] = jcol;
(gdb) where 
#0  0x00000000199ff995 in dpivotL (jcol=0, u=1, usepr=0x2aab03dc86d4, perm_r=0x2aab0bbfd304, iperm_r=0x0, iperm_c=0x2aab02534208, pivrow=0x2aab03dc86e0, Glu=0x2aab03dc88c0, stat=0x2aab03dc8940)
    at dpivotL.c:138
#1  0x00000000199f9dad in dgstrf (options=0x2aab03dc8970, A=0x2aab03dc88a0, relax=10, panel_size=20, etree=0x2aab0bbfd36c, work=0x0, lwork=0, perm_c=0x2aab0bbfd338, perm_r=0x2aab0bbfd304,
    L=0x2aab0bbfd178, U=0x2aab0bbfd198, Glu=0x2aab03dc88c0, stat=0x2aab03dc8940, info=0x2aab03dc889c) at dgstrf.c:333

Because of the all-zero rows, Glu->lsub[] 's elements are not initialized. I believe they would be properly set in dsnode_dfs() if the rows/columns are non-zero.
Due to this problem, the function crashed at line 138:

    /* Test for singularity */
    if ( pivmax == 0.0 ) {
#if 1
	*pivrow = lsub_ptr[pivptr];
	perm_r[*pivrow] = jcol;         <--------- here
#else
	perm_r[diagind] = jcol;
#endif
    usepr = 0;
	return (jcol+1);
    }

I have no idea what's behind the "#if 1" condition. Maybe there are other considerations for the singularity?
But if I change it to "#if 0", then the crash is gone.
Would you please take a look at this problem? Probably the same issue exists in single and complex versions.

Regards,
Haotian

bug report: dereferencing of uninitialized pointers in SuperLU_DIST v7.1.0

Hello, I have been trying to include SuperLU-DIST v7.1.0 as a solver into our FEM package and I stumbled across a problem where the function "dReDistributre_A" tries to dereference several uninitialized/unallocated arrays under certain circumstances.

First of all, I have compiled SuperLU_DIST v7.1.0 with Visual Studio under Windows without ParMETIS or LAPACK or any other third-party library. Although I have not tried to compile SuperLU under Linux yet, I assume that we would get segfaults there, too.

I have managed to boil the problem down to a standalone "minimal" reproduction case with 4 MPI processes. The source code is based on your first "pddrive.c" example, so simply replacing that one source file with the contents of the following file, compiling the example and starting it with 4 MPI processes should trigger the error:
pddrive.txt

Note 1: github wouldn't let me upload files with extension 'c' therefore I have uploaded it as a 'txt' file here
Note 2: the code must be run with 4 MPI processes, because the matrix is hardwired into the code

The function at fault is dReDistribute_A from SRC/pddistribute.c and there are 2 sections of code which are misbehaving:

Starting at line 139 we have:

    /* Allocate space for storing the triplets after redistribution. */
    if ( k ) { /* count can be zero. */
        if ( !(ia = intMalloc_dist(2*k)) )
            ABORT("Malloc fails for ia[].");
        if ( !(aij = doubleMalloc_dist(k)) )
            ABORT("Malloc fails for aij[].");
    }
    ja = ia + k;

In the last line ja = ia + k;, ia is accessed although k might be zero and therefore ia has not been allocated. This issue can be easily fixed by moving the last statement into the block of the above if statement. I have to admit that this is not directly a memory error, because ia is not dereferenced, however, the code still crashes under windows because of an unitialized variable read access.

The next two problems are a inside the for loop starting at line 171, but let's first take a look at an if clause starting at line 156:

      if ( SendCnt ) { /* count can be zero */
          if ( !(index = intMalloc_dist(2*SendCnt)) )
              ABORT("Malloc fails for index[].");
          if ( !(nzval = doubleMalloc_dist(SendCnt)) )
              ABORT("Malloc fails for nzval[].");
      }

As we see, both index and nzval are not allocated if the total send count is zero. Now starting at line 171 we have

      for (i = 0, j = 0, p = 0; p < procs; ++p) {
          if ( p != iam ) {
              ia_send[p] = &index[i];
              i += 2 * nnzToSend[p]; /* ia/ja indices alternate */
              aij_send[p] = &nzval[j];
              j += nnzToSend[p];
          }
      }

Here, both arrays index and nzval are always dereferenced even if there is nothing to send and therefore both arrays are not allocated. Again, both errors can be easily fixed by checking whether there is anything to send beforehand, i.e.:

      for (i = 0, j = 0, p = 0; p < procs; ++p) {
          if ( p != iam ) {
              if(nnzToSend[p] > 0) ia_send[p] = &index[i];
              i += 2 * nnzToSend[p]; /* ia/ja indices alternate */
              if(nnzToSend[p] > 0) aij_send[p] = &nzval[j];
              j += nnzToSend[p];
          }
      }

These three changes seem to fix the bugs, however, I would suggest that someone of the devs takes a closer look at the rest of the dReDistribute_A function to make sure that there are no other potential uninitialized pointer dereferentiations.

Can not compile/Execute SuperLU test example

I installed SuperLU -5.5.2 in C:/superLU-5.5.2. With CMake I created c:\superLU-5.5.2, make make install
This created c:\program files (x86)/superLU/inclue and lib with the following subfolders cmake, pkconfig and the two elements libblas.a and libsuperlu.a
How can I create a libsuberlu.a which inliudes OpenBlas (installed in directory c:/openblas?

5.2.2: compile time warnings

In file included from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/math.h:27,
                 from /home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/smach.c:12:
/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
  397 | #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
      |    ^~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/util.c: In function 'ilu_countnz':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/util.c:224:24: warning: variable 'irep' set but not used [-Wunused-but-set-variable]
  224 |     int          jlen, irep;
      |                        ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sgssvx.c: In function 'sgssvx':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sgssvx.c:377:14: warning: variable 'diag_pivot_thresh' set but not used [-Wunused-but-set-variable]
  377 |     float    diag_pivot_thresh;
      |              ^~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sp_coletree.c:253:6: warning: 'etdfs' defined but not used [-Wunused-function]
  253 | void etdfs (
      |      ^~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/ssnode_bmod.c: In function 'ssnode_bmod':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/ssnode_bmod.c:62:35: warning: unused variable 'iptr' [-Wunused-variable]
   62 |     int            isub, irow, i, iptr;
      |                                   ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/ssnode_bmod.c:62:32: warning: unused variable 'i' [-Wunused-variable]
   62 |     int            isub, irow, i, iptr;
      |                                ^
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/scopy_to_ucol.c: In function 'scopy_to_ucol':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/scopy_to_ucol.c:87:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   87 |       if (mem_error = sLUMemXpand(jcol, nextu, UCOL, &nzumax, Glu))
      |           ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/scopy_to_ucol.c:90:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   90 |       if (mem_error = sLUMemXpand(jcol, nextu, USUB, &nzumax, Glu))
      |           ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sgstrs.c: In function 'sgstrs':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sgstrs.c:108:24: warning: unused variable 'incy' [-Wunused-variable]
  108 |     int      incx = 1, incy = 1;
      |                        ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sgstrs.c:108:14: warning: unused variable 'incx' [-Wunused-variable]
  108 |     int      incx = 1, incy = 1;
      |              ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadhb.c: In function 'sreadhb':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadhb.c:291:29: warning: unused variable 'key' [-Wunused-variable]
  291 |     char buf[100], type[4], key[10];
      |                             ^~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/ssnode_dfs.c: In function 'ssnode_dfs':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/ssnode_dfs.c:91:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   91 |       if ( mem_error = sLUMemXpand(jcol, nextl, LSUB, &nzlmax, Glu) )
      |            ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/ssnode_dfs.c:104:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  104 |      if ( mem_error = sLUMemXpand(jcol, nextl, LSUB, &nzlmax, Glu) )
      |           ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadhb.c: In function 'sReadValues':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadhb.c:167:2: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  167 |  fgets(buf, 100, fp);    /* read a line at a time */
      |  ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadhb.c: In function 'sreadhb':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadhb.c:295:5: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  295 |     fgets(buf, 100, fp);
      |     ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadhb.c:307:2: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  307 |  fscanf(fp, "%14c", buf); buf[14] = 0;
      |  ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadhb.c:315:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  315 |     fscanf(fp, "%3c", type);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadhb.c:316:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  316 |     fscanf(fp, "%11c", buf); /* pad */
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadhb.c:322:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  322 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", nrow);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadhb.c:323:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  323 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", ncol);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadhb.c:324:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  324 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", nonz);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadhb.c:325:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  325 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", &tmp);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadhb.c:337:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  337 |     fscanf(fp, "%16c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadhb.c:339:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  339 |     fscanf(fp, "%16c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadhb.c:341:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  341 |     fscanf(fp, "%20c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadhb.c:343:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  343 |     fscanf(fp, "%20c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadhb.c: In function 'ReadVector':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadhb.c:147:2: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  147 |  fgets(buf, 100, fp);    /* read a line at a time */
      |  ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadMM.c: In function 'sreadMM':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadMM.c:60:8: warning: statement with no effect [-Wunused-value]
   60 |        exit;
      |        ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadMM.c:140:5: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
  140 |  if ( nnz == 0 ) /* first nonzero */
      |     ^
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadtriple.c: In function 'sreadtriple':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadtriple.c:48:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
   48 |     scanf("%d%d", n, nonz);
      |     ^~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadtriple.c:64:2: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
   64 |  scanf("%d%d%f\n", &row[nz], &col[nz], &val[nz]);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadtriple.c: In function 'sreadrhs':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadtriple.c:146:7: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  146 |       fscanf(fp, "%f\n", &b[i]);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadMM.c:55:6: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
   55 |      fgets(line,512,fp);
      |      ^~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadMM.c:100:8: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  100 |        fgets(line,512,fp);
      |        ^~~~~~~~~~~~~~~~~~
At top level:
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadMM.c:218:13: warning: 'sreadrhs' defined but not used [-Wunused-function]
  218 | static void sreadrhs(int m, float *b)
      |             ^~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/scolumn_dfs.c: In function 'scolumn_dfs':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/scolumn_dfs.c:139:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  139 |   if ( mem_error = sLUMemXpand(jcol, nextl, LSUB, &nzlmax, Glu) )
      |        ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/scolumn_dfs.c:181:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  181 |         if ( mem_error =
      |              ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadrb.c: In function 'sreadrb':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadrb.c:295:5: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  295 |     fgets(buf, 100, fp);
      |     ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadrb.c:300:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  300 |         fscanf(fp, "%14c", buf); buf[14] = 0;
      |         ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadrb.c:307:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  307 |     fscanf(fp, "%3c", type);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadrb.c:308:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  308 |     fscanf(fp, "%11c", buf); /* pad */
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadrb.c:314:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  314 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", nrow);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadrb.c:315:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  315 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", ncol);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadrb.c:316:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  316 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", nonz);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadrb.c:317:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  317 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", &tmp);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadrb.c:329:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  329 |     fscanf(fp, "%16c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadrb.c:331:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  331 |     fscanf(fp, "%16c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadrb.c:333:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  333 |     fscanf(fp, "%20c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sutil.c: In function 'sFillRHS':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sutil.c:368:14: warning: variable 'Aval' set but not used [-Wunused-but-set-variable]
  368 |     float   *Aval;
      |              ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/smemory.c: In function 'sLUMemXpand':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/smemory.c:453:5: warning: enumeration value 'LLVL' not handled in switch [-Wswitch]
  453 |     switch ( mem_type ) {
      |     ^~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/smemory.c:453:5: warning: enumeration value 'ULVL' not handled in switch [-Wswitch]
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/smemory.c:453:5: warning: enumeration value 'NO_MEMTYPE' not handled in switch [-Wswitch]
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadrb.c: In function 'ReadVector':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadrb.c:142:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  142 |         fgets(buf, 100, fp);    /* read a line at a time */
      |         ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/scolumn_bmod.c: In function 'scolumn_bmod':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/scolumn_bmod.c:283:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  283 |  if (mem_error = sLUMemXpand(jcol, nextlu, LUSUP, &nzlumax, Glu))
      |      ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadrb.c: In function 'sReadValues':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sreadrb.c:163:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  163 |         fgets(buf, 100, fp);    /* read a line at a time */
      |         ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sgsisx.c: In function 'sgsisx':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sgsisx.c:588:7: warning: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' [-Wparentheses]
  588 |  if ( !mc64 & equil ) { /* Only perform equilibration, no row perm */
      |       ^~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sgsisx.c:677:16: warning: unused variable 'rhs_work' [-Wunused-variable]
  677 |         float *rhs_work;
      |                ^~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/sgsisx.c:423:14: warning: variable 'diag_pivot_thresh' set but not used [-Wunused-but-set-variable]
  423 |     float    diag_pivot_thresh;
      |              ^~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/ilu_sdrop_row.c:35:12: warning: '_compare_' defined but not used [-Wunused-function]
   35 | static int _compare_(const void *a, const void *b)
      |            ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dgssvx.c: In function 'dgssvx':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dgssvx.c:377:15: warning: variable 'diag_pivot_thresh' set but not used [-Wunused-but-set-variable]
  377 |     double    diag_pivot_thresh;
      |               ^~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dcopy_to_ucol.c: In function 'dcopy_to_ucol':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dcopy_to_ucol.c:87:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   87 |       if (mem_error = dLUMemXpand(jcol, nextu, UCOL, &nzumax, Glu))
      |           ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dcopy_to_ucol.c:90:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   90 |       if (mem_error = dLUMemXpand(jcol, nextu, USUB, &nzumax, Glu))
      |           ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dgstrs.c: In function 'dgstrs':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dgstrs.c:108:24: warning: unused variable 'incy' [-Wunused-variable]
  108 |     int      incx = 1, incy = 1;
      |                        ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dgstrs.c:108:14: warning: unused variable 'incx' [-Wunused-variable]
  108 |     int      incx = 1, incy = 1;
      |              ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dsnode_dfs.c: In function 'dsnode_dfs':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dsnode_bmod.c: In function 'dsnode_bmod':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dsnode_dfs.c:91:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   91 |       if ( mem_error = dLUMemXpand(jcol, nextl, LSUB, &nzlmax, Glu) )
      |            ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dsnode_bmod.c:62:35: warning: unused variable 'iptr' [-Wunused-variable]
   62 |     int            isub, irow, i, iptr;
      |                                   ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dsnode_bmod.c:62:32: warning: unused variable 'i' [-Wunused-variable]
   62 |     int            isub, irow, i, iptr;
      |                                ^
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dsnode_dfs.c:104:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  104 |      if ( mem_error = dLUMemXpand(jcol, nextl, LSUB, &nzlmax, Glu) )
      |           ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadtriple.c: In function 'dreadtriple':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadtriple.c:48:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
   48 |     scanf("%d%d", n, nonz);
      |     ^~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadtriple.c:64:2: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
   64 |  scanf("%d%d%lf\n", &row[nz], &col[nz], &val[nz]);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadtriple.c: In function 'dreadrhs':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadtriple.c:146:7: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  146 |       fscanf(fp, "%lf\n", &b[i]);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadrb.c: In function 'dreadrb':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadrb.c:295:5: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  295 |     fgets(buf, 100, fp);
      |     ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadrb.c:300:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  300 |         fscanf(fp, "%14c", buf); buf[14] = 0;
      |         ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadrb.c:307:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  307 |     fscanf(fp, "%3c", type);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadrb.c:308:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  308 |     fscanf(fp, "%11c", buf); /* pad */
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadrb.c:314:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  314 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", nrow);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadrb.c:315:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  315 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", ncol);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadrb.c:316:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  316 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", nonz);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadrb.c:317:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  317 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", &tmp);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadrb.c:329:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  329 |     fscanf(fp, "%16c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadrb.c:331:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  331 |     fscanf(fp, "%16c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadrb.c:333:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  333 |     fscanf(fp, "%20c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadhb.c: In function 'dreadhb':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadhb.c:291:29: warning: unused variable 'key' [-Wunused-variable]
  291 |     char buf[100], type[4], key[10];
      |                             ^~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadrb.c: In function 'ReadVector':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadrb.c:142:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  142 |         fgets(buf, 100, fp);    /* read a line at a time */
      |         ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadhb.c: In function 'dReadValues':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadrb.c: In function 'dReadValues':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadhb.c:167:2: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  167 |  fgets(buf, 100, fp);    /* read a line at a time */
      |  ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadrb.c:163:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  163 |         fgets(buf, 100, fp);    /* read a line at a time */
      |         ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadhb.c: In function 'dreadhb':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadhb.c:295:5: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  295 |     fgets(buf, 100, fp);
      |     ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadhb.c:307:2: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  307 |  fscanf(fp, "%14c", buf); buf[14] = 0;
      |  ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadhb.c:315:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  315 |     fscanf(fp, "%3c", type);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadhb.c:316:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  316 |     fscanf(fp, "%11c", buf); /* pad */
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadhb.c:322:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  322 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", nrow);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadhb.c:323:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  323 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", ncol);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadhb.c:324:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  324 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", nonz);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadhb.c:325:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  325 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", &tmp);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadhb.c:337:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  337 |     fscanf(fp, "%16c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadhb.c:339:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  339 |     fscanf(fp, "%16c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadhb.c:341:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  341 |     fscanf(fp, "%20c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadhb.c:343:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  343 |     fscanf(fp, "%20c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadhb.c: In function 'ReadVector':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadhb.c:147:2: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  147 |  fgets(buf, 100, fp);    /* read a line at a time */
      |  ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadMM.c: In function 'dreadMM':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadMM.c:60:8: warning: statement with no effect [-Wunused-value]
   60 |        exit;
      |        ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dcolumn_dfs.c: In function 'dcolumn_dfs':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dcolumn_dfs.c:139:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  139 |   if ( mem_error = dLUMemXpand(jcol, nextl, LSUB, &nzlmax, Glu) )
      |        ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dcolumn_dfs.c:181:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  181 |         if ( mem_error =
      |              ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadMM.c:145:5: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
  145 |  if ( nnz == 0 ) /* first nonzero */
      |     ^
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dutil.c: In function 'dFillRHS':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dutil.c:368:15: warning: variable 'Aval' set but not used [-Wunused-but-set-variable]
  368 |     double   *Aval;
      |               ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dmemory.c: In function 'dLUMemXpand':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dmemory.c:453:5: warning: enumeration value 'LLVL' not handled in switch [-Wswitch]
  453 |     switch ( mem_type ) {
      |     ^~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dmemory.c:453:5: warning: enumeration value 'ULVL' not handled in switch [-Wswitch]
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dmemory.c:453:5: warning: enumeration value 'NO_MEMTYPE' not handled in switch [-Wswitch]
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadMM.c:55:6: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
   55 |      fgets(line,512,fp);
      |      ^~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadMM.c:100:8: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  100 |        fgets(line,512,fp);
      |        ^~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadMM.c:142:2: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  142 |  fscanf(fp, "%d%d%lf\n", &row[nz], &col[nz], &val[nz]);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
At top level:
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dreadMM.c:225:13: warning: 'dreadrhs' defined but not used [-Wunused-function]
  225 | static void dreadrhs(int m, double *b)
      |             ^~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dcolumn_bmod.c: In function 'dcolumn_bmod':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dcolumn_bmod.c:283:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  283 |  if (mem_error = dLUMemXpand(jcol, nextlu, LUSUP, &nzlumax, Glu))
      |      ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/scsum1.c: In function 'scsum1_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/scsum1.c:56:15: warning: variable 'i__2' set but not used [-Wunused-but-set-variable]
   56 |     int i__1, i__2;
      |               ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/scsum1.c:56:9: warning: variable 'i__1' set but not used [-Wunused-but-set-variable]
   56 |     int i__1, i__2;
      |         ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/clacon2.c: In function 'clacon2_':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/clacon2.c:186:1: warning: label 'L90' defined but not used [-Wunused-label]
  186 | L90:
      | ^~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dgsisx.c: In function 'dgsisx':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dgsisx.c:588:7: warning: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' [-Wparentheses]
  588 |  if ( !mc64 & equil ) { /* Only perform equilibration, no row perm */
      |       ^~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/icmax1.c: In function 'icmax1_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/icmax1.c:63:24: warning: variable 'i__2' set but not used [-Wunused-but-set-variable]
   63 |     int ret_val, i__1, i__2;
      |                        ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/icmax1.c:63:18: warning: variable 'i__1' set but not used [-Wunused-but-set-variable]
   63 |     int ret_val, i__1, i__2;
      |                  ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dgsisx.c:677:17: warning: unused variable 'rhs_work' [-Wunused-variable]
  677 |         double *rhs_work;
      |                 ^~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/dgsisx.c:423:15: warning: variable 'diag_pivot_thresh' set but not used [-Wunused-but-set-variable]
  423 |     double    diag_pivot_thresh;
      |               ^~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/ilu_ddrop_row.c:35:12: warning: '_compare_' defined but not used [-Wunused-function]
   35 | static int _compare_(const void *a, const void *b)
      |            ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/cgssvx.c: In function 'cgssvx':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/cgssvx.c:377:14: warning: variable 'diag_pivot_thresh' set but not used [-Wunused-but-set-variable]
  377 |     float    diag_pivot_thresh;
      |              ^~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/csp_blas2.c: In function 'sp_cgemv':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/csp_blas2.c:502:27: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  502 |  c_eq(&alpha, &comp_zero) &&
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/cpivotgrowth.c: In function 'cPivotGrowth':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/cpivotgrowth.c:73:15: warning: unused variable 'temp_comp' [-Wunused-variable]
   73 |     complex   temp_comp;
      |               ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/ccopy_to_ucol.c: In function 'ccopy_to_ucol':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/ccopy_to_ucol.c:87:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   87 |       if (mem_error = cLUMemXpand(jcol, nextu, UCOL, &nzumax, Glu))
      |           ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/ccopy_to_ucol.c:90:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   90 |       if (mem_error = cLUMemXpand(jcol, nextu, USUB, &nzumax, Glu))
      |           ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/cgstrs.c: In function 'cgstrs':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/cgstrs.c:108:24: warning: unused variable 'incy' [-Wunused-variable]
  108 |     int      incx = 1, incy = 1;
      |                        ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/cgstrs.c:108:14: warning: unused variable 'incx' [-Wunused-variable]
  108 |     int      incx = 1, incy = 1;
      |              ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/csnode_dfs.c: In function 'csnode_dfs':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/csnode_dfs.c:91:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   91 |       if ( mem_error = cLUMemXpand(jcol, nextl, LSUB, &nzlmax, Glu) )
      |            ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/csnode_dfs.c:104:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  104 |      if ( mem_error = cLUMemXpand(jcol, nextl, LSUB, &nzlmax, Glu) )
      |           ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/csnode_bmod.c: In function 'csnode_bmod':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/csnode_bmod.c:63:35: warning: unused variable 'iptr' [-Wunused-variable]
   63 |     int            isub, irow, i, iptr;
      |                                   ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/csnode_bmod.c:63:32: warning: unused variable 'i' [-Wunused-variable]
   63 |     int            isub, irow, i, iptr;
      |                                ^
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadrb.c: In function 'creadrb':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadrb.c:304:5: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  304 |     fgets(buf, 100, fp);
      |     ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadrb.c:309:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  309 |         fscanf(fp, "%14c", buf); buf[14] = 0;
      |         ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadrb.c:316:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  316 |     fscanf(fp, "%3c", type);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadrb.c:317:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  317 |     fscanf(fp, "%11c", buf); /* pad */
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadrb.c:323:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  323 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", nrow);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadrb.c:324:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  324 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", ncol);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadrb.c:325:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  325 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", nonz);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadtriple.c: In function 'creadtriple':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadrb.c:326:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  326 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", &tmp);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadtriple.c:48:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
   48 |     scanf("%d%d", n, nonz);
      |     ^~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadrb.c:338:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  338 |     fscanf(fp, "%16c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadtriple.c:64:2: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
   64 |  scanf("%d%d%f%f\n", &row[nz], &col[nz], &val[nz].r, &val[nz].i);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadrb.c:340:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  340 |     fscanf(fp, "%16c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadrb.c:342:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  342 |     fscanf(fp, "%20c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadtriple.c: In function 'creadrhs':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadtriple.c:146:7: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  146 |       fscanf(fp, "%f%f\n", &b[i].r, &b[i].i);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadrb.c: In function 'ReadVector':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadrb.c:142:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  142 |         fgets(buf, 100, fp);    /* read a line at a time */
      |         ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadMM.c: In function 'creadMM':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadMM.c:60:8: warning: statement with no effect [-Wunused-value]
   60 |        exit;
      |        ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadrb.c: In function 'cReadValues':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadrb.c:164:2: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  164 |  fgets(buf, 100, fp);    /* read a line at a time */
      |  ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/ccolumn_dfs.c: In function 'ccolumn_dfs':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/ccolumn_dfs.c:139:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  139 |   if ( mem_error = cLUMemXpand(jcol, nextl, LSUB, &nzlmax, Glu) )
      |        ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadMM.c:140:5: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
  140 |  if ( nnz == 0 ) /* first nonzero */
      |     ^
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/ccolumn_dfs.c:181:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  181 |         if ( mem_error =
      |              ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/ccolumn_bmod.c: In function 'ccolumn_bmod':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/ccolumn_bmod.c:296:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  296 |  if (mem_error = cLUMemXpand(jcol, nextlu, LUSUP, &nzlumax, Glu))
      |      ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadhb.c: In function 'creadhb':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadhb.c:301:29: warning: unused variable 'key' [-Wunused-variable]
  301 |     char buf[100], type[4], key[10];
      |                             ^~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadMM.c:55:6: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
   55 |      fgets(line,512,fp);
      |      ^~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadMM.c:100:8: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  100 |        fgets(line,512,fp);
      |        ^~~~~~~~~~~~~~~~~~
At top level:
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadMM.c:218:13: warning: 'creadrhs' defined but not used [-Wunused-function]
  218 | static void creadrhs(int m, complex *b)
      |             ^~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadhb.c: In function 'cReadValues':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadhb.c:169:2: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  169 |  fgets(buf, 100, fp);    /* read a line at a time */
      |  ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadhb.c: In function 'creadhb':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadhb.c:305:5: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  305 |     fgets(buf, 100, fp);
      |     ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadhb.c:317:2: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  317 |  fscanf(fp, "%14c", buf); buf[14] = 0;
      |  ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadhb.c:325:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  325 |     fscanf(fp, "%3c", type);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadhb.c:326:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  326 |     fscanf(fp, "%11c", buf); /* pad */
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadhb.c:332:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  332 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", nrow);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadhb.c:333:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  333 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", ncol);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadhb.c:334:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  334 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", nonz);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadhb.c:335:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  335 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", &tmp);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadhb.c:347:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  347 |     fscanf(fp, "%16c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadhb.c:349:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  349 |     fscanf(fp, "%16c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadhb.c:351:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  351 |     fscanf(fp, "%20c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadhb.c:353:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  353 |     fscanf(fp, "%20c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadhb.c: In function 'ReadVector':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/creadhb.c:147:2: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  147 |  fgets(buf, 100, fp);    /* read a line at a time */
      |  ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/cmemory.c: In function 'cLUMemXpand':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/cmemory.c:453:5: warning: enumeration value 'LLVL' not handled in switch [-Wswitch]
  453 |     switch ( mem_type ) {
      |     ^~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/cmemory.c:453:5: warning: enumeration value 'ULVL' not handled in switch [-Wswitch]
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/cmemory.c:453:5: warning: enumeration value 'NO_MEMTYPE' not handled in switch [-Wswitch]
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/cutil.c: In function 'cFillRHS':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/cutil.c:370:16: warning: variable 'Aval' set but not used [-Wunused-but-set-variable]
  370 |     complex   *Aval;
      |                ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/cgsisx.c: In function 'cgsisx':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/cgsisx.c:588:7: warning: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' [-Wparentheses]
  588 |  if ( !mc64 & equil ) { /* Only perform equilibration, no row perm */
      |       ^~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zlacon2.c: In function 'zlacon2_':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/cgsisx.c:677:18: warning: unused variable 'rhs_work' [-Wunused-variable]
  677 |         complex *rhs_work;
      |                  ^~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zlacon2.c:186:1: warning: label 'L90' defined but not used [-Wunused-label]
  186 | L90:
      | ^~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/cgsisx.c:423:14: warning: variable 'diag_pivot_thresh' set but not used [-Wunused-but-set-variable]
  423 |     float    diag_pivot_thresh;
      |              ^~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/cgsitrf.c: In function 'cgsitrf':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/cgsitrf.c:251:11: warning: unused variable 'one' [-Wunused-variable]
  251 |     float one = 1.0;
      |           ^~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/ilu_cdrop_row.c: In function 'ilu_cdrop_row':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/ilu_cdrop_row.c:86:13: warning: unused variable 'zero' [-Wunused-variable]
   86 |     complex zero = {0.0, 0.0};
      |             ^~~~
At top level:
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/ilu_cdrop_row.c:36:12: warning: '_compare_' defined but not used [-Wunused-function]
   36 | static int _compare_(const void *a, const void *b)
      |            ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/izmax1.c: In function 'izmax1_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/izmax1.c:61:24: warning: variable 'i__2' set but not used [-Wunused-but-set-variable]
   61 |     int ret_val, i__1, i__2;
      |                        ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/izmax1.c:61:18: warning: variable 'i__1' set but not used [-Wunused-but-set-variable]
   61 |     int ret_val, i__1, i__2;
      |                  ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zgssvx.c: In function 'zgssvx':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zgssvx.c:377:15: warning: variable 'diag_pivot_thresh' set but not used [-Wunused-but-set-variable]
  377 |     double    diag_pivot_thresh;
      |               ^~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zsp_blas2.c: In function 'sp_zgemv':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zsp_blas2.c:502:27: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  502 |  z_eq(&alpha, &comp_zero) &&
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zpivotgrowth.c: In function 'zPivotGrowth':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zpivotgrowth.c:73:21: warning: unused variable 'temp_comp' [-Wunused-variable]
   73 |     doublecomplex   temp_comp;
      |                     ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zcopy_to_ucol.c: In function 'zcopy_to_ucol':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zcopy_to_ucol.c:87:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   87 |       if (mem_error = zLUMemXpand(jcol, nextu, UCOL, &nzumax, Glu))
      |           ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zcopy_to_ucol.c:90:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   90 |       if (mem_error = zLUMemXpand(jcol, nextu, USUB, &nzumax, Glu))
      |           ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zsnode_dfs.c: In function 'zsnode_dfs':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zsnode_dfs.c:91:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   91 |       if ( mem_error = zLUMemXpand(jcol, nextl, LSUB, &nzlmax, Glu) )
      |            ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zsnode_dfs.c:104:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  104 |      if ( mem_error = zLUMemXpand(jcol, nextl, LSUB, &nzlmax, Glu) )
      |           ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zsnode_bmod.c: In function 'zsnode_bmod':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zsnode_bmod.c:63:35: warning: unused variable 'iptr' [-Wunused-variable]
   63 |     int            isub, irow, i, iptr;
      |                                   ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zsnode_bmod.c:63:32: warning: unused variable 'i' [-Wunused-variable]
   63 |     int            isub, irow, i, iptr;
      |                                ^
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zgstrs.c: In function 'zgstrs':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zgstrs.c:108:24: warning: unused variable 'incy' [-Wunused-variable]
  108 |     int      incx = 1, incy = 1;
      |                        ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zgstrs.c:108:14: warning: unused variable 'incx' [-Wunused-variable]
  108 |     int      incx = 1, incy = 1;
      |              ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadhb.c: In function 'zreadhb':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadhb.c:301:29: warning: unused variable 'key' [-Wunused-variable]
  301 |     char buf[100], type[4], key[10];
      |                             ^~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadhb.c: In function 'zReadValues':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadhb.c:169:2: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  169 |  fgets(buf, 100, fp);    /* read a line at a time */
      |  ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadhb.c: In function 'zreadhb':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadhb.c:305:5: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  305 |     fgets(buf, 100, fp);
      |     ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadhb.c:317:2: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  317 |  fscanf(fp, "%14c", buf); buf[14] = 0;
      |  ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadhb.c:325:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  325 |     fscanf(fp, "%3c", type);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadhb.c:326:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  326 |     fscanf(fp, "%11c", buf); /* pad */
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadhb.c:332:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  332 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", nrow);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadhb.c:333:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  333 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", ncol);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadhb.c:334:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  334 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", nonz);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadhb.c:335:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  335 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", &tmp);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadhb.c:347:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  347 |     fscanf(fp, "%16c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadhb.c:349:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  349 |     fscanf(fp, "%16c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadhb.c:351:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  351 |     fscanf(fp, "%20c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadhb.c:353:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  353 |     fscanf(fp, "%20c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadhb.c: In function 'ReadVector':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadhb.c:147:2: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  147 |  fgets(buf, 100, fp);    /* read a line at a time */
      |  ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadrb.c: In function 'zreadrb':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadrb.c:304:5: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  304 |     fgets(buf, 100, fp);
      |     ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadrb.c:309:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  309 |         fscanf(fp, "%14c", buf); buf[14] = 0;
      |         ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadrb.c:316:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  316 |     fscanf(fp, "%3c", type);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadrb.c:317:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  317 |     fscanf(fp, "%11c", buf); /* pad */
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadrb.c:323:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  323 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", nrow);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadrb.c:324:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  324 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", ncol);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadrb.c:325:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  325 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", nonz);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadrb.c:326:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  326 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", &tmp);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadrb.c:338:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  338 |     fscanf(fp, "%16c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadrb.c:340:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  340 |     fscanf(fp, "%16c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadrb.c:342:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  342 |     fscanf(fp, "%20c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadrb.c: In function 'ReadVector':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadrb.c:142:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  142 |         fgets(buf, 100, fp);    /* read a line at a time */
      |         ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadrb.c: In function 'zReadValues':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadrb.c:164:2: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  164 |  fgets(buf, 100, fp);    /* read a line at a time */
      |  ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zcolumn_dfs.c: In function 'zcolumn_dfs':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zcolumn_dfs.c:139:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  139 |   if ( mem_error = zLUMemXpand(jcol, nextl, LSUB, &nzlmax, Glu) )
      |        ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadMM.c: In function 'zreadMM':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadMM.c:60:8: warning: statement with no effect [-Wunused-value]
   60 |        exit;
      |        ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zcolumn_dfs.c:181:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  181 |         if ( mem_error =
      |              ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadMM.c:145:5: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
  145 |  if ( nnz == 0 ) /* first nonzero */
      |     ^
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadMM.c:55:6: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
   55 |      fgets(line,512,fp);
      |      ^~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadMM.c:100:8: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  100 |        fgets(line,512,fp);
      |        ^~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadMM.c:142:2: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  142 |  fscanf(fp, "%d%d%lf%lf\n", &row[nz], &col[nz], &val[nz].r, &val[nz].i);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
At top level:
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadMM.c:225:13: warning: 'zreadrhs' defined but not used [-Wunused-function]
  225 | static void zreadrhs(int m, doublecomplex *b)
      |             ^~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadtriple.c: In function 'zreadtriple':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadtriple.c:48:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
   48 |     scanf("%d%d", n, nonz);
      |     ^~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadtriple.c:64:2: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
   64 |  scanf("%d%d%lf%lf\n", &row[nz], &col[nz], &val[nz].r, &val[nz].i);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadtriple.c: In function 'zreadrhs':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zreadtriple.c:146:7: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  146 |       fscanf(fp, "%lf%lf\n", &b[i].r, &b[i].i);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zcolumn_bmod.c: In function 'zcolumn_bmod':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zcolumn_bmod.c:298:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  298 |  if (mem_error = zLUMemXpand(jcol, nextlu, LUSUP, &nzlumax, Glu))
      |      ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zgsisx.c: In function 'zgsisx':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zgsisx.c:588:7: warning: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' [-Wparentheses]
  588 |  if ( !mc64 & equil ) { /* Only perform equilibration, no row perm */
      |       ^~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zgsisx.c:677:24: warning: unused variable 'rhs_work' [-Wunused-variable]
  677 |         doublecomplex *rhs_work;
      |                        ^~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zgsisx.c:423:15: warning: variable 'diag_pivot_thresh' set but not used [-Wunused-but-set-variable]
  423 |     double    diag_pivot_thresh;
      |               ^~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/ilu_zdrop_row.c: In function 'ilu_zdrop_row':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/ilu_zdrop_row.c:86:19: warning: unused variable 'zero' [-Wunused-variable]
   86 |     doublecomplex zero = {0.0, 0.0};
      |                   ^~~~
At top level:
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/ilu_zdrop_row.c:36:12: warning: '_compare_' defined but not used [-Wunused-function]
   36 | static int _compare_(const void *a, const void *b)
      |            ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zmemory.c: In function 'zLUMemXpand':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zmemory.c:453:5: warning: enumeration value 'LLVL' not handled in switch [-Wswitch]
  453 |     switch ( mem_type ) {
      |     ^~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zmemory.c:453:5: warning: enumeration value 'ULVL' not handled in switch [-Wswitch]
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zmemory.c:453:5: warning: enumeration value 'NO_MEMTYPE' not handled in switch [-Wswitch]
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zutil.c: In function 'zFillRHS':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zutil.c:370:22: warning: variable 'Aval' set but not used [-Wunused-but-set-variable]
  370 |     doublecomplex   *Aval;
      |                      ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zgsitrf.c: In function 'zgsitrf':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/SRC/zgsitrf.c:251:12: warning: unused variable 'one' [-Wunused-variable]
  251 |     double one = 1.0;
      |            ^~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/slarnv.c: In function 'slarnv_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/slarnv.c:56:13: warning: variable 'i__1' set but not used [-Wunused-but-set-variable]
   56 |     integer i__1, i__2, i__3;
      |             ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/slaruv.c: In function 'slaruv_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/slaruv.c:96:13: warning: variable 'i__1' set but not used [-Wunused-but-set-variable]
   96 |     integer i__1;
      |             ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/slaset.c: In function 'slaset_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/slaset.c:66:37: warning: variable 'i__2' set but not used [-Wunused-but-set-variable]
   66 |     integer a_dim1, a_offset, i__1, i__2, i__3;
      |                                     ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/slaset.c:66:31: warning: variable 'i__1' set but not used [-Wunused-but-set-variable]
   66 |     integer a_dim1, a_offset, i__1, i__2, i__3;
      |                               ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/slaset.c:66:21: warning: unused variable 'a_offset' [-Wunused-variable]
   66 |     integer a_dim1, a_offset, i__1, i__2, i__3;
      |                     ^~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/slaset.c:66:13: warning: unused variable 'a_dim1' [-Wunused-variable]
   66 |     integer a_dim1, a_offset, i__1, i__2, i__3;
      |             ^~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/slatb4.c:11:16: warning: 'c__2' defined but not used [-Wunused-variable]
   11 | static integer c__2 = 2;
      |                ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/slarot.c: In function 'slarot_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/slarot.c:271:33: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  271 |     if (*lda <= 0 || ! (*lrows) && *lda < *nl - nt) {
      |                      ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/slatms.c: In function 'slatms_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/slatms.c:461:37: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  461 |     } else if (*ku < 0 || isym != 1 && *kl != *ku) {
      |                           ~~~~~~~~~~^~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/slatms.c:463:43: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  463 |     } else if (ipack == -1 || isympk == 1 && isym == 1 || isympk == 2 && isym
      |                               ~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/slatms.c:464:11: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  463 |     } else if (ipack == -1 || isympk == 1 && isym == 1 || isympk == 2 && isym
      |                                                           ~~~~~~~~~~~~~~~~~~~
  464 |      == 1 && *kl > 0 || isympk == 3 && isym == 1 && *ku > 0 || isympk
      |      ~~~~~^~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/slatms.c:464:50: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  464 |      == 1 && *kl > 0 || isympk == 3 && isym == 1 && *ku > 0 || isympk
      |                         ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/slatms.c:465:11: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  464 |      == 1 && *kl > 0 || isympk == 3 && isym == 1 && *ku > 0 || isympk
      |                                                                ~~~~~~
  465 |      != 0 && *m != *n) {
      |      ~~~~~^~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/slaror.c: In function 'slaror_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/slaror.c:170:37: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  170 |     } else if (*n < 0 || itype == 3 && *n != *m) {
      |                          ~~~~~~~~~~~^~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/dlaruv.c: In function 'dlaruv_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/dlaruv.c:96:13: warning: variable 'i__1' set but not used [-Wunused-but-set-variable]
   96 |     integer i__1;
      |             ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/dlatms.c: In function 'dlatms_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/dlatms.c:465:37: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  465 |     } else if (*ku < 0 || isym != 1 && *kl != *ku) {
      |                           ~~~~~~~~~~^~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/dlatms.c:467:43: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  467 |     } else if (ipack == -1 || isympk == 1 && isym == 1 || isympk == 2 && isym
      |                               ~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/dlatms.c:468:11: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  467 |     } else if (ipack == -1 || isympk == 1 && isym == 1 || isympk == 2 && isym
      |                                                           ~~~~~~~~~~~~~~~~~~~
  468 |      == 1 && *kl > 0 || isympk == 3 && isym == 1 && *ku > 0 || isympk
      |      ~~~~~^~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/dlatms.c:468:50: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  468 |      == 1 && *kl > 0 || isympk == 3 && isym == 1 && *ku > 0 || isympk
      |                         ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/dlatms.c:469:11: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  468 |      == 1 && *kl > 0 || isympk == 3 && isym == 1 && *ku > 0 || isympk
      |                                                                ~~~~~~
  469 |      != 0 && *m != *n) {
      |      ~~~~~^~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/dlarnv.c: In function 'dlarnv_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/dlarnv.c:56:13: warning: variable 'i__1' set but not used [-Wunused-but-set-variable]
   56 |     integer i__1, i__2, i__3;
      |             ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/dlaset.c: In function 'dlaset_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/dlaset.c:62:19: warning: variable 'i__2' set but not used [-Wunused-but-set-variable]
   62 |     integer i__1, i__2, i__3;
      |                   ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/dlaset.c:62:13: warning: variable 'i__1' set but not used [-Wunused-but-set-variable]
   62 |     integer i__1, i__2, i__3;
      |             ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/dlarot.c: In function 'dlarot_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/dlarot.c:271:33: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  271 |     if (*lda <= 0 || ! (*lrows) && *lda < *nl - nt) {
      |                      ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/dlatb4.c:11:16: warning: 'c__2' defined but not used [-Wunused-variable]
   11 | static integer c__2 = 2;
      |                ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/dlaror.c: In function 'dlaror_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/dlaror.c:174:37: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  174 |     } else if (*n < 0 || itype == 3 && *n != *m) {
      |                          ~~~~~~~~~~~^~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/clarnv.c: In function 'clarnv_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/clarnv.c:59:37: warning: variable 'i__5' set but not used [-Wunused-but-set-variable]
   59 |     integer i__1, i__2, i__3, i__4, i__5;
      |                                     ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/clarnv.c:59:31: warning: variable 'i__4' set but not used [-Wunused-but-set-variable]
   59 |     integer i__1, i__2, i__3, i__4, i__5;
      |                               ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/clarnv.c:59:13: warning: variable 'i__1' set but not used [-Wunused-but-set-variable]
   59 |     integer i__1, i__2, i__3, i__4, i__5;
      |             ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/clacgv.c: In function 'clacgv_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/clacgv.c:38:19: warning: variable 'i__2' set but not used [-Wunused-but-set-variable]
   38 |     integer i__1, i__2;
      |                   ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/clacgv.c:38:13: warning: variable 'i__1' set but not used [-Wunused-but-set-variable]
   38 |     integer i__1, i__2;
      |             ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/claset.c: In function 'claset_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/claset.c:60:37: warning: variable 'i__2' set but not used [-Wunused-but-set-variable]
   60 |     integer a_dim1, a_offset, i__1, i__2, i__3;
      |                                     ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/claset.c:60:31: warning: variable 'i__1' set but not used [-Wunused-but-set-variable]
   60 |     integer a_dim1, a_offset, i__1, i__2, i__3;
      |                               ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/claset.c:60:21: warning: unused variable 'a_offset' [-Wunused-variable]
   60 |     integer a_dim1, a_offset, i__1, i__2, i__3;
      |                     ^~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/csymv.c: In function 'csymv_sluslu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/csymv.c:139:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  139 |     if (*n == 0 || alpha->r == 0.f && alpha->i == 0.f && (beta->r == 1.f &&
      |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
  140 |      beta->i == 0.f)) {
      |      ~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/clatb4.c:11:16: warning: 'c__2' defined but not used [-Wunused-variable]
   11 | static integer c__2 = 2;
      |                ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/clatms.c: In function 'clatms_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/clatms.c:493:37: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  493 |     } else if (*ku < 0 || isym != 1 && *kl != *ku) {
      |                           ~~~~~~~~~~^~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/clatms.c:495:43: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  495 |     } else if (ipack == -1 || isympk == 1 && isym == 1 || isympk == 2 && isym
      |                               ~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/clatms.c:496:11: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  495 |     } else if (ipack == -1 || isympk == 1 && isym == 1 || isympk == 2 && isym
      |                                                           ~~~~~~~~~~~~~~~~~~~
  496 |      == 1 && *kl > 0 || isympk == 3 && isym == 1 && *ku > 0 || isympk
      |      ~~~~~^~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/clatms.c:496:50: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  496 |      == 1 && *kl > 0 || isympk == 3 && isym == 1 && *ku > 0 || isympk
      |                         ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/clatms.c:497:11: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  496 |      == 1 && *kl > 0 || isympk == 3 && isym == 1 && *ku > 0 || isympk
      |                                                                ~~~~~~
  497 |      != 0 && *m != *n) {
      |      ~~~~~^~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/csymv.c:106:55: warning: variable 'i__5' set but not used [-Wunused-but-set-variable]
  106 |     integer a_dim1, a_offset, i__1, i__2, i__3, i__4, i__5;
      |                                                       ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/csymv.c:106:49: warning: variable 'i__4' set but not used [-Wunused-but-set-variable]
  106 |     integer a_dim1, a_offset, i__1, i__2, i__3, i__4, i__5;
      |                                                 ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/csymv.c:106:43: warning: variable 'i__3' set but not used [-Wunused-but-set-variable]
  106 |     integer a_dim1, a_offset, i__1, i__2, i__3, i__4, i__5;
      |                                           ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/csymv.c:106:37: warning: variable 'i__2' set but not used [-Wunused-but-set-variable]
  106 |     integer a_dim1, a_offset, i__1, i__2, i__3, i__4, i__5;
      |                                     ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/csymv.c:106:31: warning: variable 'i__1' set but not used [-Wunused-but-set-variable]
  106 |     integer a_dim1, a_offset, i__1, i__2, i__3, i__4, i__5;
      |                               ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/csymv.c:106:21: warning: unused variable 'a_offset' [-Wunused-variable]
  106 |     integer a_dim1, a_offset, i__1, i__2, i__3, i__4, i__5;
      |                     ^~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/clarot.c: In function 'clarot_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/clarot.c:280:33: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  280 |     if (*lda <= 0 || ! (*lrows) && *lda < *nl - nt) {
      |                      ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/claror.c: In function 'claror_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/claror.c:191:37: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  191 |     } else if (*n < 0 || itype == 3 && *n != *m) {
      |                          ~~~~~~~~~~~^~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/zlaset.c: In function 'zlaset_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/zlaset.c:61:37: warning: variable 'i__2' set but not used [-Wunused-but-set-variable]
   61 |     integer a_dim1, a_offset, i__1, i__2, i__3;
      |                                     ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/zlaset.c:61:31: warning: variable 'i__1' set but not used [-Wunused-but-set-variable]
   61 |     integer a_dim1, a_offset, i__1, i__2, i__3;
      |                               ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/zlaset.c:61:21: warning: unused variable 'a_offset' [-Wunused-variable]
   61 |     integer a_dim1, a_offset, i__1, i__2, i__3;
      |                     ^~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/zlarnv.c: In function 'zlarnv_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/zlarnv.c:59:37: warning: variable 'i__5' set but not used [-Wunused-but-set-variable]
   59 |     integer i__1, i__2, i__3, i__4, i__5;
      |                                     ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/zlarnv.c:59:31: warning: variable 'i__4' set but not used [-Wunused-but-set-variable]
   59 |     integer i__1, i__2, i__3, i__4, i__5;
      |                               ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/zlarnv.c:59:13: warning: variable 'i__1' set but not used [-Wunused-but-set-variable]
   59 |     integer i__1, i__2, i__3, i__4, i__5;
      |             ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/zlacgv.c: In function 'zlacgv_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/zlacgv.c:38:19: warning: variable 'i__2' set but not used [-Wunused-but-set-variable]
   38 |     integer i__1, i__2;
      |                   ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/zlacgv.c:38:13: warning: variable 'i__1' set but not used [-Wunused-but-set-variable]
   38 |     integer i__1, i__2;
      |             ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/zlatb4.c:11:16: warning: 'c__2' defined but not used [-Wunused-variable]
   11 | static integer c__2 = 2;
      |                ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/zsymv.c: In function 'zsymv_':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/zsymv.c:139:53: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  139 |     if (*n == 0 || alpha->r == 0. && alpha->i == 0. && (beta->r == 1. &&
      |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
  140 |      beta->i == 0.)) {
      |      ~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/zsymv.c:106:55: warning: variable 'i__5' set but not used [-Wunused-but-set-variable]
  106 |     integer a_dim1, a_offset, i__1, i__2, i__3, i__4, i__5;
      |                                                       ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/zsymv.c:106:49: warning: variable 'i__4' set but not used [-Wunused-but-set-variable]
  106 |     integer a_dim1, a_offset, i__1, i__2, i__3, i__4, i__5;
      |                                                 ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/zsymv.c:106:43: warning: variable 'i__3' set but not used [-Wunused-but-set-variable]
  106 |     integer a_dim1, a_offset, i__1, i__2, i__3, i__4, i__5;
      |                                           ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/zsymv.c:106:37: warning: variable 'i__2' set but not used [-Wunused-but-set-variable]
  106 |     integer a_dim1, a_offset, i__1, i__2, i__3, i__4, i__5;
      |                                     ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/zsymv.c:106:31: warning: variable 'i__1' set but not used [-Wunused-but-set-variable]
  106 |     integer a_dim1, a_offset, i__1, i__2, i__3, i__4, i__5;
      |                               ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/zsymv.c:106:21: warning: unused variable 'a_offset' [-Wunused-variable]
  106 |     integer a_dim1, a_offset, i__1, i__2, i__3, i__4, i__5;
      |                     ^~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/zlaror.c: In function 'zlaror_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/zlaror.c:195:37: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  195 |     } else if (*n < 0 || itype == 3 && *n != *m) {
      |                          ~~~~~~~~~~~^~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/zlarot.c: In function 'zlarot_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/zlarot.c:280:33: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  280 |     if (*lda <= 0 || ! (*lrows) && *lda < *nl - nt) {
      |                      ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/zlatms.c: In function 'zlatms_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/zlatms.c:496:37: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  496 |     } else if (*ku < 0 || isym != 1 && *kl != *ku) {
      |                           ~~~~~~~~~~^~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/zlatms.c:498:43: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  498 |     } else if (ipack == -1 || isympk == 1 && isym == 1 || isympk == 2 && isym
      |                               ~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/zlatms.c:499:11: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  498 |     } else if (ipack == -1 || isympk == 1 && isym == 1 || isympk == 2 && isym
      |                                                           ~~~~~~~~~~~~~~~~~~~
  499 |      == 1 && *kl > 0 || isympk == 3 && isym == 1 && *ku > 0 || isympk
      |      ~~~~~^~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/zlatms.c:499:50: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  499 |      == 1 && *kl > 0 || isympk == 3 && isym == 1 && *ku > 0 || isympk
      |                         ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/MATGEN/zlatms.c:500:11: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  499 |      == 1 && *kl > 0 || isympk == 3 && isym == 1 && *ku > 0 || isympk
      |                                                                ~~~~~~
  500 |      != 0 && *m != *n) {
      |      ~~~~~^~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/sgst01.c: In function 'sgst01':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/sgst01.c:67:18: warning: unused variable 'comp_temp' [-Wunused-variable]
   67 |     float utemp, comp_temp;
      |                  ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/cdrive.c: In function 'main':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/cdrive.c:79:29: warning: variable 'nofact' set but not used [-Wunused-but-set-variable]
   79 |     int            prefact, nofact, equil, iequed;
      |                             ^~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/sdrive.c: In function 'main':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/sdrive.c:79:29: warning: variable 'nofact' set but not used [-Wunused-but-set-variable]
   79 |     int            prefact, nofact, equil, iequed;
      |                             ^~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/dgst01.c: In function 'dgst01':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/dgst01.c:67:19: warning: unused variable 'comp_temp' [-Wunused-variable]
   67 |     double utemp, comp_temp;
      |                   ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/zdrive.c: In function 'main':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/zdrive.c:79:29: warning: variable 'nofact' set but not used [-Wunused-but-set-variable]
   79 |     int            prefact, nofact, equil, iequed;
      |                             ^~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/ddrive.c: In function 'main':
/home/tkloczko/rpmbuild/BUILD/superlu-5.2.2/TESTING/ddrive.c:79:29: warning: variable 'nofact' set but not used [-Wunused-but-set-variable]
   79 |     int            prefact, nofact, equil, iequed;
      |                             ^~~~~~

SuperLU with 64 bit integers

makeSLU.txt
makeSLUMT.txt

Hi I am having problem of using SuperLU because of large number of nnz = 131000000. So when it tries to create work array the size of the array becomes larger than max array size and it gives the error "Not enough memory to perform factorization.". I don't have an issue in terms of the memory, because I am running it on shared memory machine with large RAM, so the issue is due to the 32 bit integer. As far as I can understand there is no solution to this in SuperLU, but SuperluMT has a way of handling 64 bit integers. While I was able to install SuperLU I wasn't able to make the SuperluMT to work. I am linking with Intel MKL library and using intel compilers. Please see the make option files for both cases attached. For SuperluMT I always get segmentation errors even during testing. Also I am using SuperLU with Arpack, therefore I am not sure if I compile 64 bit option of SuperLU how I should run it with Arpack. Any type of advice will be helpful.

Thank you,
Areg Ghazaryan

Recommended way to override `superlu_abort_and_exit()` with `USER_ABORT`?

What is the supported way to override superlu_abort_and_exit() using USER_ABORT? While one can define the macro to one's own function (e.g. -DUSER_ABORT=MySUError), SuperLU provides no way to inject the declaration, and the signature of void superlu_abort_and_exit(char *) is not the signature of an implicit function.

dump matrix factors to a file

Is it possible to write/output the matrix factors to a file in order to save time later on restarting my simulation?

In my case I just have to factor the matrix once, per case, but restarting the simulation many times I waste lot of resources factoring every time the same matrix.

I was looking for serialising/deserialising the matrix factors, but I was wondering if (hopefully) there was already an internal call, within the library, to do that!

Invalid pkg-config strings

At least when installed by spack, we've observed SuperLU 5.3.0 to generate some invalid strings in its {prefix}/lib/pkgconfig/superlu.pc. The libdir value is set to the prefix appended to the libdir. like this:
libdir=/home/wspear/bin/SPACK/spack/opt/spack/linux-ubuntu22.04-westmere/gcc-11.3.0/superlu-5.3.0-e4dr3j4nfn6ry2mikrprlfn5ukgpb4in//home/wspear/bin/SPACK/spack/opt/spack/linux-ubuntu22.04-westmere/gcc-11.3.0/superlu-5.3.0-e4dr3j4nfn6ry2mikrprlfn5ukgpb4in/lib

Which isn't an actual path.

And when configured with intel-mkl the Libs.private value appends all of the paths and libraries together in a semicolon separated blob which pkg-config exports as-is and is not valid compiler input.

Can superlu solve the symmetric matrix?

Hello, I have a question. The example dlinsol1 uses DGSSV in the symmetric mode. Does it mean superlu can deal with symmetric matrix or just regard the symmetrix matrix as a general matrix? Thank you!

need : libsuperlu.so.5.1

Hi Team

I need this [ libsuperlu.so.5.1 ] file for my project.

but After i installed i found :
image

which is [ libsuperlu.a ] file .

could you pls help me how can i found [ libsuperlu.so.5.1 ] this file .

undefined behaviour due to BLAS prototypes missing "hidden" variables required by Fortran

The prototypes for Fortran BLAS and LAPACK functions appear to be incomplete in SuperLU. This can lead to undefined behaviour with recent releases of gcc/gfortran due to more aggressive compiler optimisations.

According to gfortran passing conventions (followed by other fortran compilers as well), every char* argument also has an associated so-called "hidden" argument which specifies the number of characters. The type of the "hidden" argument may vary across compilers and/or compiler versions. The position of each "hidden" argument is also compiler dependent, though seems to be typically tacked onto the end of the function definition.
https://gcc.gnu.org/onlinedocs/gfortran/Argument-passing-conventions.html

As an example in SuperLU, the current prototype for dgemm in
https://github.com/xiaoyeli/superlu/blob/master/SRC/slu_ddefs.h
is defined as:
extern int dgemm_(const char*, const char*, const int*, const int*, const int*, const double*, const double*, const int*, const double*, const int*, const double*, double*, const int*);

But it probably should be:
extern int dgemm_(const char*, const char*, const int*, const int*, const int*, const double*, const double*, const int*, const double*, const int*, const double*, double*, const int*, fort_len, fort_len);

where fort_len is typically a 32 bit unsigned int on 32 bit platforms, and 64 bit unsigned int on 64 bit platforms (eg. size_t). This does not apply to gcc versions <= 7, where it is always int.

Until recently, avoiding the use of these fort_len arguments appeared to work, but new versions of gcc/gfortran are more strict, leading to stack overwrites (and hence crashes) when these arguments are not used.

The same bug affects a lot of other software in C and C++ that uses BLAS / LAPACK:

Get user-oriented EXAMPLES/ to work with all build options

The PR #2 resolved most of the remaining issues with the SuperLU build. What it did not resolved was getting the user-oriented examples under EXAMPLES/ that use the configured make.in file to work for shared libraries and the internal CBLAS library. Also, it would be a good idea to put in automated testing of the user examples, at least in development-mode. For release-mode (which should be the default), you would not enable testing of the examples.

Circular link dependency error on Windows in 5.3.0

Building with VS 2019 as following fails, with CBLAS complaining of unresolved external symbols from SuperLU

mkdir build ; cd build
cmake .. -Denable_internal_blaslib=YES -DXSDK_ENABLE_Fortran=FALSE
msbuild SuperLU.sln
Build Error
  C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\link.exe /ER
  RORREPORT:QUEUE /OUT:"C:\Users\Dev\Git\superlu\build\CBLAS\Debug\blas.dll" /INCREMENTAL /ILK:"blas.dir\Debug\blas.ilk
  " /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib adv
  api32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"C:/Users/Dev/Git/s
  uperlu/build/CBLAS/Debug/blas.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/Users/Dev/Git/super
  lu/build/CBLAS/Debug/blas.lib" /MACHINE:X64  /machine:x64 /DLL blas.dir\Debug\isamax.obj
  blas.dir\Debug\sasum.obj
  blas.dir\Debug\saxpy.obj
  blas.dir\Debug\scopy.obj
  blas.dir\Debug\sdot.obj
  blas.dir\Debug\snrm2.obj
  blas.dir\Debug\srot.obj
  blas.dir\Debug\sscal.obj
  blas.dir\Debug\sswap.obj
  blas.dir\Debug\sgemv.obj
  blas.dir\Debug\ssymv.obj
  blas.dir\Debug\strsv.obj
  blas.dir\Debug\sger.obj
  blas.dir\Debug\ssyr2.obj
  blas.dir\Debug\idamax.obj
  blas.dir\Debug\dasum.obj
  blas.dir\Debug\daxpy.obj
  blas.dir\Debug\dcopy.obj
  blas.dir\Debug\ddot.obj
  blas.dir\Debug\dnrm2.obj
  blas.dir\Debug\drot.obj
  blas.dir\Debug\dscal.obj
  blas.dir\Debug\dswap.obj
  blas.dir\Debug\dgemv.obj
  blas.dir\Debug\dsymv.obj
  blas.dir\Debug\dtrsv.obj
  blas.dir\Debug\dger.obj
  blas.dir\Debug\dsyr2.obj
  blas.dir\Debug\icamax.obj
  blas.dir\Debug\scasum.obj
  blas.dir\Debug\caxpy.obj
  blas.dir\Debug\ccopy.obj
  blas.dir\Debug\scnrm2.obj
  blas.dir\Debug\cscal.obj
  blas.dir\Debug\cswap.obj
  blas.dir\Debug\cdotc.obj
  blas.dir\Debug\cgemv.obj
  blas.dir\Debug\chemv.obj
  blas.dir\Debug\ctrsv.obj
  blas.dir\Debug\cgerc.obj
  blas.dir\Debug\cher2.obj
  blas.dir\Debug\izamax.obj
  blas.dir\Debug\dzasum.obj
  blas.dir\Debug\zaxpy.obj
  blas.dir\Debug\zcopy.obj
  blas.dir\Debug\dznrm2.obj
  blas.dir\Debug\zscal.obj
  blas.dir\Debug\dcabs1.obj
  blas.dir\Debug\zswap.obj
  blas.dir\Debug\zdotc.obj
  blas.dir\Debug\zgemv.obj
  blas.dir\Debug\zhemv.obj
  blas.dir\Debug\ztrsv.obj
  blas.dir\Debug\zgerc.obj
  blas.dir\Debug\zher2.obj
zhemv.obj : error LNK2019: unresolved external symbol input_error referenced in function zhemv_ [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
ztrsv.obj : error LNK2001: unresolved external symbol input_error [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
zgerc.obj : error LNK2001: unresolved external symbol input_error [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
zher2.obj : error LNK2001: unresolved external symbol input_error [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
ctrsv.obj : error LNK2001: unresolved external symbol input_error [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
cgerc.obj : error LNK2001: unresolved external symbol input_error [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
cher2.obj : error LNK2001: unresolved external symbol input_error [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
zgemv.obj : error LNK2001: unresolved external symbol input_error [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
dger.obj : error LNK2001: unresolved external symbol input_error [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
dsyr2.obj : error LNK2001: unresolved external symbol input_error [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
cgemv.obj : error LNK2001: unresolved external symbol input_error [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
chemv.obj : error LNK2001: unresolved external symbol input_error [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
ssyr2.obj : error LNK2001: unresolved external symbol input_error [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
dgemv.obj : error LNK2001: unresolved external symbol input_error [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
dsymv.obj : error LNK2001: unresolved external symbol input_error [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
dtrsv.obj : error LNK2001: unresolved external symbol input_error [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
sgemv.obj : error LNK2001: unresolved external symbol input_error [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
ssymv.obj : error LNK2001: unresolved external symbol input_error [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
strsv.obj : error LNK2001: unresolved external symbol input_error [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
sger.obj : error LNK2001: unresolved external symbol input_error [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
icamax.obj : error LNK2019: unresolved external symbol r_imag referenced in function icamax_ [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
scasum.obj : error LNK2001: unresolved external symbol r_imag [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
caxpy.obj : error LNK2001: unresolved external symbol r_imag [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
scnrm2.obj : error LNK2001: unresolved external symbol r_imag [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
cgerc.obj : error LNK2019: unresolved external symbol r_cnjg referenced in function cgerc_ [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
cher2.obj : error LNK2001: unresolved external symbol r_cnjg [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
cdotc.obj : error LNK2001: unresolved external symbol r_cnjg [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
cgemv.obj : error LNK2001: unresolved external symbol r_cnjg [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
chemv.obj : error LNK2001: unresolved external symbol r_cnjg [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
ctrsv.obj : error LNK2001: unresolved external symbol r_cnjg [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
ctrsv.obj : error LNK2019: unresolved external symbol c_div referenced in function ctrsv_ [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
dznrm2.obj : error LNK2019: unresolved external symbol d_imag referenced in function dznrm2_ [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
zgerc.obj : error LNK2019: unresolved external symbol d_cnjg referenced in function zgerc_ [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
zher2.obj : error LNK2001: unresolved external symbol d_cnjg [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
zdotc.obj : error LNK2001: unresolved external symbol d_cnjg [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
zgemv.obj : error LNK2001: unresolved external symbol d_cnjg [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
zhemv.obj : error LNK2001: unresolved external symbol d_cnjg [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
ztrsv.obj : error LNK2001: unresolved external symbol d_cnjg [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
ztrsv.obj : error LNK2019: unresolved external symbol z_div referenced in function ztrsv_ [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
C:\Users\Dev\Git\superlu\build\CBLAS\Debug\blas.dll : fatal error LNK1120: 7 unresolved externals [C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj]
Done Building Project "C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj" (default targets) -- FAILED.

Done Building Project "C:\Users\Dev\Git\superlu\build\CBLAS\blas.vcxproj.metaproj" (default targets) -- FAILED.

Done Building Project "C:\Users\Dev\Git\superlu\build\ALL_BUILD.vcxproj.metaproj" (default targets) -- FAILED.

Done Building Project "C:\Users\Dev\Git\superlu\build\SuperLU.sln" (default targets) -- FAILED.

Build FAILED.

I tried msbuild CBLAS\blas.vcxproj and msbuild -p:BuildProjectReferences=false CBLAS\blas.vcxproj, but the same error happens.

I also tried msbuild -p:BuildProjectReferences=false SRC\superlu.vcxproj, which almost compiled but failed to link blas.lib (as it wasn't built):

"C:\Users\Dev\Git\superlu\build\SRC\superlu.vcxproj" (default target) (1) ->
(Link target) ->
  LINK : fatal error LNK1104: cannot open file '..\CBLAS\Debug\blas.lib' [C:\Users\Dev\Git\superlu\build\SRC\superlu.vc
xproj]

Note that the last two failures ONLY happen on 5.3.0. On 5.2.1, the following commands succeed:

cmake .. -Denable_internal_blaslib=YES
msbuild -p:BuildProjectReferences=false SRC\superlu.vcxproj
msbuild -p:BuildProjectReferences=false CBLAS\blas.vcxproj

Compilation error with Superlu-dist version 6.1.1

I complied Superlu-dist version 6.1.1 with 64 bit matrix index to use it with large sparse matrix

I ma using vas_stokes_4M.rua from Florida matrix collection. The description of the matrix is here:
[https://sparse.tamu.edu/VLSI/vas_stokes_4M]

I got the following.out file error and the error file is empty. Any idea is highly appreciated.


Case $
Sun Feb 21 10:57:55 +03 2021

Loaded modules: gcc/7.1.0:mpi/openmpi-3.0.0-gcc-7.1.0:intel/mkl_2017.0.098
export KMP_AFFINITY=verbose,disabled
export MKL_NUM_THREADS=1
export OMP_NUM_THREADS=1

Working directory: /x/more_superlu64/SuperLU_DIST_6.1.1/EXAMPLE/audik22

Command: mpirun -np 256 ../pddrive -r 16 -c 16  /x/matlab/vas_stokes_4M.rua


Matrix: vas_stokes_4M.rua

slurm NNODES: 10 , NTASK: 256 ,  ntask per node:  ,cpu per task:

MPI_Query_thread with MPI_THREAD_MULTIPLE
__STDC_VERSION__ 199901
Library version:        6.1.1
Input matrix file: /x/matlab/vas_stokes_4M.rua
Process grid:           16 X 16
Time to read and distribute matrix 30.06
**************************************************
.. blocking parameters from sp_ienv():
**    relaxation                 : 20
**    max supernode              : 128
**    estimated fill ratio       : 5
**    min GEMM dimension for GPU : 10000
**************************************************
**************************************************
.. options:
**    Fact             :    0
**    Equil            :    1
**    DiagInv          :    1
**    ParSymbFact      :    0
**    ColPerm          :    4
**    RowPerm          :    1
**    ReplaceTinyPivot :    0
**    IterRefine       :    0
**    Trans            :    0
**    num_lookaheads   :   10
**    SymPattern       :    0
**    lookahead_etree  :    0
**************************************************
.. equilibrated? *equed = C
.. LDPERM job 5  time: 12.70
.. anorm 4.350491e+01
-------------------------------------------------------
Primary job  terminated normally, but 1 process returned
a non-zero exit code. Per user-direction, the job has been aborted.
-------------------------------------------------------


print ==========================================
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)
            436443     queue    sVas4   user  R       1:45     10 s[005,008-009,014,019-021,023-024,026]
print SLURM_JOB_ID = 436443
print SLURM_JOB_NODELIST = s[005,008-009,014,019-021,023-024,026]
print SLURM_SUBMIT_HOST = cluster
print SLURM_SUBMIT_DIR = /x/more_superlu64/SuperLU_DIST_6.1.1/EXAMPLE/audik22
print SLURM_JOB_NUM_NODES = 10
print SLURM_CPUS_ON_NODE = 28
print SLURM_NTASKS = 256
print SLURM_NODEID = 0
print ==========================================
Sun Feb 21 10:59:34 +03 2021
~                              

Multiple definition error

Hi all.

I obtaining a linking error when try to compile libsuperlu_fortran in Fedora 38:

[ 98%] Linking Fortran shared library libsuperlu_fortran.so
cd /home/sagitter/rpmbuild/BUILD/superlu-6.0.0/redhat-linux-build/FORTRAN && /usr/bin/cmake -E cmake_link_script CMakeFiles/superlu_fortran.dir/link.txt --verbose=1
/usr/bin/gfortran -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules  -fcommon -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -shared -Wl,-soname,libsuperlu_fortran.so.6 -o libsuperlu_fortran.so.6.0.0 CMakeFiles/superlu_fortran.dir/c_fortran_dgssv.c.o CMakeFiles/superlu_fortran.dir/hbcode1.F90.o CMakeFiles/superlu_fortran.dir/f_main.F90.o CMakeFiles/superlu_fortran.dir/c_fortran_zgssv.c.o CMakeFiles/superlu_fortran.dir/zhbcode1.F90.o CMakeFiles/superlu_fortran.dir/z_f_main.F90.o  ../SRC/libsuperlu.so.6.0.0 -lflexiblas /usr/lib64/libmetis.so -lm 
/usr/bin/ld: CMakeFiles/superlu_fortran.dir/z_f_main.F90.o (symbol from plugin): in function `main':
(.text+0x0): multiple definition of `main'; CMakeFiles/superlu_fortran.dir/f_main.F90.o (symbol from plugin):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status

PDSLin hybrid solver error: unknown type name โ€˜superlu_options_t

I want to install PDSLin1.3 ([http://portal.nersc.gov/project/sparse/pdslin/] I installed all dependecies but now when running make, I keep getting this error:

...// warnings
^
cc: warning: /home/afrah/SuperLU_5.2.0/SRC: linker input file unused because linking not done
cc: warning: /usr/include: linker input file unused because linking not done
cc: warning: /usr/share/parmetis/include: linker input file unused because linking not done
cc -c -I/home/afrah/pdslin/include /home/afrah/SuperLU_5.2.0/SRC /usr/include -DDEBUGlevel=0 -DPRNTlevel=0 -DAdd_ -DUSE_VENDOR_BLAS -I/home/afrah/SuperLU_DIST_5.1.2/SRC -I/usr/local/include /usr/share/parmetis/include -I/usr/share/mpich-install/include pdslin_wrapper.c
cc: warning: /home/afrah/SuperLU_5.2.0/SRC: linker input file unused because linking not done
cc: warning: /usr/include: linker input file unused because linking not done
cc: warning: /usr/share/parmetis/include: linker input file unused because linking not done
cc -c -I/home/afrah/pdslin/include /home/afrah/SuperLU_5.2.0/SRC /usr/include -DDEBUGlevel=0 -DPRNTlevel=0 -DAdd_ -DUSE_VENDOR_BLAS -I/home/afrah/SuperLU_DIST_5.1.2/SRC -I/usr/local/include /usr/share/parmetis/include -I/usr/share/mpich-install/include pdslin_perm.c
pdslin_perm.c: In function โ€˜comp_permโ€™:
pdslin_perm.c:113:24: warning: passing argument 1 of โ€˜ParMETIS_V3_NodeNDโ€™ from incompatible pointer type [-Wincompatible-pointer-types]
ParMETIS_V3_NodeND(disp, rowptr_l, colind_l, &numflag, options,
.
.
.
/home/afrah/pdslin/include/pdslin_slu.h:49:24: error: unknown type name โ€˜superlu_options_tโ€™
void get_perm_c_dist_t(superlu_options_t *options, int_t pnum, int_t ispec, SuperMat
^
/home/afrah/pdslin/include/pdslin_slu.h:70:24: error: unknown type name โ€˜superlu_options_tโ€™
int_t pdslin_symbfact( superlu_options_t options, / input options */
.
.
.
:0:0: note: this is the location of the previous definition
get_perm_c.c:49:11: error: unknown type name โ€˜superlu_options_tโ€™
superlu_options_t *options,
^
get_perm_c.c:167:19: error: unknown type name โ€˜superlu_options_tโ€™
get_perm_c_dist_t(superlu_options_t *options, int_t pnum, int_t ispec, SuperMatrix *
makefile:41: recipe for target 'get_perm_c.o' failed
make[2]: *** [get_perm_c.o] Error 1
make[2]: Leaving directory '/home/afrah/pdslin/src/slu'
makefile:46: recipe for target 'lib' failed
make[1]: *** [lib] Error 2
make[1]: Leaving directory '/home/afrah/pdslin/src'
makefile:8: recipe for target 'all' failed
make: *** [all] Error 2
This is my make file:
//#
//# top directory make.inc
//#
//# on hopper: % module load cray-petsc which also loads cray-tpsl, including pt-schotch and parmetis.

//#-----------------------------------------------------------------------------
//#home directory, where the software is located
TOP = /home/afrah/pdslin

INCLUDEDIR =/usr/include
//#----------------------------------------------------------------------------
//#hybrid solver library name
LIB = $(TOP)/lib/libhybrid.a

//#----------------------------------------------------------------------------
//#Libraries:
//#
//#MPI/BLAS libraries
L_MPI = /usr/share/mpich-install/lib/libmpi.a -llibmpi
I_MPI = -I/usr/share/mpich-install/include
L_BLAS = -llibblas -lliblapack

//#-----------------------------------------------------------------------------
//#make utility
MAKE = make

//#-----------------------------------------------------------------------------
//#archiver and flags to build the library
ARCH = /usr/bin/ar
ARCHFLAGS = cr
RANLIB = /usr/bin/ranlib
//#-----------------------------------------------------------------------------
//#C compiler and flags
CC = gcc
FLAGS = -Wall -DWITH_PETSC
FLAGS += -DWITH_SLU
//#-----------------------------------------------------------------------------
//#fortran compiler and flags
FC = mpif90
FLIB = -pgf90libs
FFLAGS = -fast -g
//#-----------------------------------------------------------------------------
//#linker used to link example program with the library
//#/LINKER = /usr/share/mpich-install/bin/mpicc -Wl,--allow-multiple-definition
LINKER = CC -Wl,--allow-multiple-definition

//#------------------------------------------------------------------
//#C++ compiler (this is not needed for your standard compilation)
CPP = mpicxx

//#-----------------------------------------------------------------------------

//#L_PPART = -L/usr/share/parmetis/lib/libparmetis -lparmetis

//#I_PPART = -I/usr/local/include

L_PPART = -L/usr/local/lib -llibscotch -llibptscotch
-L/usr/local/lib -lptscotcherr -llibscotchmetis -lptscotchparmetis
I_PPART = -DSCOTCH_ORDER -I/usr/local/include

//#------------------------------------------------------#
//#Metis Library, and its header files
L_METIS = -L/usr/share/parmetis/lib/libmetis -lmetis
I_METIS = -I/usr/share/parmetis/include

//#------------------------------------------------------#
//#SuperLU_DIST library, and its header files (hopper: module load superlu_dist)
//#SLUDIST = /global/common/hopper2/acts/SuperLU/SuperLU_DIST/2.5
//#L_SLUDIST = -L$(SLUDIST)/craypgi-xe6_O/lib -lsuperlu_dist_2.5
//#I_SLUDIST = -DDEBUGlevel=0 -DPRNTlevel=1 -DAdd_ -DUSE_VENDOR_BLAS -I$(SLUDIST)/SRC

SLUDIST = /home/afrah/SuperLU_DIST_5.1.2
I_SLUDIST = -DDEBUGlevel=0 -DPRNTlevel=0 -DAdd_ -DUSE_VENDOR_BLAS -I$(SLUDIST)/SRC
L_SLUDIST = -L$(SLUDIST)/lib -llibsuperlu_dist.so

//#------------------------------------------------------#
//#Petsc library, and its header files
//#double version
I_PETSC = -I/home/afrah/petsc/include
-I/home/afrah/petsc/arch-linux2-c-debug/include
L_PETSC = -L/home/afrah/petsc/arch-linux2-c-debug/lib -llibpetsc

//#------------------------------------------------------#
//#Other optional libraries

//#serial SuperLU
L_SLU = -L/home/afrah/SuperLU_5.2.0/lib -llibsuperlu_5.2
I_SLU = -I/home/afrah/SuperLU_5.2.0/SRC

//#---------------------------------------------------------------
//#accumulate all includes and libraries

INC = -I$(TOP)/include $(I_SLU) -I$(INCLUDEDIR) $(I_SLUDIST) $(I_PPART) $(I_METIS) $(I_MPI) $(I_PETSC)
LIBS = $(LIB) $(L_SLU) $(L_SLUDIST) $(L_PPART) $(L_METIS) $(L_BLAS) $(L_MPI) $(L_PETSC)
ZLIBS = $(LIB) $(L_SLUDIST) $(L_PPART) $(L_METIS) $(L_BLAS) $(L_MPI) $(L_SLU) $(L_PETSC)

SuperLU's CMake install is misconfigured

SuperLU repeatedly uses CMAKE_INSTALL_PREFIX to assert its installation location during configuration, and even sets it.

set(CMAKE_INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib")
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
if (NOT CMAKE_INSTALL_PREFIX)
  set(CMAKE_INSTALL_PREFIX /usr/local)
endif()
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/superlu.pc
	DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)

This is one of the most grievous CMake sins you can commit.

You must not assume CMAKE_INSTALL_PREFIX is valid at configuration, nor set it. You must pass relative paths to install(), because the user must be able to substitute an installation root at installation time. Instead of passing your desired absolute path to install(), you should invoke installation as cmake --install . --prefix /usr/local.

Example of LU factorization using armadillo inputs

Hello,

I am trying to get a simple LU factorization example to work, where the input is given by armadillo matrices.

So far I have this:

#include "armadillo"

void superlu_factorization( ) {

    using namespace arma;
    using namespace arma::superlu;

    mat Adense = arma::randu<arma::mat>(5, 5);
    sp_mat A(Adense);
    vec b = arma::randu<arma::vec>(5);

    // Convert the Armadillo matrix A to SuperLU format
    SuperMatrix A2;
    int n = (int)A.n_rows;
    int nnz = (int)A.n_nonzero;
    double *values = new double[nnz];
    memcpy(values, A.values, nnz * sizeof(double)); /// copy values
    int *row_indices = (int*) A.row_indices;
    int *col_ptrs = (int*) A.col_ptrs;
    dCreate_CompCol_Matrix(&A2, n, n, nnz, values, row_indices, col_ptrs,
                            SLU_NC, SLU_D, SLU_GE);

    // Allocate memory for the LU factorization
    SuperMatrix L;
    double *values_l = new double[nnz];
    int *row_indices_l = new int[nnz];
    int *col_ptrs_l = new int[n + 1];
    dCreate_CompCol_Matrix(&L, n, n, nnz, values_l, row_indices_l, col_ptrs_l, SLU_NC, SLU_D, SLU_GE);

    SuperMatrix U;
    double *values_u = new double[nnz];
    int *row_indices_u = new int[nnz];
    int *col_ptrs_u = new int[n + 1];
    dCreate_CompCol_Matrix(&U, n, n, nnz, values_u, row_indices_u, col_ptrs_u,  SLU_NC, SLU_D, SLU_GE);

    // Set up the options for SuperLU
    superlu_options_t options;
    set_default_options(&options);
    options.ColPerm = NATURAL;

    // Perform the LU factorization
    int *perm_r = new int[n];
    int *perm_c = new int[n];
    int *etree = new int[n];
    double *work = new double[nnz];
    int info;
    GlobalLU_t Glu;
    SuperLUStat_t stat;

    dgstrf(&options, &A2, 10, 20, etree, work, -1,
           perm_c, perm_r, &L, &U, &Glu, &stat, &info);

    if (info == 0) {
        std::cout << "LU factorization successful!" << std::endl;
    } else {
        std::cout << "LU factorization failed with code " << info << std::endl;
        //return;
    }

    // wrap b in SuperLU matrix format
    SuperMatrix B;  // this is the rhs at the beginning, and the solution at the end
    dCreate_Dense_Matrix(&B, (int)b.n_rows, (int)b.n_cols,
                          b.memptr(), n,
                          SLU_DN, SLU_D, SLU_GE);
    
    // Solve the linear system
    dgstrs(NOTRANS, &L, &U, perm_c, perm_r, &B, &stat, &info);
    if (info == 0) {
        std::cout << "Linear system solved successfully!" << std::endl;
    } else {
        std::cout << "Linear system solve failed with code " << info << std::endl;
        return;
    }

    // Print the result
    DNformat * store = (DNformat *) B.Store;
    for(uword k=0; k < b.size(); ++k) {
        std::cout << ((double *)store->nzval)[k] << "\n";
    }

    // Free the memory
    Destroy_SuperMatrix_Store(&B);
    Destroy_CompCol_Matrix(&L);
    Destroy_CompCol_Matrix(&U);
    delete[] perm_r;
    delete[] perm_c;
    delete[] etree;
    delete[] work;
}

int main () {
    superlu_factorization();
    return 0;
}

So far, the factorization with dgstrs is returning non-zero info.

Any help here would be much appreciated. Also, any similar example would be useful as well.

BUG: runtime memory error caused from overflowing signed 32-bit int input to doubleCalloc

Describe your issue.

When one tries to solve a sparse linear system AX = B where A is of type scipy.sparse.csc.csc_matrix of size 46679 x 46679 and B is of type numpy.ndarray of size 46679 x 46680 (both matrices containing doubles) using the scipy.sparse.linalg.spsolve function, a runtime memory error occurs. This solver was run on a 64GB RAM Mac machine with the Big Sur OS and 2 TB of disk space.

Reproducing Code Example

import scipy.sparse as sp
from scipy.sparse.linalg import spsolve

import pickle

with open('A.pkl', 'rb') as handle1:
    A = pickle.load(handle1)

with open('B.pkl', 'rb') as handle2:
    B = pickle.load(handle2)

x = spsolve(A, B)

Error message

Python(8835,0x10eafadc0) malloc: can't allocate region
:*** mach_vm_map(size=18446744065245585408, flags: 100) failed (error code=3)
Python(8835,0x10eafadc0) malloc: *** set a breakpoint in malloc_error_break to debug
Traceback (most recent call last):
  File "sparse_solve.py", line 14, in <module>
    x = spsolve(A, B)
  File "/Users/liviofetahu/sesco-llc/matricez/env/lib/python3.8/site-packages/scipy-1.8.0.dev0+1921.c30fefc-py3.8-macosx-10.15-x86_64.egg/scipy/sparse/linalg/dsolve/linsolve.py", line 204, in spsolve
    x, info = _superlu.gssv(N, A.nnz, A.data, A.indices, A.indptr,
RuntimeError: SUPERLU_MALLOC failed for buf in doubleCalloc()
 at line 693 in file scipy/sparse/linalg/dsolve/SuperLU/SRC/dmemory.c

SciPy/NumPy/Python version information

1.7.1 1.21.3 sys.version_info(major=3, minor=8, micro=11, releaselevel='final', serial=0)

Can this be compiled as a 64bit library, or not?

Can it even use 64 bit libraries?
Neither this or the MT version of this seems to look inside /usr/lib64, it's always /usr/lib/

Damnit, man. I just want to get another piece of software to run, which is also a pile of garbage.

This ancient archaic nonsense crap is always making me feel like a complete idiot.
I can use the damn library but compiling is, obviously, above me.

Pissed off.

Shared library not generated correctly on Apple

The installed shared library libsuperlu.dylib does not have the correct rpath because you do not set CMAKE_INSTALL_NAME_DIR:STRING properly in CMakeList.txt

Current fix is for the user to provide it on the cmake command line
-DCMAKE_INSTALL_NAME_DIR:STRING=/installdirectory

Matrix solve passing bad arguments to cBLAS DTRSV function causing a program exit

I am part of a team that uses SuperLU and its parallel variants (SuperLU_Dist and SuperLU_MT) for the linear system solve that is critical to our optimization software.

On occasion the program will exit with a invalid argument passed to cBLAS regardless if its SuperLUโ€™s internal cBLAS or an external one we provide. On Linux the error is:

** On entry to DTRSV parameter number 6 had an illegal value.

This stems from cblas_xerbla.c. On Mac, when Accelerate is used as the substitute BLAS and Lapack libraries the error takes on the form of:

lda must be >= MAX(N,1): lda=3 N=4 BLAS error: Parameter number 7 passed to cblas_dtrsv had an invalid value

It seems SuperLU is not handling a potentially poorly conditioned matrix well. These calls exit our program which is not the way we want to process this error. We really want to continue to use this software and would like to work together to resolve this bug. We can send the matrix being solved when the error occurs if that would help.

Building on M1 mac (osx 12.2.1)

Hi

I am trying to build SuperLu from source on my m1 macbook. I copied over the mac make.inc but I am getting the following errors:

gcc -O2  -DAdd_  -c ssp_blas2.c 
ssp_blas2.c:256:7: error: implicit declaration of function 'strsv_' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                    strsv_("L", "T", "U", &nsupc, &Lval[luptr], &nsupr,
                    ^
ssp_blas2.c:291:7: error: implicit declaration of function 'strsv_' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                    strsv_("U", "T", "N", &nsupc, &Lval[luptr], &nsupr,
                    ^

I changed
BLASLIB = /opt/homebrew/opt/openblas/lib/libopenblas.a to point to the openblas installation on my mac, but to no avail

Please make a release

The last release was in 2016 (4 years ago), and there were some pull requests and fixes after this.

Thread-safety issue in sequential superLU

Hi Sherry,

It seems there are some places in the sequential superLU where local static variables are used. This might cause thread-safety issues if the same function is called by multiple threads. Would you please help take a look?
For example superlu/SRC/icmax1.c:66
static float smax;
static int i, ix;

Regards,
Haotian

CBLAS/CMakeLists.txt incorrectly references SRC/input_error.c

CBLAS/CMakeLists.txt depends on an input_error.c, which does not exist, yielding a CMake error:

CMake Error at CBLAS/CMakeLists.txt:83 (add_library):
  Cannot find source file:

    input_error.c

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
  .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc


CMake Error at CBLAS/CMakeLists.txt:83 (add_library):
  No SOURCES given to target: blas

There is a SRC/input_error.c however. You should decide which lib needs to provide input_error(char *, int *). If superlu provides it, then extern it from CBLAS. If BLAS provides it, then move input_error.c into CBLAS/.

error: too many arguments to function โ€˜FILE* fopen()โ€™

I copy the content of "pddrive1.c" into my c++ project, and set the include path and link with the library. the compiler fed back the following error:
error: too many arguments to function โ€˜FILE* fopen()โ€™
/2T/Projects/SuperLU_dist/main.cpp:92:36: error: โ€˜STDC_VERSIONโ€™ was not declared in this scope

what caused this problem?

5.3.0: compile time warnings

Summary stats:

[tkloczko@barrel SPECS]$ rpmbuild -ba --with check --with failing_tests SuperLU.spec --quiet 2>&1 | grep -- -W | sed 's/.*\[//; s/\]//' | sort | uniq -c | sort -nr
    130 -Wunused-result
     41 -Wunused-but-set-variable
     38 -Wunused-variable
      9 -Wunused-function
      2 -Wunused-label
      1 -Wcpp

warnings extracted from stderr:

In file included from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/math.h:27,
                 from /home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/smach.c:12:
/usr/include/features.h:412:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
  412 | #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
      |    ^~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sp_coletree.c:253:6: warning: 'etdfs' defined but not used [-Wunused-function]
  253 | void etdfs (
      |      ^~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/util.c: In function 'ilu_countnz':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/util.c:224:24: warning: variable 'irep' set but not used [-Wunused-but-set-variable]
  224 |     int          jlen, irep;
      |                        ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sgssvx.c: In function 'sgssvx':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sgssvx.c:377:14: warning: variable 'diag_pivot_thresh' set but not used [-Wunused-but-set-variable]
  377 |     float    diag_pivot_thresh;
      |              ^~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sgstrs.c: In function 'sgstrs':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sgstrs.c:101:24: warning: unused variable 'incy' [-Wunused-variable]
  101 |     int      incx = 1, incy = 1;
      |                        ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sgstrs.c:101:14: warning: unused variable 'incx' [-Wunused-variable]
  101 |     int      incx = 1, incy = 1;
      |              ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/ssnode_bmod.c: In function 'ssnode_bmod':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/ssnode_bmod.c:62:35: warning: unused variable 'iptr' [-Wunused-variable]
   62 |     int            isub, irow, i, iptr;
      |                                   ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/ssnode_bmod.c:62:32: warning: unused variable 'i' [-Wunused-variable]
   62 |     int            isub, irow, i, iptr;
      |                                ^
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadhb.c: In function 'sreadhb':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadhb.c:291:29: warning: unused variable 'key' [-Wunused-variable]
  291 |     char buf[100], type[4], key[10];
      |                             ^~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadrb.c: In function 'sreadrb':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadrb.c:295:5: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  295 |     fgets(buf, 100, fp);
      |     ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadrb.c:300:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  300 |         fscanf(fp, "%14c", buf); buf[14] = 0;
      |         ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadhb.c: In function 'sReadValues':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadrb.c:307:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  307 |     fscanf(fp, "%3c", type);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadhb.c:167:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  167 |         fgets(buf, 100, fp);    /* read a line at a time */
      |         ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadrb.c:308:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  308 |     fscanf(fp, "%11c", buf); /* pad */
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadrb.c:314:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  314 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", nrow);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadrb.c:315:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  315 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", ncol);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadrb.c:316:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  316 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", nonz);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadrb.c:317:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  317 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", &tmp);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadrb.c:329:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  329 |     fscanf(fp, "%16c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadrb.c:331:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  331 |     fscanf(fp, "%16c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadrb.c:333:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  333 |     fscanf(fp, "%20c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadhb.c: In function 'sreadhb':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadhb.c:295:5: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  295 |     fgets(buf, 100, fp);
      |     ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadhb.c:307:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  307 |         fscanf(fp, "%14c", buf); buf[14] = 0;
      |         ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadhb.c:315:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  315 |     fscanf(fp, "%3c", type);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadhb.c:316:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  316 |     fscanf(fp, "%11c", buf); /* pad */
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadhb.c:322:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  322 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", nrow);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadhb.c:323:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  323 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", ncol);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadrb.c: In function 'ReadVector':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadrb.c:142:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  142 |         fgets(buf, 100, fp);    /* read a line at a time */
      |         ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadhb.c:324:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  324 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", nonz);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadhb.c:325:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  325 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", &tmp);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadhb.c:337:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  337 |     fscanf(fp, "%16c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadhb.c:339:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  339 |     fscanf(fp, "%16c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadhb.c:341:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  341 |     fscanf(fp, "%20c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadrb.c: In function 'sReadValues':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadrb.c:163:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  163 |         fgets(buf, 100, fp);    /* read a line at a time */
      |         ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadhb.c:343:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  343 |     fscanf(fp, "%20c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadMM.c: In function 'sreadMM':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadMM.c:55:6: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
   55 |      fgets(line,512,fp);
      |      ^~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadMM.c:100:8: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  100 |        fgets(line,512,fp);
      |        ^~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadhb.c: In function 'ReadVector':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadhb.c:147:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  147 |         fgets(buf, 100, fp);    /* read a line at a time */
      |         ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadtriple.c: In function 'sreadtriple':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadtriple.c:48:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
   48 |     scanf("%d%d", n, nonz);
      |     ^~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadtriple.c:64:9: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
   64 |         scanf("%d%d%f\n", &row[nz], &col[nz], &val[nz]);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
At top level:
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadtriple.c: In function 'sreadrhs':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadMM.c:219:13: warning: 'sreadrhs' defined but not used [-Wunused-function]
  219 | static void sreadrhs(int m, float *b)
      |             ^~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sreadtriple.c:146:7: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  146 |       fscanf(fp, "%f\n", &b[i]);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sutil.c: In function 'sFillRHS':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sutil.c:368:14: warning: variable 'Aval' set but not used [-Wunused-but-set-variable]
  368 |     float   *Aval;
      |              ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sgsisx.c: In function 'sgsisx':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sgsisx.c:677:16: warning: unused variable 'rhs_work' [-Wunused-variable]
  677 |         float *rhs_work;
      |                ^~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/sgsisx.c:423:14: warning: variable 'diag_pivot_thresh' set but not used [-Wunused-but-set-variable]
  423 |     float    diag_pivot_thresh;
      |              ^~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/ilu_sdrop_row.c:35:12: warning: '_compare_' defined but not used [-Wunused-function]
   35 | static int _compare_(const void *a, const void *b)
      |            ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dgssvx.c: In function 'dgssvx':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dgssvx.c:377:15: warning: variable 'diag_pivot_thresh' set but not used [-Wunused-but-set-variable]
  377 |     double    diag_pivot_thresh;
      |               ^~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dgstrs.c: In function 'dgstrs':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dgstrs.c:101:24: warning: unused variable 'incy' [-Wunused-variable]
  101 |     int      incx = 1, incy = 1;
      |                        ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dgstrs.c:101:14: warning: unused variable 'incx' [-Wunused-variable]
  101 |     int      incx = 1, incy = 1;
      |              ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dsnode_bmod.c: In function 'dsnode_bmod':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dsnode_bmod.c:62:35: warning: unused variable 'iptr' [-Wunused-variable]
   62 |     int            isub, irow, i, iptr;
      |                                   ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dsnode_bmod.c:62:32: warning: unused variable 'i' [-Wunused-variable]
   62 |     int            isub, irow, i, iptr;
      |                                ^
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadhb.c: In function 'dreadhb':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadtriple.c: In function 'dreadtriple':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadhb.c:291:29: warning: unused variable 'key' [-Wunused-variable]
  291 |     char buf[100], type[4], key[10];
      |                             ^~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadtriple.c:48:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
   48 |     scanf("%d%d", n, nonz);
      |     ^~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadtriple.c:64:9: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
   64 |         scanf("%d%d%lf\n", &row[nz], &col[nz], &val[nz]);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadtriple.c: In function 'dreadrhs':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadtriple.c:146:7: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  146 |       fscanf(fp, "%lf\n", &b[i]);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadrb.c: In function 'dreadrb':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadrb.c:295:5: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  295 |     fgets(buf, 100, fp);
      |     ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadhb.c: In function 'dReadValues':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadrb.c:300:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  300 |         fscanf(fp, "%14c", buf); buf[14] = 0;
      |         ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadhb.c:167:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  167 |         fgets(buf, 100, fp);    /* read a line at a time */
      |         ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadrb.c:307:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  307 |     fscanf(fp, "%3c", type);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadrb.c:308:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  308 |     fscanf(fp, "%11c", buf); /* pad */
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadrb.c:314:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  314 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", nrow);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadrb.c:315:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  315 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", ncol);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadhb.c: In function 'dreadhb':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadrb.c:316:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  316 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", nonz);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadhb.c:295:5: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  295 |     fgets(buf, 100, fp);
      |     ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadrb.c:317:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  317 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", &tmp);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadhb.c:307:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  307 |         fscanf(fp, "%14c", buf); buf[14] = 0;
      |         ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadrb.c:329:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  329 |     fscanf(fp, "%16c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadhb.c:315:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  315 |     fscanf(fp, "%3c", type);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadrb.c:331:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  331 |     fscanf(fp, "%16c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadhb.c:316:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  316 |     fscanf(fp, "%11c", buf); /* pad */
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadrb.c:333:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  333 |     fscanf(fp, "%20c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadhb.c:322:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  322 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", nrow);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadhb.c:323:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  323 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", ncol);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadhb.c:324:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  324 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", nonz);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadhb.c:325:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  325 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", &tmp);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadhb.c:337:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  337 |     fscanf(fp, "%16c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadhb.c:339:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  339 |     fscanf(fp, "%16c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadhb.c:341:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  341 |     fscanf(fp, "%20c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadhb.c:343:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  343 |     fscanf(fp, "%20c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadhb.c: In function 'ReadVector':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadhb.c:147:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  147 |         fgets(buf, 100, fp);    /* read a line at a time */
      |         ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadrb.c: In function 'ReadVector':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadrb.c:142:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  142 |         fgets(buf, 100, fp);    /* read a line at a time */
      |         ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadrb.c: In function 'dReadValues':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadrb.c:163:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  163 |         fgets(buf, 100, fp);    /* read a line at a time */
      |         ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadMM.c: In function 'dreadMM':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadMM.c:55:6: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
   55 |      fgets(line,512,fp);
      |      ^~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadMM.c:100:8: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  100 |        fgets(line,512,fp);
      |        ^~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadMM.c:142:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  142 |         fscanf(fp, "%d%d%lf\n", &row[nz], &col[nz], &val[nz]);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
At top level:
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dreadMM.c:226:13: warning: 'dreadrhs' defined but not used [-Wunused-function]
  226 | static void dreadrhs(int m, double *b)
      |             ^~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dutil.c: In function 'dFillRHS':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dutil.c:368:15: warning: variable 'Aval' set but not used [-Wunused-but-set-variable]
  368 |     double   *Aval;
      |               ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/scsum1.c: In function 'scsum1_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/scsum1.c:56:15: warning: variable 'i__2' set but not used [-Wunused-but-set-variable]
   56 |     int i__1, i__2;
      |               ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/scsum1.c:56:9: warning: variable 'i__1' set but not used [-Wunused-but-set-variable]
   56 |     int i__1, i__2;
      |         ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dgsisx.c: In function 'dgsisx':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dgsisx.c:677:17: warning: unused variable 'rhs_work' [-Wunused-variable]
  677 |         double *rhs_work;
      |                 ^~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/dgsisx.c:423:15: warning: variable 'diag_pivot_thresh' set but not used [-Wunused-but-set-variable]
  423 |     double    diag_pivot_thresh;
      |               ^~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/ilu_ddrop_row.c:35:12: warning: '_compare_' defined but not used [-Wunused-function]
   35 | static int _compare_(const void *a, const void *b)
      |            ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/clacon2.c: In function 'clacon2_':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/clacon2.c:186:1: warning: label 'L90' defined but not used [-Wunused-label]
  186 | L90:
      | ^~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/icmax1.c: In function 'icmax1_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/icmax1.c:63:24: warning: variable 'i__2' set but not used [-Wunused-but-set-variable]
   63 |     int ret_val, i__1, i__2;
      |                        ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/icmax1.c:63:18: warning: variable 'i__1' set but not used [-Wunused-but-set-variable]
   63 |     int ret_val, i__1, i__2;
      |                  ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/cgssvx.c: In function 'cgssvx':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/cgssvx.c:377:14: warning: variable 'diag_pivot_thresh' set but not used [-Wunused-but-set-variable]
  377 |     float    diag_pivot_thresh;
      |              ^~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/cpivotgrowth.c: In function 'cPivotGrowth':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/cpivotgrowth.c:73:15: warning: unused variable 'temp_comp' [-Wunused-variable]
   73 |     complex   temp_comp;
      |               ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/cgstrs.c: In function 'cgstrs':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/cgstrs.c:101:24: warning: unused variable 'incy' [-Wunused-variable]
  101 |     int      incx = 1, incy = 1;
      |                        ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/cgstrs.c:101:14: warning: unused variable 'incx' [-Wunused-variable]
  101 |     int      incx = 1, incy = 1;
      |              ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/csnode_bmod.c: In function 'csnode_bmod':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/csnode_bmod.c:63:35: warning: unused variable 'iptr' [-Wunused-variable]
   63 |     int            isub, irow, i, iptr;
      |                                   ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/csnode_bmod.c:63:32: warning: unused variable 'i' [-Wunused-variable]
   63 |     int            isub, irow, i, iptr;
      |                                ^
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadrb.c: In function 'creadrb':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadrb.c:304:5: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  304 |     fgets(buf, 100, fp);
      |     ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadrb.c:309:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  309 |         fscanf(fp, "%14c", buf); buf[14] = 0;
      |         ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadrb.c:316:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  316 |     fscanf(fp, "%3c", type);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadrb.c:317:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  317 |     fscanf(fp, "%11c", buf); /* pad */
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadrb.c:323:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  323 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", nrow);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadrb.c:324:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  324 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", ncol);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadrb.c:325:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  325 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", nonz);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadrb.c:326:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  326 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", &tmp);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadrb.c:338:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  338 |     fscanf(fp, "%16c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadrb.c:340:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  340 |     fscanf(fp, "%16c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadrb.c:342:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  342 |     fscanf(fp, "%20c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadtriple.c: In function 'creadtriple':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadtriple.c:48:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
   48 |     scanf("%d%d", n, nonz);
      |     ^~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadtriple.c:64:9: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
   64 |         scanf("%d%d%f%f\n", &row[nz], &col[nz], &val[nz].r, &val[nz].i);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadrb.c: In function 'ReadVector':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadrb.c:142:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  142 |         fgets(buf, 100, fp);    /* read a line at a time */
      |         ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadhb.c: In function 'creadhb':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadhb.c:301:29: warning: unused variable 'key' [-Wunused-variable]
  301 |     char buf[100], type[4], key[10];
      |                             ^~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadrb.c: In function 'cReadValues':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadrb.c:164:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  164 |         fgets(buf, 100, fp);    /* read a line at a time */
      |         ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadtriple.c: In function 'creadrhs':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadtriple.c:146:7: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  146 |       fscanf(fp, "%f%f\n", &b[i].r, &b[i].i);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadhb.c: In function 'cReadValues':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadhb.c:169:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  169 |         fgets(buf, 100, fp);    /* read a line at a time */
      |         ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadhb.c: In function 'creadhb':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadhb.c:305:5: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  305 |     fgets(buf, 100, fp);
      |     ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadhb.c:317:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  317 |         fscanf(fp, "%14c", buf); buf[14] = 0;
      |         ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadhb.c:325:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  325 |     fscanf(fp, "%3c", type);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadhb.c:326:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  326 |     fscanf(fp, "%11c", buf); /* pad */
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadhb.c:332:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  332 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", nrow);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadMM.c: In function 'creadMM':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadhb.c:333:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  333 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", ncol);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadMM.c:55:6: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
   55 |      fgets(line,512,fp);
      |      ^~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadhb.c:334:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  334 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", nonz);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadMM.c:100:8: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  100 |        fgets(line,512,fp);
      |        ^~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadhb.c:335:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  335 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", &tmp);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadhb.c:347:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  347 |     fscanf(fp, "%16c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadhb.c:349:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  349 |     fscanf(fp, "%16c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadhb.c:351:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  351 |     fscanf(fp, "%20c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadhb.c:353:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  353 |     fscanf(fp, "%20c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadhb.c: In function 'ReadVector':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadhb.c:147:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  147 |         fgets(buf, 100, fp);    /* read a line at a time */
      |         ^~~~~~~~~~~~~~~~~~~
At top level:
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/creadMM.c:219:13: warning: 'creadrhs' defined but not used [-Wunused-function]
  219 | static void creadrhs(int m, complex *b)
      |             ^~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/cutil.c: In function 'cFillRHS':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/cutil.c:370:16: warning: variable 'Aval' set but not used [-Wunused-but-set-variable]
  370 |     complex   *Aval;
      |                ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/cgsisx.c: In function 'cgsisx':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/cgsisx.c:677:18: warning: unused variable 'rhs_work' [-Wunused-variable]
  677 |         complex *rhs_work;
      |                  ^~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/cgsisx.c:423:14: warning: variable 'diag_pivot_thresh' set but not used [-Wunused-but-set-variable]
  423 |     float    diag_pivot_thresh;
      |              ^~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zlacon2.c: In function 'zlacon2_':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zlacon2.c:186:1: warning: label 'L90' defined but not used [-Wunused-label]
  186 | L90:
      | ^~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/cgsitrf.c: In function 'cgsitrf':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/cgsitrf.c:251:11: warning: unused variable 'one' [-Wunused-variable]
  251 |     float one = 1.0;
      |           ^~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/ilu_cdrop_row.c: In function 'ilu_cdrop_row':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/ilu_cdrop_row.c:86:13: warning: unused variable 'zero' [-Wunused-variable]
   86 |     complex zero = {0.0, 0.0};
      |             ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/izmax1.c: In function 'izmax1_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/izmax1.c:61:24: warning: variable 'i__2' set but not used [-Wunused-but-set-variable]
   61 |     int ret_val, i__1, i__2;
      |                        ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/izmax1.c:61:18: warning: variable 'i__1' set but not used [-Wunused-but-set-variable]
   61 |     int ret_val, i__1, i__2;
      |                  ^~~~
At top level:
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/ilu_cdrop_row.c:36:12: warning: '_compare_' defined but not used [-Wunused-function]
   36 | static int _compare_(const void *a, const void *b)
      |            ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zgssvx.c: In function 'zgssvx':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zgssvx.c:377:15: warning: variable 'diag_pivot_thresh' set but not used [-Wunused-but-set-variable]
  377 |     double    diag_pivot_thresh;
      |               ^~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zpivotgrowth.c: In function 'zPivotGrowth':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zpivotgrowth.c:73:21: warning: unused variable 'temp_comp' [-Wunused-variable]
   73 |     doublecomplex   temp_comp;
      |                     ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zgstrs.c: In function 'zgstrs':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zgstrs.c:101:24: warning: unused variable 'incy' [-Wunused-variable]
  101 |     int      incx = 1, incy = 1;
      |                        ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zgstrs.c:101:14: warning: unused variable 'incx' [-Wunused-variable]
  101 |     int      incx = 1, incy = 1;
      |              ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zsnode_bmod.c: In function 'zsnode_bmod':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zsnode_bmod.c:63:35: warning: unused variable 'iptr' [-Wunused-variable]
   63 |     int            isub, irow, i, iptr;
      |                                   ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zsnode_bmod.c:63:32: warning: unused variable 'i' [-Wunused-variable]
   63 |     int            isub, irow, i, iptr;
      |                                ^
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadrb.c: In function 'zreadrb':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadrb.c:304:5: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  304 |     fgets(buf, 100, fp);
      |     ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadrb.c:309:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  309 |         fscanf(fp, "%14c", buf); buf[14] = 0;
      |         ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadrb.c:316:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  316 |     fscanf(fp, "%3c", type);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadrb.c:317:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  317 |     fscanf(fp, "%11c", buf); /* pad */
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadrb.c:323:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  323 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", nrow);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadhb.c: In function 'zreadhb':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadrb.c:324:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  324 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", ncol);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadrb.c:325:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  325 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", nonz);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadrb.c:326:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  326 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", &tmp);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadhb.c:301:29: warning: unused variable 'key' [-Wunused-variable]
  301 |     char buf[100], type[4], key[10];
      |                             ^~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadrb.c:338:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  338 |     fscanf(fp, "%16c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadrb.c:340:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  340 |     fscanf(fp, "%16c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadrb.c:342:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  342 |     fscanf(fp, "%20c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadrb.c: In function 'ReadVector':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadrb.c:142:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  142 |         fgets(buf, 100, fp);    /* read a line at a time */
      |         ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadrb.c: In function 'zReadValues':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadhb.c: In function 'zReadValues':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadrb.c:164:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  164 |         fgets(buf, 100, fp);    /* read a line at a time */
      |         ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadhb.c:169:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  169 |         fgets(buf, 100, fp);    /* read a line at a time */
      |         ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadhb.c: In function 'zreadhb':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadhb.c:305:5: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  305 |     fgets(buf, 100, fp);
      |     ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadhb.c:317:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  317 |         fscanf(fp, "%14c", buf); buf[14] = 0;
      |         ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadhb.c:325:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  325 |     fscanf(fp, "%3c", type);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadhb.c:326:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  326 |     fscanf(fp, "%11c", buf); /* pad */
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadhb.c:332:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  332 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", nrow);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadhb.c:333:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  333 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", ncol);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadhb.c:334:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  334 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", nonz);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadhb.c:335:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  335 |     fscanf(fp, "%14c", buf); sscanf(buf, "%d", &tmp);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadhb.c:347:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  347 |     fscanf(fp, "%16c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadhb.c:349:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  349 |     fscanf(fp, "%16c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadhb.c:351:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  351 |     fscanf(fp, "%20c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadhb.c:353:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  353 |     fscanf(fp, "%20c", buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadhb.c: In function 'ReadVector':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadhb.c:147:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  147 |         fgets(buf, 100, fp);    /* read a line at a time */
      |         ^~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadMM.c: In function 'zreadMM':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadMM.c:55:6: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
   55 |      fgets(line,512,fp);
      |      ^~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadMM.c:100:8: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  100 |        fgets(line,512,fp);
      |        ^~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadMM.c:142:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  142 |         fscanf(fp, "%d%d%lf%lf\n", &row[nz], &col[nz], &val[nz].r, &val[nz].i);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
At top level:
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadMM.c:226:13: warning: 'zreadrhs' defined but not used [-Wunused-function]
  226 | static void zreadrhs(int m, doublecomplex *b)
      |             ^~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadtriple.c: In function 'zreadtriple':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadtriple.c:48:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
   48 |     scanf("%d%d", n, nonz);
      |     ^~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadtriple.c:64:9: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
   64 |         scanf("%d%d%lf%lf\n", &row[nz], &col[nz], &val[nz].r, &val[nz].i);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadtriple.c: In function 'zreadrhs':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zreadtriple.c:146:7: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  146 |       fscanf(fp, "%lf%lf\n", &b[i].r, &b[i].i);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zutil.c: In function 'zFillRHS':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zutil.c:370:22: warning: variable 'Aval' set but not used [-Wunused-but-set-variable]
  370 |     doublecomplex   *Aval;
      |                      ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zgsitrf.c: In function 'zgsitrf':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zgsitrf.c:251:12: warning: unused variable 'one' [-Wunused-variable]
  251 |     double one = 1.0;
      |            ^~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zgsisx.c: In function 'zgsisx':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zgsisx.c:677:24: warning: unused variable 'rhs_work' [-Wunused-variable]
  677 |         doublecomplex *rhs_work;
      |                        ^~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/zgsisx.c:423:15: warning: variable 'diag_pivot_thresh' set but not used [-Wunused-but-set-variable]
  423 |     double    diag_pivot_thresh;
      |               ^~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/ilu_zdrop_row.c: In function 'ilu_zdrop_row':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/ilu_zdrop_row.c:86:19: warning: unused variable 'zero' [-Wunused-variable]
   86 |     doublecomplex zero = {0.0, 0.0};
      |                   ^~~~
At top level:
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/SRC/ilu_zdrop_row.c:36:12: warning: '_compare_' defined but not used [-Wunused-function]
   36 | static int _compare_(const void *a, const void *b)
      |            ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/MATGEN/slarnv.c: In function 'slarnv_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/MATGEN/slarnv.c:56:13: warning: variable 'i__1' set but not used [-Wunused-but-set-variable]
   56 |     integer i__1, i__2, i__3;
      |             ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/MATGEN/slaruv.c: In function 'slaruv_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/MATGEN/slaruv.c:96:13: warning: variable 'i__1' set but not used [-Wunused-but-set-variable]
   96 |     integer i__1;
      |             ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/MATGEN/slaset.c: In function 'slaset_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/MATGEN/slaset.c:66:37: warning: variable 'i__2' set but not used [-Wunused-but-set-variable]
   66 |     integer a_dim1, a_offset, i__1, i__2, i__3;
      |                                     ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/MATGEN/slaset.c:66:31: warning: variable 'i__1' set but not used [-Wunused-but-set-variable]
   66 |     integer a_dim1, a_offset, i__1, i__2, i__3;
      |                               ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/MATGEN/slaset.c:66:21: warning: unused variable 'a_offset' [-Wunused-variable]
   66 |     integer a_dim1, a_offset, i__1, i__2, i__3;
      |                     ^~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/MATGEN/slaset.c:66:13: warning: unused variable 'a_dim1' [-Wunused-variable]
   66 |     integer a_dim1, a_offset, i__1, i__2, i__3;
      |             ^~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/MATGEN/slatb4.c:11:16: warning: 'c__2' defined but not used [-Wunused-variable]
   11 | static integer c__2 = 2;
      |                ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/MATGEN/dlaruv.c: In function 'dlaruv_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/MATGEN/dlaruv.c:96:13: warning: variable 'i__1' set but not used [-Wunused-but-set-variable]
   96 |     integer i__1;
      |             ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/MATGEN/dlarnv.c: In function 'dlarnv_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/MATGEN/dlarnv.c:56:13: warning: variable 'i__1' set but not used [-Wunused-but-set-variable]
   56 |     integer i__1, i__2, i__3;
      |             ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/MATGEN/dlaset.c: In function 'dlaset_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/MATGEN/dlaset.c:62:19: warning: variable 'i__2' set but not used [-Wunused-but-set-variable]
   62 |     integer i__1, i__2, i__3;
      |                   ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/MATGEN/dlaset.c:62:13: warning: variable 'i__1' set but not used [-Wunused-but-set-variable]
   62 |     integer i__1, i__2, i__3;
      |             ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/MATGEN/dlatb4.c:11:16: warning: 'c__2' defined but not used [-Wunused-variable]
   11 | static integer c__2 = 2;
      |                ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/MATGEN/clatb4.c:11:16: warning: 'c__2' defined but not used [-Wunused-variable]
   11 | static integer c__2 = 2;
      |                ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/MATGEN/clacgv.c: In function 'clacgv_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/MATGEN/clacgv.c:38:19: warning: variable 'i__2' set but not used [-Wunused-but-set-variable]
   38 |     integer i__1, i__2;
      |                   ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/MATGEN/clacgv.c:38:13: warning: variable 'i__1' set but not used [-Wunused-but-set-variable]
   38 |     integer i__1, i__2;
      |             ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/MATGEN/clarnv.c: In function 'clarnv_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/MATGEN/clarnv.c:59:37: warning: variable 'i__5' set but not used [-Wunused-but-set-variable]
   59 |     integer i__1, i__2, i__3, i__4, i__5;
      |                                     ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/MATGEN/clarnv.c:59:31: warning: variable 'i__4' set but not used [-Wunused-but-set-variable]
   59 |     integer i__1, i__2, i__3, i__4, i__5;
      |                               ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/MATGEN/clarnv.c:59:13: warning: variable 'i__1' set but not used [-Wunused-but-set-variable]
   59 |     integer i__1, i__2, i__3, i__4, i__5;
      |             ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/MATGEN/zlacgv.c: In function 'zlacgv_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/MATGEN/zlacgv.c:38:19: warning: variable 'i__2' set but not used [-Wunused-but-set-variable]
   38 |     integer i__1, i__2;
      |                   ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/MATGEN/zlacgv.c:38:13: warning: variable 'i__1' set but not used [-Wunused-but-set-variable]
   38 |     integer i__1, i__2;
      |             ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/MATGEN/zlarnv.c: In function 'zlarnv_slu':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/MATGEN/zlarnv.c:59:37: warning: variable 'i__5' set but not used [-Wunused-but-set-variable]
   59 |     integer i__1, i__2, i__3, i__4, i__5;
      |                                     ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/MATGEN/zlarnv.c:59:31: warning: variable 'i__4' set but not used [-Wunused-but-set-variable]
   59 |     integer i__1, i__2, i__3, i__4, i__5;
      |                               ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/MATGEN/zlarnv.c:59:13: warning: variable 'i__1' set but not used [-Wunused-but-set-variable]
   59 |     integer i__1, i__2, i__3, i__4, i__5;
      |             ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/MATGEN/zlatb4.c:11:16: warning: 'c__2' defined but not used [-Wunused-variable]
   11 | static integer c__2 = 2;
      |                ^~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/dgst01.c: In function 'dgst01':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/dgst01.c:67:19: warning: unused variable 'comp_temp' [-Wunused-variable]
   67 |     double utemp, comp_temp;
      |                   ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/sgst01.c: In function 'sgst01':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/sgst01.c:67:18: warning: unused variable 'comp_temp' [-Wunused-variable]
   67 |     float utemp, comp_temp;
      |                  ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/cdrive.c: In function 'main':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/cdrive.c:79:29: warning: variable 'nofact' set but not used [-Wunused-but-set-variable]
   79 |     int            prefact, nofact, equil, iequed;
      |                             ^~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/ddrive.c: In function 'main':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/zdrive.c: In function 'main':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/zdrive.c:79:29: warning: variable 'nofact' set but not used [-Wunused-but-set-variable]
   79 |     int            prefact, nofact, equil, iequed;
      |                             ^~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/ddrive.c:79:29: warning: variable 'nofact' set but not used [-Wunused-but-set-variable]
   79 |     int            prefact, nofact, equil, iequed;
      |                             ^~~~~~
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/sdrive.c: In function 'main':
/home/tkloczko/rpmbuild/BUILD/superlu-5.3.0/TESTING/sdrive.c:79:29: warning: variable 'nofact' set but not used [-Wunused-but-set-variable]
   79 |     int            prefact, nofact, equil, iequed;
      |                             ^~~~~~

nonfree code

The file License.txt claims that SuperLU is distributed under BSD, but that doesn't seem to entirely be the case. I'm looking at SRC/mc64ad.c. One reads there:

The user shall not pass this code directly to a third party without the
express prior consent of the authors. Users wanting to licence their
own copy of these routines should send email to [email protected].

Perhaps this condition is already violated by putting SuperLU on GitHub, and in any case is not something anyone would like to have to deal with.

Is the corresponding code still in use at all?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.