Skip to content

Conversation

@DiamonDinoia
Copy link
Collaborator

@DiamonDinoia DiamonDinoia commented Dec 1, 2025

upsampfact choice is deferred to setpts if the user uses auto upsampfact. This way density can be used to choose a faster value.

@DiamonDinoia DiamonDinoia requested a review from lu1and10 December 1, 2025 17:34
@DiamonDinoia DiamonDinoia mentioned this pull request Dec 1, 2025
std::complex<float> *ptr, int sign, int options, int nthreads) {
uint64_t nf = 1;
for (auto i : dims) nf *= i;
#ifdef _OPENMP
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this fix some unrelated issue?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is needed because we allow fft replan in this PR. We were not allowing before (I think). If we change upsampfact and call makeplan again we have a memory leak. But we do not allow multiple call to makeplan. WIth this PR setpts can replan so we need this.

@DiamonDinoia DiamonDinoia force-pushed the feature/hint-nj-density branch 3 times, most recently from 9c29d30 to c92eb36 Compare December 4, 2025 20:25
@DiamonDinoia DiamonDinoia force-pushed the feature/hint-nj-density branch from c92eb36 to a52cae1 Compare December 5, 2025 20:09
@DiamonDinoia DiamonDinoia changed the title NJ hint and using density to determine upsampfact Using density to determine upsampfact, deferring to setpts when auto Dec 5, 2025
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

Successfully merging this pull request may close these issues.

2 participants