Skip to content

Bug: CPU-only build of GMRES solver tries to allocate on GPU #286

@pelesh

Description

@pelesh

Description how to reproduce the bug

Error messages are returned when running GMRES tests suggesting the solver is trying to access GPU memory. These are benign messages as computation is carried out to completion on a CPU device and all GPU calls are ignored, but the code should not be trying to access the the device memory in the CPU mode in the first place.

A typical output looks like this:

test 15
      Start 15: sys_rand_count_gmres_cgs2_test

15: Test command: /Users/55y/src/resolve2/build/tests/functionality/sys_rand_gmres_test.exe "-x" "no" "-i" "randgmres" "-g" "cgs2" "-s" "count"
15: Working Directory: /Users/55y/src/resolve2/build/tests/functionality
15: Test timeout computed to be: 10000000
15: [ERROR] Trying to delete on a GPU device, but GPU support not available.
15: [ERROR] Trying to delete on a GPU device, but GPU support not available.
15: [ERROR] Trying to delete on a GPU device, but GPU support not available.
15: [ERROR] Trying to delete on a GPU device, but GPU support not available.
15: [ERROR] Trying to delete on a GPU device, but GPU support not available.
15: [ERROR] Trying to delete on a GPU device, but GPU support not available.
15: [ERROR] Trying to delete on a GPU device, but GPU support not available.
15: [ERROR] Trying to delete on a GPU device, but GPU support not available.
15: Results for randomized GMRES solver
15:      Sketching method:               count sketching
15:      Orthogonalization method:       reorthogonalized classical Gram-Schmidt
15:      Hardware backend:               CPU
15:      Solver tolerance:               1e-12
15:      Initial residual norm          ||b-A*x||       : 7.9627092123221482e+03
15:      Initial relative residual norm ||b-A*x||/||b|| : 1.0144607573212390e+00
15:      Final residual norm            ||b-A*x||       : 4.5288034907789973e-09
15:      Final relative residual norm   ||b-A*x||/||b|| : 5.7697616433175111e-13
15:      Number of iterations                           : 19
15: 
15: Test PASSED
15: 
15: [ERROR] Trying to delete on a GPU device, but GPU support not available.
15: [ERROR] Trying to delete on a GPU device, but GPU support not available.
15: [ERROR] Trying to delete on a GPU device, but GPU support not available.
15: [ERROR] Trying to delete on a GPU device, but GPU support not available.
15: [ERROR] Trying to delete on a GPU device, but GPU support not available.
15/38 Test #15: sys_rand_count_gmres_cgs2_test ........   Passed    0.08 sec

Re::Solve version

develop at 36e9dc6

System and environment details

  • MacOS 15.5
  • gcc 14.2.0

Additional information

No response

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions