|
ViennaCL - The Vienna Computing Library
1.1.2
|
00001 /* ======================================================================= 00002 Copyright (c) 2010, Institute for Microelectronics, TU Vienna. 00003 http://www.iue.tuwien.ac.at 00004 ----------------- 00005 ViennaCL - The Vienna Computing Library 00006 ----------------- 00007 00008 authors: Karl Rupp rupp@iue.tuwien.ac.at 00009 Florian Rudolf flo.rudy+viennacl@gmail.com 00010 Josef Weinbub weinbub@iue.tuwien.ac.at 00011 00012 license: MIT (X11), see file LICENSE in the ViennaCL base directory 00013 ======================================================================= */ 00014 00015 00016 #ifndef _VIENNACL_LOCAL_MEM_HPP_ 00017 #define _VIENNACL_LOCAL_MEM_HPP_ 00018 00023 namespace viennacl 00024 { 00025 namespace ocl 00026 { 00028 class local_mem 00029 { 00030 public: 00031 local_mem(unsigned int s) : size_(s) {} 00032 00034 unsigned int size() const { return size_; } 00035 00037 void size(unsigned int s) { size_ = s; } 00038 00039 private: 00040 unsigned int size_; 00041 }; 00042 00043 } 00044 } 00045 #endif 00046
1.7.6.1