forked from tardis-sn/stardis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CUDA JIT to
calc_gamma_van_der_waals()
(tardis-sn#127)
* Add basic test for `calc_doppler_width()` * Refactor `calc_doppler_width()` and add test for vectorized implementation * Typecast to float * Add unwrapped cuda implementation of doppler_width Also typecast all global constants to float * Add wrapped cuda implementation of calc_doppler_width * Return cupy array by default * Add tests for non cuda implementation of `calc_gamma_van_der_waals()`. * Typecast inputs * Optimize formula for `calc_gamma_van_der_waals()` * Vectorize `calc_gamma_van_der_waals()` * Add CUDA implementations of `calc_gamma_van_der_waals()` and associated tests * change ion_number to not square itself in _calc_gamma_van_der_waals() * add missing import to test_broadening.py * get rid of squaresd value overwrites in _calc_gamma_van_der_waals --------- Co-authored-by: Josh Shields <[email protected]>
- Loading branch information
1 parent
6c24b93
commit a20f718
Showing
2 changed files
with
240 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters