Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This begins to remove earlier workarounds for NVRTC now that support is more robust. In this PR workarounds were removed from gamma so now instead of having just
tgamma
, andlgamma
on device we have the whole gamma family including:tgamma_ratio
,tgamma_delta_ratio
,gamma_p_inv
,gamma_p_inva
,gamma_q_inv
,gamma_q_inva
,gamma_p_derivative
,igamma
,igamma_inv
,igamma_inva
. This additional support allows us to add GPU support to the chi squared distribution and weibull distributions. We also gain root finding support with toms748 now being device capable.This PR is a bit uglier than other because NVRTC does not really support forward declarations.
gamma.hpp
used these extensively so we either call the CUDA standard library where we can, or apply the correct pre-processing to call detail functions. A little bit of recursion was eliminated at the cost of additional dispatching functions.Completed device CI runs can be found here: cppalliance/cuda-math#18.
CC: @steppi, @dschmitz89, @izaid.