HPXCL
|
00001 // Copyright (c) 2015 Patrick Diehl 00002 // 00003 // Distributed under the Boost Software License, Version 1.0. (See accompanying 00004 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 00005 #pragma once 00006 #ifndef HPX_CUDA_GET_DEVICES_HPP_ 00007 #define HPX_CUDA_GET_DEVICES_HPP_ 00008 00009 #include <hpx/include/lcos.hpp> 00010 00011 #include "cuda/export_definitions.hpp" 00012 #include "cuda/server/get_devices.hpp" 00013 #include <hpxcl/cuda.hpp> 00014 00015 #include <cuda.h> 00016 00017 #include <vector> 00018 00019 namespace hpx { 00020 namespace cuda { 00021 00031 HPX_CUDA_EXPORT hpx::future<std::vector<device> > 00032 get_devices(hpx::naming::id_type node_id, int major = 1, int minor = 0); 00033 00043 HPX_CUDA_EXPORT hpx::future<std::vector<device>> 00044 get_all_devices(int major = 1, int minor = 0); 00045 00055 HPX_CUDA_EXPORT hpx::future<std::vector<device>> 00056 get_local_devices(int major = 1, int minor = 0); 00057 00067 HPX_CUDA_EXPORT hpx::future<std::vector<device>> 00068 get_remote_devices(int major = 1, int minor = 0); 00069 } 00070 } 00071 00072 #endif