Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build AMG.sln successfully, but can't debug.AND How can I choose different matrix and algorithm? #51

Closed
ningjiafei opened this issue Mar 14, 2019 · 18 comments

Comments

@ningjiafei
Copy link

I debug the project amgx_capi,then shows:

Usage: ./amgx_capi [-mode [hDDI | hDFI | hFFI | dDDI | dDFI | dFFI]] [-m file] [-c config_file] [-amg "variable1=value1 ... variable3=value3"]
-mode: select the solver mode
-m file: read matrix stored in the file
-c: set the amg solver options from the config file
-amg: set the amg solver options from the command line
请按任意键继续. . .

@ningjiafei
Copy link
Author

I debug the project amgx_capi,then shows:

Usage: ./amgx_capi [-mode [hDDI | hDFI | hFFI | dDDI | dDFI | dFFI]] [-m file] [-c config_file] [-amg "variable1=value1 ... variable3=value3"]
-mode: select the solver mode
-m file: read matrix stored in the file
-c: set the amg solver options from the config file
-amg: set the amg solver options from the command line
请按任意键继续. . .

I can't do anything

@ningjiafei
Copy link
Author

DONE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

PS E:\AMGXmaster\lib> examples/amgx_capi -m ../examples/matrix.mtx -c ../core/configs/FGMRES_AGGREGATION.json
AMGX version 2.0.0.130-opensource
Built on Mar 15 2019, 14:36:31
Compiled with CUDA Runtime 9.0, using CUDA driver 9.1
Warning: No mode specified, using dDDI by default.
Reading data...
RHS vector was not found. Using RHS b=[1,鈥?1]^T
Solution vector was not found. Setting initial solution to x=[0,鈥?0]^T
Finished reading
AMG Grid:
Number of Levels: 1
LVL ROWS NNZ SPRSTY Mem (GB)
--------------------------------------------------------------
0(D) 12 61 0.424 8.75e-07
--------------------------------------------------------------
Grid Complexity: 1
Operator Complexity: 1
Total Memory Usage: 8.75443e-07 GB
--------------------------------------------------------------
iter Mem Usage (GB) residual rate
--------------------------------------------------------------
Ini 0.730985 3.464102e+00
0 0.730985 1.619840e-14 0.0000
--------------------------------------------------------------
Total Iterations: 1
Avg Convergence Rate: 0.0000
Final Residual: 1.619840e-14
Total Reduction in Residual: 4.676075e-15
Maximum Memory Usage: 0.731 GB
--------------------------------------------------------------
Total Time: 0.0197452
setup: 0.00148221 s
solve: 0.018263 s
solve(per iteration): 0.018263 s

@pyramidpoint
Copy link

How to solve this problem

@pyramidpoint
Copy link

@P6(UKPB7TAWVGW@WT(AX53

@marsaev
Copy link
Collaborator

marsaev commented Apr 10, 2019

@pyramidpoint it's possible that windows interprets backslashes as special characters. Try specify path to the configuration in OS-canonical way.

@pyramidpoint
Copy link

@pyramidpoint Windows可能会将反斜杠解释为特殊字符。尝试以OS-canonical方式指定配置的路径。
thank you
image

@marsaev
Copy link
Collaborator

marsaev commented Apr 10, 2019

What GPU do you have?
Which AMGX configuration is it?
Can you try running AMGX solver on sample matrix https://github.com/NVIDIA/AMGX/blob/master/examples/matrix.mtx

@pyramidpoint
Copy link

@marsaev on a 2060 rtx, with VS 2015, CMake 3.4.2,win10 and CUDA TK 9.0.I run AMGX solver on sample matrix before.But the above error occurred

@ningjiafei
Copy link
Author

What GPU do you have?
Which AMGX configuration is it?
Can you try running AMGX solver on sample matrix https://github.com/NVIDIA/AMGX/blob/master/examples/matrix.mtx

I can solve the sample and other matrices. You may pay attention to the path of .json and .mtx.

@pyramidpoint
Copy link

image
I changed the path a little bit but it doesn't feel like that's the reason

@marsaev
Copy link
Collaborator

marsaev commented Apr 10, 2019

@pyramidpoint can you set environment variable CUDA_LAUNCH_BLOCKING=1 and try running same command again?

@pyramidpoint
Copy link

@marsaev I am working on my graduation project. Could you please add my qq or other contact information
and I have some other questions .Thank you!
My qq :1209294961

@pyramidpoint
Copy link

@marsaev @ningjiafei same mistake

@pyramidpoint
Copy link

@marsaev hi,I have another question,Why is my maximum memory usage equal to 0
image

@pyramidpoint
Copy link

@marsaev Hi,my "AMG" solver can't work ,I want know the reason,

@marsaev
Copy link
Collaborator

marsaev commented May 17, 2019

@marsaev hi,I have another question,Why is my maximum memory usage equal to 0
image

Maximum memory usage is calculated only when multigrid is used. I would assume you are not using multigrid in the mentioned config.

@marsaev
Copy link
Collaborator

marsaev commented May 17, 2019

@marsaev Hi,my "AMG" solver can't work ,I want know the reason,

What exact issue do you see?

@marsaev
Copy link
Collaborator

marsaev commented Apr 7, 2021

Closing due to inactivity

@marsaev marsaev closed this as completed Apr 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants