Skip to content

Commit b30972d

Browse files
committed
set buffer to visible
1 parent 5e59d8d commit b30972d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Etaler/Backends/CPUBackend.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace et
1313
{
1414

15-
struct CPUBuffer : public BufferImpl
15+
struct ETALER_EXPORT CPUBuffer : public BufferImpl
1616
{
1717
CPUBuffer(const Shape& shape, DType dtype, std::shared_ptr<Backend> backend)
1818
: BufferImpl(shape.volume(), dtype, std::move(backend))

Etaler/Backends/OpenCLBackend.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ struct ETALER_EXPORT OpenCLBuffer : public BufferImpl
3535
cl::Buffer buffer_;
3636
};
3737

38-
struct KernelManager
38+
struct ETALER_EXPORT KernelManager
3939
{
4040
KernelManager() : KernelManager(cl::Device(), cl::Context()) {};
4141
KernelManager(cl::Device device, cl::Context context);

Etaler/Core/TensorImpl.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace et
1313
{
1414

15-
struct BufferImpl : public std::enable_shared_from_this<BufferImpl>
15+
struct ETALER_EXPORT BufferImpl : public std::enable_shared_from_this<BufferImpl>
1616
{
1717
BufferImpl(size_t size, DType dtype, std::shared_ptr<Backend> backend)
1818
: size_(size), dtype_(dtype), backend_(backend) {}
@@ -26,7 +26,7 @@ struct BufferImpl : public std::enable_shared_from_this<BufferImpl>
2626
std::shared_ptr<Backend> backend_;
2727
};
2828

29-
struct TensorImpl : public std::enable_shared_from_this<TensorImpl>
29+
struct ETALER_EXPORT TensorImpl : public std::enable_shared_from_this<TensorImpl>
3030
{
3131
TensorImpl(std::shared_ptr<BufferImpl> buffer, Shape shape, Shape stride, size_t offset=0)
3232
: buffer_(buffer), shape_(shape), stride_(stride), offset_(offset) {}

0 commit comments

Comments
 (0)