mgcpp
A C++ Math Library Based on CUDA
device.hpp
Go to the documentation of this file.
1 
2 // Copyright RedPortal, mujjingun 2017 - 2018.
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
6 
7 #ifndef _MGCPP_CUDA_DEVICE_HPP_
8 #define _MGCPP_CUDA_DEVICE_HPP_
9 
11 #include <mgcpp/system/outcome.hpp>
12 
13 #include <cstdlib>
14 
15 namespace mgcpp {
16 outcome::result<void> cuda_set_device(size_t device_id) noexcept;
17 }
18 
19 #endif
Definition: adapter_base.hpp:12
outcome::result< void > cuda_set_device(size_t device_id) noexcept
BOOST_OUTCOME_V2_NAMESPACE::std_result< R > result
Definition: outcome.hpp:8