Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion aten/src/ATen/miopen/Descriptors.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <ATen/miopen/miopen-wrapper.h>
#include <ATen/core/Tensor.h>
#include <ATen/TensorUtils.h>
#include <c10/macros/Export.h>

namespace at { namespace native {

Expand Down Expand Up @@ -64,7 +65,7 @@ class Descriptor
std::unique_ptr<T, DescriptorDeleter<T, dtor>> desc_;
};

class TensorDescriptor
class TORCH_CUDA_CPP_API TensorDescriptor
: public Descriptor<miopenTensorDescriptor,
&miopenCreateTensorDescriptor,
&miopenDestroyTensorDescriptor>
Expand Down
3 changes: 2 additions & 1 deletion aten/src/ATen/miopen/Handle.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#pragma once

#include <ATen/miopen/miopen-wrapper.h>
#include <c10/macros/Export.h>

namespace at { namespace native {

miopenHandle_t getMiopenHandle();
TORCH_CUDA_CPP_API miopenHandle_t getMiopenHandle();

}} // namespace
3 changes: 2 additions & 1 deletion aten/src/ATen/miopen/Types.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

#include <ATen/miopen/miopen-wrapper.h>
#include <ATen/Tensor.h>
#include <c10/macros/Export.h>

namespace at { namespace native {

miopenDataType_t getMiopenDataType(const at::Tensor& tensor);
TORCH_CUDA_CPP_API miopenDataType_t getMiopenDataType(const at::Tensor& tensor);

int64_t miopen_version();

Expand Down