Skip to content

Commit

Permalink
docs troubleshoot explicit failure to use integer*8 for M, N1, etc
Browse files Browse the repository at this point in the history
  • Loading branch information
ahbarnett committed Feb 7, 2024
1 parent 974178e commit 7087a94
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/trouble.rst
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,11 @@ If cuFINUFFT is slow (eg, less than $10^8$ nonuniform points per second), here i
Crash (segfault) issues and advice
****************************************

- The most common problem is passing in pointers to the wrong size of object, eg, single vs double precision, or int32 vs int64. The library includes both precisions, so make sure you are calling the correct one (commands begin ``finufft`` for double, ``finufftf`` for single).
- Are you using ``int64`` (``integer*8``) types for sizes ``M``, ``N``, etc? (If you have warnings switched off, you may not notice this until execution.)

- If you use C++/C/Fortran and tried to change options, did you forget to call ``finufft_default_opts`` first?
- Are you passing in pointers to the wrong size of object, eg, single vs double precision? The library includes both precisions, so make sure you are calling the correct one (commands begin ``finufft`` for double, ``finufftf`` for single).

- If you use C++/C/Fortran and changed the options struct values, did you forget to call ``finufft_default_opts`` first?

- Maybe you have switched off nonuniform point bounds checking (``opts.chkbnds=0``) for a little extra speed? Try switching it on again to catch illegal coordinates.

Expand Down

0 comments on commit 7087a94

Please sign in to comment.