-
Notifications
You must be signed in to change notification settings - Fork 623
Avoid installing CCCL headers in wheels #7662
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
41bacef
stop leaking thrust headers
divyegala 3ff4f5b
add and install only cuml component
divyegala 890a153
remove gputreeshap exports
divyegala 50d9a2b
remove explicit get_cccl.cmake
divyegala 66d8020
install logger_macros.hpp
divyegala c7962e3
back to get_cccl
divyegala ce0287b
Merge remote-tracking branch 'upstream/main' into wheels-no-cccl-headers
divyegala 2cf00eb
Merge branch 'main' into wheels-no-cccl-headers
divyegala 506d81f
Merge branch 'main' into wheels-no-cccl-headers
divyegala f0d8c5b
remove duplicate statement
divyegala 4a2a188
Mirror input mem type for `nn_descent` algo in HDBSCAN (#7614)
jinsolp a50b4a3
Merge remote-tracking branch 'upstream/main' into wheels-no-cccl-headers
divyegala File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,100 @@ | ||
| /* | ||
| * SPDX-FileCopyrightText: Copyright (c) 2020-2026, NVIDIA CORPORATION. | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| */ | ||
|
|
||
| #include <cuml/tsa/arima_common.h> | ||
|
|
||
| #include <thrust/execution_policy.h> | ||
| #include <thrust/for_each.h> | ||
| #include <thrust/iterator/counting_iterator.h> | ||
|
|
||
| namespace ML { | ||
|
|
||
| template <typename DataT> | ||
| void ARIMAParams<DataT>::pack(const ARIMAOrder& order, | ||
| int batch_size, | ||
| DataT* param_vec, | ||
| cudaStream_t stream) const | ||
| { | ||
| int N = order.complexity(); | ||
| auto counting = thrust::make_counting_iterator(0); | ||
| // The device lambda can't capture structure members... | ||
| const DataT *_mu = mu, *_beta = beta, *_ar = ar, *_ma = ma, *_sar = sar, *_sma = sma, | ||
| *_sigma2 = sigma2; | ||
| thrust::for_each( | ||
| thrust::cuda::par.on(stream), counting, counting + batch_size, [=] __device__(int bid) { | ||
| DataT* param = param_vec + bid * N; | ||
| if (order.k) { | ||
| *param = _mu[bid]; | ||
| param++; | ||
| } | ||
| for (int i = 0; i < order.n_exog; i++) { | ||
| param[i] = _beta[order.n_exog * bid + i]; | ||
| } | ||
| param += order.n_exog; | ||
| for (int ip = 0; ip < order.p; ip++) { | ||
| param[ip] = _ar[order.p * bid + ip]; | ||
| } | ||
| param += order.p; | ||
| for (int iq = 0; iq < order.q; iq++) { | ||
| param[iq] = _ma[order.q * bid + iq]; | ||
| } | ||
| param += order.q; | ||
| for (int iP = 0; iP < order.P; iP++) { | ||
| param[iP] = _sar[order.P * bid + iP]; | ||
| } | ||
| param += order.P; | ||
| for (int iQ = 0; iQ < order.Q; iQ++) { | ||
| param[iQ] = _sma[order.Q * bid + iQ]; | ||
| } | ||
| param += order.Q; | ||
| *param = _sigma2[bid]; | ||
| }); | ||
| } | ||
|
|
||
| template <typename DataT> | ||
| void ARIMAParams<DataT>::unpack(const ARIMAOrder& order, | ||
| int batch_size, | ||
| const DataT* param_vec, | ||
| cudaStream_t stream) | ||
| { | ||
| int N = order.complexity(); | ||
| auto counting = thrust::make_counting_iterator(0); | ||
| // The device lambda can't capture structure members... | ||
| DataT *_mu = mu, *_beta = beta, *_ar = ar, *_ma = ma, *_sar = sar, *_sma = sma, *_sigma2 = sigma2; | ||
| thrust::for_each( | ||
| thrust::cuda::par.on(stream), counting, counting + batch_size, [=] __device__(int bid) { | ||
| const DataT* param = param_vec + bid * N; | ||
| if (order.k) { | ||
| _mu[bid] = *param; | ||
| param++; | ||
| } | ||
| for (int i = 0; i < order.n_exog; i++) { | ||
| _beta[order.n_exog * bid + i] = param[i]; | ||
| } | ||
| param += order.n_exog; | ||
| for (int ip = 0; ip < order.p; ip++) { | ||
| _ar[order.p * bid + ip] = param[ip]; | ||
| } | ||
| param += order.p; | ||
| for (int iq = 0; iq < order.q; iq++) { | ||
| _ma[order.q * bid + iq] = param[iq]; | ||
| } | ||
| param += order.q; | ||
| for (int iP = 0; iP < order.P; iP++) { | ||
| _sar[order.P * bid + iP] = param[iP]; | ||
| } | ||
| param += order.P; | ||
| for (int iQ = 0; iQ < order.Q; iQ++) { | ||
| _sma[order.Q * bid + iQ] = param[iQ]; | ||
| } | ||
| param += order.Q; | ||
| _sigma2[bid] = *param; | ||
| }); | ||
| } | ||
|
|
||
| // Explicit template instantiation | ||
| template struct ARIMAParams<double>; | ||
|
csadorf marked this conversation as resolved.
|
||
|
|
||
| } // namespace ML | ||
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.