Skip to content

Compute CUDA timestep at step end#140

Open
AhmedSalih3d wants to merge 15 commits intocodex/add-cuda-support-for-stillwedgemdbcfrom
codex/optimize-updatetimestepbuffers-performance
Open

Compute CUDA timestep at step end#140
AhmedSalih3d wants to merge 15 commits intocodex/add-cuda-support-for-stillwedgemdbcfrom
codex/optimize-updatetimestepbuffers-performance

Conversation

@AhmedSalih3d
Copy link
Owner

Motivation

  • Avoid per-particle scalar GPU indexing (and the need for CUDA.@allowscalar) by computing the adaptive time step after the second neighbor loop.

Description

  • Remove the per-step max_visc/min_dt_force buffers and their updates from the CUDA loop and compute the time step at the end of the iteration with Δt(Positionₙ⁺, Velocityₙ⁺, Acceleration, SimConstants, SimKernel), updating src/SPHCUDA.jl accordingly; commands executed during the change included rg, sed, apply_patch, and git commit.

Testing

  • No automated tests were run for this change.

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant