/usr/include/viennacl/ocl/local_mem.hpp is in libviennacl-dev 1.5.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | #ifndef VIENNACL_OCL_LOCAL_MEM_HPP_
#define VIENNACL_OCL_LOCAL_MEM_HPP_
/* =========================================================================
Copyright (c) 2010-2014, 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 PDF manual)
License: MIT (X11), see file LICENSE in the base directory
============================================================================= */
/** @file viennacl/ocl/local_mem.hpp
@brief A local (shared) memory object for OpenCL
*/
#include "viennacl/forwards.h"
namespace viennacl
{
namespace ocl
{
/** @brief A class representing local (shared) OpenCL memory. Typically used as kernel argument */
class local_mem
{
public:
local_mem(vcl_size_t s) : size_(s) {}
/** @brief Returns size in bytes */
vcl_size_t size() const { return size_; }
/** @brief Sets the size of the local memory in bytes */
void size(vcl_size_t s) { size_ = s; }
private:
vcl_size_t size_;
};
}
}
#endif
|