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

Figure out how to robustly choose the chunk size #12

Open
chenwilliam77 opened this issue Oct 22, 2020 · 1 comment
Open

Figure out how to robustly choose the chunk size #12

chenwilliam77 opened this issue Oct 22, 2020 · 1 comment

Comments

@chenwilliam77
Copy link
Owner

To use ForwardDiff during nlsolve for either the homotopy or relaxation algorithms, we need to choose the chunk size appropriately so that, when re-interpreting arrays to be able to use caches, we will not get a "cannot reinterpret" error b/c "the resulting array would have non-integral first dimension." The problem is that different caches have different sizes (sometimes it's a vector and sometimes a matrix) and the inputs have different lengths, depending on whether you want to use homotopy or relaxation. The input variables are z, y, and/or Psi, which have dimensions Nz, Ny, and Nz * Ny, respectively. For homotopy, all three are inputs, but for relaxation, only z and y will be inputs. My understanding of chunk sizes doesn't seem to be entirely correct, so I'm having difficulty.

One approach is, whenever using homotopy or relaxation, we add an option to recalculate the chunk size so we can specialize for homotopy and relaxation.

@chenwilliam77
Copy link
Owner Author

ForwardDiff2, whenever it comes out, should hopefully address this problem.

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

1 participant