All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
local_mem.hpp
Go to the documentation of this file.
#ifndef VIENNACL_OCL_LOCAL_MEM_HPP_
#define VIENNACL_OCL_LOCAL_MEM_HPP_
/* =========================================================================
Copyright (c) 2010-2016, Institute for Microelectronics,
Institute for Analysis and Scientific Computing,
TU Wien.
Portions of this software are copyright by UChicago Argonne, LLC.
-----------------
ViennaCL - The Vienna Computing Library
-----------------
Project Head: Karl Rupp rupp@iue.tuwien.ac.at
(A list of authors and contributors can be found in the manual)
License: MIT (X11), see file LICENSE in the base directory
============================================================================= */
#include "viennacl/forwards.h"
namespace viennacl
{
namespace ocl
{
class local_mem
{
public:
local_mem(vcl_size_t s) : size_(s) {}
vcl_size_t size() const { return size_; }
void size(vcl_size_t s) { size_ = s; }
private:
vcl_size_t size_;
};
}
}
#endif
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::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