Coverage Control Library
Loading...
Searching...
No Matches
cuda_utils.cpp
Go to the documentation of this file.
1/*
2 * This file is part of the CoverageControl library
3 *
4 * Author: Saurav Agarwal
5 * Contact: sauravag@seas.upenn.edu, agr.saurav1@gmail.com
6 * Repository: https://github.com/KumarRobotics/CoverageControl
7 *
8 * Copyright (c) 2024, Saurav Agarwal
9 *
10 * The CoverageControl library is free software: you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation, either version 3 of the License, or (at your
13 * option) any later version.
14 *
15 * The CoverageControl library is distributed in the hope that it will be
16 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
18 * Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License along with
21 * CoverageControl library. If not, see <https://www.gnu.org/licenses/>.
22 */
23
29
30namespace CoverageControl {
31
32bool CudaUtils::is_cuda_initialized_ = false;
33bool CudaUtils::is_cuda_available_ = false;
34int CudaUtils::device_count_ = 0;
35int CudaUtils::device_id_ = -1;
36#ifdef COVERAGECONTROL_WITH_CUDA
37bool CudaUtils::use_cuda_ = true;
38#else
39bool CudaUtils::use_cuda_ = false;
40#endif
41
42} // namespace CoverageControl
Utility functions for CUDA.
Namespace for the CoverageControl library.