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 GPU JIT compilation to
faddeeva()
(tardis-sn#107)
* Add cuda import * Add cuda boilerplate for faddeeva * Add square root of pi as constant to scope of entire file * Add faddeeva_cuda test * Vectorize faddeeva * Refactor faddeeva to be vectorized and work with cuda * Clean up faddeeva_cuda test * Rename variables to keep with convention * Refactor faddeeva_gpu and include associated tests * Add functionality for more datatypes for faddeeva_cuda Also add associated tests * Clean up faddeeva_gpu tests by testing numpy and cuda array types separately * Optimize faddeeva function to be branchless * Use cupy arrays instead of numba.cuda arrays Also call faddeeva_cuda with prespecified numbers of blocks and threads * Only import cupy if the machine has GPUs available * Typecast input to complex * Size should be of output array * Return cupy array by default
- Loading branch information
1 parent
fce755a
commit 9c2da67
Showing
2 changed files
with
179 additions
and
60 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