未验证 提交 a7d08db9 编写于 作者: Q qipengh 提交者: GitHub

[MLU]fix compile and add cncl (#39394)

上级 76d527e1
......@@ -57,7 +57,7 @@ MLUDeviceContext::MLUDeviceContext(MLUPlace place) : place_(place) {
MLUDeviceContext::~MLUDeviceContext() {}
Place MLUDeviceContext::GetPlace() const { return place_; }
const Place& MLUDeviceContext::GetPlace() const { return place_; }
void MLUDeviceContext::Wait() const { context()->Stream()->Wait(); }
......
......@@ -78,7 +78,7 @@ class MLUDeviceContext : public DeviceContext {
explicit MLUDeviceContext(MLUPlace place);
virtual ~MLUDeviceContext();
Eigen::DefaultDevice* eigen_device() const { return nullptr; }
Place GetPlace() const override;
const Place& GetPlace() const override;
int GetComputeCapability() const;
......
......@@ -226,6 +226,7 @@ function cmake_base() {
-DWITH_PSLIB=${WITH_PSLIB:-OFF}
-DWITH_GLOO=${gloo_flag}
-DWITH_LITE=${WITH_LITE:-OFF}
-DWITH_CNCL=${WITH_CNCL:-OFF}
-DWITH_XPU=${WITH_XPU:-OFF}
-DWITH_MLU=${WITH_MLU:-OFF}
-DLITE_GIT_TAG=release/v2.10
......@@ -277,6 +278,7 @@ EOF
-DLITE_GIT_TAG=release/v2.10 \
-DWITH_XPU=${WITH_XPU:-OFF} \
-DWITH_MLU=${WITH_MLU:-OFF} \
-DWITH_CNCL=${WITH_CNCL:-OFF} \
-DXPU_SDK_ROOT=${XPU_SDK_ROOT:-""} \
-DWITH_LITE=${WITH_LITE:-OFF} \
-DWITH_XPU_BKCL=${WITH_XPU_BKCL:-OFF} \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册