ViennaCL - The Vienna Computing Library  1.2.0
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-2011, Institute for Microelectronics,
6  Institute for Analysis and Scientific Computing,
7  TU Wien.
8 
9  -----------------
10  ViennaCL - The Vienna Computing Library
11  -----------------
12 
13  Project Head: Karl Rupp rupp@iue.tuwien.ac.at
14 
15  (A list of authors and contributors can be found in the PDF manual)
16 
17  License: MIT (X11), see file LICENSE in the base directory
18 ============================================================================= */
19 
20 
25 namespace viennacl
26 {
27  namespace ocl
28  {
30  class local_mem
31  {
32  public:
33  local_mem(unsigned int s) : size_(s) {}
34 
36  unsigned int size() const { return size_; }
37 
39  void size(unsigned int s) { size_ = s; }
40 
41  private:
42  unsigned int size_;
43  };
44 
45  }
46 }
47 #endif
48