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

Unable to run tutorial amg #271

Open
peteryim opened this issue Jan 21, 2019 · 1 comment
Open

Unable to run tutorial amg #271

peteryim opened this issue Jan 21, 2019 · 1 comment

Comments

@peteryim
Copy link

I tried "amg" in the tutorial but there were problems. The software worked for "CG solver" and "CG solver with AMG preconditioner, ONEPASS COARSENING, DIRECT INTERPOLATION" but failed for "CG with AMG preconditioner, AG COARSENING (PMIS), AG INTERPOLATION". The output is below. Any ideas?

Peter Yim


./amg ../testdata/mat65k.mtx


           Device Info

Name: Unknown CPU
Vendor: Intel(R) Corporation
Type: CPU
Available: 1
Max Compute Units: 8
Max Work Group Size: 8192
Global Mem Size: 32728408064
Local Mem Size: 32768
Local Mem Type: 2
Host Unified Memory: 1

Reading matrix...
Reading matrix completed.
-- CG solver (no preconditioner, warmup) --

Solver time: 1.58202
Relative residual: 9.60749e-09
Iterations: 453
Relative deviation from result: 1.13681e-08
-- CG with AMG preconditioner, ONEPASS COARSENING, DIRECT INTERPOLATION --

  • Setup phase (ViennaCL types)...

Setup time: 0.767442

  • CG solver (ViennaCL types)...

Solver time: 0.294805
Relative residual: 9.2538e-09
Iterations: 12
Relative deviation from result: 1.27865e-08
-- CG with AMG preconditioner, AG COARSENING (PMIS), AG INTERPOLATION --
amg: /home/ec2-user/viennacl-dev/viennacl/ocl/handle.hpp:195: const viennacl::ocl::context& viennacl::ocl::handle<OCL_TYPE>::context() const [with OCL_TYPE = cl_mem*]: Assertion `p_context != __null && bool("Logic error: Accessing dangling context from handle.")' failed.
Aborted

@skn123
Copy link

skn123 commented Mar 10, 2019

Able to get a crash from the GPU also


           Device Info

Name: Hainan
Vendor: Advanced Micro Devices, Inc.
Type: GPU
Available: 1
Max Compute Units: 5
Max Work Group Size: 256
Global Mem Size: 2146349056
Local Mem Size: 32768
Local Mem Type: 1
Host Unified Memory: 0

Reading matrix...
Reading matrix completed.
-- CG solver (no preconditioner, warmup) --

Solver time: 65.5498
Relative residual: 9.54852e-09
Iterations: 1206
Relative deviation from result: 4.3179e-07
-- CG with AMG preconditioner, ONEPASS COARSENING, DIRECT INTERPOLATION --

  • Setup phase (ViennaCL types)...
    terminate called after throwing an instance of 'viennacl::linalg::amg_coarse_problem_too_large_exception'
    what(): No further coarsening possible (437 coarse points). Consider changing the strong connection threshold or increasing the coarsening cutoff.

Aborted (core dumped)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants