mirror of
https://github.com/CNugteren/CLBlast.git
synced 2024-08-21 04:22:27 +02:00
130 lines
4.2 KiB
C++
130 lines
4.2 KiB
C++
|
|
// =================================================================================================
|
|
// This file is part of the CLBlast project. The project is licensed under Apache Version 2.0. This
|
|
// project loosely follows the Google C++ styleguide and uses a tab-size of two spaces and a max-
|
|
// width of 100 characters per line.
|
|
//
|
|
// Author(s):
|
|
// Cedric Nugteren <www.cedricnugteren.nl>
|
|
//
|
|
// This file populates the database with best-found tuning parameters for the Xaxpy kernels.
|
|
//
|
|
// =================================================================================================
|
|
|
|
namespace clblast {
|
|
// =================================================================================================
|
|
|
|
const Database::DatabaseEntry Database::XaxpySingle = {
|
|
"Xaxpy", Precision::kSingle, {
|
|
{ // NVIDIA GPUs
|
|
CL_DEVICE_TYPE_GPU, "NVIDIA Corporation", {
|
|
{ "GeForce GTX 480", { {"WGS",128}, {"WPT",1}, {"VW",2} } },
|
|
{ "Tesla K20m", { {"WGS",128}, {"WPT",2}, {"VW",2} } },
|
|
{ "Tesla K40m", { {"WGS",128}, {"WPT",1}, {"VW",4} } },
|
|
}
|
|
},
|
|
{ // AMD GPUs
|
|
CL_DEVICE_TYPE_GPU, "AMD", {
|
|
{ "Tahiti", { {"WGS",64}, {"WPT",1}, {"VW",2} } },
|
|
}
|
|
},
|
|
{ // Intel GPUs
|
|
CL_DEVICE_TYPE_GPU, "Intel", {
|
|
{ "Iris", { {"WGS",512}, {"WPT",1}, {"VW",1} } },
|
|
}
|
|
},
|
|
{ // Default
|
|
CL_DEVICE_TYPE_ALL, kDefault, {
|
|
{ kDefault, { {"WGS",128}, {"WPT",1}, {"VW",1} } },
|
|
}
|
|
},
|
|
}
|
|
};
|
|
|
|
// =================================================================================================
|
|
|
|
const Database::DatabaseEntry Database::XaxpyDouble = {
|
|
"Xaxpy", Precision::kDouble, {
|
|
{ // NVIDIA GPUs
|
|
CL_DEVICE_TYPE_GPU, "NVIDIA Corporation", {
|
|
{ "GeForce GTX 480", { {"WGS",128}, {"WPT",1}, {"VW",1} } },
|
|
{ "Tesla K20m", { {"WGS",512}, {"WPT",1}, {"VW",2} } },
|
|
{ "Tesla K40m", { {"WGS",64}, {"WPT",1}, {"VW",2} } },
|
|
}
|
|
},
|
|
{ // AMD GPUs
|
|
CL_DEVICE_TYPE_GPU, "AMD", {
|
|
{ "Tahiti", { {"WGS",256}, {"WPT",1}, {"VW",1} } },
|
|
}
|
|
},
|
|
{ // Intel GPUs
|
|
CL_DEVICE_TYPE_GPU, "Intel", {
|
|
}
|
|
},
|
|
{ // Default
|
|
CL_DEVICE_TYPE_ALL, kDefault, {
|
|
{ kDefault, { {"WGS",128}, {"WPT",1}, {"VW",1} } },
|
|
}
|
|
},
|
|
}
|
|
};
|
|
// =================================================================================================
|
|
|
|
const Database::DatabaseEntry Database::XaxpyComplexSingle = {
|
|
"Xaxpy", Precision::kComplexSingle, {
|
|
{ // NVIDIA GPUs
|
|
CL_DEVICE_TYPE_GPU, "NVIDIA Corporation", {
|
|
{ "GeForce GTX 480", { {"WGS",256}, {"WPT",1}, {"VW",1} } },
|
|
{ "Tesla K20m", { {"WGS",128}, {"WPT",1}, {"VW",1} } },
|
|
{ "Tesla K40m", { {"WGS",128}, {"WPT",2}, {"VW",1} } },
|
|
}
|
|
},
|
|
{ // AMD GPUs
|
|
CL_DEVICE_TYPE_GPU, "AMD", {
|
|
{ "Tahiti", { {"WGS",64}, {"WPT",1}, {"VW",1} } },
|
|
}
|
|
},
|
|
{ // Intel GPUs
|
|
CL_DEVICE_TYPE_GPU, "Intel", {
|
|
{ "Iris", { {"WGS",256}, {"WPT",1}, {"VW",1} } },
|
|
}
|
|
},
|
|
{ // Default
|
|
CL_DEVICE_TYPE_ALL, kDefault, {
|
|
{ kDefault, { {"WGS",128}, {"WPT",1}, {"VW",1} } },
|
|
}
|
|
},
|
|
}
|
|
};
|
|
|
|
// =================================================================================================
|
|
|
|
const Database::DatabaseEntry Database::XaxpyComplexDouble = {
|
|
"Xaxpy", Precision::kComplexDouble, {
|
|
{ // NVIDIA GPUs
|
|
CL_DEVICE_TYPE_GPU, "NVIDIA Corporation", {
|
|
{ "GeForce GTX 480", { {"WGS",128}, {"WPT",2}, {"VW",1} } },
|
|
{ "Tesla K20m", { {"WGS",256}, {"WPT",1}, {"VW",1} } },
|
|
{ "Tesla K40m", { {"WGS",64}, {"WPT",2}, {"VW",1} } },
|
|
}
|
|
},
|
|
{ // AMD GPUs
|
|
CL_DEVICE_TYPE_GPU, "AMD", {
|
|
{ "Tahiti", { {"WGS",64}, {"WPT",1}, {"VW",1} } },
|
|
}
|
|
},
|
|
{ // Intel GPUs
|
|
CL_DEVICE_TYPE_GPU, "Intel", {
|
|
}
|
|
},
|
|
{ // Default
|
|
CL_DEVICE_TYPE_ALL, kDefault, {
|
|
{ kDefault, { {"WGS",128}, {"WPT",1}, {"VW",1} } },
|
|
}
|
|
},
|
|
}
|
|
};
|
|
|
|
// =================================================================================================
|
|
} // namespace clblast
|