Files
triton/lib/profiles/presets.cpp

56 lines
1.7 KiB
C++
Raw Normal View History

/*
* Copyright (c) 2015, PHILIPPE TILLET. All rights reserved.
*
* This file is part of ISAAC.
*
* ISAAC is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301 USA
*/
#include "isaac/driver/device.h"
#include "isaac/profiles/profiles.h"
2015-12-18 03:40:51 -05:00
//Intel
#include "presets/broadwell.hpp"
2015-12-18 03:40:51 -05:00
//NVidia
2015-12-18 03:32:37 -05:00
#include "presets/maxwell.hpp"
2015-12-20 16:26:03 -05:00
#include "presets/kepler.hpp"
2015-12-18 03:40:51 -05:00
//AMD
#include "presets/fiji.hpp"
2015-12-20 05:20:13 +01:00
#include "presets/hawaii.hpp"
namespace isaac
{
#define DATABASE_ENTRY(TYPE, VENDOR, ARCHITECTURE, STRING) \
{std::make_tuple(driver::Device::Type::TYPE, driver::Device::Vendor::VENDOR, driver::Device::Architecture::ARCHITECTURE), STRING}
const profiles::presets_type profiles::presets_ =
2015-12-18 03:32:37 -05:00
{
//INTEL
DATABASE_ENTRY(GPU, INTEL, BROADWELL, presets::broadwell),
//NVIDIA
2015-12-20 16:26:03 -05:00
DATABASE_ENTRY(GPU, NVIDIA, KEPLER, presets::kepler),
2015-12-18 03:32:37 -05:00
DATABASE_ENTRY(GPU, NVIDIA, MAXWELL, presets::maxwell),
2015-12-18 03:40:51 -05:00
//AMD
2015-12-20 05:20:13 +01:00
DATABASE_ENTRY(GPU, AMD, GCN_1_1, presets::hawaii),
2015-12-18 03:40:51 -05:00
DATABASE_ENTRY(GPU, AMD, GCN_1_2, presets::fiji)
2015-12-18 03:32:37 -05:00
};
#undef DATABASE_ENTRY
}