Skip to content

Commit 89d9c26

Browse files
authored
[Fix] Fix ascend compile error (#106)
1 parent 578b44c commit 89d9c26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

unifiedcache/csrc/ucmnfsstore/cc/domain/device/aclrt_device.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
namespace UC {
2929

3030
template <typename Api, typename... Args>
31-
Status AclrtApi(const char* caller, const char* file, const size_t line, const char* name, Api&& api, Args&&..args)
31+
Status AclrtApi(const char* caller, const char* file, const size_t line, const char* name, Api&& api, Args&&...args)
3232
{
3333
auto ret = api(args...);
3434
if (ret != ACL_SUCCESS) {
@@ -103,7 +103,7 @@ Status AclrtDevice::AppendCallback(std::function<void(bool)> cb)
103103
std::shared_ptr<std::byte> AclrtDevice::MakeBuffer(const size_t size)
104104
{
105105
std::byte* host = nullptr;
106-
auto status = ACLRT_API(aclrtMallocHost, (void**)&host);
106+
auto status = ACLRT_API(aclrtMallocHost, (void**)&host, size);
107107
if (status.Success()) { return std::shared_ptr<std::byte>(host, aclrtFreeHost); }
108108
return nullptr;
109109
}

0 commit comments

Comments
 (0)