"sgl-kernel/csrc/vscode:/vscode.git/clone" did not exist on "4f42c8cd3e651bb4a7cb489015356571ae378e7b"
Commit 80587d4c authored by mei-ye's avatar mei-ye
Browse files

staging

parent 70837f1a
...@@ -18,8 +18,6 @@ hip_ptr allocate_gpu(std::size_t sz) ...@@ -18,8 +18,6 @@ hip_ptr allocate_gpu(std::size_t sz)
hipMalloc(&result, sz); hipMalloc(&result, sz);
if (result == nullptr) if (result == nullptr)
throw std::runtime_error("can not allocate GPU memory"); throw std::runtime_error("can not allocate GPU memory");
char * ptr = reinterpret_cast<char*>(result);
std::cout << "MIGraph allocated mem: [" << result << "," << ptr + sz -1 << "]" << std::endl;
return hip_ptr{result}; return hip_ptr{result};
} }
......
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