device_initialization_macros.hpp
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2023-2025, NVIDIA CORPORATION.
3  * SPDX-License-Identifier: Apache-2.0
4  */
5 #pragma once
9 /* Declare device initialization function for the types specified by the given
10  * variant index */
11 #define CUML_FIL_INITIALIZE_DEVICE(template_type, variant_index) \
12  template_type void \
13  initialize_device<CUML_FIL_FOREST(variant_index), raft_proto::device_type::gpu>( \
14  raft_proto::device_id<raft_proto::device_type::gpu>);