macro format
This commit is contained in:
parent
b0dacc5a80
commit
7d96758382
@ -47,7 +47,7 @@ void Context::ConfigureGpuId(bool require_gpu) {
|
||||
// Just set it to CPU, don't think about it.
|
||||
this->UpdateAllowUnknown(Args{{"gpu_id", std::to_string(kCpuId)}});
|
||||
(void)(require_gpu);
|
||||
#endif // defined(XGBOOST_USE_CUDA) || defined(XGBOOST_USE_
|
||||
#endif // defined(XGBOOST_USE_CUDA) || defined(XGBOOST_USE_HIP)
|
||||
|
||||
common::SetDevice(this->gpu_id);
|
||||
}
|
||||
|
||||
@ -61,7 +61,7 @@ inline void FitStump(Context const*, linalg::TensorView<GradientPair const, 2>,
|
||||
linalg::VectorView<float>) {
|
||||
common::AssertGPUSupport();
|
||||
}
|
||||
#endif // !defined(XGBOOST_USE_CUDA) && !defined(XGBOOST_USE_C
|
||||
#endif // !defined(XGBOOST_USE_CUDA) && !defined(XGBOOST_USE_HIP)
|
||||
} // namespace cuda_impl
|
||||
|
||||
void FitStump(Context const* ctx, HostDeviceVector<GradientPair> const& gpair,
|
||||
|
||||
@ -124,7 +124,7 @@ void SortPositionBatch(common::Span<const PerNodeData<OpDataT>> d_batch_info,
|
||||
dh::device_vector<int8_t>* tmp,
|
||||
#if defined(XGBOOST_USE_HIP)
|
||||
hipStream_t stream
|
||||
#else
|
||||
#elif defined(XGBOOST_USE_CUDA)
|
||||
cudaStream_t stream
|
||||
#endif
|
||||
) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user