Skip to content

TF integrations Python + Vulkan failures #9936

Description

@GMNGeoffrey

Issue body

In #9927, I'm consistently hitting the following error in 25 vulkan TF integrations tests

python3: /home/runner/actions-runner/_work/iree/iree/third_party/vulkan_memory_allocator/include/vk_mem_alloc.h:11939: void VmaDeviceMemoryBlock::Destroy(VmaAllocator): Assertion `m_pMetadata->IsEmpty() && "Some allocations were not freed before destruction of this memory block!"' failed.

This is the same error message as #3381, but @stellaraccident suggested it was probably a different issue. Odd about this issue is that it happens consistently on the GitHub actions runner, but wasn't happening on Kokoro at all. I've tried reducing test parallelism to ensure this isn't some issue of competing for resources (one difference with the new machines is that they have more cores and #9905 hit this issue), but that did not help.

For now, I'm going to disable the Vulkan tests in this job, but this will block #9855.

These are the failing tests:

iree_tf_tests/layers/vulkan__Add.run
iree_tf_tests/layers/vulkan__AdditiveAttention.run
iree_tf_tests/layers/vulkan__Attention.run
iree_tf_tests/layers/vulkan__Average.run
iree_tf_tests/layers/vulkan__Concatenate.run
iree_tf_tests/layers/vulkan__Dot.run
iree_tf_tests/layers/vulkan__Maximum.run
iree_tf_tests/layers/vulkan__Minimum.run
iree_tf_tests/layers/vulkan__MultiHeadAttention.run
iree_tf_tests/layers/vulkan__Multiply.run
iree_tf_tests/layers/vulkan__Subtract.run
iree_tf_tests/layers/vulkan__dynamic_dims_Add.run
iree_tf_tests/layers/vulkan__dynamic_dims_Average.run
iree_tf_tests/layers/vulkan__dynamic_dims_Maximum.run
iree_tf_tests/layers/vulkan__dynamic_dims_Minimum.run
iree_tf_tests/layers/vulkan__dynamic_dims_Multiply.run
iree_tf_tests/layers/vulkan__dynamic_dims_Subtract.run
iree_tf_tests/layers/vulkan__full_api_AdditiveAttention.run
iree_tf_tests/layers/vulkan__full_api_Attention.run
iree_tf_tests/layers/vulkan__full_api_Concatenate.run
iree_tf_tests/math/vulkan__accumulate_n.run
iree_tf_tests/math/vulkan__add_n.run
iree_tf_tests/math/vulkan__dynamic_dim_polyval.run
iree_tf_tests/math/vulkan__polyval.run
iree_tf_tests/uncategorized/vulkan__pytree.run

Full logs: https://gist.githubusercontent.com/GMNGeoffrey/6e1ca63782858a2d9ee36157351032a1/raw/e7454d9b4a2fbc8dbdd65630b8bd5c145fdeffdd/logs.txt

Activity

  1. added
    hal/vulkan
    bindings/python
    on Jul 28, 2022
  2. ScottTodd commented on Jul 28, 2022

    @ScottTodd
    Member

    What's the Vulkan environment like on these runners? Vulkan SDK version, GPU driver version, physical GPU vs SwiftShader, etc.

  3. GMNGeoffrey commented on Jul 28, 2022

    @GMNGeoffrey
    MemberAuthor

    It's all in the swiftshader-frontends docker container

  4. GMNGeoffrey commented on Jul 28, 2022

    @GMNGeoffrey
    MemberAuthor

    Seems like @stellaraccident already has a draft PR for fixing this

  5. added a commit that references this issue on Jul 29, 2022
    3813758
  6. stellaraccident commented on Jul 29, 2022

    @stellaraccident
    Collaborator

    Didn't mean to have this auto-close. I haven't verified but do expect that the root cause is fixed. Let me know if not.

  7. GMNGeoffrey commented on Jul 29, 2022

    @GMNGeoffrey
    MemberAuthor

    I'm still seeing the same failures in #9954

  8. stellaraccident commented on Jul 29, 2022

    @stellaraccident
    Collaborator

    Boo. What do I do to test this?

  9. GMNGeoffrey commented on Jul 29, 2022

    @GMNGeoffrey
    MemberAuthor

    Well there's the really slow way of iterating via GitHub actions 😆 I think I actually got the same errors on my 96-core workstation, but I can also point you at a VM with the same config as the CI

  10. added a commit that references this issue on Jul 29, 2022
    abbd79e
  11. added a commit that references this issue on Jul 30, 2022
    f40838d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bindings/pythonhal/vulkan

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions