ViennaCL - The Vienna Computing Library
1.7.0
Free open-source GPU-accelerated linear algebra and solver library.
local_mem.hpp
Go to the documentation of this file.
1
#ifndef VIENNACL_OCL_LOCAL_MEM_HPP_
2
#define VIENNACL_OCL_LOCAL_MEM_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
26
#include "
viennacl/forwards.h
"
27
28
namespace
viennacl
29
{
30
namespace
ocl
31
{
33
class
local_mem
34
{
35
public
:
36
local_mem
(
vcl_size_t
s) : size_(s) {}
37
39
vcl_size_t
size
()
const
{
return
size_; }
40
42
void
size
(
vcl_size_t
s) { size_ = s; }
43
44
private
:
45
vcl_size_t
size_;
46
};
47
48
}
49
}
50
#endif
51
forwards.h
This file provides the forward declarations for the main types used within ViennaCL.
viennacl::ocl::local_mem::size
void size(vcl_size_t s)
Sets the size of the local memory in bytes.
Definition:
local_mem.hpp:42
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::ocl::local_mem
A class representing local (shared) OpenCL memory. Typically used as kernel argument.
Definition:
local_mem.hpp:33
viennacl::vcl_size_t
std::size_t vcl_size_t
Definition:
forwards.h:75
viennacl::ocl::local_mem::local_mem
local_mem(vcl_size_t s)
Definition:
local_mem.hpp:36
viennacl::ocl::local_mem::size
vcl_size_t size() const
Returns size in bytes.
Definition:
local_mem.hpp:39
viennacl
ocl
local_mem.hpp
Generated on Fri Jul 31 2015 14:19:01 for ViennaCL - The Vienna Computing Library by
1.8.9.1