Skip to content

[Feature Request] Fix crt/host_defines.h missing in CUDA 13 for FlashAttention builds #437

@SPRCSY

Description

@SPRCSY

Thanks for this awesome action!

I'm trying to build FlashAttention on Windows using your action with CUDA 13.x, but it fails because host_defines.h has moved in the official toolkit (from include/crt/ to include/).

Error:

fatal error C1083: Cannot open include file: 'crt/host_defines.h': No such file or directory

Request:
Could you add a small workaround in the action script for CUDA 13+ on Windows?
Something like copying or linking the file back to the old location during setup:

# Example fix
Copy-Item "$env:CUDA_PATH\include\host_defines.h" "$env:CUDA_PATH\include\crt\host_defines.h"

This would unblock FlashAttention and other projects relying on the old path without needing users to fork the repo or downgrade CUDA.

Let me know if you need more details. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions