-
-
Notifications
You must be signed in to change notification settings - Fork 426
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
CUDA Version of the Formal Integral #1837
Conversation
Before a pull request is accepted, it must meet the following criteria:
|
tardis/montecarlo/montecarlo_numba/tests/test_cuda_formal_integral.py
Outdated
Show resolved
Hide resolved
tardis/montecarlo/montecarlo_numba/tests/test_cuda_formal_integral.py
Outdated
Show resolved
Hide resolved
tardis/montecarlo/montecarlo_numba/tests/test_cuda_formal_integral.py
Outdated
Show resolved
Hide resolved
tardis/montecarlo/montecarlo_numba/tests/test_cuda_formal_integral.py
Outdated
Show resolved
Hide resolved
tardis/montecarlo/montecarlo_numba/tests/test_cuda_formal_integral.py
Outdated
Show resolved
Hide resolved
tardis/montecarlo/montecarlo_numba/tests/test_cuda_formal_integral.py
Outdated
Show resolved
Hide resolved
tardis/montecarlo/montecarlo_numba/tests/test_cuda_formal_integral.py
Outdated
Show resolved
Hide resolved
tardis/montecarlo/montecarlo_numba/tests/test_cuda_formal_integral.py
Outdated
Show resolved
Hide resolved
tardis/montecarlo/montecarlo_numba/tests/test_cuda_formal_integral.py
Outdated
Show resolved
Hide resolved
@epassaro it looks like the code coverage is failing from the tests, is there any way to tell it not the check there? |
Looks like |
It's already configured at https://github.com/tardis-sn/tardis/blob/master/.docstr.yaml I don't know why it's not working, maybe it's a regression on newer versions. I'll check on the package repo. |
Thanks! |
Sorry, Didn't realize that parameter is commented out. At some point, we discussed with @andrewfullard and agreed the tests should have docstrings. |
Okay, cool, good to know. @KevinCawley looks like you need to document the tests |
On the bright side, all the GPU tests are passing when I run them on a machine with an NVIDIA GPU and they all pass! |
tardis/montecarlo/montecarlo_numba/tests/test_cuda_formal_integral.py
Outdated
Show resolved
Hide resolved
Why isn't the code coverage comparing to the current main? |
This creates the implementation of the formal_integral on a GPU using Numba's Cuda.
Description
There is now a file that runs the formal_integral on the GPU. If a NVIDIA GPU is detected, then the formal_integral will run using the GPU code. However, if there is no NVIDIA GPU then it will run using the numba implementation.
This involves a new test file that tests against the numba implementation to ensure that there is no difference.
Motivation and context
This is a new feature that will greatly speed up the computation of the numba integral by allowing it to run in parallel on the GPU.
How has this been tested?
Examples
Type of change
Checklist