GPU-SD
1.4.0
|
00001 00002 /* Copyright (c) 2011, Stefan Eilemann <eile@eyescale.ch> 00003 * 00004 * This library is free software; you can redistribute it and/or modify it under 00005 * the terms of the GNU Lesser General Public License version 2.1 as published 00006 * by the Free Software Foundation. 00007 * 00008 * This library is distributed in the hope that it will be useful, but WITHOUT 00009 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00010 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 00011 * details. 00012 * 00013 * You should have received a copy of the GNU Lesser General Public License 00014 * along with this library; if not, write to the Free Software Foundation, Inc., 00015 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 00016 */ 00017 00018 #ifndef GPUSD_MODULE_H 00019 #define GPUSD_MODULE_H 00020 00021 #include <gpusd/api.h> 00022 #include <gpusd/filter.h> 00023 #include <gpusd/types.h> 00024 #include <iostream> 00025 00026 00031 namespace gpusd 00032 { 00033 namespace detail 00034 { 00035 class Module; 00036 } 00038 class Module 00039 { 00040 public: 00042 GPUSD_API Module(); 00043 00045 GPUSD_API virtual ~Module(); 00046 00048 GPUSD_API static GPUInfos discoverGPUs( FilterPtr filter = 00049 FilterPtr(new DuplicateFilter)); 00050 protected: 00052 virtual GPUInfos discoverGPUs_() const = 0; 00053 00054 private: 00055 detail::Module* const impl_; 00056 }; 00057 } 00058 #endif // GPUSD_MODULE_H 00059