bootcmatch / BootCMatch

Bootstrap AMG based on Compatible weighted Matching
Other
8 stars 5 forks source link

BootCMatchG error #2

Open txthpc opened 2 years ago

txthpc commented 2 years ago

hi , I am very interested in your BootCMatchG(https://github.com/bootcmatch/BootCMatchG). After installing according to the steps in the README, after running the example ./bin/solve_example ../test_matrix/pi8grid6.mtx ../AMGsettings_base, the following error appears:

READING INPUT MATRIX....:

SOLVING....:

BUILDING....:

A0 n: 168577 nnz: 1177473 avg_nnz: 6.98478
A1 n: 87047 nnz: 171189 avg_nnz: 1.96663

Current cmplx for V-cycle: 1.14539
Current cmplx for W-cycle: 1.29077
Average Coarsening Ratio: 1.93662
#META agg;level_number int 1
#META agg;avg_coarse_ratio float 1.936620e+00
#META agg;OpCmplx float 1.145387e+00
TOTAL_MUL_TIME: 5.58378

estimated_ratio 1
Number of hierarchy: 1
0] 87047
SOLVING....:

solve_example: SOLVER/FCG.cu:567: 
double flexibileConjugateGradients_v3(handles*, vector<double>*, vector<double>*, 
bootBuildData*, boot*, applyData*, int, int, double, int*): 
Assertion `std::isfinite(l2_norm)' failed.
Aborted (core dumped)

In addition, when I use other mtx matrices (such as cant.mtx, 1138_bus.mtx), the program keeps stopping at the following interface:

READING INPUT MATRIX....:

SOLVING....:

BUILDING....:

In response to the above two questions, can you provide some suggestions? Best wishes!

txthpc commented 2 years ago

When compiling, there is no error, but there are some warnings:

mkdir -p obj 
nvcc -c -o obj/utils.o -lcusparse -lcublas -lcusolver -lcurand -I. -IEXTERNAL/nsparse-master/cuda-c/inc -I/home/txt/Downloads/cub-1.8.0 -arch=sm_75 --compiler-options -Wall utility/utils.cu
utility/utils.cu: In function ‘const char* cusparseGetStatusString(cusparseStatus_t)’:
utility/utils.cu:26:8: warning: enumeration value ‘CUSPARSE_STATUS_ZERO_PIVOT’ not handled in switch [-Wswitch]
     switch (error)
        ^
utility/utils.cu:26:8: warning: enumeration value ‘CUSPARSE_STATUS_NOT_SUPPORTED’ not handled in switch [-Wswitch]
mkdir -p obj 
nvcc -c -o obj/nsparse.o -lcusparse -lcublas -lcusolver -lcurand -I. -IEXTERNAL/nsparse-master/cuda-c/inc -I/home/txt/Downloads/cub-1.8.0 -arch=sm_75 EXTERNAL/nsparse-master/cuda-c/src/kernel/kernel_spgemm_hash_d.cu
EXTERNAL/nsparse-master/cuda-c/src/kernel/kernel_spgemm_hash_d.cu: In function ‘void set_row_nnz(int*, int*, int*, int*, int*, sfBIN*, int, int*)’:
EXTERNAL/nsparse-master/cuda-c/src/kernel/kernel_spgemm_hash_d.cu:1180:23: warning: ‘cudaError_t cudaThreadSynchronize()’ is deprecated [-Wdeprecated-declarations]
       cudaThreadSynchronize();
                       ^
/usr/local/cuda-10.2/bin/../targets/x86_64-linux/include/cuda_runtime_api.h:957:46: note: declared here
 extern __CUDA_DEPRECATED __host__ cudaError_t CUDARTAPI cudaThreadSynchronize(void);
                                              ^~~~~~~~~~~~~~~~~~~~~
EXTERNAL/nsparse-master/cuda-c/src/kernel/kernel_spgemm_hash_d.cu: In function ‘void calculate_value_col_bin(int*, int*, real*, int*, int*, real*, int*, int*, real*, sfBIN*, int)’:
EXTERNAL/nsparse-master/cuda-c/src/kernel/kernel_spgemm_hash_d.cu:1287:23: warning: ‘cudaError_t cudaThreadSynchronize()’ is deprecated [-Wdeprecated-declarations]
   cudaThreadSynchronize();
                       ^
/usr/local/cuda-10.2/bin/../targets/x86_64-linux/include/cuda_runtime_api.h:957:46: note: declared here
 extern __CUDA_DEPRECATED __host__ cudaError_t CUDARTAPI cudaThreadSynchronize(void);
                                              ^~~~~~~~~~~~~~~~~~~~~
mkdir -p obj 
nvcc -c -o obj/vector.o -lcusparse -lcublas -lcusolver -lcurand -I. -IEXTERNAL/nsparse-master/cuda-c/inc -I/home/txt/Downloads/cub-1.8.0 -arch=sm_75 --compiler-options -Wall matrix/vector.cu
mkdir -p obj 
nvcc -c -o obj/CSR.o -lcusparse -lcublas -lcusolver -lcurand -I. -IEXTERNAL/nsparse-master/cuda-c/inc -I/home/txt/Downloads/cub-1.8.0 -arch=sm_75 --compiler-options -Wall matrix/CSR.cu
mkdir -p obj 
nvcc -c -o obj/matrixIO.o -lcusparse -lcublas -lcusolver -lcurand -I. -IEXTERNAL/nsparse-master/cuda-c/inc -I/home/txt/Downloads/cub-1.8.0 -arch=sm_75 --compiler-options -Wall matrix/matrixIO.cu
matrix/matrixIO.cu(62): warning: unrecognized character escape sequence

matrix/matrixIO.cu(62): warning: unrecognized character escape sequence

mkdir -p bin 
nvcc -o bin/solve_example  -I. -IEXTERNAL/nsparse-master/cuda-c/inc -I/home/txt/Downloads/cub-1.8.0 -lcusparse -lcublas -lcusolver -lcurand -arch=sm_75 --compiler-options -Wall solve_example.cu obj/utils.o obj/nsparse.o obj/vector.o obj/CSR.o obj/matrixIO.o

Do I need to make some changes? Thanks!

bootcmatch commented 2 years ago

Dear user, could you send us information about your CUDA version and which type of NVIDIA GPU are you using?

Please, note that you opened issues on BootCMatchG (the GPU version of the BootCMatch code) by the sequential code rep. We will appreciate if you could send issues to BootCMatchG team. You can also use the following addresses: -pasqua.dambra@cnr.it -massimo.bernaschi@cnr.it -pasquini.dario.1991@gmail.com

Looking forward to receiving the above information. Thanks a lot for your interest in our work.