Skip to content

Commit

Permalink
fix: add new DAAL_EXPORT macros for ICX (#2888)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandr-Solovev committed Sep 3, 2024
1 parent b761c30 commit 3aaf4ce
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ namespace interface1
* \param[in] method Algorithm computation method
*/
template <typename algorithmFPType>
Status Result::allocate(const daal::algorithms::Input * input, const daal::algorithms::Parameter * parameter, const int method)
DAAL_EXPORT services::Status Result::allocate(const daal::algorithms::Input * input, const daal::algorithms::Parameter * parameter, const int method)
{
const InputIface * algInput = static_cast<const InputIface *>(input);

Expand All @@ -56,7 +56,8 @@ Status Result::allocate(const daal::algorithms::Input * input, const daal::algor
return st;
}

template Status Result::allocate<DAAL_FPTYPE>(const daal::algorithms::Input * input, const daal::algorithms::Parameter * parameter, const int method);
template DAAL_EXPORT services::Status Result::allocate<DAAL_FPTYPE>(const daal::algorithms::Input * input,
const daal::algorithms::Parameter * parameter, const int method);

} // namespace interface1
} // namespace ratings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ using namespace daal::services;
using namespace daal::data_management;

template <typename algorithmFPType>
Status Result::allocate(const daal::algorithms::Input * input, const daal::algorithms::Parameter * par, const int method)
DAAL_EXPORT services::Status Result::allocate(const daal::algorithms::Input * input, const daal::algorithms::Parameter * par, const int method)
{
const Input * in = static_cast<const Input *>(input);
size_t nVectors = in->get(data)->getNumberOfRows();
Expand All @@ -48,7 +48,8 @@ Status Result::allocate(const daal::algorithms::Input * input, const daal::algor
return st;
}

template Status Result::allocate<DAAL_FPTYPE>(const daal::algorithms::Input * input, const daal::algorithms::Parameter * par, const int method);
template DAAL_EXPORT services::Status Result::allocate<DAAL_FPTYPE>(const daal::algorithms::Input * input, const daal::algorithms::Parameter * par,
const int method);

} // namespace prediction
} // namespace linear_model
Expand Down
4 changes: 2 additions & 2 deletions cpp/daal/src/algorithms/normalization/minmax/minmax_fpt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ namespace interface1
* \param[in] method Computation method of the minmax normalization algorithm
*/
template <typename algorithmFPType>
Status Result::allocate(const daal::algorithms::Input * input, int method)
DAAL_EXPORT services::Status Result::allocate(const daal::algorithms::Input * input, int method)
{
DAAL_CHECK(input, ErrorNullInput);

Expand All @@ -62,7 +62,7 @@ Status Result::allocate(const daal::algorithms::Input * input, int method)
return s;
}

template Status Result::allocate<DAAL_FPTYPE>(const daal::algorithms::Input * input, int method);
template DAAL_EXPORT services::Status Result::allocate<DAAL_FPTYPE>(const daal::algorithms::Input * input, int method);

} // namespace interface1
} // namespace minmax
Expand Down
6 changes: 3 additions & 3 deletions cpp/daal/src/algorithms/pca/pca_result_fpt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ namespace interface3
* \param[in] method Computation method
*/
template <typename algorithmFPType>
services::Status Result::allocate(const daal::algorithms::Input * input, daal::algorithms::Parameter * parameter, const Method method)
DAAL_EXPORT services::Status Result::allocate(const daal::algorithms::Input * input, daal::algorithms::Parameter * parameter, const Method method)
{
size_t nComponents = 0;
DAAL_UINT64 resultsToCompute = eigenvalue;
Expand Down Expand Up @@ -74,8 +74,8 @@ services::Status Result::allocate(const daal::algorithms::PartialResult * partia
return impl->allocate<algorithmFPType>(partialResult, nComponents, resultsToCompute);
}

template services::Status Result::allocate<DAAL_FPTYPE>(const daal::algorithms::Input * input, daal::algorithms::Parameter * parameter,
const Method method);
template DAAL_EXPORT services::Status Result::allocate<DAAL_FPTYPE>(const daal::algorithms::Input * input, daal::algorithms::Parameter * parameter,
const Method method);
template services::Status Result::allocate<DAAL_FPTYPE>(const daal::algorithms::PartialResult * partialResult,
daal::algorithms::Parameter * parameter, const Method method);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ using namespace daal::services;
using namespace daal::data_management;

template <typename algorithmFPType>
Status Result::allocate(const daal::algorithms::Input * input, const daal::algorithms::Parameter * par, const int method)
DAAL_EXPORT services::Status Result::allocate(const daal::algorithms::Input * input, const daal::algorithms::Parameter * par, const int method)
{
const Input * in = static_cast<const Input *>(input);
const Parameter * parameter = static_cast<const Parameter *>(par);
Expand All @@ -65,7 +65,8 @@ Status Result::allocate(const daal::algorithms::Input * input, const daal::algor
return status;
}

template Status Result::allocate<DAAL_FPTYPE>(const daal::algorithms::Input * input, const daal::algorithms::Parameter * par, const int method);
template DAAL_EXPORT services::Status Result::allocate<DAAL_FPTYPE>(const daal::algorithms::Input * input, const daal::algorithms::Parameter * par,
const int method);

} // namespace transform
} // namespace pca
Expand Down
8 changes: 4 additions & 4 deletions cpp/daal/src/algorithms/svd/svd_dense_default_batch_fpt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ namespace svd
{
namespace interface1
{
template services::Status Result::allocate<DAAL_FPTYPE>(const daal::algorithms::Input * input, const daal::algorithms::Parameter * parameter,
const int method);
template services::Status Result::allocate<DAAL_FPTYPE>(const daal::algorithms::PartialResult * partialResult,
daal::algorithms::Parameter * parameter, const int method);
template DAAL_EXPORT services::Status Result::allocate<DAAL_FPTYPE>(const daal::algorithms::Input * input,
const daal::algorithms::Parameter * parameter, const int method);
template DAAL_EXPORT services::Status Result::allocate<DAAL_FPTYPE>(const daal::algorithms::PartialResult * partialResult,
daal::algorithms::Parameter * parameter, const int method);
template services::Status Result::allocateImpl<DAAL_FPTYPE>(size_t m, size_t n);

} // namespace interface1
Expand Down
8 changes: 4 additions & 4 deletions cpp/daal/src/algorithms/svd/svd_dense_default_online_fpt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ namespace svd
{
namespace interface1
{
template Status OnlinePartialResult::allocate<DAAL_FPTYPE>(const daal::algorithms::Input * input, const daal::algorithms::Parameter * parameter,
const int method);
template Status OnlinePartialResult::initialize<DAAL_FPTYPE>(const daal::algorithms::Input * input, const daal::algorithms::Parameter * parameter,
const int method);
template DAAL_EXPORT services::Status OnlinePartialResult::allocate<DAAL_FPTYPE>(const daal::algorithms::Input * input,
const daal::algorithms::Parameter * parameter, const int method);
template DAAL_EXPORT services::Status OnlinePartialResult::initialize<DAAL_FPTYPE>(const daal::algorithms::Input * input,
const daal::algorithms::Parameter * parameter, const int method);
template Status OnlinePartialResult::addPartialResultStorage<DAAL_FPTYPE>(size_t m, size_t n, Parameter & par);

} // namespace interface1
Expand Down

0 comments on commit 3aaf4ce

Please sign in to comment.