Skip to content

[Bug] cudaMemcpyAsync blocks proxy thread making program hang #516

Open
@liangyuRain

Description

@liangyuRain

Hi, we observe that when many kernels are pushed to launch queue, the cudaMemcpyAsync used in flushing fifo can get blocked due to full launch queue, which in turn blocks the whole proxy thread? This can make the program hang as kernels already in execution are waiting for port channel operations to complete. The problem is severe when setting CUDA_DEVICE_MAX_CONNECTIONS=1 as required by some implementations NVIDIA/Megatron-LM#533. It also seems that the cudaMemcpyAsync is not necessary in this case as port channel flush also check the trigger buffer in host memory?

Related to #503

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions