ViennaCL - The Vienna Computing Library
1.5.1
|
00001 #ifndef VIENNACL_OCL_LOCAL_MEM_HPP_ 00002 #define VIENNACL_OCL_LOCAL_MEM_HPP_ 00003 00004 /* ========================================================================= 00005 Copyright (c) 2010-2014, Institute for Microelectronics, 00006 Institute for Analysis and Scientific Computing, 00007 TU Wien. 00008 Portions of this software are copyright by UChicago Argonne, LLC. 00009 00010 ----------------- 00011 ViennaCL - The Vienna Computing Library 00012 ----------------- 00013 00014 Project Head: Karl Rupp rupp@iue.tuwien.ac.at 00015 00016 (A list of authors and contributors can be found in the PDF manual) 00017 00018 License: MIT (X11), see file LICENSE in the base directory 00019 ============================================================================= */ 00020 00021 00026 #include "viennacl/forwards.h" 00027 00028 namespace viennacl 00029 { 00030 namespace ocl 00031 { 00033 class local_mem 00034 { 00035 public: 00036 local_mem(vcl_size_t s) : size_(s) {} 00037 00039 vcl_size_t size() const { return size_; } 00040 00042 void size(vcl_size_t s) { size_ = s; } 00043 00044 private: 00045 vcl_size_t size_; 00046 }; 00047 00048 } 00049 } 00050 #endif 00051