Files
triton/lib/profiles/database.cpp

65 lines
2.2 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
2015-12-21 02:43:04 -05:00
#include "database/intel/broadwell.hpp"
2015-12-18 03:40:51 -05:00
//NVidia
2015-12-21 02:43:04 -05:00
#include "database/nvidia/sm_3_0.hpp"
#include "database/nvidia/sm_3_5.hpp"
#include "database/nvidia/sm_5_2.hpp"
2015-12-18 03:40:51 -05:00
//AMD
2015-12-21 02:43:04 -05:00
#include "database/amd/gcn_1_1.hpp"
#include "database/amd/gcn_1_2.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
2015-12-21 02:43:04 -05:00
DATABASE_ENTRY(GPU, INTEL, BROADWELL, database::intel::broadwell),
2015-12-18 03:32:37 -05:00
//NVIDIA
2015-12-21 02:43:04 -05:00
DATABASE_ENTRY(GPU, NVIDIA, SM_2_0, database::nvidia::sm_3_0),
DATABASE_ENTRY(GPU, NVIDIA, SM_2_1, database::nvidia::sm_3_0),
DATABASE_ENTRY(GPU, NVIDIA, SM_3_0, database::nvidia::sm_3_0),
DATABASE_ENTRY(GPU, NVIDIA, SM_3_5, database::nvidia::sm_3_5),
DATABASE_ENTRY(GPU, NVIDIA, SM_3_7, database::nvidia::sm_3_5),
DATABASE_ENTRY(GPU, NVIDIA, SM_5_0, database::nvidia::sm_5_2),
DATABASE_ENTRY(GPU, NVIDIA, SM_5_2, database::nvidia::sm_5_2),
2015-12-18 03:40:51 -05:00
//AMD
2015-12-21 02:43:04 -05:00
DATABASE_ENTRY(GPU, AMD, GCN_1_0, database::amd::gcn_1_1),
DATABASE_ENTRY(GPU, AMD, GCN_1_1, database::amd::gcn_1_1),
DATABASE_ENTRY(GPU, AMD, GCN_1_2, database::amd::gcn_1_2)
2015-12-18 03:32:37 -05:00
};
#undef DATABASE_ENTRY
}