ViennaCL - The Vienna Computing Library
1.7.0
Free open-source GPU-accelerated linear algebra and solver library.
geforce_gt_540m.hpp
Go to the documentation of this file.
1
#ifndef VIENNACL_DEVICE_SPECIFIC_BUILTIN_DATABASE_DEVICES_GPU_NVIDIA_FERMI_GT540M_HPP_
2
#define VIENNACL_DEVICE_SPECIFIC_BUILTIN_DATABASE_DEVICES_GPU_NVIDIA_FERMI_GT540M_HPP_
3
4
/* =========================================================================
5
Copyright (c) 2010-2015, Institute for Microelectronics,
6
Institute for Analysis and Scientific Computing,
7
TU Wien.
8
Portions of this software are copyright by UChicago Argonne, LLC.
9
10
-----------------
11
ViennaCL - The Vienna Computing Library
12
-----------------
13
14
Project Head: Karl Rupp rupp@iue.tuwien.ac.at
15
16
(A list of authors and contributors can be found in the manual)
17
18
License: MIT (X11), see file LICENSE in the base directory
19
============================================================================= */
20
21
#include "
viennacl/device_specific/templates/matrix_axpy_template.hpp
"
22
23
#include "
viennacl/device_specific/templates/matrix_product_template.hpp
"
24
25
#include "
viennacl/device_specific/templates/row_wise_reduction_template.hpp
"
26
27
#include "
viennacl/device_specific/templates/vector_axpy_template.hpp
"
28
29
#include "
viennacl/device_specific/forwards.h
"
30
#include "
viennacl/device_specific/builtin_database/common.hpp
"
31
32
namespace
viennacl
{
33
namespace
device_specific{
34
namespace
builtin_database{
35
namespace
devices{
36
namespace
gpu{
37
namespace
nvidia{
38
namespace
fermi
{
39
namespace
geforce_gt_540m{
40
41
inline
void
add_4B
(
database_type<vector_axpy_template::parameters_type>
& db)
42
{
43
db.
add_4B
(
nvidia_id
, CL_DEVICE_TYPE_GPU,
ocl::fermi
,
"GeForce GT 540M"
,
vector_axpy_template::parameters_type
(1, 512, 512,
FETCH_FROM_GLOBAL_STRIDED
));
44
}
45
46
inline
void
add_4B
(
database_type<matrix_product_template::parameters_type>
& db,
char_to_type<'T'>
,
char_to_type<'N'>
)
47
{
48
db.
add_4B
(
nvidia_id
, CL_DEVICE_TYPE_GPU,
ocl::fermi
,
"GeForce GT 540M"
,
matrix_product_template::parameters_type
(1, 16, 16, 8, 4, 1, 8,
FETCH_FROM_LOCAL
,
FETCH_FROM_LOCAL
, 16, 8));
49
}
50
51
inline
void
add_4B
(
database_type<matrix_product_template::parameters_type>
& db,
char_to_type<'N'>
,
char_to_type<'T'>
)
52
{
53
db.
add_4B
(
nvidia_id
, CL_DEVICE_TYPE_GPU,
ocl::fermi
,
"GeForce GT 540M"
,
matrix_product_template::parameters_type
(1, 16, 16, 16, 8, 1, 4,
FETCH_FROM_LOCAL
,
FETCH_FROM_LOCAL
, 32, 8));
54
}
55
56
inline
void
add_4B
(
database_type<matrix_product_template::parameters_type>
& db,
char_to_type<'N'>
,
char_to_type<'N'>
)
57
{
58
db.
add_4B
(
nvidia_id
, CL_DEVICE_TYPE_GPU,
ocl::fermi
,
"GeForce GT 540M"
,
matrix_product_template::parameters_type
(1, 8, 16, 16, 8, 1, 4,
FETCH_FROM_LOCAL
,
FETCH_FROM_LOCAL
, 16, 8));
59
}
60
61
inline
void
add_8B
(
database_type<row_wise_reduction_template::parameters_type>
& db,
char_to_type<'T'>
)
62
{
63
db.
add_8B
(
nvidia_id
, CL_DEVICE_TYPE_GPU,
ocl::fermi
,
"GeForce GT 540M"
,
row_wise_reduction_template::parameters_type
(4, 1, 256, 1024,
FETCH_FROM_GLOBAL_STRIDED
));
64
}
65
66
inline
void
add_8B
(
database_type<row_wise_reduction_template::parameters_type>
& db,
char_to_type<'N'>
)
67
{
68
db.
add_8B
(
nvidia_id
, CL_DEVICE_TYPE_GPU,
ocl::fermi
,
"GeForce GT 540M"
,
row_wise_reduction_template::parameters_type
(4, 1024, 1, 16,
FETCH_FROM_GLOBAL_STRIDED
));
69
}
70
71
inline
void
add_4B
(
database_type<row_wise_reduction_template::parameters_type>
& db,
char_to_type<'T'>
)
72
{
73
db.
add_4B
(
nvidia_id
, CL_DEVICE_TYPE_GPU,
ocl::fermi
,
"GeForce GT 540M"
,
row_wise_reduction_template::parameters_type
(4, 1, 256, 2048,
FETCH_FROM_GLOBAL_STRIDED
));
74
}
75
76
inline
void
add_4B
(
database_type<row_wise_reduction_template::parameters_type>
& db,
char_to_type<'N'>
)
77
{
78
db.
add_4B
(
nvidia_id
, CL_DEVICE_TYPE_GPU,
ocl::fermi
,
"GeForce GT 540M"
,
row_wise_reduction_template::parameters_type
(4, 32, 16, 128,
FETCH_FROM_GLOBAL_STRIDED
));
79
}
80
81
inline
void
add_8B
(
database_type<matrix_axpy_template::parameters_type>
& db)
82
{
83
db.
add_8B
(
nvidia_id
, CL_DEVICE_TYPE_GPU,
ocl::fermi
,
"GeForce GT 540M"
,
matrix_axpy_template::parameters_type
(1, 1, 128, 32, 16,
FETCH_FROM_GLOBAL_STRIDED
));
84
}
85
86
inline
void
add_4B
(
database_type<matrix_axpy_template::parameters_type>
& db)
87
{
88
db.
add_4B
(
nvidia_id
, CL_DEVICE_TYPE_GPU,
ocl::fermi
,
"GeForce GT 540M"
,
matrix_axpy_template::parameters_type
(1, 1, 128, 4, 4,
FETCH_FROM_GLOBAL_STRIDED
));
89
}
90
91
inline
void
add_8B
(
database_type<vector_axpy_template::parameters_type>
& db)
92
{
93
db.
add_8B
(
nvidia_id
, CL_DEVICE_TYPE_GPU,
ocl::fermi
,
"GeForce GT 540M"
,
vector_axpy_template::parameters_type
(1, 512, 2048,
FETCH_FROM_GLOBAL_STRIDED
));
94
}
95
96
}
97
}
98
}
99
}
100
}
101
}
102
}
103
}
104
#endif
viennacl::ocl::fermi
Definition:
device_utils.hpp:59
viennacl::ocl::nvidia_id
Definition:
device_utils.hpp:49
viennacl::device_specific::builtin_database::database_type
Definition:
common.hpp:44
matrix_product_template.hpp
viennacl::device_specific::builtin_database::devices::gpu::nvidia::fermi::geforce_gt_540m::add_8B
void add_8B(database_type< row_wise_reduction_template::parameters_type > &db, char_to_type<'T'>)
Definition:
geforce_gt_540m.hpp:61
viennacl
Main namespace in ViennaCL. Holds all the basic types such as vector, matrix, etc. and defines operations upon them.
Definition:
cpu_ram.hpp:34
viennacl::device_specific::builtin_database::database_type::add_8B
database_type< ParamT > & add_8B(vendor_id_type p0, device_type p1, ocl::device_architecture_family p2, device_name_type p3, ParamT const &p5)
Definition:
common.hpp:83
viennacl::device_specific::FETCH_FROM_GLOBAL_STRIDED
Definition:
template_base.hpp:50
common.hpp
viennacl::device_specific::builtin_database::database_type::add_4B
database_type< ParamT > & add_4B(vendor_id_type p0, device_type p1, ocl::device_architecture_family p2, device_name_type p3, ParamT const &p5)
Definition:
common.hpp:76
matrix_axpy_template.hpp
viennacl::device_specific::char_to_type
Definition:
forwards.h:260
forwards.h
Forwards declaration.
vector_axpy_template.hpp
viennacl::device_specific::FETCH_FROM_LOCAL
Definition:
template_base.hpp:49
row_wise_reduction_template.hpp
viennacl::device_specific::builtin_database::devices::gpu::nvidia::fermi::geforce_gt_540m::add_4B
void add_4B(database_type< vector_axpy_template::parameters_type > &db)
Definition:
geforce_gt_540m.hpp:41
viennacl::device_specific::template_base::parameters_type
Definition:
template_base.hpp:57
viennacl::device_specific::template_base_impl< vector_axpy_template, vector_axpy_parameters >::parameters_type
vector_axpy_parameters parameters_type
Definition:
template_base.hpp:527
viennacl
device_specific
builtin_database
devices
gpu
nvidia
fermi
geforce_gt_540m.hpp
Generated on Fri Jul 31 2015 14:18:57 for ViennaCL - The Vienna Computing Library by
1.8.9.1