Unverified Commit 1082f667 authored by Artur Wojcik's avatar Artur Wojcik Committed by GitHub
Browse files

add missing DLL symbols exports (#2281)

parent f3f65985
...@@ -52,6 +52,7 @@ using dependent_type = typename select_dependent_type<T, Ts...>::type; ...@@ -52,6 +52,7 @@ using dependent_type = typename select_dependent_type<T, Ts...>::type;
* \param attr_val the normalize_axes attributes from the operator * \param attr_val the normalize_axes attributes from the operator
* \param prefix error message prefix * \param prefix error message prefix
*/ */
MIGRAPHX_EXPORT
std::vector<int64_t> normalize_axes(const std::vector<int64_t>& axes, std::vector<int64_t> normalize_axes(const std::vector<int64_t>& axes,
const shape& input_shape, const shape& input_shape,
const value& attr_val, const value& attr_val,
...@@ -67,6 +68,7 @@ std::vector<int64_t> normalize_axes(const std::vector<int64_t>& axes, ...@@ -67,6 +68,7 @@ std::vector<int64_t> normalize_axes(const std::vector<int64_t>& axes,
* \param attr_val the normalize_axes attributes from the operator * \param attr_val the normalize_axes attributes from the operator
* \param prefix error message prefix * \param prefix error message prefix
*/ */
MIGRAPHX_EXPORT
std::vector<int64_t> normalize_indices(const std::vector<int64_t>& indices, std::vector<int64_t> normalize_indices(const std::vector<int64_t>& indices,
const std::vector<int64_t>& axes, const std::vector<int64_t>& axes,
const shape& input_shape, const shape& input_shape,
......
...@@ -64,6 +64,7 @@ shape compute_padded_shape(const shape& input, ...@@ -64,6 +64,7 @@ shape compute_padded_shape(const shape& input,
// Used for dynamic auto padding of pooling operators where padding needs to be computed at // Used for dynamic auto padding of pooling operators where padding needs to be computed at
// evaulation time. // evaulation time.
MIGRAPHX_EXPORT
shape compute_padded_pool_shape(const shape& input, shape compute_padded_pool_shape(const shape& input,
const shape& kernel, const shape& kernel,
const std::vector<std::size_t>& padding, const std::vector<std::size_t>& padding,
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#ifndef MIGRAPHX_GUARD_DEVICE_TARGETS_CPP #ifndef MIGRAPHX_GUARD_DEVICE_TARGETS_CPP
#define MIGRAPHX_GUARD_DEVICE_TARGETS_CPP #define MIGRAPHX_GUARD_DEVICE_TARGETS_CPP
#include <migraphx/config.hpp> #include <migraphx/gpu/device/config.hpp>
#include <string> #include <string>
#include <vector> #include <vector>
...@@ -34,9 +34,13 @@ namespace gpu { ...@@ -34,9 +34,13 @@ namespace gpu {
namespace device { namespace device {
#define MIGRAPHX_GPU_TARGETS "@GPU_TARGETS@" // NOLINT #define MIGRAPHX_GPU_TARGETS "@GPU_TARGETS@" // NOLINT
MIGRAPHX_DEVICE_EXPORT
const std::vector<std::string>& get_targets(); const std::vector<std::string>& get_targets();
MIGRAPHX_DEVICE_EXPORT
std::string get_targets_as_string(); std::string get_targets_as_string();
MIGRAPHX_DEVICE_EXPORT
std::string get_device_name(); std::string get_device_name();
} // namespace device } // namespace device
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment