Commit 8193b291 authored by Yaxun (Sam) Liu's avatar Yaxun (Sam) Liu
Browse files

Revert "[HIP] Allow std::malloc in device function"

This reverts commit f5033c37.

revert this patch since it causes regressions for Tensile. A
reduced test case is:

int main()
{
    std::shared_ptr<float> a;
    a = std::shared_ptr<float>(
        (float*)std::malloc(sizeof(float) * 100),
        std::free
    );
    return 0;
}

Will fix the issue then re-commit.

Fixes: SWDEV-405317
parent 83b7f018
Supports Markdown
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