Skip to content

Question about usage of __launch_bounds__( ) #63

Open
@LearnerInGithub

Description

@LearnerInGithub

@sijiac Hello everyone! I want to raise a question about the usage of CUDA qualifier launch_bounds.
In CUDA document, launch_bounds( ) only has 2 parameters: maxThreadsPerBlock and minBlocksPerMultiprocessor. However, at line485 of https://github.com/deepseek-ai/FlashMLA/blob/main/csrc/flash_fwd_mla_kernel.h, the launch_bounds used 3 parameters, what's meaning of the third parameter?
the code snippet: global void launch_bounds(256, 1, 1)
code line link:

__global__ void __launch_bounds__(256, 1, 1)

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