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 
This file provides the forward declarations for the main types used within ViennaCL.
void size(vcl_size_t s)
Sets the size of the local memory in bytes.
Definition: local_mem.hpp:42
Main namespace in ViennaCL. Holds all the basic types such as vector, matrix, etc. and defines operations upon them.
Definition: cpu_ram.hpp:34
A class representing local (shared) OpenCL memory. Typically used as kernel argument.
Definition: local_mem.hpp:33
std::size_t vcl_size_t
Definition: forwards.h:75
local_mem(vcl_size_t s)
Definition: local_mem.hpp:36
vcl_size_t size() const
Returns size in bytes.
Definition: local_mem.hpp:39