Commit 24622315 by cjjia Committed by Tianqi Chen

Fix the issue #1033 (#1037)

* Fix the issue #1033

fix the issue #1033 "converting to ‘const std::unordered_set<std::basic_string<char> >’from initializer"

* Fix the issue #1033

fix the issue #1033 "converting to ‘const std::unordered_set<std::basic_string >’from initializer".
parent 5ff65749
......@@ -126,28 +126,36 @@ struct TargetContext {
/*! \brief This namespace provides functions to construct Target instances */
namespace target {
/*! \return A target for LLVM */
EXPORT Target llvm(const std::unordered_set<std::string>& options = {});
EXPORT Target llvm(const std::unordered_set<std::string>& options =
std::unordered_set<std::string>());
/*! \return A target for CUDA */
EXPORT Target cuda(const std::unordered_set<std::string>& options = {});
EXPORT Target cuda(const std::unordered_set<std::string>& options =
std::unordered_set<std::string>());
/*! \return A target for ROCm */
EXPORT Target rocm(const std::unordered_set<std::string>& options = {});
EXPORT Target rocm(const std::unordered_set<std::string>& options =
std::unordered_set<std::string>());
/*! \return A target for OpenCL */
EXPORT Target opencl(const std::unordered_set<std::string>& options = {});
EXPORT Target opencl(const std::unordered_set<std::string>& options =
std::unordered_set<std::string>());
/*! \return A target for Metal */
EXPORT Target metal(const std::unordered_set<std::string>& options = {});
EXPORT Target metal(const std::unordered_set<std::string>& options =
std::unordered_set<std::string>());
/*! \return A target for rasp */
EXPORT Target rasp(const std::unordered_set<std::string>& options = {});
EXPORT Target rasp(const std::unordered_set<std::string>& options =
std::unordered_set<std::string>());
/*! \return A target for Mali */
EXPORT Target mali(const std::unordered_set<std::string>& options = {});
EXPORT Target mali(const std::unordered_set<std::string>& options =
std::unordered_set<std::string>());
/*! \return A target for stackvm */
EXPORT Target stackvm(const std::unordered_set<std::string>& options = {});
EXPORT Target stackvm(const std::unordered_set<std::string>& options =
std::unordered_set<std::string>());
} // namespace target
......
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